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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #74b9ff 0%, #0078d3 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.weather-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: transform 0.3s ease;
}

.weather-container:hover {
  transform: translateY(-5px);
}

.search-box {
  display: flex;
  margin-bottom: 30px;
  gap: 10px;
}

.search-input {
  flex: 1;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 25px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: #74b9ff;
}

.search-btn {
  padding: 15px 20px;
  background: linear-gradient(135deg, #74b9ff, #0984e3);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.search-btn:hover {
  transform: scale(1.05);
}

.weather-info {
  display: none;
  animation: fadeIn 0.5s ease;
}

.weather-info.show {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.city-name {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.weather-icon {
  font-size: 80px;
  margin: 20px 0;
}

.temperature {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.description {
  font-size: 18px;
  color: #666;
  text-transform: capitalize;
  margin-bottom: 30px;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.detail-item {
  background: rgba(255, 255, 255, 0.7);
  padding: 15px;
  border-radius: 15px;
  backdrop-filter: blur(5px);
}

.detail-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.detail-value {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.error-message {
  color: #e74c3c;
  font-size: 16px;
  margin: 20px 0;
  display: none;
}

.error-message.show {
  display: block;
}

.loading {
  display: none;
  color: #666;
  font-size: 16px;
  margin: 20px 0;
}

.loading.show {
  display: block;
}


@media screen and (min-width: 300px) and (max-width:500px){
  
  .search-input{
      width: 50vw;
  }
}