/*
Theme Name: WorldQuizDuell
Theme URI:/
Author: Florian Quast
Author URI: /
Description: Theme for WordlQuizDuell
Version: 1.0.6
License: GNU General Public License v2
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags:
Text Domain:
*/

/*
===================================
          HEADER
====================================
*/

html {
  height: 100vh;
  width: auto;
  font-size: 100%;
}

body {
  height: 100%;
  width: auto;
  background-color: white;
  animation-name: bodyfadein 0.4s ease-out;
  font-size: 62.5%;
}

@keyframes bodyfadein{
  from {opacity: 0;}
  to {opacity: 1;}
}


header {
  z-index: 12;
  width: 100%;
  height: 8vh;
  background-color: rgba(72, 72, 72,1);
  position: relative;
  opacity: 1;

}

#headerlogo{
 height: 50%;
 position: relative;
 left: 20px;
 top: 20px;
}

a, a:link {
  text-decoration: none;
}

nav {
  position: absolute !important;
  display: table;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0;
  right: 0;
  float: right;
}


nav .current {
  color: #e3000f;
}

header ul{
  display: table-cell;
  vertical-align: middle;
  margin: 0 !important;
}
header li {
  padding-right: 45px;
  display: inline-block;
  list-style: none;
  user-select: None;
  -ms-user-select: None;
  -moz-user-select: None;
  -webkit-user-select: None;
  cursor: pointer;
  transition: all .1s ease-in-out;
}

header li a{
  list-style: none;
  color: white;
  text-transform: uppercase;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  line-height: 17px;
  position: relative;
  user-select: None;
  -ms-user-select: None;
  -moz-user-select: None;
  -webkit-user-select: None;
  cursor: pointer;
  transition: all .1s ease-in-out;

}


header li a:hover {
  color: #e3000f;
}

/*
===================================
          spacer
====================================
*/

.spacer{
  width: 100%;
  height: 80px;
}

/*
===================================
          SIDEBAR
====================================
*/

.sidebar-container{
  position: relative;
  display: block;
  width: 100%;
  height: 120%;
  padding: 1vh;
  padding-top: 9vh;
  box-shadow: -15px 0 10px 0px rgba(0, 0, 0, 0.2);
}

.sidebarclose{
  position: absolute;
  top: 9vh;
  right: 2%;
  fill: red;
  border: none;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  border-radius: 50%;
  background: transparent;
  padding: 7px;
}

.sidebarclose:hover{
  background-color: rgba(255, 87, 51, 0.7);
  padding: 7px;
  fill:white;
}

.sidebaropen:hover{
  background-color: rgba(51, 255, 150, 0.7);
  padding: 7px;
  fill:white;
}

.sidebaropen{
  z-index: 10;
  position: fixed;
  top: 8vh;
  right: 0;
  float: right;
  fill: rgba(72, 72, 72,1);
  margin: 10px;
  padding: 7px;
  border: none;
  text-decoration: none;
  text-align: center;
  display: block;
  border-radius: 50%;
  background: transparent;
}

.sidebarhide{
  transform: translateX(500%) !important;
}

.sidebarclose:focus{
  outline: 0 !important;
}

.sidebaropen:focus{
  outline: 0 !important;
}

#sidebar{
  z-index: 11;
  background-color: white;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  height: 120%;
  width: 25%;
  margin-top: 0px;
  animation-name: shiftin;
  animation-duration: 1s;
  animation-timing-function: ease-out;
  transition: transform 0.3s linear;
}

@keyframes shiftin {
  from {right: -80%;}
  to {right: 0%;}
}

#innersidebar{
  margin: 10px;
  margin-top: 10em;
  display: inline-block;
  vertical-align: middle;
}

#sidebartitle{
  position: absolute;
  top: 15%;
  right: 10%;
  color: red;
  text-transform: uppercase;
  text-align: right;
  font-family: 'Nunito Sans', sans-serif;
  font-weight:800;
  font-size: 120px;
  animation-name: shiftin2;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}

@keyframes shiftin2 {
  from {right: -50%;}
  to {right: 10%;}
}

#sidebarcontent{
  position: absolute;
  width: 80%;
  top: 35%;
  right: 10%;
  text-align: justify;
  font-weight: 600;
  line-height: 130%;
  overflow: auto;
}

/*
===================================
          FRONTPAGE
====================================
*/

.frontpage {
  margin-top:5%;
}

