* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
}

.footer {
  position: fixed;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: #ffffff; /* Barva textu */
  background-color: none;
  padding: 5px 10px;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  z-index: 1000; /* Zajistí, že text bude vždy viditelný */
}


#colorContainer {
  display: flex;
  width: 100%;
  height: 100%;
}

.colorStripe {
  flex: 1;
  height: 100%;
}

.quizBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%; /* Proporční padding pro všechny velikosti obrazovky */
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(40px);
  top: 0; /* Posunuto na střed obrazovky vertikálně */
  left: 50%;
  width: 100%; /* Celá šířka obrazovky */
  transform: translate(-50%, -50%); /* Vertikální a horizontální centrování */
  position: absolute;
  transition: transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Opraveno pravidlo */
}


.quizBox .header {
  font-size: 2rem; /* Větší text pro hlavičku */
  font-weight: bold;
  color: white;
  white-space: nowrap;
  margin-right: 20px;
}

.bold-text {
  font-weight: bold;
}

.italic-text {
  font-style: italic;
  font-weight: normal;
}

.answers {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button-container, .next-button-container {
  display: flex;
  align-items: center;
}

.vertical-line {
  width: 1px;
  background-color: white;
  height: 30px;
}

.styled-button, .nextBtn {
  font-size: 1.5rem; /* Zvětšený text pro tlačítka */
  font-weight: bold;
  text-align: left;
  padding: 15px 30px;
  border: none;
  background-color: transparent;
  color: white;
  cursor: pointer;
  transition: 0.3s ease;
}

.styled-button:hover, .nextBtn:hover {
  color: rgb(255, 255, 255);
  padding: 15px 40px;
  text-shadow: 
      0 0 10px rgba(255, 255, 255, 0.9),
      0 0 20px rgba(255, 255, 255, 0.7),
      0 0 30px rgba(255, 255, 255, 0.5);
}

.result-container {
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 5%;
  white-space: nowrap;
  width: 100%;
  display: none; /* Skrytí na začátku, dokud nebude potřeba */
}

#result {
  display: none; /* Skrytí divu na začátku */
  color: white;
  font-size: 2rem; /* Velikost písma */
  font-style: italic;
  text-align: center;
}

.score-container {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
}

/* Responsive layout */
@media (max-width: 1600px) {
  .quizBox .header {
    font-size: 1.7rem;
  }

  .styled-button, .nextBtn {
    font-size: 1.2rem;
  }

  #result {
    font-size: 1.7rem;
  }
}

@media (max-width: 1200px) {
  .quizBox .header {
    font-size: 1.5rem;
  }

  .styled-button, .nextBtn {
    font-size: 1.0rem;
  }

  #result {
    font-size: 1.5rem;
  }
}

@media (max-width: 850px) {
  .quizBox {
    top: 50%;
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center;
    align-items: center; /* Center the content horizontally */
    padding: 20px; /* Add some padding for spacing */
  }

  .quizBox .header {
    font-size: 2rem;
    text-align: center; /* Center the header */
    white-space:normal;
    margin: 0px 0px 20px 0px;
  }

  .answers {
    display: flex;
    flex-direction: column; /* Stack the answers vertically */
    align-items: center; /* Center align the answers */
    gap: 10px; /* Add space between answers */
  }

  .styled-button, .nextBtn {
    font-size: 1.0rem;
    text-align: center;
  }

  .result-container {
    display: flex;
    flex-direction: column; /* Stack the answers vertically */
    align-items: center; /* Center align the answers */
    gap: 5%;
  }

  #result {
    font-size: 1.5rem;
    margin: 0px 0px 20px 0px;
  }
}

@media (max-width: 500px) {
  .quizBox {
    padding: 50px 20px; /* Add some padding for spacing */
    text-align: center;
  }

  .quizBox .header {
    margin: 0px 0px 50px 0px;
  }

  .button-container, .next-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .vertical-line {
    width: 100px;
    background-color: white;
    height: 1px;
  }

  .styled-button, .nextBtn {
    font-size: 1.5rem;
  }
}