@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@font-face {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    src: url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
}

html,
body {
    margin: 0;
    min-height: 100%;
    padding: 0;
    background: -webkit-linear-gradient(to right, #3498db, #2c3e50);
    background: linear-gradient(to right, #3498db, #2c3e50);
}

body {
    width: 100vw;
    min-height: 100vh;
    color: white;
}

* {
    box-sizing: border-box;
}

#root {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 10px;
    padding: 10px;
}

.grid-item {

    text-align: center;
    padding: 20px;
    font-size: 18px;
    width: 100%;
}

.search {
    grid-row: 1;
    grid-column: 1/ span 10;
}

.toggle-buttons {
    grid-row: 1;
    grid-column: 10/span 2;
    display: flex;
}

.temp {
    grid-row: 2;
    grid-column: 1/ span 3;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;

}

.date {
    grid-row: 2;
    grid-column: 4/span 6;
    align-items: center;
}

.more-info {
    grid-row: 2;
    grid-column: 10/span 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.week {
    grid-row: 3;
    grid-column: 1/span 12;
    display: flex;
    flex-direction: row;
}

/* input */
input {
    width: 500px;
    height: 40px;
    text-align: center;
    border: 2px solid #F1F1F1;
    border-radius: 50px;
    padding: 0 15px;

}

#submit {
    width: 100px;
    height: 40px;
    border: 2px solid #F1F1F1;
    border-radius: 50px;

}

.clock {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
}

.clock-text {
    display: flex;
    flex-direction: column;
    margin: 5px;
    justify-content: center;
    align-items: center;

    width: 300px;
    height: 300px;
    flex-shrink: 0;
    border-radius: 50%;
    text-align: center;
    border: solid;
    box-shadow: rgba(255, 255, 255, 0.25) 0px 54px 55px, rgba(255, 255, 255, 0.12) 0px -12px 30px, rgba(255, 255, 255, 0.12) 0px 4px 6px, rgba(255, 255, 255, 0.17) 0px 12px 13px, rgba(255, 255, 255, 0.09) 0px -3px 5px;
}


.wrapper {

    width: 100vw;
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;

}

.widget {
    position: relative;
    display: inline-block;
    box-sizing: content-box;
    width: 100px;
    height: 100px;
    padding: 36px;
    border-radius: 6px;


}

.widget>div {
    font-weight: 300;
    position: absolute;
    bottom: 36px;
    color: #ffffff;
    width: max-content;
}

.degree {
    font-size: 4em;
}

.sub-degree {
    font-size: 4em;
    color: #b8b8b8;
}

.country {
    font-size: 1em;
    line-height: 10px;
    color: #cbcbcb;
}

.icon {
    float: right;
}


.dailyWidget {

    box-shadow: rgba(255, 252, 252, 0.16) 0px 1px 4px;
    border: 0.5px solid gray;
}

.dailyWidget:first-child {
    background-color: #000000;
    display: none;
}

.city_name {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.material-symbols-outlined {
    margin-right: 8px;
}

.more-info-flex {
    display: flex;
    flex-direction: column;

}

/* Media Queries for Responsive Grid Layout */
@media (max-width: 768px) {
    #root {
        grid-template-columns: repeat(6, 1fr);
        justify-items: center;
        /* Center grid items horizontally */
    }

    .search {
        grid-row: 1;
        grid-column: 1 / span 6;
    }

    .temp {
        grid-row: 2;
        grid-column: 1 / span 6;
    }

    .date {
        grid-row: 3;
        grid-column: 1 / span 6;
    }

    .more-info {
        grid-row: 4;
        grid-column: 1 / span 6;
    }

    .week {
        grid-row: 5;
        grid-column: 1 / span 6;
    }

    input {
        width: 100%;
    }

    .widget {
        width: 80px;
        height: 80px;
        padding: 20px;
    }

    .degree {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    #root {
        grid-template-columns: 1fr;
        justify-items: center;
        /* Center grid items horizontally */
    }

    .search,
    .temp,
    .date,
    .more-info,
    .week {
        grid-column: 1;
        text-align: center;
        /* Center text inside each grid item */
    }

    input {
        width: 100%;
        height: 35px;
    }

    #submit {
        width: 100%;
        height: 35px;
    }

    .widget {
        width: 60px;
        height: 60px;
        padding: 16px;
    }

    .degree {
        font-size: 2em;
    }

    .widget,
    .clock-text {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.btn{
    width: 80px;
    height: 40px;
    border: 1px solid #d3d3d3;
}

.hidden{
    display: none;
}



.btn:hover{
    transform: scale(1.04);
    background-color: #21e065;
}

.widget:hover{
    transform: scale(1.04);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}
.active{
    color: green; 
        }