.world-svg {
  text-align: center;  /* SVG im Content-Bereich zentrieren */
  margin: 2rem 0;
}

.world-svg svg {
    max-width: 70%;
    padding: 1.5rem;
    border-radius: 100px;
    height: auto;
    background-color: #818A9C;
}


#Werbung {
  display: block;
  margin: auto;
  margin-bottom: 50px;
}

/* Tooltip-Box */
.country-tooltip {
  position: absolute;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  pointer-events: none; /* verhindert, dass der Tooltip selbst Events abfängt */
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 9999;
}

.country-quiz {
  display: none;
  text-align: center;
  margin-bottom: 1.5rem;
}

.country-quiz label {
  font-size: 16px;
}

#moduslabel {
  display: inline-block;
  font-size: 16px;
}


.country-quiz input {
  display: inline-block;
  margin-left: 5px;
  padding: 0.5rem 1rem;
  font-size: 16px;
  width: 200px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

#customornot {
  width: 20px;
}

.deleted {
  display: none;
}


#timer {
  display: inline-block;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  font-weight: bold;
  color: #000000;
  padding: 0.5rem 1rem;
  text-align: center;
  width: fit-content;
  margin: 50px auto 20px auto;
}

button {
  display: inline-block;
  margin: 0 auto;
  margin-bottom: .5rem;
  padding: 0.5rem 1rem;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #414141;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #080a0c;
}

button

button:disabled {
  background-color: #414141;
  opacity: 0.5;
  cursor: not-allowed;
}

/* Wenn ein Land korrekt geraten wurde */
.found {
  fill: #66B066 !important;
}

.notfound{
  fill: #B2341D !important;
}


#quiz-feedback {
  margin-top: 0.5rem;
  font-size: 14px;
  min-height: 18px; /* Platz für Text */
  color: #333;
}

#quiz-feedback.correct {
  color: #66B066;
}

#quiz-feedback.wrong {
  color: #B2341D;
}

#quiz-counter {
  display: inline-block;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  font-size: 16px;
}

.found {
  fill: #66B066 !important;
}

#foundlistdiv{
  max-width: 70%;
  margin: auto;
  font-size: 16px;
}

#foundlistdiv h2{
  text-align: center;
  margin-bottom: 1rem;
}

#foundlistdiv table {
  border-collapse: collapse;
  width: 100%;
}

#foundlistdiv td {
  border: 1px solid black;
  padding: 8px;
  text-align: center;
  width: 33.3%;
  height: 40px;
}

.highlight {
  color: #66B066;
}

.lowlight {
  color: #B2341D;
}

.hidetext {
  font-size:0 !important;
}

/**Collapseable*/

.hidden {
  display: none;
}

.collapsible-container {
  padding: 8px;
  width: 250px;
  border-radius: 6px;
  margin: auto;
  text-align: center;
}
#countriesList {
  list-style-type: none;
  padding: 0px;
}

#countriesList li{
  font-size: 16px;
  list-style-type: none;
}

/*Highscores*/
#highscores {
  display: block;
  max-width: 500px;
  margin: 2rem auto;
  margin-top: 50px;
  font-family: sans-serif;
  background-color: #DBBE7F;
  border-radius: 20px;
}

#highscores h2 {
  text-align: center;
  margin-bottom: 1rem;
  padding-top:2rem;
  font-weight: bold;
}

.highscore-mode {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
}

.highscore-mode h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.highscore-mode ul {
  list-style: none;
  padding: 0;
  margin: 0;
  
}

.highscore-mode li {
  padding: 0.2rem 0;
  font-size: 16px;;
}



/*
===================
     USER DATA
===================
*/

/* Wrapper zentrieren */
.auth-wrapper {
    display: flex;
    flex-direction: column; /* Formulare untereinander */
    align-items: center;    /* horizontal zentrieren */
}

