*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    display: flex;
    flex-direction: column;
}
.nav-bar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(13, 158, 216);
    padding: 10px;
    height: 80px;
}
.lefty{
    display: flex;
    gap: 20px;
}
.cont{
    font-family: sans-serif;
    padding-top: 10px;
    color: rgb(241, 240, 237);
}
.righty{
    display: flex;
    flex-direction: row;
    gap: 40px;
}
.inp{
    height: 30px;
    width: 200px;
    border-radius: 20px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding-left: 60px;
    cursor: pointer;
    transition: 0.3s;
}
.inp:hover{
    transform:scale(1.1);
    background-color: rgb(230, 212, 190);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 1);
}
.btn{
    height: 30px;
    width: 80px;
    border-radius: 10px;
    border: none;
    background-color: rgb(13, 26, 204);
    color: antiquewhite;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
     transition: 0.3s;
}
.btn:hover{
    transform: scale(1.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 1);
    background-color: rgb(5, 21, 235);

}
.main-content{
    width: 100%;
    height: 553px;
    background-image: url("https://static.vecteezy.com/system/resources/thumbnails/001/849/560/small_2x/clear-blue-sky-background-free-vector.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;

       
}
.abt{
    font-family: sans-serif;
    font-size: 30px;
    font-weight: 900;
    font-style: italic;
    font-variant: small-caps;
    color: rgb(13, 26, 204);
    text-align: center;
}
.grids{
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 20px;
    padding-left: 20px;
    
    
}
.boxes{
    height: 200px;
    width: 280px;
    border:solid 3px  rgb(13, 158, 216);
    background-color: rgb(255, 255, 255,0.3);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.3s;

    
}
.boxes:hover{
    transform: scale(1.1);
    border:solid 3px  rgb(14, 37, 241);
    box-shadow: 10px 15px 20px rgba(0, 0, 0, 1);
    filter: brightness(1.2);
    background-color: rgb(255, 255, 255,0);
    
}

.temp,.feel,.weat,.rain,.wind,.humi,.sunrise,.sunset{
    font-family: sans-serif;
    font-size: 35px;
    color:rgb(11, 43, 185);
    
}
.temp-value,.feel-value,.weat-value,.rain-value,.wind-value,.humi-value,.sunrise-value,.sunset-value{
    font-family: sans-serif;
    font-size: 30px;
    color:rgb(11, 43, 185);
    text-align: center;
    padding-top: 20px;
}
/* ===== Responsive Styles ===== */

/* Tablets and small laptops */
@media (max-width: 1024px) {
    .grids{
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        justify-content: center;
    }
    .boxes{
        width: 90%;
        max-width: 260px;
    }
}

/* Tablets (portrait) */
@media (max-width: 768px) {
    .nav-bar{
        flex-direction: column;
        height: auto;
        gap: 10px;
        padding: 15px;
    }
    .lefty, .righty{
        width: 100%;
        justify-content: center;
    }
    .inp{
        width: 60%;
        padding-left: 20px;
        text-align: center;
    }
    .main-content{
        height: auto;
        padding-bottom: 30px;
    }
    .abt{
        font-size: 24px;
    }
    .grids{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        padding: 20px;
        gap: 20px;
    }
    .boxes{
        width: 100%;
        height: 160px;
    }
    .temp,.feel,.weat,.rain,.wind,.humi,.sunrise,.sunset{
        font-size: 26px;
    }
    .temp-value,.feel-value,.weat-value,.rain-value,.wind-value,.humi-value,.sunrise-value,.sunset-value{
        font-size: 22px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .cont{
        font-size: 20px;
    }
    .righty{
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .inp{
        width: 90%;
        height: 35px;
    }
    .btn{
        width: 90%;
    }
    .abt{
        font-size: 20px;
    }
    .grids{
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
        padding: 15px;
        gap: 15px;
    }
    .boxes{
        height: 140px;
    }
    .temp,.feel,.weat,.rain,.wind,.humi,.sunrise,.sunset{
        font-size: 22px;
    }
    .temp-value,.feel-value,.weat-value,.rain-value,.wind-value,.humi-value,.sunrise-value,.sunset-value{
        font-size: 18px;
        padding-top: 10px;
    }
}





 




