
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

body {
  max-width: 100vw;
  height: auto;
  display: flex;
  flex-direction: column;
  background: rgb(252, 252, 252);
  font-family: "Nunito Sans", serif;;
}

a {
  color: rgb(71, 71, 71)
}

.dark-mode {
  background: #202c37;
  color: #ffffff;
}

/* ----------------------------------------GENERAL DARK MODE------------------------------------------------- */

body.dark-mode {
  background-color: #202c37;
  color: #ffffff;
}

/* Navbar */
body.dark-mode .navBar {
  background-color: #2b3743;
  color: white;
}

/* Botón */
body.dark-mode .mode {
  background: transparent;
  color: white;
}

body.dark-mode .back-button a {
  color: white;
}


/* Tarjetas */
body.dark-mode .country-data {
  color: rgb(190, 190, 190);
  box-shadow: none;
}

body.dark-mode .country-data .country-name {
  color: rgb(236, 236, 236);
}

body.dark-mode .country-data .country-general-stats p span,
body.dark-mode .country-data .country-details-stats p span {
  background: #2b3743;
  color: white;
}
/* Tarjetas */
body.dark-mode .country-data .border-countries .borders-countries-items span{
    background: #2b3743;
    color: white;
}

/* Footer */
body.dark-mode footer h3 {
  color: rgb(156, 156, 156);
}

body.dark-mode footer h3 span {
  color: white;
}

.navBar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 5rem;
  background: rgb(255, 255, 255);
  box-shadow: 0 0 5px 1px rgba(0, 0, 0, .2);
}

.navBar h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.navBar .mode {
  display: flex;
  padding: 0 1rem;
  gap: .5rem;
  align-items: center ;
  justify-content: space-around;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: rgb(128, 128, 128);
  transition: all .3s ease;
  border-radius: 50rem;
}

.navBar .mode:hover {
  background: rgb(235, 235, 235);
  color: rgb(88, 88, 88);
}

.mode i {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}


.back-button {
  display: flex; /* cambia esto */
  padding: 2rem 0;
  margin: 2rem 5rem;
  text-decoration: none;
}

.back-button a {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .8rem 2.2rem;
  border-radius: .3rem;
  box-shadow: 0 0 10px .1px rgba(0, 0, 0, .5);
  transition: all .3s ease;
}

.back-button a:hover {
  transform: scale(1.1);
}

.main-content {
  max-width: 100vw;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.main-content .main-title {
  font-size: 2rem;
  font-weight: 800;
  text-decoration: underline;
}

.quiz-container {
  max-width: 75rem;
  width: 80vw;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  flex-wrap: wrap;
  padding: 1rem;
  border-radius: .3rem;
  gap: 2rem;
  background: rgb(0, 158, 47);;
}

.quiz-container .quiz {
  max-width: 75rem;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: .3rem;
  box-shadow: 0 0 10px 1px rgba(0, 0, 0, .2);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
  gap: 1rem;
}

.quiz-container .quiz .question-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem 0;
}

.question-container h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.question-container .options {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  padding: 0 3rem;
  justify-content: center;
  gap: 2rem;
}

.options .option {
  max-width: 20rem;
  max-height: 20rem;
  width: 100%;
  color: #fff;
  padding: 0.2rem;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: .3rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.bg {
  background: rgb(185, 185, 185);
}

.options .option img {
  max-width: 100%;
  max-height: 100%;
  border-radius: .3rem;
}

.options .option p {
  margin-top: 1rem;
}

.next-button {
  max-width: 10rem;
  width: 100%;
  padding: .4rem;
  background: rgb(0, 158, 47);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: .3rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all .3s ease;
} 

.next-button:hover {
  transform: scale(1.05);
}


.result-container {
  max-width: 60vw;
  width: 100%;
  padding: .8rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  
}


.result-container .result {
  padding: .2rem .6rem;
  border: .2rem solid rgb(0, 158, 47);
}

.result-container .score {
  font-size: 1.4rem;
  text-decoration: underline;
}

.result-container .play-again-button {
  padding: .3rem .5rem;
  font-size: 1rem;
  border: .2rem solid rgb(0, 158, 47);
  border-radius: .4rem;
  background: rgb(0, 158, 47)00;
  color: #fff;
  cursor: pointer;
}

.selected {
  background: rgb(0, 158, 47);
  /* border: 4px solid rgb(0, 158, 47); */
}