@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #4c7453;
}

body {
  font-family: "Poppins";
  scroll-behavior: smooth;
  min-height: 100vh;
  min-width: 100vw;
  background-color: var(--bg-color);
  color: #fff;
  padding: 2.5rem;
}

h1 {
  font-size: 3rem;
  opacity: 0.5;
  font-weight: 400;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.container a {
  /* align-self: self-start; */
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4ca225;
  text-decoration: none;
  border-radius: 20px;
  padding: 10px 15px;
  background-color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.container a svg {
  width: 20px;
}

.after-test,
.test-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7.5rem;
}

.test {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 300px;
  text-align: center;
  gap: 2.8rem;
}

#pregunta {
  font-weight: 400;
  font-size: 1.1rem;
}

button {
  border: none;
  border-radius: 21px;
  background-color: #d9d9d9;
  width: 47px;
  height: 46px;
  font-size: 24px;
  cursor: pointer;
}

button:hover {
  background-color: #a8a8a8;
  transition: all 0.3s;
}

#puntuacion {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

img {
  object-fit: contain;
  width: 180px;
}

.after-test {
  gap: 2.5rem;
  text-align: center;
  display: none;
}

.after-test h1 {
  color: #fff;
  opacity: 1;
  font-weight: 600;
  font-size: 3rem;
  padding-inline: 15rem;
}

.after-test img {
  object-fit: contain;
  width: 15rem;
}

.back-home-and-switch-lang-cont {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1700px;
}

#switch-language {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  cursor: pointer;
  background-color: transparent;
}

.flag {
  object-fit: contain;
  width: 48px;
  height: 32px;
}

@keyframes parpadeo {
  0% {
    background-color: #a8a8a8;
  }

  50% {
    background-color: #d9d9d9;
  }

  75% {
    background-color: #a8a8a8;
  }

  100% {
    background-color: #d9d9d9;
  }
}

/* Media Queries para Responsividad */
@media screen and (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .container {
    gap: 2rem;
  }

  .after-test,
  .test-container {
    gap: 4rem;
  }

  .test {
    max-width: 280px;
    gap: 2rem;
  }

  #pregunta {
    font-size: 1rem;
  }

  .after-test h1 {
    font-size: 2.5rem;
    padding-inline: 2rem;
  }

  img {
    width: 150px;
  }

  .after-test img {
    width: 12rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .container {
    gap: 1.5rem;
  }

  .container a {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .after-test,
  .test-container {
    gap: 3rem;
  }

  .test {
    max-width: 250px;
    gap: 1.5rem;
  }

  #pregunta {
    font-size: 0.9rem;
  }

  button {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  #puntuacion {
    gap: 10px;
  }

  .after-test h1 {
    font-size: 2rem;
    padding-inline: 1rem;
  }

  img {
    width: 120px;
  }

  .after-test img {
    width: 10rem;
  }

  .flag {
    width: 40px;
    height: 27px;
  }
}
