:root {
  --main-color: white;
  --secondary-color: #333;
  --text-color: black;
  --shadow-color: rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  font-family: "Rubik", "sans-serif";
  line-height: 1;
  overflow-x: scroll;
  background-color: var(--main-color);
  scroll-behavior: smooth;
}
.none {
  display: none;
}
/* HEADER */
.header {
  padding: 2rem;
  box-shadow: var(--shadow-color) 0px 5px 15px;
  color: var(--text-color);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem;
}
.navbar__theme--box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.navbar__heading {
  font-size: 3.2rem;
  font-weight: 500;
}
.theme__icon {
  font-size: 1.8rem;
  color: var(--text-color);
}
.theme__text {
  font-size: 2.2rem;
  color: var(--text-color);
}
/* FILTER FORM */
.filter__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 8rem;
  margin-top: 1.2rem;
}
.filter__country {
  padding: 1.2rem 1.8rem;
  outline: none;
  border: 1px solid var(--text-color);
  border-radius: 1.2rem;
  font-size: 1.4rem;
  transition: all 0.6s;
  box-shadow: var(--shadow-color) 0px 5px 15px;
}
.filter__country:hover {
  scale: 1.1;
}
.filter__reigions {
  padding: 1.2rem 1.8rem;
  outline: none;
  border: 1px solid black;
  border-radius: 1.2rem;
  font-size: 1.4rem;
  box-shadow: var(--shadow-color) 0px 5px 15px;
  transition: all 0.6s;
}
/* COUNTRY LIST */
.countries {
  padding: 0rem 12rem;
  margin-top: 3.2rem;
  padding-bottom: 7.2rem !important;
}
.country__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6.4rem;
}
.country__item {
  width: 27rem;
  height: fit-content;
  list-style: none;
  box-shadow: var(--shadow-color) 0px 5px 15px;
  border-radius: 1rem;
  overflow: hidden;
  padding-bottom: 1.2rem;
  transition: all 0.6s;
  animation: countryMove 0.3s;
}
.country__item--information {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.4rem 4rem;
  gap: 1.6rem;
  padding-bottom: 1.2rem !important;
}
.country__img {
  width: 100%;
}
.country__name {
  color: var(--text-color);
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
.country__item--info {
  font-size: 1.6rem;
  color: var(--secondary-color);
}
.country__item--info span {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--secondary-color);
}
.country__item:hover {
  scale: 1.1;
  outline: 1rem solid var(--text-color);
}
.error__msg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: red;
  border-radius: 1rem;
  padding: 1.2rem 2.4rem;
  font-size: 2.4rem;
  color: var(--main-color);
  transition: all 0.6s;
  text-align: center;
  max-width: 45rem;
  margin: 0 auto;
  position: absolute;
  animation: moveFromTop 1s;
  top: 20%;
  left: 37%;
}
.none {
  display: none;
  scale: 0;
}
@keyframes moveFromTop {
  0% {
    transform: translateY(-100rem);
  }
  100% {
    transform: translateY(-0rem);
  }
}
@keyframes countryMove {
  0% {
    transform: translate(10rem, 50rem);
    opacity: 0;
    scale: 0;
  }
  100% {
    transform: translateY(0rem, 0rem);
    opacity: 1;
    scale: 1;
  }
}

/* Country Filters Members */
.country__status--filter {
  font-size: 2.4rem;
  padding-right: 9.6rem;
}
.united__nations--filter {
  width: 9.6rem;
  height: 9.6rem;
  color: var(--text-color);
}
.all__countries--filter {
  font-size: 7.2rem;
  color: var(--text-color);
}
/* COUNTYR EXTRA BOX */
.country__extra {
  padding: 0rem 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12.8rem;
  transition: all 0.6s;
}
.country__extra--img {
  width: 40rem;
  box-shadow: 1.2rem 1.2rem 2.4rem 2.4rem var(--shadow-color);
}
.country__extra--heading {
  font-size: 3.2rem;
  margin-bottom: 4.8rem;
}
.country__extra--information {
  display: grid;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 2.4rem;
  font-size: 1.6rem;
  color: var(--secondary-color);
}
.country__extra--info span {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-color);
  margin-right: 0.6rem;
}
.country__extra--borders {
  margin-top: 4.8rem;
}
.border__text {
  font-size: 1.8rem;
  color: var(--text-color);
}
.border__country--list {
  margin-top: 1.2rem;
  list-style: none;
  display: flex;
  gap: 0.8rem;
  list-style: none;
}
.border__country {
  border-radius: 1rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--text-color);
  font-size: 1.6rem;
  color: var(--text-color);
}
main {
  padding-bottom: 12.8rem;
}
.border__err {
  font-size: 1.8rem;
  color: red;
}
.back__btn {
  padding: 1.2rem 2.4rem;
  background: var(--main-color);
  border: 1px solid (--text-color);
  font-size: 2.4rem;
  border-radius: 1.2rem;
  color: var(--text-color);
}
/* RESPONSIVE */
@media (max-width: 760px) {
  html {
    font-size: 50%;
  }
  .countries {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .country__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6.4rem;
  }
  .country__extra {
    display: block;
    text-align: center;
  }
  .country__extra--img {
    margin-bottom: 3.2rem;
  }
  .country__extra--information {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-items: center;
    justify-content: center;
  }
  .border__country--list {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-items: center;
    justify-content: center;
  }
  .countries {
    position: relative;
  }
  .back__btn {
    transform: translate(-5%, -50%);
    position: absolute;
  }
  .responsive__height--none {
    height: 0 !important;
  }
  .filter__container {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    align-items: center;
    justify-content: center;
  }
}
