* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.25s ease-out;
}

body {
  font-family: "Nunito Sans";
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lightMode {
  background-color: #fafafa;
}

body.darkMode {
  background-color: #112335;
}

.homepageText {
  font-size: 14px;
}

.detailsPageText {
  font-size: 16px;
}

body.lightMode.boxShadow {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.borderRadius {
  border-radius: 10px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 100px;
}

header a {
  text-decoration: none;
}

body.lightMode header {
  background-color: #ffffff;
  border-bottom: 2px solid #eee;
}

body.darkMode header {
  background-color: #214463;
  border-bottom: 2px solid #141e3d;
}

#mainHeader {
  font-size: 26px;
}

body.lightMode #mainHeader {
  color: #141e3d;
}

body.darkMode #mainHeader {
  color: #ffffff;
}

#toggleDarkBtn {
  background: none;
  padding: none;
  border: none;
  display: flex;
  align-items: center;
  font-weight: 600;
  justify-content: space-between;
  width: 100px;
  cursor: pointer;
}

body.lightMode #toggleDarkBtn {
  color: #141e3d;
}

body.darkMode #toggleDarkBtn {
  color: #ffffff;
}

#toggleDarkBtn {
  width: 100px;
  height: 23px;
}

main {
  padding: 60px 100px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#inputsContainer {
  display: none;
  justify-content: space-between;
  height: 52px;
}

#inputsContainer.show {
  display: flex;
  justify-content: space-between;
}

#searchForm {
  display: flex;
  width: 500px;
  overflow: hidden;
}

body.lightMode #searchForm {
  background-color: #ffffff;
}

body.darkMode #searchForm {
  background-color: #214463;
}

#searchForm #searchBtn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  padding: 0 15px;
  cursor: pointer;
}

#searchForm #searchInput {
  flex-grow: 1;
  padding: 0 15px;
  border: none;
  outline: none;
  background: none;
}

body.lightMode #searchForm #searchInput {
  color: #868585;
}

body.lightMode #searchForm #searchInput::-moz-placeholder {
  color: #868585;
}

body.lightMode #searchForm #searchInput::placeholder {
  color: #868585;
}

body.darkMode #searchForm #searchInput {
  color: #ffffff;
}

body.darkMode #searchForm #searchInput::-moz-placeholder {
  color: #ffffff;
}

body.darkMode #searchForm #searchInput::placeholder {
  color: #ffffff;
}

#regionSelectorContainer {
  position: relative;
  margin-left: 20px;
  width: 210px;
  flex-shrink: 0;
}

#filterBtn {
  padding: 0 15px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300 px;
  height: 100%;
  position: relative;
  z-index: 2;
}

body.lightMode #filterBtn {
  background-color: #ffffff;
  color: #141e3d;
}

body.darkMode #filterBtn {
  background-color: #214463;
  color: #ffffff;
}

#regionSelection {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  position: absolute;
  width: 100%;
  top: 40px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 1;
}

#regionSelection.appear {
  opacity: 1;
  pointer-events: all;
  top: 60px;
}

body.lightMode #regionSelection {
  background-color: #ffffff;
}

body.darkMode #regionSelection {
  background-color: #214463;
}

#regionSelection .regionBtn {
  border: none;
  height: 50px;
  padding: 0 20px;
  width: 100%;
  text-align: left;
  background: none;
  cursor: pointer;
}

body.lightMode #regionSelection .regionBtn {
  color: #141e3d;
}

body.lightMode #regionSelection .regionBtn:hover {
  background-color: #fafafa;
  font-weight: 600;
}

body.darkMode #regionSelection .regionBtn {
  color: #ffffff;
}

body.darkMode #regionSelection .regionBtn:hover {
  background-color: #112335;
  font-weight: 600;
}

#grid {
  padding: 60px 0;
  display: block;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 55px;
}

#grid.show {
  display: grid;
}

.countryCard {
  width: 100%;
  height: auto;
  justify-self: center;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transform: translateY(20px);
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}

body.lightMode .countryCard {
  background-color: #ffffff;
  color: #141e3d;
}

body.darkMode .countryCard {
  background-color: #214463;
  color: #ffffff;
}

.countryCard .countryCardFlagImg {
  width: 100%;
  height: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}

.countryCard .countryCardInfo {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.countryCard .countryCardInfo div {
  height: 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.countryCard .countryCardInfo div .info-label {
  font-weight: 600;
}

#countryFlagImg {
  width: 600px;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
  justify-self: center;
}

@media only screen and (max-width: 1615px) {
  #countryFlagImg {
    justify-self: flex-start;
  }
}
@media only screen and (max-width: 1550px) {
  #countryFlagImg {
    width: 525px;
  }
}
@media only screen and (max-width: 1400px) {
  #countryContentContainer {
    top: 100px;
  }
}
@media only screen and (max-width: 1381px) {
  header {
    padding: 25px 50px;
  }
  main {
    padding: 40px 50px;
  }
  #grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  #countryFlagImg {
    align-self: flex-start;
  }
  .countryCard .countryCardInfo {
    padding: 14px;
  }
}
@media only screen and (max-width: 1350px) {
  #countryContentContainer {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
@media only screen and (max-width: 1300px) {
  #grid {
    gap: 35px;
  }
  #countryFlagImg {
    width: 475px;
    align-self: flex-start;
  }
}
@media only screen and (max-width: 1125px) {
  #countryFlagImg {
    justify-self: stretch;
    width: auto;
  }
}
@media only screen and (max-width: 800px) {
  #regionSelectorContainer {
    width: 156px;
  }
  #filterBtn #arrow {
    width: 14px;
  }
  #errorMessagePageLoader {
    padding: 20px 10px;
    font-size: 12px;
  }
  #errorMessagePageLoader #closeBtn {
    top: 5px;
    right: 5px;
  }
}
@media only screen and (max-width: 650px) {
  #inputsContainer {
    flex-direction: column;
    height: 150px;
  }
  #searchForm {
    width: auto;
    height: 52px;
  }
  #regionSelectorContainer {
    margin-top: 20px;
    height: 30px;
    margin-left: 0;
  }
}
@media only screen and (max-width: 625px) {
  .countryCard .countryCardInfo {
    padding: 12px;
  }
}
@media only screen and (max-width: 554px) {
  #mainHeader {
    font-size: 22px;
  }
  #inputsContainer {
    height: 115px;
  }
  #searchForm {
    height: 40px;
  }
  #regionSelectorContainer {
    margin-top: 20px;
    height: 40px;
  }
  .countryCard .countryCardFlagImg {
    height: 60%;
  }
  .countryCard .countryCardInfo {
    padding: 20px;
  }
}
@media only screen and (max-width: 480px) {
  header {
    padding: 25px 30px;
  }
  #mainHeader {
    font-size: 18px;
  }
  main {
    padding: 40px 30px;
  }
}
@media only screen and (max-width: 415px) {
  #mainHeader {
    font-size: 15px;
  }
  #toggleDarkBtn {
    font-size: 12px;
    width: 85px;
  }
  #toggleDarkBtn {
    width: 16px;
    height: 16px;
  }
  .countryCard .countryCardFlagImg {
    height: 50%;
  }
  .countryCard .countryCardInfo {
    padding: 20px;
  }
}
@media only screen and (max-width: 340px) {
  .countryCard .countryCardInfo {
    padding: 15px;
  }
}
@media only screen and (max-width: 310px) {
  .countryCard .countryCardInfo {
    padding: 10px;
  }
}/*# sourceMappingURL=styles.css.map */