@font-face {
  font-family: "mon";
  src: url(../font/Montserrat-VariableFont_wght.ttf);
}

@keyframes enterAnimation {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

p.blink, #score {
  font-size: 58px;
  text-align: center;
  padding-top: 25%;
  color: #4ec87d;
}

@keyframes blink {
  0% {
    opacity: 1; /* Comienza con opacidad completa */
  }
  40% {
    opacity: 1; /* Opacidad completa durante el 40% de la animación */
  }
  60% {
    opacity: 0; /* Opacidad a cero durante el 20% de la animación (invisible) */
  }
  100% {
    opacity: 1; /* Opacidad completa nuevamente */
  }
}

.blink {
  animation: blink 3s infinite; /* Aplica la animación llamada "blink" durante 2.5 segundos, repetido infinitamente */
}


#sec {
  opacity: 0; /* La página se carga inicialmente con opacidad 0 */
  transition: opacity 0.5s ease-in-out; /* Transición suave para la opacidad */
}




* {
  margin: 0px;
  padding: 0px;
}

html {
  background: #4ec85a;
  min-height: 100vh;
}

@media (max-width: 768px) {
  html, body {
    background: #4ec85a !important;
    background: -webkit-linear-gradient(to left, #8ffbac, #4ec87d) !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
  }
  
  .blink {
    visibility: hidden;
  }
  
  .blink:before {
    content: "Tap here to start";
    visibility: visible;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    font-size: 8vw;
  }
  
  #press.blink:before {
    content: "Tap here to play again";
  }
}

*:focus {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flag-container {
  margin: 0;
  padding: 0;
}

.option-group {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-bottom: 3vh;
}

.button-group {
  width: 100%;
  margin-top: 2vh;
  padding: 0 2vw;
}


body {
  font-family: "mon";
  color: white;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  margin: 0;
  padding: 0;
}

h1 {
  position: absolute;
  width: 100%;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4vw;
  color: #4ec85a;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}


#zzz {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flag {
  position: absolute;
  left: 5vw;
  top: 50%;
  transform: translateX(-50%);
  transform: translateY(-50%);
  opacity: .85;
}

img {
  max-width: 42%;
  height: auto;
}

.options {
  width: 44.5%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  transform: translateY(-50%);
  opacity: .8;
}

input[type="radio"] {
  margin-bottom: 0;
  width: 4vw;
  height: 4vw;
  cursor: pointer;
  margin-top: 0;
  vertical-align: middle;
  appearance: none;
  border-radius: 50%;
  border: 0.4vw solid white;
  transition: 0.2s all linear;
}

input[type="radio"]:checked {
  /* margin-left: 15px; */
  background-color: rgba(255, 166, 0, .9);
}

label {
  padding-bottom: 0;
  margin-left: 1vw;
  font-size: clamp(3vw, 12px, 38px);
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s all linear;
}

.buttons {
  width: 100%;
  color: #ffffff;
  font-size: clamp(2vw, 12px, 33px);
  font-weight: 600;
  background-color: transparent;
  border-radius: 30px;
  border: .4vw solid #ffffff;
  padding: 2% 1%;
  cursor: pointer;
  transition: 0.2s all linear;
}

.buttons:hover {
  background-color: #4ec85a;
  transition: 0.2s all linear;
}

#next {
  display: none;
}

.progress {
  position: absolute;
  bottom: 0;
  margin: 3.5% 5%;
  background-color: rgba(255, 255, 255, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1%;
  border-radius: 50px;
  width: 70vw;
}

.progress_number {
  width: 2.5vw;
  height: 2.5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border: .3vw solid white;
  border-radius: 100%;
  font-size: 1.8vw;
  opacity: .6;
  transition: 0.2s all linear;
}

#score {
  font-size: 88px;
  font-weight: bold;
  color: #4ec87d;
  position: absolute;
  width: 100%;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#press {
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
}





section {
  position: relative;
  background-color: rgba(255, 255, 255, 0.4);
  width: 80vw;
  height: 85dvh;
  border-radius: 50px;
  margin: auto;
  z-index: 2;
}





