@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300;0,400;0,500;0,600;1,700&display=swap');



*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Merriweather Sans', sans-serif;
}

:root {
    --colorDark1: #0a3b50;
    --colorDark2:  rgba(7, 51, 55, 0.5);
    --colorLight1: #DBE2EF;
    --colorLight2: #F9F7F7;
}
h1{
    text-align: center;
    text-transform: uppercase;
    padding-top: 2rem;
}

body{
   
    display: flex;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    /* add image as background */
    background-image: url(./assets/Background2.jpg);
    /* fade background image */
    background-blend-mode: overlay;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.wrapper{
    color: var(--colorLight2);
    background: rgb(54,141,145);
   background: linear-gradient(148deg, rgb(17, 76, 80) 0%, rgb(4, 74, 81) 15%, rgb(9, 146, 135) 100%);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1.5px;
    width: 100%;
    max-width: 650px;
    border-radius: 10px;
    padding: 15px;

}

/* .wrapper{
    /* display: flex;
    flex-direction: column;
    align-items: center
    width: 100wh;
    height: 100vh;
   
} */



.tab-container{
    width: 90%;
    display: flex;
    justify-content: space-between;
    max-width:550px;
    margin: 0 auto;
    margin-top: 4rem;

}

.tab{
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1.75px;
    padding: 5px 8px;
}


.tab.currentTab{
    background-color: rgba(219,226,239,0.5);
    border-radius: 5px;

}

.weather-container{
    display: flex;
    align-items: center ;
    justify-content: center;
    flex-direction: column;
    margin-block: 2rem;

}

.button{
    all: unset;
    font-size: 0.85rem;
     text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: none;
    background-color: var(--colorDark2);
    cursor: pointer;
    margin-bottom: 10px;
}

/* .grant-access-container{
    display: none;
    /* flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color:white;
    font-size: 1.3rem; 
}
.grant-access-container.active{
    display: flex;
} */
.sub-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.grant-access-container{
    display:none;
}

.grant-access-container.active{
    display: flex;
}
.grant-access-container img{
    margin-bottom: 2rem;
}

.grant-access-container p:first-of-type {
    font-size: 1.75rem;
    font-weight:600;
}

.grant-access-container p:last-of-type{
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 1.75rem;
    letter-spacing: 0.75px;
}

.loading-container{
    display: none;
}

.loading-container.active{
    display: flex;
}

.loading-container p{
    text-transform: uppercase;
    margin-top: 1rem;
}

.user-info-container{
    display: none;
}

.user-info-container.active{
    display: flex;
}

.name{
    display: flex;
    align-items: center;
    gap: 0 1rem;
    margin-bottom: 1rem;
}

.user-info-container p{
    font-size: 1.15rem;
    font-weight: bold;
}

.user-info-container img{
    width: 100px;
    height: 100px;
}
.name p{
    font-size: 1.75rem;
}
.name img{
    width: 30px;
    height: 30px;
    object-fit: cover;
}

.user-info-container p[data-temperature]{
    font-size: 2.75rem;
    font-weight: 700;
}

.parameter-container{
    display: flex;
    justify-content: center;
    align-items: center;
   margin-top: 2rem;
   gap: 10px 20px;
   
    
}
.parameter{
    width: 30%;
    max-width: 200px;
    background-color: var(--colorDark2);
    border-radius: 5px;
    padding: 1rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 5px 0;
    align-items: center;
    justify-content: center;

}
.parameter img{
    width: 40px;
    height: 40px;
    margin: 0 auto;
}
.parameter p:first-of-type{
    font-size: 1.15rem;
    font-weight: 600;
     text-transform: uppercase;
}

.parameter p:last-of-type{
    font-size: 1rem;
    font-weight: bold;
}

.search-form{
    display: none;
    width: 90%;
    max-width: 550px;
    margin: 0 auto;
    gap: 0 10px;
   justify-content: center;
   align-items: center;
   margin-bottom: 3rem;
}

.search-form.active{
    display: flex;

}

.search-form input{
    all: unset;
    width: calc(100% - 80px);
    height: 40px;
    padding: 0 20px;
    border-radius: 10px;
    background-color: rgba(219,226,239,0.5);
}

.search-form input::placeholder{
    color:rgba(255,255,255,0.7);
}

.search-form input:focus{
    outline: 3px solid rgba(255,255,255,0.7);
}

.search-form button{
    width: 40px;
    height: 40px;
    display: flex  ;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: unset;
    background-color: rgba(219,226,239,0.5);
    border: none;
}

.search-form button img{
    width: 20px;
    height: 20px;
}

.error-container{
    display: none;
}

.error-container.active{
    display: flex;
    
}
.error-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-container p{
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

@media screen and (max-width:530px) {
    /* .weather-container{
        height: 100%;
        background-color: rgb(54,141,145);
        background: linear-gradient(148deg, rgb(17, 76, 80) 0%, rgb(4, 74, 81) 15%, rgb(9, 146, 135) 100%);
    } */
    .parameter-container {
        flex-direction: column;
        height: auto; /* Set height to auto to accommodate content */
    }

    .parameter {
        width: 100%;
        max-width: none; /* Remove max-width to allow full width */
    }
}
@media screen and (max-width:3800px){
    h1{
        font-size: 1.5rem;
    }
}
@media screen and (max-width:270px){
    h1{
        font-size: 1rem;
    }
}