html,
body {
  margin: 0;
  padding: 0;
}

/* preloader css */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #333333;
  transition: opacity 0.75s, visibility 0.75s;
}

.loader--hidden {
  opacity: 0;
  visibility: hidden;
}

.loader::after {
  content: "";
  width: 75px;
  height: 75px;
  border: 15px solid #dddddd;
  /* border-top-color: #009578; */
  border-top-color: #00bbf9;
  border-radius: 50%;
  animation: loading 0.75s ease infinite;
}

@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

#map {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

#select-container {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 11px 0;
}

#country-select {
  width: 200px;
  margin: 0 auto;
}

/* modal css */
/* wiki modal */
.wiki-img {
  display: flex;
  justify-content: center;
  align-content: center;
  padding: 20px;
  margin-bottom: 1rem;
}

/* info modal */

.details-imgs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.coat-of-arms {
  width: 150px;
  text-align: center;
}

.coat-of-arms img {
  width: 100%;
}

.details-table {
  margin-top: 1rem;
}

/* weather modal */

.temp-container {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-content: center;
  gap: 1.5rem;
}

.temp-container .left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.temp-container .right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.temp-container .right span {
  display: inline-block;
}

.temp-container .right .temp-info {
  font-size: 0.8rem;
}

.weather-info {
  font-size: 20px;
}

.weather-icon {
  width: 150px;
  /* height: 200px; */
  margin: 0 auto;
  margin-bottom: 0;
}

.temp-div {
  font-size: 3rem;
  font-weight: 500;
}

.date {
  font-size: 1rem;
  font-weight: 500;
}

.hourly-forecast {
  margin-top: 50px;
  /* overflow-x: auto; */
  white-space: nowrap;
  display: flex;
  justify-content: space-around;
}

.hourly-item {
  display: flex;
  flex: 0 0 auto;
  /* width: 80px; */
  flex-direction: column;
  align-items: center;
  /* margin-right: 10px; */
  padding: 0.5rem;
  border: 1px solid #f2f3f4;
  border-radius: 6px;
}

.hourly-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
}

.max-min {
  font-size: 0.6rem;
}

.hourly-heading {
  margin-top: 10px;
}

.hour-now {
  font-size: 0.8rem;
}

.hour {
  font-size: 0.6rem;
}

/* exchange modal */

form :where(input, select, button) {
  width: 100%;
  outline: none;
  border: none;
  border-radius: 5px;
}

form p {
  font-size: 18px;
  margin-bottom: 5px;
}

form input {
  height: 50px;
  font-size: 17px;
  padding: 0 15px;
  border: 1px solid #999;
}

form input:focus {
  padding: 0 14px;
  border: 2px solid #675afe;
}

form .exchange-rate {
  font-size: 1rem;
  text-align: center;
  margin: 1.5rem;
  background: #f7f7f7;
  padding: 1rem;
  border-radius: 5px;
}

/* prevent aria hidden error messages on activation of modals */
div[aria-hidden="true"] {
  display: none;
}

/* easy button */
.easy-button-button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 5px;
  border: none;
}

.easy-button-button:hover {
  background-color: rgb(220, 217, 217);
}

.wiki-img {
  display: flex;
  justify-content: center;
  align-content: center;
  padding-bottom: 30px;
}
.wiki-img img {
  margin: 0 0;
}

/* extra exchange modal */
#countrySelect {
  width: 200px;
  margin: 0 auto;
}

.myBtn {
  width: 70px;
}

@media only screen and (min-width: 600px) {
  .hourly-item {
    padding: 1rem;
  }

  .max-min {
    font-size: 0.7rem;
  }

  .temp-container {
    justify-content: space-around;
  }
}
