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

ul {
  list-style-type: none;
}

#loading {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  bottom: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  background-color: rgb(255, 255, 255);
  opacity: 0.75;
  -webkit-transition: 1s;
  transition: 1s;
}

#loading.loading-none {
  z-index: -1;
  opacity: 0;
}

@-webkit-keyframes ldio-iqs8ocqrsv {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}

@keyframes ldio-iqs8ocqrsv {
  0% {
    -webkit-transform: rotate(0);
            transform: rotate(0);
  }
  100% {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
.ldio-iqs8ocqrsv div {
  -webkit-box-sizing: border-box !important;
          box-sizing: border-box !important;
}

.ldio-iqs8ocqrsv > div {
  position: absolute;
  width: 144px;
  height: 144px;
  top: 28px;
  left: 28px;
  border-radius: 50%;
  border: 16px solid #000;
  border-color: #fe718d transparent #fe718d transparent;
  -webkit-animation: ldio-iqs8ocqrsv 1s linear infinite;
          animation: ldio-iqs8ocqrsv 1s linear infinite;
}

.ldio-iqs8ocqrsv > div:nth-child(2) {
  border-color: transparent;
}

.ldio-iqs8ocqrsv > div:nth-child(2) div {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}

.ldio-iqs8ocqrsv > div:nth-child(2) div:before,
.ldio-iqs8ocqrsv > div:nth-child(2) div:after {
  content: "";
  display: block;
  position: absolute;
  width: 16px;
  height: 16px;
  top: -16px;
  left: 48px;
  background: #fe718d;
  border-radius: 50%;
  -webkit-box-shadow: 0 128px 0 0 #fe718d;
          box-shadow: 0 128px 0 0 #fe718d;
}

.ldio-iqs8ocqrsv > div:nth-child(2) div:after {
  left: -16px;
  top: 48px;
  -webkit-box-shadow: 128px 0 0 0 #fe718d;
          box-shadow: 128px 0 0 0 #fe718d;
}

.loadingio-spinner-dual-ring-oah0t427fm {
  width: 200px;
  height: 200px;
  display: inline-block;
  overflow: hidden;
  background: transparent;
}

.ldio-iqs8ocqrsv {
  width: 100%;
  height: 100%;
  position: relative;
  -webkit-transform: translateZ(0) scale(1);
          transform: translateZ(0) scale(1);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform-origin: 0 0;
          transform-origin: 0 0;
  /* see note above */
}

.ldio-iqs8ocqrsv div {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
}

html {
  scroll-behavior: smooth;
}

#backtop {
  border-radius: 50%;
  background-color: #6f7067;
  position: fixed;
  bottom: -50px;
  right: 60px;
  z-index: 1000;
  -webkit-transition: all 0.9s;
  transition: all 0.9s;
}

body #backtop.backtop-show {
  bottom: 50px;
}

#backtop a {
  display: block;
  padding: 10px;
}

body {
  font-family: Nunito, sans-serif;
}

body.dark {
  --background-color: hsl(207, 26%, 17%);
  --text-color: white;
  --elements-color: hsl(209, 23%, 22%);
}

main {
  padding: 24px;
}

a {
  text-decoration-line: none;
  color: inherit;
}

.dark .countries-container h3,
.dark .countries-container p {
  color: white;
}

button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.header-container {
  -webkit-box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.1);
          box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.1);
  padding: 24px;
  background-color: #fff;
  position: fixed;
  width: 100%;
  z-index: 10;
}

.dark .header-container {
  background-color: #020807;
}
.dark .header-container * {
  color: white;
}

main {
  padding-top: 150px;
}

.dark {
  background: linear-gradient(-45deg, #daf48d, #074740, #6b1958, #020807);
  background-size: 400% 400%;
  -webkit-animation: gradient 15s ease infinite;
          animation: gradient 15s ease infinite;
  height: 100vh;
}

@-webkit-keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.header-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-width: 1200px;
  margin-inline: auto;
}

.title {
  font-weight: 800;
}

.theme-changer {
  cursor: pointer;
}

.countries-container {
  max-width: 1200px;
  margin-top: 16px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 64px;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-inline: auto;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.country-card {
  display: inline-block;
  width: 250px;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 24px;
  -webkit-box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.2);
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  background-color: var(--elements-color);
}

.country-card:hover {
  -webkit-transform: scale(1.03);
          transform: scale(1.03);
  -webkit-box-shadow: 0 0 16px 0px rgba(0, 0, 0, 0.2);
          box-shadow: 0 0 16px 0px rgba(0, 0, 0, 0.2);
}

.card-title {
  font-size: 24px;
  margin-block: 16px;
}

.card-text {
  padding-inline: 16px;
}

.card-text p {
  margin-block: 8px;
}

.country-card img {
  width: 100%;
}

.search-filter-container {
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 16px;
  margin-bottom: 48px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 24px;
}

.search-container {
  -webkit-box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
          box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
  max-width: 350px;
  width: 100%;
  border-radius: 4px;
  padding-left: 24px;
  color: #999;
  overflow: hidden;
  background-color: var(--elements-color);
  color: var(--text-color);
}

.search-container input {
  border: none;
  outline: none;
  padding: 16px;
  width: 90%;
  background-color: inherit;
  color: inherit;
}

.search-container input::-webkit-input-placeholder {
  color: #999;
}

.search-container input::-moz-placeholder {
  color: #999;
}

.search-container input:-ms-input-placeholder {
  color: #999;
}

.search-container input::-ms-input-placeholder {
  color: #999;
}

.search-container input::placeholder {
  color: #999;
}

.filter-of-population {
  width: 250px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 16px;
  border: none;
  outline: none;
  -webkit-box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
          box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background-color: rgb(10, 165, 189);
  color: var(--text-color);
}
.filter-of-population .name {
  color: rgb(29, 30, 31);
}
.filter-of-population option {
  color: rgb(29, 27, 27);
  margin-bottom: 12px;
}

@media (max-width: 650px) {
  .search-filter-container select {
    margin-right: auto;
    margin-left: auto;
  }
}
.filter-by-region {
  width: 250px;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 16px;
  border: none;
  outline: none;
  -webkit-box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
          box-shadow: 0 0 8px 0px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  background-color: rgb(10, 165, 189);
  color: var(--text-color);
}
.filter-by-region .name {
  color: rgb(29, 30, 31);
}
.filter-by-region option {
  color: rgb(29, 27, 27);
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .countries-container {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  .title {
    font-size: 16px;
  }
  .header-content p {
    font-size: 12px;
  }
  .search-filter-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.countries-container .card-text {
  padding-top: 10px;
  padding-bottom: 0;
}
.countries-container h3 {
  font-size: 28px;
  font-weight: 900;
  line-height: 26px;
  letter-spacing: 0px;
  text-align: left;
}

.pagination-lg {
  padding: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  border-radius: 50%;
  background-color: #999;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.pagination-lg * {
  color: white;
}
.pagination-lg:hover {
  -webkit-transform: rotate(359deg);
          transform: rotate(359deg);
  -webkit-transition: 0.3s;
  transition: 0.3s;
  background-color: #daf48d;
}
.pagination-lg:hover * {
  color: black;
}