body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  background-color: var(--background-color, #f0f2f5);
  color: var(--text-color, #000000);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background-color 0.5s ease, color 0.5s ease;
  background: linear-gradient(to bottom, #87ceeb 0%, #4a90e2 50%, #ffe87c 100%);
}

.container {
  max-width: 600px;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 20px auto;
}

h1 {
  color: #2c3e50;
  margin-bottom: 30px;
}

form {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

input[type="text"] {
  padding: 12px;
  width: 80%;
  max-width: 300px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #007bff;
}

button {
  padding: 12px 30px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Styles for weather results */
.weather-info {
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
}

h2 {
  color: #2c3e50;
  margin-bottom: 20px;
}

p {
  margin: 10px 0;
  color: #444;
  font-size: 18px;
}

a {
  display: inline-block;
  margin-top: 20px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

.error {
  color: #dc3545;
  font-weight: bold;
}

.unit-select {
  padding: 12px;
  width: 80%;
  max-width: 300px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  margin: 10px 0;
}

.current-weather {
  text-align: center;
  padding: 20px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.temperature {
  font-size: 48px;
  font-weight: bold;
  color: #1e4d92;
  margin: 10px 0;
}

.forecast {
  margin: 30px 0;
}

.forecast-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.forecast-day {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--accent-color);
  transition: all 0.3s ease;
}

.forecast-day:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  background-color: rgba(255, 255, 255, 0.95);
}

.forecast-day .date {
  font-weight: bold;
  color: #2c3e50;
}

.forecast-day img {
  width: 50px;
  height: 50px;
  margin: 10px 0;
}

.forecast-day .temp {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

.forecast-day .condition {
  color: #666;
  font-size: 14px;
}

.back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #0056b3;
  text-decoration: none;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 5px;
  display: none;
  text-align: center;
}

input.error {
  border-color: #dc3545;
}

input.error:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25);
}

@keyframes float {
  0% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-20px) translateX(10px);
  }
  100% {
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes sunRays {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.sun {
  position: fixed;
  top: 50px;
  right: 100px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #ffd700 45%, #ff8c00 70%);
  border-radius: 50%;
  box-shadow: 0 0 50px #ff8c00, 0 0 100px #ff8c00, 0 0 150px #ff4500;
  z-index: -1;
  opacity: 0.9;
}

.sun::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.4) 10%,
    rgba(255, 140, 0, 0.2) 50%,
    transparent 70%
  );
  border-radius: 50%;
  animation: sunRays 30s linear infinite;
}

.sun::after {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  background: radial-gradient(
    circle,
    rgba(255, 69, 0, 0.2) 20%,
    rgba(255, 140, 0, 0.1) 40%,
    transparent 60%
  );
  border-radius: 50%;
  animation: sunRays 20s linear infinite reverse;
}

.cloud {
  position: fixed;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border-radius: 100px;
  width: 180px;
  height: 60px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 -5px 15px rgba(0, 0, 0, 0.1);
  animation: float 6s ease-in-out infinite;
  z-index: -1;
}

.cloud:before,
.cloud:after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1),
    inset 0 -5px 15px rgba(0, 0, 0, 0.1);
}

.cloud:before {
  width: 100px;
  height: 100px;
  top: -45px;
  left: 25px;
}

.cloud:after {
  width: 80px;
  height: 80px;
  top: -30px;
  left: 80px;
}

.cloud:nth-child(1) {
  top: 10%;
  left: 15%;
  transform: scale(1.4);
}

.cloud:nth-child(2) {
  top: 35%;
  right: 15%;
  transform: scale(1);
}

.cloud:nth-child(3) {
  bottom: 15%;
  left: 12%;
  transform: scale(1);
  animation-delay: 2s;
}
