body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1;
}

#startgame {
    text-align: center;
    margin-top: 100px;
}

#logo {
    max-width: 100%;
    height: auto;
}

#startGameBut {
    margin-top: 20px;
    cursor: pointer;
}

#manage_video {
    display: none;
}

#endgame {
    display: none;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

#endgame img {
    margin-top: 350px;
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: white;
  font-family: Arial, sans-serif;
  text-align: center;
}
    
.my_quest {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(35, 61, 99, 0.6);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin-top: 50px;
    font-size: 26px;
    width: 700px;
    height: 200px;
    user-select: none;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}
   
.my_quest h1 {
  font-family: Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  letter-spacing: 2px;
  text-shadow: 
    2px 2px 2px rgba(255, 255, 255, 0.3),
    4px 4px 4px rgba(255, 255, 255, 0.2),
    6px 6px 8px rgba(0, 0, 0, 0.7);   
}

.answers {
  position: fixed;
  top: 330px;
  left: 50%;
  transform: translateX(-50%);
  width: 660px;
  height: 274px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 6px;
  background-image: url('question0.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.2);
  row-gap: 75px;
}

.answer {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(144, 238, 144, 0.9);
  width: 290px;
  height: 70px;
  margin: 10px;
  border-radius: 15px;
  padding: 5px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 30px;
  color: white;
  cursor: pointer;
  letter-spacing: 2px;
  user-select: none;
  text-shadow: 
      2px 2px 2px rgba(255, 255, 255, 0.3),
      4px 4px 4px rgba(255, 255, 255, 0.2),
      6px 6px 8px rgba(0, 0, 0, 0.7);
}

.answer:hover {
  background-color: #fdffa6;
  color: grey;
}
      
.my_marathon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 200px;
}
 
.my_logo {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 220px;
}  
 
.score {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ffdd00;
  color: #333;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
  font-family: 'Comic Sans MS', 'Comic Sans', cursive;
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  border: 3px solid #333;
  z-index: 10; /* Toujours visible au-dessus des autres éléments */
  letter-spacing: 2px;
  user-select: none;
  text-shadow: 
    2px 2px 0px #fff,  /* Contour clair pour un effet de relief */
    4px 4px 0px rgba(0, 0, 0, 0.5); /* Ombre étendue pour un effet 3D */      
}

.my_countdown {
    position: fixed; /* Pour que la div reste toujours en haut même en cas de scroll */
    top: 408px;
    left: 50%; /* On centre horizontalement */
    transform: translateX(-50%);     opacity: 0.5;
    width: 160px;
    border-radius: 15px;
}    

.my_copy {
  width: 40px;
  cursor: pointer;
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.audio-toggle {
    margin-top: 20px; /* Espace entre le bouton et la case à cocher */
    font-family: Arial, sans-serif;
    font-size: 18px;
    display: flex;
    justify-content: center; /* Centre la case à cocher et le texte */
    align-items: center;
}

.audio-toggle input[type="checkbox"] {
    display: none; /* Masque la case à cocher native */
}

.audio-toggle label {
    position: relative;
    padding-left: 65px; /* Espace pour l'interrupteur */
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    color: white;
    line-height: 30px; /* Aligne verticalement le texte avec la hauteur de l'interrupteur */
    vertical-align: middle; /* Assure que le texte est aligné avec l'interrupteur */
}

/* Création du bouton interrupteur */
.audio-toggle label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 30px;
    border-radius: 50px;
    background-color: #ff6f6f; /* Couleur rouge quand désactivé */
    transition: background-color 0.3s;
}

.audio-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s;
}

/* Positionnement du cercle à droite quand la case est cochée (audio activé) */
.audio-toggle input[type="checkbox"]:checked + label::before {
    background-color: #4CAF50; /* Couleur verte quand activé */
}

.audio-toggle input[type="checkbox"]:checked + label::after {
    transform: translateX(20px); /* Déplace le cercle à droite */
}

/* Ajout de l'effet visuel du curseur */
.audio-toggle label {
    transition: background-color 0.3s;
}