/* General styles */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    background-image: url('weather-sunny.jpg');
}

h1 {
    font-family: 'Permanent Marker', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Container for weather info */
.weather-container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 450px;
    backdrop-filter: blur(10px);
}

/* Search bar and button styles */
.search-and-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar {
    width: 70%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 1rem;
    outline: none;
}

.search-button, .unit-toggle-button {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: #333;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover, .unit-toggle-button:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Weather display styles */
.weather-display {
    margin-top: 20px;
    display: none; /* This ensures it's hidden on initial load */
}

.city-name {
    font-size: 2rem;
    margin-bottom: 5px;
}

.temperature {
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.description {
    font-size: 1.5rem;
    text-transform: capitalize;
    margin-bottom: 20px;
}

.details-container {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.detail-item {
    text-align: center;
}

.detail-item p {
    margin: 0;
    font-weight: bold;
}

.detail-item span {
    font-size: 0.9rem;
}