body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 40px 20px;

  background: linear-gradient(
    135deg,
    #f8cdda 0%,
    #c3b6ff 40%,
    #6a5acd 70%,
    #1e1b4b 100%
  );

  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(white 1px, transparent 1px),
    radial-gradient(white 2px, transparent 1px);

  background-size: 40px 40px, 80px 80px;
  background-position: 0 0, 20px 20px;

  opacity: 0.5;
  pointer-events: none;
}

body::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  right: -50px;
  height: 400px;

  background: radial-gradient(circle at center, rgba(255, 180, 255, 0.6), transparent 70%);
  filter: blur(60px);

  pointer-events: none;
}


.moon {
  position: absolute;
  top: 60px;
  right: 80px;
  width: 80px;
  height: 80px;
  z-index: 2;

  background: radial-gradient(circle, #fff5cc, #ffd27f);
  border-radius: 50%;

  box-shadow: 0 0 30px rgba(255, 255, 200, 0.6);
}

.weather-pro-vanilla {
  max-width: 700px;
  margin: 80px auto 0; 
 background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  position: relative;
  z-index: 3;
  box-shadow: 0 15px 60px rgba(106, 90, 205, 0.3);
}

.weather-pro-vanilla:hover {
  transform: translateY(-5px);
  transition: 0.3s ease;
}


.search-form {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.search-form-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #cfa9f7;
  background: #bba9df;
  font-size: 18px;
}

.search-form-input:focus {
  outline: none;
  border-color: #8a63f8;
}

.search-form-button {
  background: #8a63f8;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 18px;
}

.search-form-button:hover {
  opacity: 0.9;
}


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

.weather-app-city {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 10px;
}

.weather-app-details {
  font-size: 18px;
  color: #666;
  line-height: 1.4;
}

.weather-app-details strong,
.weather-app-details span {
  color: #d55fd9;
  font-weight: 500;
}


.weather-app-temperature-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 200px;
}

.weather-app-icon img {
  width: 70px;
}

.weather-app-temperature {
  font-size: 80px;
  font-weight: 700;
}

.weather-app-unit {
  font-size: 32px;
  font-weight: 500;
  color: #333;
}


.weather-forecast {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
}

.weather-forecast-day {
  flex: 1;
  background: #f6f3ff;
  border-radius: 16px;
  padding: 16px 10px;
  text-align: center;
}

.weather-forecast-date {
  font-size: 16px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
}

.weather-forecast-icon {
  width: 48px;
  margin-bottom: 10px;
}

.weather-forecast-temperatures {
  font-size: 16px;
}

.weather-forecast-temperatures strong {
  color: #c553ef;
  font-weight: 600;
  margin-right: 6px;
}


footer {
  font-size: 14px;
  text-align: center;
  margin-top: 40px;
}

footer a {
  color: #8a63f8;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


@media (max-width: 600px) {
  .weather-app-data {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .weather-app-temperature-container {
    justify-content: flex-start;
  }

  .weather-forecast {
    flex-direction: column;
  }
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { opacity: 0.3; }
}

body::before {
  animation: twinkle 4s infinite;
}
