
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


*{
    margin: 0px;
    padding: 0px;
    font-family: "Poppins";
    box-sizing: border-box;
}

body{
    height: 100vh;
}
.container{
    display: flex;
    align-items: center;

}
.weather-input{
    width: 30%;
    position: fixed;
    inset: 0;
    background: #4dd0df;
    padding: 1rem 2.5rem;

}
.weatherIcon{
    background-position: 50% !important;
    background-repeat: no-repeat !important;
    background-size: contain;
    display: block;
    height: 25%;
    margin: 2rem  auto;
}
.input-group{
    position: relative;
    display: flex;
    align-items: center;
    margin: 2rem 0;

}
.input-group input{
    background: #f8f8f8;
    text-decoration: capitalize;
    padding: 0.8rem;
    font-size: 15px;
    border-radius: 6px;
    width: 100%;
    outline:none;
    border: none;
}
.input-group .converter{
    position:inherit;
    border: none;
    outline: none;
    font-size: 15px;
    cursor: pointer;
}
.input-group .fa-search{
    position: relative;
    right:25px;
    color: #909090;
    cursor: pointer;
    font-size: 22px;

}
.temperature{
    font-size: 5rem;
    margin-left: 20px;
}

.weather-output{
    width: 70%;
    position:fixed;
    inset:0;
    margin-left: 40%;
    padding:2rem;
    /* background:#f6f6f6; */
    overflow:auto;

}

.Highlights{
    display: grid;
    grid-template-columns: repeat(2,350px);
    grid-auto-flow: row;
    row-gap: .3rem;
    column-gap: 1rem;
}
.Highlights div{
    height: 200px;
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #78c1f3;
    border-radius: 20px;
    padding: 1rem;

}
.Highlights i{
    font-size: 45px;

}

.sun span{
    align-items: center;
    display: flex;
    gap: 10px;

}


/* Mobile Styles */
@media (max-width: 600px) {
    body {
        padding: 0;
        margin: 0;
    }

    .container {
        flex-direction: column;   /*Stack elements vertically*/
        align-items: center; /* Center items */
    }

    .weather-input {
        width: 100%; /* Make input take most of the width */
        height: 400px;
        padding: 1rem; /* Add padding */
        margin: 1rem 0; /* Add margin for spacing */
    }

    .input-group {
        width: 100%; /* Full width for input group */
        margin: 0; /* Remove margin */
    }

    .input-group input {
        width: 100%; /* Full width for input */
        padding: 0.5rem; /* Adjust padding */
        font-size: 14px; /* Smaller font size */
    }

    .weatherIcon {
        height: 30%; /* Adjust height for mobile */
        margin: 1rem auto; /* Center icon */
    }

    .temperature {
        font-size: 3rem; /* Smaller font size for temperature */
        margin-left: 0; /* Remove left margin */
    }

   .weather-output {
        margin-top:400px;
        width: 100%; /* Full width for output */
        margin-left: 0; /* Remove left margin */
        padding: 1rem; /* Add padding */
    }

    .Highlights {
        grid-template-columns: repeat(1, 1fr); /* Change to 1 column */
        grid-auto-flow: row; /* Stack items vertically */
        row-gap: 1rem; /* Add gap between rows */
        column-gap: 0; /* Remove gap between columns */
    }

    .Highlights div {
        height: 100px; /* Adjust height */
        padding: 0.5rem; /* Adjust padding */
    }

    .Highlights i {
        font-size: 30px; /* Adjust icon size */
    }

    .sun span {
        gap: 5px; /* Adjust gap */
    }
}
footer {
    gap:0px;
    font-size: 15px;
    /* bottom: 10px; */
    margin-top:  250px;
    text-align: center;
    line-height: 0.5;
    padding: 0;
    /* font-size: 5px; */
}
footer a {
    color: white;
    text-decoration: none;
}
footer a:hover {
    color: rgb(38, 190, 190);
    text-decoration: underline;
}
footer p span {
    color: red;
}