
@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: 100%;
  width: 100%;
  display: grid;
  gap: 5rem;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  padding: 2rem 5rem;
}

.main-content img {
  max-width: 100%;
  height: auto;
}

.country-data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.country-data .country-name {
  font-size: 2rem;
}

.country-data .country-stats {
  display: flex;
  gap: 15rem;
}

.country-stats .country-general-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.country-stats .country-general-stats p {
  font-weight: 600;
  display: flex;
  gap: 2rem;
}

.country-stats .country-general-stats p span {
  font-weight: normal;
  padding: .4rem;
  border-radius: .4rem;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
}

.country-stats .country-details-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.country-stats .country-details-stats p {
  font-weight: 600;
  display: flex;
  gap: 2rem;
}

.country-stats .country-details-stats p span{
  font-weight: normal;
  padding: .4rem;
  border-radius: .4rem;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3);
}

.country-data .border-countries {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

.country-data .border-countries p {
  font-weight: 600;
}

.country-data .borders-countries-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.country-data .borders-countries-items span {
  padding: .2rem 1rem;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, .3  );
  color: rgb(0, 0, 0, .8)
}

footer {
  display: flex;
  justify-content: center;
  align-items: end;
}

footer h3 {
  position: absolute;
  bottom: 1rem;
  color: rgb(0, 0, 0, .5)
}

footer h3 span {
  color: rgb(0, 0, 0, .8)
}