@charset "UTF-8";

@font-face {
  font-family: "ECAL";
  src: url("../fonts/SuisseEcalIntl-Medium.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Empêche le défilement horizontal */
  overflow-y: hidden; /* Empêche le défilement vertical */
  width: 100%;
  height: 100%;
  background-color: blue;
  color: white;
  font-family: "ECAL", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
}
[class^="oval"] {
  position: fixed;
  top: 50%; /* Centre verticalement */
  left: 50%; /* Centre horizontalement */
  width: 170px; /* Taille fixe */
  height: 120px; /* Taille fixe */
  background: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite, deform 3s linear infinite;
  transform: translate(-50%, -50%); /* Ajuste pour centrer parfaitement */
  transform-style: preserve-3d;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
    0 0 20px rgba(170, 203, 255, 0.5), 0 0 30px rgba(255, 255, 255, 0.3);
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  box-sizing: border-box;
}

.question {
  font-size: 10vw;
  line-height: 0.9;
  margin-bottom: 50px;
  animation: pulse 2s infinite ease-in-out;
}

.timer {
  font-size: 20vw;
  color: red;
  margin-top: 50px;
  animation: pulse 1s infinite ease-in-out;
  text-shadow: 0 0 0px rgb(229, 4, 4), 0 0 10px rgb(214, 16, 16),
    0 0 20px rgb(187, 10, 10);
}

.image-wrapper {
  max-width: 80%;
  margin: 20px auto;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.image-container {
  margin: 30px 0;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

/* Délais personnalisés */
.oval1 {
  animation-delay: 0s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}
.oval2 {
  animation-delay: -0.2s;
  border: 4px solid yellow; /* Réduction de la largeur de la bordure */
}
.oval3 {
  animation-delay: -0.4s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
  opacity: 0.6;
}
.oval4 {
  animation-delay: -1s;
  border: 4px solid yellow; /* Réduction de la largeur de la bordure */
}
.oval5 {
  animation-delay: -1.2s;
  border: 4px solid yellow; /* Réduction de la largeur de la bordure */
}
.oval6 {
  animation-delay: -1.4s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}
.oval7 {
  animation-delay: -2s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}
.oval8 {
  animation-delay: -2.2s;
  border: 4px solid red; /* Réduction de la largeur de la bordure */
}
.oval9 {
  animation-delay: -2.4s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}
.oval10 {
  animation-delay: -3s;
  border: 4px solid yellow; /* Réduction de la largeur de la bordure */
}
.oval11 {
  animation-delay: -3.2s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}
.oval12 {
  animation-delay: -3.4s;
  border: 4px solid white; /* Réduction de la largeur de la bordure */
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate3d(0, 0, 1, 0deg); /* Rotation uniquement */
  }
  to {
    transform: translate(-50%, -50%) rotate3d(0, 0, 1, 360deg); /* Rotation uniquement */
  }
}
@keyframes deform {
  0% {
    width: 600px; /* Modifie uniquement la largeur */
  }
  25% {
    width: 300px;
  }
  50% {
    width: 700px;
  }
  75% {
    width: 300px;
  }

  100% {
    width: 600px;
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
@media (min-width: 900px) {
  .question {
    font-size: 8vw; /* Réduction de la taille du texte pour les grands écrans */
    line-height: 1;
    margin: 0 auto;
    max-width: 160%; /* Réduction de la largeur maximale */
    margin-top: 10px;
  }
  .timer {
    font-size: 120px;

    margin-bottom: 10px;
  }

  .image-container img {
    max-width: 70%; /* Réduction de la taille des images */
  }

  .oval {
    margin-left: 0; /* Supprime le décalage horizontal */
    top: 0%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Ajuste pour centrer parfaitement */
  }
}
