* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #fbc2eb, #a6c1ee);
}

.main {
    width: 50%;
    max-width: 600px;
    height: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
}

.firstDiv, .secondDiv {
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#loaderContainer {
    width: 300px;
    margin: 20px auto;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #3498db;
}

#loaderBar {
    width: 100%;
    height: 20px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

#loaderFill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    transition: width 0.1s;
}

#loaderText {
    font-size: 18px;
    font-weight: bold;
}

.cityNames {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

#cityName {
    width: 70%;
    max-width: 400px;
    font-size: 1.2em;
    padding: 10px 15px;
    margin: 0;
    border: 2px solid #ccc;
    border-radius: 10px;
    transition: border-color 0.3s;
}

#cityName:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px #3498db;
    outline: none;
}

#searchBtn, #locBtn {
    background-color: #3498db;
    color: white;
    width: auto;
    font-size: 1.2em;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background-color 0.3s, transform 0.2s;
}

#searchBtn:hover, #locBtn:hover {
    background-color: #9580b9;
    transform: translateY(-2px);
    outline: none;
}

#weatherInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

#temp, #city {
    font-size: 2em;
}

.otherInfo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.wind > p {
    font-size: 1.2em;
    margin-bottom: 10px;
}

/* 📱 Mobile Responsive */
@media (max-width: 768px) {
    .main {
        width: 90%;
        padding: 15px;
    }
    .cityNames {
        flex-direction: column;
        gap: 10px;
    }
    #cityName {
        width: 100%;
        font-size: 1em;
    }
    #searchBtn, #locBtn {
        font-size: 1em;
        padding: 8px 12px;
    }
    .otherInfo {
        gap: 25px;
    }
    #temp, #city {
        font-size: 1.5em;
    }

    .wind > p {
     
    font-weight: 400;
    font-size: 1em;
    text-align: center;
     

}

/* 📱 Very Small Devices */
@media (max-width: 480px) {
    #loaderContainer {
        width: 90%;
    }
    #loaderText {
        font-size: 16px;
    }
}