/* Mobile styles */
@media (max-width: 768px) {
  .area {
    display: none;
  }

  main.context {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    z-index: 2;
    overflow: hidden;
  }

  h1 {
    font-size: 10vw;
    top: 1vh;
  }
  
  section {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    padding: 1vh 0 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 !important;
    position: relative;
    max-width: none !important;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
    background: #4ec85a;
    background: -webkit-linear-gradient(to left, #8ffbac, #4ec87d);
  }
  
  #zzz {
    display: block;
    height: auto;
    padding: 0;
    margin-top: 12vh;
  }
  
  .flag {
    position: static;
    width: 100%;
    text-align: center;
    transform: none;
    opacity: 1;
    margin: 0 auto 3vh;
  }
  
  img {
    width: 90vw !important;
    max-width: 90vw !important;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
  }
  
  .options {
    position: static;
    width: 85vw;
    margin: 0 auto;
    transform: none;
    opacity: 1;
    display: block;
  }
  
  .option-group {
    display: flex;
    align-items: center;
    gap: 3vw;
    margin-bottom: 1.5vh;
    padding: 1vh 0;
    border-radius: 10px;
  }
  
  input[type="radio"] {
    width: 5vw;
    height: 5vw;
    min-width: 22px;
    min-height: 22px;
    border-width: 0.3vw;
    touch-action: manipulation;
    flex-shrink: 0;
  }
  
  input[type="radio"]:active {
    transform: scale(0.9);
  }
  
  label {
    font-size: 4vw;
    margin-left: 0;
    flex-grow: 1;
    padding: 0;
    cursor: pointer;
    font-weight: 500;
  }
  
  .button-group {
    width: 85vw;
    margin: 2vh auto 0;
    flex: 0 0 auto;
    padding: 0;
  }
  
  .buttons {
    padding: 2.5vw;
    font-size: 4vw;
    border-width: 0.3vw;
    min-height: 45px;
    touch-action: manipulation;
    border-radius: 20px;
    font-weight: 600;
  }
  
  .buttons:active {
    transform: scale(0.95);
  }
  
  .progress {
    position: fixed;
    bottom: 1vh;
    left: 50%;
    transform: translateX(-50%);
    width: 85vw;
    margin: 0;
    padding: 1.5vw;
    border-radius: 20px;
    z-index: 10;
  }
  
  .progress_number {
    width: 5.5vw;
    height: 5.5vw;
    min-width: 25px;
    min-height: 25px;
    font-size: 3vw;
    border-width: 0.2vw;
    font-weight: 600;
  }
  
  /* Disable scroll */
  body {
    overflow: hidden;
  }
  
  /* Better touch targets */
  .option-group:active {
    background-color: rgba(255, 255, 255, 0.1);
  }
}




.context {
  width: 100%;
  position: absolute;
  top: 8vh;
}

@media (max-width: 768px) {
  .context {
    top: 0 !important;
  }
}

.area {
  background: #4ec85a;
  background: -webkit-linear-gradient(to left, #8ffbac, #4ec87d);
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}


/* Dark mode styles */
@media (prefers-color-scheme: dark) {
  .area {
    background: #1a1a1a;
    background: -webkit-linear-gradient(to left, #2d2d2d, #1a1a1a);
  }
  
  section {
    background-color: rgba(40, 40, 40, 0.9);
  }
  
  h1 {
    color: rgba(255, 255, 255, 0.9);
  }
  
  label {
    color: rgba(255, 255, 255, 0.9);
  }
  
  input[type="radio"] {
    border: 0.4vw solid rgba(255, 255, 255, 0.7);
  }
  
  .buttons {
    color: rgba(255, 255, 255, 0.9);
    border: .4vw solid rgba(255, 255, 255, 0.7);
  }
  
  .buttons:hover {
    background-color: #4ec85a;
  }
  
  .progress {
    background-color: rgba(80, 80, 80, 0.5);
  }
  
  .progress_number {
    border: .3vw solid rgba(255, 255, 255, 0.6);
    color: rgba(255, 255, 255, 0.6);
  }
  
  p.blink, #score {
    color: #4ec87d;
  }
}

/* Dark mode for mobile */
@media (max-width: 768px) and (prefers-color-scheme: dark) {
  html, body {
    background: rgba(40, 40, 40, 0.9) !important;
  }
  
  section {
    background: rgba(40, 40, 40, 0.9) !important;
  }
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 15s linear infinite;
  bottom: -150px;
  z-index: 0; /* Valor más bajo para los cuadrados */
  border-radius: 100%;
}

.circles li:nth-child(1) {
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}

.circles li:nth-child(2) {
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5) {
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6) {
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7) {
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8) {
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9) {
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10) {
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}

@keyframes animate {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(-1000px);
    opacity: 0;
  }
}
