@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");
@import url("https://api.mapbox.com/mapbox-gl-js/v2.0.1/mapbox-gl.css");
.map__coordinates > span, .weather__three-days__container__forecast__temperature, .weather__three-days__container__day, .weather__today__forecast__description > span, .weather__today__temperature, .weather__data-time, .weather__location, .language-droplist__options, .search-input::placeholder, .search-input, .button {
  font-family: "Montserrat", Verdana, sans-serif;
}

* {
  margin: 0;
  padding: 0;
}

html {
  font-size: 10px;
}

body {
  height: 100vh;
  background-image: url("../img/default.jpg");
  background-size: cover;
  transition: background-image 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}
.container__control-panel {
  flex-basis: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 57px;
}
.container__weather {
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.container__map {
  margin-right: 20px;
  display: flex;
  flex-direction: column;
}

.control-panel__buttons {
  display: flex;
  justify-content: start;
  margin: 40px 0 0 20px;
}
.control-panel__temperature {
  display: flex;
}
.control-panel__search {
  display: flex;
  margin: 40px 20px 0 0;
}

.button {
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background-color: rgba(174, 181, 185, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.7rem;
  font-style: normal;
  color: #FFFFFF;
}
.button.refresh {
  cursor: pointer;
}
.button.refresh:hover {
  background-color: rgba(94, 218, 224, 0.767);
}
.button.search {
  width: 101px;
  height: 44px;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  text-transform: uppercase;
  -webkit-user-select: none;
          user-select: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.button.search:hover {
  background-color: rgba(94, 218, 224, 0.767);
}
.button.language-droplist {
  width: 71px;
  height: 44px;
  margin-left: 10px;
  margin-right: 10px;
}
.button.language-droplist:hover {
  background-color: rgba(94, 218, 224, 0.767);
}
.button.fahrenheit {
  -webkit-user-select: none;
          user-select: none;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
  background-color: rgba(222, 234, 240, 0.4);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.button.fahrenheit:hover {
  background-color: rgba(94, 218, 224, 0.767);
}
.button.fahrenheit.active {
  background-color: rgba(248, 232, 8, 0.931);
  color: #FFFFFF;
}
.button.celsius {
  -webkit-user-select: none;
          user-select: none;
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
  border-bottom-right-radius: 5px;
  border-top-right-radius: 5px;
  background-color: rgba(222, 234, 240, 0.4);
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.button.celsius:hover {
  background-color: rgba(94, 218, 224, 0.767);
}
.button.celsius.active {
  background-color: rgba(248, 232, 8, 0.931);
  color: #FFFFFF;
}

.search-input {
  outline: none;
  width: 274px;
  border: 1px solid rgba(228, 227, 227, 0.2);
  background-color: rgba(76, 82, 85, 0.4);
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  padding-left: 15px;
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.7rem;
  font-style: normal;
  color: #FFFFFF;
}
.search-input::placeholder {
  font-size: 1.4rem;
  font-weight: normal;
  line-height: 1.7rem;
  font-style: normal;
  color: #FFFFFF;
}

.language-droplist__options {
  outline: none;
  background-color: rgba(174, 181, 185, 0);
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.7rem;
  font-style: normal;
  color: #FFFFFF;
}
.language-droplist__options > option {
  background-color: #4a7892;
}

.weather__location {
  width: 635px;
  text-transform: uppercase;
  text-align: center;
  font-size: 4rem;
  font-weight: bold;
  line-height: 4.5rem;
  font-style: normal;
  color: #FFFFFF;
}
.weather__data-time {
  text-transform: capitalize;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 2.9rem;
  font-style: normal;
  color: #FFFFFF;
  margin-top: 5px;
}
.weather__today {
  display: flex;
}
.weather__today__temperature {
  font-size: 18rem;
  font-weight: bold;
  line-height: 22rem;
  font-style: normal;
  color: #FFFFFF;
  display: flex;
  justify-content: center;
  align-items: center;
}
.weather__today__forecast {
  display: flex;
  flex-direction: column;
}
.weather__today__forecast__icon {
  display: flex;
  justify-content: center;
  width: 200px;
}
.weather__today__forecast__description {
  display: flex;
  flex-direction: column;
}
.weather__today__forecast__description > span {
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 3.7rem;
  font-style: normal;
  color: #FFFFFF;
}
.weather__three-days {
  display: flex;
  margin-top: 80px;
  gap: 20px;
}
.weather__three-days__container {
  display: flex;
  flex-direction: column;
}
.weather__three-days__container__day {
  text-transform: uppercase;
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 2.7rem;
  font-style: normal;
  color: #FFFFFF;
}
.weather__three-days__container__forecast {
  display: flex;
}
.weather__three-days__container__forecast__temperature {
  font-size: 7rem;
  font-weight: 600;
  line-height: 7.8rem;
  font-style: normal;
  color: #FFFFFF;
}
.weather__three-days__container__forecast__icon {
  width: 100px;
}

.error-message {
  position: fixed;
  padding: 10px 20px;
  border: 1px solid #b3c9ce;
  border-radius: 4px;
  text-align: center;
  font: italic 14px/1.3 sans-serif;
  color: #333;
  background: #fff;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);
}

.map__coordinates {
  display: flex;
  flex-direction: column;
}
.map__coordinates > span {
  font-size: 2rem;
  font-weight: 600;
  line-height: 3rem;
  font-style: normal;
  color: #FFFFFF;
}

#map {
  height: 30vw;
  width: 30vw;
  border-radius: 20px;
}

.refresh_img {
  cursor: pointer;
}
.refresh_img.active {
  transition: all 0.5s ease;
  animation: rotate 1s linear;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media screen and (max-width: 730px) {
  .container__control-panel {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }
  .container__weather {
    margin-left: 0;
  }
  .container__map {
    margin-right: 0;
  }

  .control-panel__buttons, .control-panel__search {
    margin: 20px 0 0 0;
  }

  .weather__today {
    flex-wrap: wrap;
    justify-content: center;
  }
  .weather__today__temperature {
    font-size: 15rem;
    font-weight: bold;
    line-height: 16rem;
    font-style: normal;
    color: #FFFFFF;
  }
  .weather__location {
    width: 320px;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 3rem;
    font-style: normal;
    color: #FFFFFF;
  }
  .weather__data-time {
    width: 320px;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    line-height: 2.5rem;
    font-style: normal;
    color: #FFFFFF;
  }
  .weather__three-days {
    flex-direction: column;
    margin-top: 20px;
  }
  .weather__three-days__container__day {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    line-height: 3.5rem;
    font-style: normal;
    color: #FFFFFF;
  }
  .weather__three-days__container__forecast {
    align-items: center;
  }
  .weather__three-days__container__forecast__icon {
    width: 150px;
  }

  .search-input {
    width: 160px;
  }

  .button.search {
    width: 75px;
  }

  .map__coordinates {
    align-items: center;
  }

  #map {
    margin-top: 20px;
    height: 75vw;
    width: 90vw;
  }
}