/* Formulare stylen */
.auth-wrapper form {
    width: 300px;
    margin: 10px 0;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-wrapper form h2 {
    margin-bottom: 15px;
}

.auth-wrapper form input {
    width: 90%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.auth-wrapper form button {
    width: 95%;
    padding: 10px;
    border: none;
    background-color: #0073aa;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

.auth-wrapper form button:hover {
    background-color: #005f8d;
}

.moduswahl{
  display: inline block;
  justify-content: center;
  align-items: center;
}

.moduswahl button {
  margin-left: 5px;
}

#deltwentytimer {
  display: none;
}

/* Nachrichtenelemente */
#register-result, #login-result {
    margin-top: 5px;
    color: red;
    font-size: 0.9em;
}

/* Begrüßung */

.welcome-wrapper{
    margin: auto;
    width: 10%;
    padding: 10px;
}

.welcome {
    margin-top: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

.logout {    
  margin: 20 auto;
  padding: 0.5rem 1rem;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #414141;
  color: white;
}

.logout:hover {
    background-color:#000000;
    color: white;
}


.auth-toggle {
    margin-bottom: 15px;
}

/* Formular-Standardzustand */
.auth-wrapper form {
    display: none; /* unsichtbar */
    flex-direction: column;
    align-items: center;
}

/* Formular sichtbar */
.auth-wrapper form.active-form {
    display: flex;
}


/*
===================
     Input Quiz
===================
*/

input {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: #2196F3;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #1976D2;
}

#welcome-message {
  text-align: center;
  margin-top: 30px;
}

#endBtn{
  display: none;
  background-color: #B2341D;
}


/*
===================
     SINGLE
===================
*/
#postwrap{
  width: 100%;
  height: 100%;
  background-color: white;
}

.postcontent{
  position: absolute;
  top: 200px;
  position: absolute;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 80%;

  font-family: 'Nunito Sans', sans-serif;
}

/*
===================
     PAGE
===================
*/
#backgroundcover{
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left top;
  background-blend-mode: darken;
}

.pagecontent{
  position: absolute;
  width: 75%;
  transition: width 1s ease;
}

.fullpager{
  width: 100% !important;
}
/*
===================
     FADE IN
===================
*/

.opac{
  animation-name: fadein;
  animation-duration: 0.1s;
  animation-timing-function: ease-in;
  opacity: 1!important;
}

@keyframes fadein{
  from {opacity: 0.7;}
  to {opacity: 1;}
}

.opacdelay{
  display: block;
  animation-name: fadeindelay;
  animation-duration: 0.7s;
  animation-timing-function: ease-in;
  opacity: 1;
}

@keyframes fadeindelay{
  from {opacity: 0;}
  to {opacity: 1;}
}

.a1delay{
  animation-name: a1delay;
  animation-duration: 0.3s;
  animation-timing-function: linear;
  background-color: rgba(72, 72, 72, 1);
}

@keyframes a1delay{
  from {  background-color: rgba(72, 72, 72, 0);}
  to {  background-color: rgba(72, 72, 72, 1);}
}

#frontimgbr{
  z-index: 4;
  background-color: transparent;
  width: 100%;
  height: 100%;
  transition-delay: 1s;
}

.whitebr{
  background-color: white !important;
}

.nodisplay{
  display: none;
}
/*
===================
     Post Widget
===================
*/

#postwidgetbox{
  box-shadow: 0px 0 10px 5px rgba(0, 0, 0, 0.6);
  position: relative;
  border-radius: 2%;
  overflow: hidden;
  font-size: 20px;
}

#postwidgetbox a{
  text-decoration: none;
  color:rgba(0, 0, 0, 0.5);
}

#postwidgettitlewrap{
  background-size: cover;
  display: block;
  padding: 1em;
  height: 8em;
}

#postwidgettitle{
  display: inline-block;
  background-color:#1d2327;
  padding: 1px 7px;
}

#postwidgettitle h2{
  font-size: 1.5em !important;
  color: white; 
  font-family: basic-sans, sans-serif;
  font-weight: 700;
  font-style: normal;
  margin: 0 !important;
}

#postwidgetdate{
  position: relative;
  transform: translateY(-1rem);
  display: inline-block;
  background-color: #1d2327;
  padding: .7px 5px;
  color: white; 
  margin: 0 !important;
}

#postwidgetdate h5 {
  font-size: 1em !important;
  margin: 0 !important;
  font-family: basic-sans, sans-serif;
  font-weight: 400;
}

#postwidgetcontent{
  padding: .8em;
  font-family: basic-sans, sans-serif;
  font-weight: 400;
  font-size: .8em;
}

#postwidgetcontent:hover{
  color: rgba(0, 0, 0, 0.8);;
}

/*
===================
     Footer
===================
*/
/*footer{
  width: 100%;
  height: 5vh;
  background-color: rgba(72, 72, 72,1);
  z-index: 10;
  position: relative;
  bottom: 0;
}*/
