@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

body{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    font-family: 'Outfit', sans-serif;
    color: white;
    min-height: 100vh;
}
.search{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 60px;
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* margin: 15px 0; */
    border-radius: 50px;
    padding: 5px 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.search input{
    flex-grow: 1;
    padding: 7px 13px;
    margin: 0 10px;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 1rem;
}
.search input:-webkit-autofill,
.search input:-webkit-autofill:hover, 
.search input:-webkit-autofill:focus,
.search input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.1) inset !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    caret-color: white !important;
    transition: background-color 5000s ease-in-out 0s; /* Prevent flash of white */
    border-radius: 50px; /* Match your input shape */
}
.search input::placeholder{
    color: rgba(255, 255, 255, 0.7);
}
.searchBtn{
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    color: white;
}
.searchBtn:hover{
    background: rgba(255, 255, 255, 0.3);
}
.toggle-unit{
    display: flex;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px;
    cursor: pointer;
    border: none;
    border-radius: 30px;
    color: white;
    margin: 0 5px;
}
.toggle-unit button{
    background: transparent;
    padding: 10px;
    cursor: pointer;
    border: none;
    border-radius: 50%;
    color: white;
    margin: 2px 2px;
}
.toggle-unit button.active {
    background: rgba(255, 255, 255, 0.4);
    color: #2575fc;
    font-weight: bold;
    box-shadow: 0px 0px 10px rgba(255,255,255,0.5);
    transition: all 0.2s ease-in-out;
}

.current-weather{
    width: 400px;
    /* height: auto; */
    border: 1px solid rgba(255, 255, 255, 0.2);
    outline:none;
    border-radius: 25px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}
#weather-icon{
    height: 100px;
    /* width: auto; */
    border-radius: 30px;
    padding: 0 15px ;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.1);
}
.extra-info{
    /* height: 80px; */
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    /* border: none; */
    margin: 15px 0;
    /* gap: 10px; */
}
.extra-info div{
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    gap: 5px;
    justify-content: space-evenly;
    flex-grow: 1;
    margin: auto 7px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
}
.extra-info div span{
    /* margin: auto; */
    color: white;
    font-size: 1rem;
}
/* @media (max-width: 480px) {
    .search, .current-weather {
        width: 90%;
    }
} */