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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #181818;
    color: white;
    transition: background-color 0.5s ease;
    background-image: url(https://images.pexels.com/photos/76969/cold-front-warm-front-hurricane-felix-76969.jpeg?auto=compress&cs=tinysrgb&w=800);
    background-repeat: no-repeat;
    background-size: cover;
}

.container {
    background: rgba(181, 181, 181, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    width: 60%;
    margin: 50px auto;
    
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.search-box {
    margin: 20px;
}

input, button {
    padding: 10px;
    margin: 5px;
    font-size: 1rem;
    border-radius: 5px;
    border: none;
}

input {
    width: 200px;
}

button {
    background-color: #3498db;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #2980b9;
}

.spinner {
    text-align: center;
    margin: 20px 0;
}

.hidden {
    display: none;
}

#weatherResult {
    margin-top: 20px;
}

#weatherResult img {
    width: 100px;
}

#forecast {
    margin-top: 20px;
    text-align: center;
}

.forecast-card {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    width: 120px;
    text-align: center;
}

.forecast-card img {
    width: 50px;
    height: 50px;
}

#forecastContainer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#sunrise, #sunset {
    font-size: 1.1rem;
    margin-top: 10px;
}

#cityName, #temperature, #description, #feelsLike, #humidity, #windSpeed {
    font-size: 1.2rem;
    margin: 10px 0;
}

/* Smooth transitions */
input, button {
    transition: all 0.3s ease;
}

button:hover {
    background-color: #f39c12;
}

.spinner img {
    width: 50px;
}

.forecast-card p {
    margin-top: 5px;
}
/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: white;
}

.dark-mode .container {
    background: rgba(0, 0, 0, 0.6);
}
/* navbar */
/* Basic Styling for Navbar */
nav {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  nav .text-white {
    color: white;
  }
  
  nav input {
    border-radius: 5px;
    padding: 5px;
    width: 200px;
  }
  
  nav button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
  }
  
  nav button:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  
  nav a {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
  }
  
  nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }
  