body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 130, 0.4), transparent 28%),
    radial-gradient(circle at bottom right, rgba(0, 189, 214, 0.24), transparent 30%),
    linear-gradient(135deg, #17213d 0%, #2e476b 48%, #f08a7e 100%);
  font-family: "Roboto", sans-serif;
  margin: 0;
}

a {
  color: #007f9f;
  font-weight: 700;
}

.weather-app {
  background: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 45px auto;
  box-shadow: 0 30px 80px rgba(15, 28, 55, 0.35);
  border-radius: 16px;
  padding: 30px;
  backdrop-filter: blur(18px);
}

header {
  border-bottom: 1px solid rgba(23, 33, 61, 0.08);
  padding: 0 0 30px 0;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-form-input {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(23, 33, 61, 0.08);
  border-radius: 6px;
  width: 100%;
  font-size: 16px;
  padding: 15px 20px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-form-input:focus {
  border-color: #00a6c8;
  box-shadow: 0 0 0 4px rgba(0, 166, 200, 0.14);
}

.search-form-button {
  background: linear-gradient(135deg, #ff7b54, #ff4f7b);
  padding: 15px 30px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.search-form-button:hover {
  box-shadow: 0 12px 24px rgba(255, 79, 123, 0.28);
  transform: translateY(-2px);
}

main {
  padding: 30px 0;
}

.weather-app-data {
  display: flex;
  justify-content: space-between;
}

.weather-app-city {
  margin: 0;
  font-size: 38px;
  line-height: 48px;
  color: #17213d;
}

.weather-app-details {
  font-size: 16px;
  color: rgba(23, 33, 61, 0.58);
  line-height: 24px;
  font-weight: 500;
}

.weather-app-details strong {
  color: #ff4f7b;
}

.weather-app-temperature-container {
  display: flex;
  align-items: flex-start;
}

.weather-app-icon {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 12px 18px rgba(23, 33, 61, 0.18));
}

.weather-app-temperature {
  font-size: 88px;
  line-height: 88px;
  font-weight: bold;
  color: #17213d;
}

.weather-app-unit {
  margin-top: 6px;
  font-size: 28px;
}

.weather-forecast {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.weather-forecast-day {
  position: relative;
  overflow: hidden;
  min-height: 166px;
  padding: 14px 8px 12px;
  border: 1px solid rgba(23, 33, 61, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 28px rgba(15, 28, 55, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.weather-forecast-day:hover {
  box-shadow: 0 18px 34px rgba(15, 28, 55, 0.15);
  transform: translateY(-4px);
}

.weather-forecast-date {
  position: relative;
  text-align: center;
  color: rgba(23, 33, 61, 0.55);
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 10px;
  z-index: 1;
}

.weather-forecast-icon-stage {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto;
}

.weather-forecast-icon {
  position: relative;
  width: 78px;
  height: 78px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 10px 14px rgba(23, 33, 61, 0.16));
  z-index: 2;
}

.weather-forecast-temperatures {
  position: relative;
  text-align: center;
  color: #ff4f7b;
  margin-top: 6px;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.weather-forecast-temperature {
  padding: 0 7px;
}

.weather-effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.weather-sun .weather-effect::before,
.weather-sun .weather-effect::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
}

.weather-sun .weather-effect::before {
  width: 86px;
  height: 86px;
  background: conic-gradient(
    from 0deg,
    rgba(255, 204, 77, 0),
    rgba(255, 204, 77, 0.7),
    rgba(255, 204, 77, 0),
    rgba(255, 204, 77, 0.55),
    rgba(255, 204, 77, 0)
  );
  animation: sunBeams 7s linear infinite;
}

.weather-sun .weather-effect::after {
  width: 66px;
  height: 66px;
  background: radial-gradient(circle, rgba(255, 218, 96, 0.65), transparent 68%);
  animation: sunGlow 2.6s ease-in-out infinite;
}

.rain-drop {
  position: absolute;
  top: 47px;
  width: 3px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0), rgba(14, 165, 233, 0.95));
  animation: iconRainFall 820ms linear infinite;
}

.rain-drop-one {
  left: 31px;
}

.rain-drop-two {
  left: 43px;
  animation-delay: 150ms;
  animation-duration: 900ms;
}

.rain-drop-three {
  left: 55px;
  animation-delay: 60ms;
  animation-duration: 760ms;
}

.rain-drop-four {
  left: 66px;
  animation-delay: 260ms;
  animation-duration: 980ms;
}

.snowflake {
  position: absolute;
  top: 44px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 8px rgba(125, 211, 252, 0.48);
  animation: iconSnowDrift 2.8s ease-in-out infinite;
}

.snowflake-one {
  left: 28px;
}

.snowflake-two {
  left: 42px;
  animation-delay: 450ms;
  animation-duration: 3.2s;
}

.snowflake-three {
  left: 57px;
  animation-delay: 180ms;
  animation-duration: 2.6s;
}

.snowflake-four {
  left: 68px;
  animation-delay: 800ms;
  animation-duration: 3.5s;
}

.weather-storm .weather-effect::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  animation: lightning 3.4s ease-in-out infinite;
}

.weather-cloud .weather-effect::before,
.weather-mist .weather-effect::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 4px;
  width: 82px;
  height: 24px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.58), transparent);
  filter: blur(8px);
  animation: cloudDrift 5.5s ease-in-out infinite;
}
footer {
  border-top: 1px solid rgba(23, 33, 61, 0.08);
  padding: 30px 0 0 0;
  text-align: center;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
}

@keyframes iconRainFall {
  0% {
    opacity: 0;
    transform: translateY(-10px) scaleY(0.45);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(34px) scaleY(1.08);
  }
}

@keyframes iconSnowDrift {
  0% {
    opacity: 0;
    transform: translate(-4px, -8px) scale(0.72);
  }

  25% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(10px, 34px) scale(1);
  }
}

@keyframes sunBeams {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.95);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) scale(0.95);
  }
}

@keyframes sunGlow {
  0%,
  100% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes lightning {
  0%,
  88%,
  100% {
    opacity: 0;
  }

  90% {
    opacity: 0.75;
  }

  92% {
    opacity: 0.1;
  }

  94% {
    opacity: 0.55;
  }
}

@keyframes cloudDrift {
  0%,
  100% {
    transform: translateX(-8%);
    opacity: 0.35;
  }

  50% {
    transform: translateX(8%);
    opacity: 0.8;
  }
}
@media (max-width: 680px) {
  .weather-app {
    margin: 18px;
    padding: 22px;
  }

  .weather-app-data {
    gap: 18px;
    flex-direction: column;
  }

  .weather-forecast {
    grid-template-columns: repeat(2, 1fr);
  }

  .weather-forecast-day {
    min-height: 158px;
  }
}

@media (max-width: 460px) {
  .search-form {
    flex-direction: column;
  }

  .search-form-button {
    width: 100%;
  }

  .weather-app-temperature {
    font-size: 72px;
    line-height: 72px;
  }

  .weather-forecast {
    grid-template-columns: 1fr;
  }
}
