* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 0px 5px 5px 5px;
    background-color: #f0f2f5;
    color: #1c1e21;
    line-height: 1.5;
}
.container {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.sticky-header {
    top: 0px;
    position: sticky;
    width: 100%;
    z-index: 1300;
}
.header-top {
    display: flex;
    background-color: #198754;
    padding: 10px 5px;
    height: auto;
    border-bottom: 1px solid #7c7f83af;
}
#check-btn {
    color: white;
    padding: 5px;
    font-size: 30px;
    cursor: pointer;
    width: 20%;
}
#header-title {
    color: white;
    font-size: 20px;
    margin-top: 10px;
    text-align: center;
}
ul.location-selector-container {
    text-align: center;
    background-color: #414449;
    padding: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
#location-selector {
    list-style-type: none;
    padding: 0; display: flex;
}
#location-search, #location-select {
    width: 100%;
    box-sizing: border-box;
    padding: 2px 10px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#location-search {
    font-size: 1em;
    margin-left: 2px;
}
#location-select {
    margin-right: 2px;
}
.sidebar {
    width: auto;
}
ul.items {
    height: 100vh;
    width: 200px;
    background-color: #198754;
    padding: 5px 10px;
    top: 0px;
    left: -200px;
    position: fixed;
    z-index: 1400;
    transition: all .5s;
    overflow-y: scroll;
}
ul.items li {
    margin-left: 5px;
    border-bottom: 1px solid #a0a1a398;
}
.sidebar-header {
    color: white;
    font-size: 30px;
    padding-bottom: 5px;
    padding-left: 10px;
    line-height: 50px;
}
#cancel {
    padding: 5px;
    top: 0px;
    right: 10px;
    position: absolute;
    cursor: pointer;
}
.sidebar-link {
    color: white;
    line-height: 40px;
    padding: 10px 5px;
    transition: all .5s;
}
.sidebar-link:hover {
    padding-left: 10px;
    color: red;
}
#check {
    display: none;
}
#check:checked ~ ul.items {
    left: 0px;
}
.section-container {
    margin-top: 20px;
}
.ad-mobile {
    display: block;
}
.ad-pc {
    display: none;
}
#current-day-date-and-time {
    background-color: #198754;
    padding: 10px 5px;
    margin-bottom: 10px;
    color: white;
    font-size: 18px;
    border: 1px solid gray;
    border-radius: 5px;
    text-align: center;
}
#current-date, #current-time {
    margin-left: 15px;
}
.label {
    font-size: 1.1em;
    color: #242629;
    margin-bottom: 5px;
    font-weight: 500;
}
div.display-box {
    border: 1px solid #198754;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}
.time-header {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    font-weight: 600;
}
.time {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}
#current, #next {
    color: #198754;
    background-color: #31a06c31;
    border-left: 5px solid #198754;
}

/* --- NEW: Styles for the Monthly Chart --- */
h2.monthly-chart-header {
    color: #242629;
    margin-bottom: 5px;
}
#monthly-chart-header {
    color: rgb(223, 34, 34);
}
table {
    width: 100%;
    border-collapse: collapse;
    border: 5px solid #198754;
    font-size: 0.9em;
}
#monthly-chart-thead {
    top: 105px;
    position: sticky;
}
th, td {
    border: 1px solid #ddd;
    padding: 2px 1px;
    text-align: center;
}
th {
    color: white;
    background-color: #198754;
    font-size: 15px;
    font-weight: 600;
    padding: 3px 1px;
}
/* tr:nth-child(even) {
    background-color: #f9f9f9;
} */
td.date {
    color: white;
    background-color: #198754;
    font-weight: bold;
}
td.fazr {
    background-color: #1a0fb45d;
}
td.sunrise {
    background-color: #f0bc127a;
}
td.zuhr {
    background-color: #19875456;
}
td.asr {
    background-color: #0057b35d;
}
td.magrib {
    background-color: #ce1f135d;
}
td.isha {
    background-color: #e61a8a67;
}

.footer {
    justify-content: center;
    background-color: #198754;
    padding: 10px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    display: flex;
}
.footerbar {
    width: 30%;
}
.footer-item {
    line-height: 25px;
}
.footer-item a {
    padding: 5px 10px;
    color: white;
    font-size: 15px;
    transition: all .5s;
}
.footer-item a:hover {
    color: red;
}
.ad-right-sidebar {
    display: none;
}

@media screen and (min-width: 800px){
    .ad-mobile {
        display: none;
    }
    .ad-pc {
        display: block;
    }
    .ad-right-sidebar {
        display: block;
    }
    #check-btn, #cancel {
        display: none;
    }
    .container {
        justify-content: center;
    }
    .main-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .section-container {
        width: 55%;
    }
    #monthly-chart-thead {
        top: 120px;
    }
    .sidebar {
        width: auto;
    }
    ul.items {
        left: 5px;
        top: auto;
        bottom: 0px;
        width: 20%;
        height:85%;
        padding-top: 20px;
        z-index: 1200;
    }
    .section-main-container {
        width: 100%;
    }
    .ads-bottom {
        display: block;
        top: auto;
        right: 5px;
        width: 20%;
        position: fixed;
        z-index: 1200;
    }
}