*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: "Poppins", sans-serif;
}

.banner{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#banner_img{
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    object-position: center;
}

#banner_link{
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #2d3c91;
    padding: 10px;
    border-radius: 1.2rem;
    margin-top: 20px;
}

.main-container{
    display: flex;
    margin-top: 3rem;
}

.main-left-wrapper{
    width: 50%;
}

.radar-frame{
    /* height: 100vh; */
}
.radar-frame iframe{
    height: 100%;
}
.current_obs{
    width: 50%;
}

.top-bar{
    background: #ebebeb;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-right: none;
    border-left: none;
}

.top-bar h2{
    color: #2d3c91;
}

.mid-bar{
    margin-top: 1rem;
    margin-left: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    box-shadow: 7px 6px 5px -4px #0000001a;
    border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
#weather_icon{
    width: 150px;
    height: 150px;
    border-radius: 6px;
}

.left-wrapper{
    display: flex;
    gap: 1rem;
}

.left-wrapper .info{
    display: flex;
    flex-direction: column;
    color: #323232;
    gap: 0.5rem;
}

.left-wrapper .info h1{
    font-size: 3.5rem;
    line-height: 1;
}

.left-wrapper .info h5{
    font-size: 1.5rem;
    font-weight: 600;
}

.center-wrapper{
    display: flex;
    flex-direction: column;
}
.center-wrapper div{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    color: #323232;
}

.center-wrapper div h4{
    text-align: right;
    justify-self: flex-end;
}
.center-wrapper div p{
    text-align: left;
    justify-self: flex-start;
}

.top-bar-extended{
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.forecast-container{
    /* margin-top: 4rem; */
}

.slick-carousel {
    width: 80%;
    margin: auto;
}

.forecast-item {
    text-align: center;
    display: flex !important;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    color: #323232;
}

.forecast-item img {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    margin: 0 auto ;
}

.forecast-description{
    font-size: 12px;
    line-height: 1.1;
}

.forecast-item .temp{
    color: #49a8dc;
    font-weight: bold;
}

.forecast-item .red {
    color: #f0595c;
    font-weight: bold;
}



.detailed-forecast{
    margin-top: 4rem;
}
.detailed-forecast h1{
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    color: #2d3c91;
    font-weight: 600;
    background: #ebebeb;
    border-right: none;
    border-left: none;
}

.detailed-forecast-item{
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 10px;
}

.detailed-forecast-item.even-item{
    background: #ebf5fa;
}
.detailed-forecast-item .forecast-label{
    justify-self: end;
    color: #323232;
}
.detailed-forecast-item .forecast-description-long{
    justify-self: start;
    font-size: 14px;
}

#static-wbgt-table{
    padding: 10px;
}

#static-wbgt-table table caption{
    border: 2px solid black;
    border-bottom: none;
    padding: 10px;
    font-weight: 700;
    font-size: 18px;
}

#static-wbgt-table tbody tr td:first-child {
    font-weight: 600;
}
#static-wbgt-table tbody tr td:not(:first-child) {
    font-size: 14px;
}

#static-wbgt-table table th, td{
    padding: 10px;
}

.wbgt-section{
    padding: 1rem;
}

.forecast-item .forecast-label{
    min-height: 48px;
}

.pc-frame{
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

@media screen and (max-width: 1024px) {
    .main-container{
        flex-direction: column;
    }
    .current_obs{
        width: 100%;
    }
    .main-left-wrapper{
        width: 100%;
    }

    .wbgt-section h3{
        text-align: center;
    }
    #wbgt-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .radar-frame{
        margin-top: 2rem;
        height: 70vh !important;
    }
    .pc-frame{
        display: none;
    }

    .mobile-frame{
        display: block !important;
        border-top: 1px solid rgba(0, 0, 0, 0.10);
    }
}

@media screen and (max-width: 600px) {
    .mid-bar{
        flex-direction: column;
        gap: 2rem;
    }
    
    .forecast-item img {
        width: 90px;
        height: 90px;
    }

    .forecast-item .forecast-label{
        font-size: 12px;
        min-height: 36px;
    }

    .top-bar p{
        font-size: 14px;
    }
    .top-bar h2{
        font-size: 20px;
    }
    .detailed-forecast h1{
        font-size: 21px;
    }
    .detailed-forecast-item .forecast-label{
        font-size: 14px;
    }
    .detailed-forecast-item .forecast-description-long{
        font-size: 13px;
    }

    .wbgt-section h3{
        font-size: 17px;
    }

    #static-wbgt-table table caption{
        font-size: 16px;
    }

    #static-wbgt-table table th{
        font-size: 15px;
    }
    #static-wbgt-table tbody tr td:not(:first-child){
        font-size: 12px;
    }

}

@media screen and (max-width: 450px) {
    .wbgt-section{
        padding-inline: 0;
    }
    .wbgt-info{
        padding: 0;
    }
    #wbgt-info {
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch;
        display: flex;
        padding-inline: 2rem;
    }
    #wbgt-info table {
        width: 100%;
    } 
    #wbgt-info table tbody tr td:first-child{
        white-space: nowrap;
    }

    .detailed-forecast-item{
        grid-template-columns: 100px 1fr;
    }
    .detailed-forecast-item .forecast-label{
        justify-self: unset;
    }

    .forecast-item{
        gap: 0.5rem;
    }

    .slick-dots{
        bottom: -55px !important;
    }
}

@media screen and (max-width: 350px) {
    #banner_link{
        margin-top: 45px;
    }

    #weather_icon{
        width: 100px;
        height: 100px;
    }
    .left-wrapper .info h1{
        font-size: 2.5rem;
    }
    .left-wrapper .info h5{
        font-size: 1rem;
    }
    .left-wrapper .info p{
        font-size: 14px;
    }
    .center-wrapper div h4{
        font-size: 15px;
    }

    .forecast-item .forecast-label{
        font-size: 10px;
        min-height: 30px;
    }
    .forecast-item img{
        width: 70px;
        height: 70px;
    }
    .forecast-description{
        font-size: 10px;
    }
    .forecast-item .red, .forecast-item .temp{
        font-size: 12px;
    }

    .detailed-forecast-item .forecast-label{
        font-size: 12px;
    }
    .detailed-forecast-item .forecast-description-long{
        font-size: 11px;
    }
    .detailed-forecast-item {
        gap: 0.5rem;
    }
    .top-bar h2{
        font-size: 16px;
    }
    .top-bar p{
        font-size: 12px;
    }
    .detailed-forecast h1{
        font-size: 16px;
    }

    #wbgt-info table{
        font-size: 12px;
    }
    .wbgt-section h3{
        font-size: 14px;
    }
    #static-wbgt-table table caption{
        font-size: 14px;
    }
    #static-wbgt-table table th{
        font-size: 13px;
    }
    #static-wbgt-table tbody tr td{
        font-size: 12px;
    }
    #static-wbgt-table tbody tr td:not(:first-child){
        font-size: 10px;
        padding-inline: 4px;
    }
    .center-wrapper div h4{
        font-size: 12px;
    }
    .center-wrapper{
        font-size: 12px;
    }
}