body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://wallpapers.com/images/hd/finance-analysis-and-forecast-mx2m85bltxxp3s2l.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.error-popup {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Position pop-up at top */
    padding-top: 50px; /* Add space from top edge */
}

.error-popup-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: #333;
}

.error-popup-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.error-popup-content button {
    background-color: #ff7e5f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.error-popup-content button:hover {
    background-color: #feb47b;
}

.weather-app {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
    width: 100%;

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

#location-input {
    border: none;
    padding: 12px 15px;
    border-radius: 25px;
    outline: none;
    font-size: 1em;
    width: 70%;
    margin-right: 10px;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    transition: all 0.3s ease;
}

#location-input::placeholder {
    color: #666;
}

#location-input:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#search-button {
    background: #ff7e5f;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s ease, transform 0.2s ease;
}

#search-button:hover {
    background: #feb47b;
    transform: translateY(-2px);
}

.weather-display {
    margin-top: 20px;
}

#location-name {
    font-size: 2em;
    margin-bottom: 10px;
}

.weather-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

#temperature {
    font-size: 3em;
    font-weight: bold;
    margin: 10px 0;
}

#description {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: capitalize;
}

#weather-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}



@media (max-width: 600px) {
    .weather-app {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    #location-input {
        width: 60%;
    }

    #search-button {
        padding: 10px 15px;
    }

    #temperature {
        font-size: 2.5em;
    }

    #description {
        font-size: 1.2em;
    }

    #weather-icon {
        width: 80px;
        height: 80px;
    }
}

.error {
    color: #ff7e5f;
    font-size: 1.1em;
    margin-top: 15px;
    font-weight: bold;
}