* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: url("08.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  width: 90%;
  max-width: 600px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  text-align: center;
}

header {
  text-align: center;
  color: white;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

header h1 {
  font-size: 2.5rem;
  margin: 20px;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin: 20px;
}

.search-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.enter {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(61, 61, 210);
  text-align: left;
  margin: 10px;
}

.cityInput {
  padding: 15px;
  font-size: 1.1rem;
  border: 2px solid #4a90e2;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.9);
  width: 100%;
  transition: all 0.3s ease;
}

.cityInput:focus {
  outline: none;
  border-color: #2a5ea0;
  box-shadow: 0 0 10px rgba(42, 94, 160, 0.5);
}

.button {
  padding: 15px 25px;
  font-size: 1.1rem;
  background-color: #4a90e2;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  font-weight: bold;
  margin-top: 10px;
}

.button:hover {
  background-color: #2a5ea0;
  transform: translateY(-2px);
  color: black;
}

.button:active {
  transform: translateY(0);
}

.error {
  background-color: #ff6b6b;
  color: white;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
  display: none;
}

.hidden {
  display: none;
}

#loading {
  text-align: center;
  color: white;
  font-size: 1.2rem;
  margin: 20px 0;
  display: none;
}

.weather-display {
  padding: 25px;
  text-align: center;
  margin-top: 20px;
  display: none;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.weather-display h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.weather-info {
  margin-bottom: 25px;
}

.temperature {
  font-size: 4rem;
  font-weight: bold;
  color: #c89303c9;
  margin-bottom: 10px;
}

.unit {
  font-size: 2rem;
  color: #c89303c9;
}

.description p {
  font-size: 1.3rem;
  color: #34495e;
  text-transform: capitalize;
  margin-bottom: 15px;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.detail-item {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.detail-item .label {
  display: block;
  font-weight: bold;
  color: #6c757d;
  margin-bottom: 5px;
}

.detail-item span:not(.label) {
  font-size: 1.2rem;
  color: #495057;
}

@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 20px;
  }

  header h1 {
    font-size: 2rem;
  }

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

.icon img {
  width: 100px;
  height: 100px;
  margin: 10px auto;
  display: block;
}
