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

body {
  font-family: "Courier New", Courier, monospace;
}

.f-bold {
  font-weight: bold;
}

li {
  list-style: none;
}

.heading {
  padding: 5rem;
  text-align: center;
  color: var(--text-color);
}

.heading h1 {
  font-size: 3.5rem;
}

.heading span {
  margin-bottom: 1rem;
  display: block;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.container {
  max-width: 1440px;
  min-height: 100vh;
  padding: 0 30px;
  margin: auto;
}

label {
  margin-right: 10px;
  color: var(--text-color);
}

.select-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.select-country,
.select-wrap .left {
  display: flex;
}

.select-wrap .left {
  align-items: center;
}

label,
select,
select option {
  font-size: 1.1rem;
}

[data-toggler],
[data-search] {
  cursor: pointer;

  border: none;
  border: solid 1px var(--background-invert);
  color: var(--background);
}

[data-search] {
  border-radius: 0 5px 5px 0;
  display: flex;
  align-items: center;
  background: var(--background-invert);
  padding: 10px 20px;
  transition: 250ms ease-in;
  border-left: none;
}

[data-search]:hover {
  background: var(--background);
  color: var(--text-color);
}

[data-toggler] {
  position: relative;
  border-radius: 25px;
  width: 45px;
  height: 25px;
}

[data-toggler]::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--background-invert);
  position: absolute;
  left: 1px;
  top: 50%;
  transform: translateY(-50%);
  transition: 250ms ease-in;
}

[data-toggler].active::after {
  transform: translate(100%, -50%);
}

.display-country {
  margin: 3rem 0;
  padding: 5rem 30px;
  display: flex;
  justify-content: center;
  height: 100%;
  color: var(--text-color);
}

.display-country .country-img,
.display-country .country-details {
  flex: 1;
  padding: 1rem;
}

.display-country .country-img img {
  width: 100%;
  max-height: 450px;
}

.display-country .country-details .info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 1rem 0;
}

.display-country .country-details ul li {
  margin: 10px 0;
}

.display-country .country-details .flex {
  justify-content: flex-start;
}

.display-country .country-details .flex .border {
  display: flex;
}

.display-country .country-details .flex .border li {
  margin-left: 1rem;
}

@media (max-width: 900px) {
  .display-country {
    flex-direction: column;
    padding-left: 0;
    padding-right: 0;
  }

  .display-country .country-img,
  .display-country .country-details {
    padding: 1rem;
  }
}

@media (max-width: 690px) {
  .heading h1 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 10px;
  }

  .right {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .select-country,
  .select-wrap .left {
    flex-direction: column;
  }

  .select-country {
    margin-bottom: 1rem;
  }

  .select-country .custom-select-container {
    margin: 15px 0;
  }

  .custom-select-value,
  .select-country,
  .select-wrap .left,
  [data-search] {
    width: 100% !important;
  }

  [data-search] {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .heading {
    padding-left: 0;
    padding-right: 0;
  }

  .heading h1 {
    font-size: 1.5rem;
  }

  .display-country .country-details .info {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Loader */

.lds-default {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-default div {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--background-invert);
  border-radius: 50%;
  animation: lds-default 1.2s linear infinite;
}
.lds-default div:nth-child(1) {
  animation-delay: 0s;
  top: 37px;
  left: 66px;
}
.lds-default div:nth-child(2) {
  animation-delay: -0.1s;
  top: 22px;
  left: 62px;
}
.lds-default div:nth-child(3) {
  animation-delay: -0.2s;
  top: 11px;
  left: 52px;
}
.lds-default div:nth-child(4) {
  animation-delay: -0.3s;
  top: 7px;
  left: 37px;
}
.lds-default div:nth-child(5) {
  animation-delay: -0.4s;
  top: 11px;
  left: 22px;
}
.lds-default div:nth-child(6) {
  animation-delay: -0.5s;
  top: 22px;
  left: 11px;
}
.lds-default div:nth-child(7) {
  animation-delay: -0.6s;
  top: 37px;
  left: 7px;
}
.lds-default div:nth-child(8) {
  animation-delay: -0.7s;
  top: 52px;
  left: 11px;
}
.lds-default div:nth-child(9) {
  animation-delay: -0.8s;
  top: 62px;
  left: 22px;
}
.lds-default div:nth-child(10) {
  animation-delay: -0.9s;
  top: 66px;
  left: 37px;
}
.lds-default div:nth-child(11) {
  animation-delay: -1s;
  top: 62px;
  left: 52px;
}
.lds-default div:nth-child(12) {
  animation-delay: -1.1s;
  top: 52px;
  left: 62px;
}
@keyframes lds-default {
  0%,
  20%,
  80%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
