body {
  background-image: url("../images/light-theme.jpeg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 20px;
  min-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  font-family: "Nunito", sans-serif;
}

.dark {
  background-image: url("../images/dark-theme.jpeg");
}

.dark main {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.dark .search-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.dark .weather-forecast {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.dark .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.dark .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dark .search-input::placeholder {
  color: #979797;
}

.dark .search-btn {
  color: #979797;
}

.dark .search-btn:hover {
  color: #f1f1f1;
}

.dark h1 {
  color: #dddddd;
}

.dark h3 {
  color: #dddddd;
}

.dark .current-time {
  color: #bebebe;
}

.dark .current-weather {
  color: #dddddd;
}

.dark .details {
  color: #dddddd;
}

.dark .details strong {
  color: #ff5aa3;
}

.dark .forecast-date {
  color: #dddddd;
}

.dark .forecast-temperatures {
  color: #ff5aa3;
}

.dark footer {
  color: #adadad;
}

.dark a {
  color: #e099b9;
}

main,
.search-form,
.weather-forecast,
.theme-toggle {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

main,
.weather-forecast {
  margin: 20px auto;
  padding: 30px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: 40px;
}

h3 {
  margin-top: 8px;
}

footer {
  margin-top: auto;
  text-align: center;
  color: #585858;
  font-family: monospace;
  height: 30px;
}

a {
  color: rgb(92, 19, 88);
}

header {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.theme-toggle {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 250ms ease-in-out;
}

.theme-toggle::before {
  content: "🌙";
}

.dark .theme-toggle::before {
  content: "☀️";
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.weather-app {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  margin-top: 30px;
  flex: 1;
}

.search-form {
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 200px;
  border-radius: 25px;
}

.search-input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 16px;
  color: #313131;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
}

.search-input::placeholder {
  color: #838383;
}

.search-btn {
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #535353;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease-in-out;
}

.search-btn:hover {
  color: #0a0a0a;
}

.current-time {
  line-height: 1.5;
  color: #353535;
  margin: 0;
}
.current-weather {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 30px;
}

.weather-left,
.weather-center,
.weather-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.weather-left {
  text-align: left;
  justify-content: flex-start;
}

.weather-center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.weather-center img {
  width: 100px;
  height: auto;
}

.weather-right {
  text-align: right;
  justify-content: flex-start;
}

.temperature {
  position: relative;
  left: 10px;
  line-height: 1;
}

.current-temp {
  font-weight: 700;
  font-size: 70px;
}
.degrees {
  font-size: 30px;
  position: relative;
  top: -28px;
}

.details {
  line-height: 1.8;
  color: #353535;
}

.details strong {
  color: rgb(235, 0, 129);
}

.weather-forecast {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 25px;
}

.forecast-day {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 5px 0;
}

.forecast-date {
  text-align: center;
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 20px;
  color: #353535;
}

.forecast-icon {
  width: 88px;
  height: 88px;
  display: block;
  margin: 0 auto;
}

.forecast-temperatures {
  display: flex;
  justify-content: center;
  text-align: center;
  color: rgb(235, 0, 129);
}

.forecast-temperature {
  padding: 0 5px;
}

@media (max-width: 480px) {
  .current-weather {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
  .weather-left,
  .weather-center,
  .weather-right {
    width: 100%;
    text-align: center;
  }

  .weather-right h4 {
    display: none;
  }

  .weather-forecast {
    margin-bottom: 10px;
    justify-content: space-around;
  }
}
