body {
  font-family: "Roboto", sans-serif;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(./images/day.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(2px);
  z-index: -1; /*bg img behind the elements*/
  animation: zoom 10s infinite linear;
}
body.dark-mode .background-image {
  background-image: url(./images/night.jpg);
}
.theme-icon {
  width: 40px;
  margin: 20px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}
.weather-app-container {
  background-color: #f9f7fe;
  max-width: 600px;
  margin: 80px auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(65, 58, 100, 0.08);
  flex: 1;
}
.dark-mode .weather-app-container {
  background-color: #011319;
}
header {
  border-bottom: 1px solid #f9f7fe;
  padding: 0 0 30px 0;
}
.search-form {
  display: flex;
  align-items: center;
}

.sound-icon {
  width: 30px;
  margin: 20px;
  margin-left: 15px;
}
.sound-icon:hover {
  opacity: 0.5;
}
.search-form-input {
  background-color: white;
  border: none;
  border-radius: 10px;
  width: 80%;
  padding: 15px 20px;
  font-size: 16px;
  box-shadow: 0 30px 50px rgba(65, 58, 100, 0.08);
}
.search-form-input:focus {
  outline-color: #eaa0a7;
  outline-style: dotted;
}

.search-form-button {
  background-color: #352779;
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  margin-left: 5px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  box-shadow: 0 30px 50px rgba(65, 58, 100, 0.08);
}
.search-form-button:hover {
  background-color: #eaa0a7;
  color: #352779;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.dark-mode .search-form-button {
  background-color: #c77602;
}

.dark-mode .search-form-button:hover {
  background-color: #6db9de;
  color: #011319;
}
.city-photo {
  width: 100%;
  border-radius: 15px;
  object-fit: contain;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
main {
  padding: 30px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.weather-app-city {
  margin: 0;
  font-size: 38px;
  line-height: 48px;
  color: #272142;
  font-weight: 700;
}
.dark-mode .weather-app-city {
  color: #6db9de;
}
.weather-app-details {
  font-size: 18px;
  line-height: 20px;
  color: #8a817c;
  font-weight: 500;
}
.dark-mode .weather-app-details {
  color: #cac6c4;
}
.weather-app-details strong {
  color: #5f5996;
}

.dark-mode .weather-app-details strong {
  color: #c77602;
}
.weather-app-temperature-container {
  display: flex;
}

.weather-app-icon {
  width: 88px;
  height: 88px;
}

.weather-app-temperature {
  font-size: 88px;
  color: #272142;
  font-weight: bold;
}

.dark-mode .weather-app-temperature {
  color: #6db9de;
}
.weather-app-unit {
  color: #272142;
  font-size: 28px;
  margin-top: 6px;
  font-weight: 400;
}
.dark-mode .weather-app-unit {
  color: #6db9de;
}

.weather-forecast {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}
.weather-forecast-date {
  text-align: center;
  color: #272142;
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  margin-bottom: 8px;
}

.dark-mode .weather-forecast-date {
  color: #c77602;
}
.weather-forecast-icon {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
}

.weather-forecast-temperatures {
  text-align: center;
  color: #e66189;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.dark-mode .weather-forecast-temperatures {
  color: #6db9de;
}
.weather-forecast-temperature {
  padding: 0 10px;
}

footer {
  border-top: 1px solid #f9f7fe;
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 13px;
  color: #666666;
}
.dark-mode footer {
  color: #cac6c4;
}
a {
  color: #5f5996;
  text-decoration: none;
  font-weight: 700;
}

.dark-mode a {
  color: #c77602;
}

#temperatureChart {
  width: 100%;
  max-height: 300px;
  margin-top: 20px;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  .weather-app-container {
    max-width: 90%;
    margin: 40px auto;
    padding: 20px;
  }
}
/*for phons*/
@media (max-width: 480px) {
  .weather-app-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
  }
  .search-form-input {
    width: 100%;
  }
  .search-form-button {
    margin-left: 0;
  }
  .sound-icon {
    margin-top: 50px;
  }
  .weather-app-city {
    font-size: 28px;
  }
  .weather-app-details {
    font-size: 16px;
  }
  .weather-app-icon {
    width: 40px;
    height: 40px;
  }
  .weather-app-temperature {
    font-size: 40px;
  }
  .weather-app-unit {
    font-size: 10px;
  }
  .weather-forecast-icon {
    width: 64px;
    height: 64px;
  }
  .weather-forecast-temperatures {
    font-size: 14px;
  }
  .weather-forecast {
    flex-direction: column;
  }
  .weather-forecast-date {
    margin-bottom: 10px;
  }
  .weather-forecast-icon {
    margin: 0 auto;
  }
  .weather-forecast-temperatures {
    justify-content: center;
  }
}
