
html {
    font-size: 16px;
}

body {
    font-size: 1.375rem;
    font-family: "Times New Roman", Times, serif;
    line-height: 1.5;
    color: #333;
    margin: 0;
}



/* HEADER STYLE */

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    background-color: #123;
    color: white;
    padding: 0 20px;
    font-family: Arial, sans-serif;
    font-size: 18pt;
}

.top-bar a:visited, 
.top-bar a {
    color: white;
    text-decoration: none;
}

.nav-links ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    align-items: center;
}

.nav-links li {
    display: inline;
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    display: block; /* Makes sure item takes up full height for centering */
}

/* Hide checkbox but keep it accessible */
.toggle-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Container for the hamburger icon */
.toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers bars vertically */
    gap: 6px;                /* space between lines */
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Hamburger bars */
.bar {
    width: 100%;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Optional animation for open/close */
.toggle-checkbox:checked + .toggle-label .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.toggle-checkbox:checked + .toggle-label .bar:nth-child(2) {
    opacity: 0;
}

.toggle-checkbox:checked + .toggle-label .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Initially hide nav links for small screens */
.nav-links {
    display: none; /* Hidden by default */
}

/* Hide display of checkbox input */
.toggle-checkbox {
    display: none;
}



/* SMALLER SCREENS */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 50px;
        right: 0;
        background-color: #333;
        width: 100%;
        text-align: center;
        z-index: 9999;
    }

    .nav-links ul {
        display: block;
        padding: 10px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    /* Show desktop links when hamburger menu is clicked / checkbox is checked */
    .toggle-checkbox:checked + .toggle-label + .nav-links {
        display: block;
    }
}



/* WIDER SCREENS */
@media (min-width: 768px) {
    .nav-links {
        display: flex; /* Show nav links */
        position: static;
        text-align: right;
    }

    .toggle-label {
        display: none; /* Hide hamburger icon */
    }
}



/* CONTAINER */

h1, h2, h3, h4 {
    font-family: Arial, sans-serif;
    color: #369;
}

li {
    margin-bottom: 22px;
}

ul li::marker {
    font-weight: bold;
    color: #777;
}

ol li::marker {
    font-weight: bold;
    color: #777;
}

.container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px; /* Space between columns */
}

.left {
    width: 100%;
    max-width: 700px;
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box; /* Includes padding in width */
    margin: 0 auto; /* Center the column */
}

.right {
    width: 300px;
    background-color: #fff;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
}

.h2link a, .h2link a:visited {
    text-decoration: none;
    color: #444;
}

.sidebar a.heading {
    color: #369;
    font-weight: bold;
    font-size: 24px;
}

.sidebar {
    margin: 40px 0 0 30px;
}

.sidebar a, .sidebar p {
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
    text-decoration: none;
}

.sidebar a:hover {
    background-color: #eee;
}

.cutline {
    font-family: Arial, sans-serif;
    color: #777;
    font-size: 16px;
}

/* ADDED */

.search-box {
    margin-bottom: 10px;
}

#filter {
    margin: 0 10px 0 10px;
}

.popup-information {
    max-height: 120px;
    overflow: auto;
}

.map {
    margin-bottom: 60px;
    height: 550px;
    width: 100%;
}

.view-on-map {
    display: none;
}

.marker-info .view-on-map {
    display: block;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

#map-sidebar {
    margin-top: 40px;
}

.leaflet-bottom a {
    font-size: 12px;
}

.visited {
    color: purple !important;
}

h4 {
    font-size: 18px;
    line-height: 1;
    margin: 0;
}

/* For azb maps - end */

.chart {
    font-family: Arial, sans-serif;
    font-size: 16px;
}
.header {
    font-weight: bold;
    cursor: pointer;
}

.chart-miracles .row {
    display: grid;
    grid-template-columns: 1fr 3fr 2fr 2fr 2fr 2fr;
}

.chart-miracles .cell {
    border: solid 1px #ccc;
    padding: 10px;
    margin-top: -1px;
    margin-left: -1px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.chart-books .row {
    display: grid;
    grid-template-columns: 2fr 3fr 2fr 2fr 2fr 2fr 2fr;
}

.chart-books .cell {
    border: solid 1px #ccc;
    padding: 10px;
    margin-top: -1px;
    margin-left: -1px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.chart-prophets .row {
    display: grid;
    grid-template-columns: 1fr 3fr 3fr 1fr 2fr;
}

.chart-prophets .header {
    font-weight: bold;
}

.chart-prophets .cell {
    border: solid 1px #ccc;
    padding: 10px;
    margin-top: -1px;
    margin-left: -1px;
}

.chart-messianic .row {
    display: grid;
    grid-template-columns: 1fr 4fr 10fr 6fr;
}

.chart-messianic .header {
    font-weight: bold;
}

.chart-messianic .cell {
    border: solid 1px #ccc;
    padding: 10px;
    margin-top: -1px;
    margin-left: -1px;
}

.support {
    margin: 50px 0 50px 0;
    background: #fed;
    border-radius: 5px;
    text-align: center;
    padding: 10px;
}

.support table {
    width: 100%;
    text-align: center;
    font-size: 20px;
    color: #333;
    padding-bottom: 5px;
}

.support select {
    height: 36px;
    font-size: 14px;
    color: #333333;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: white;
}

.disable-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sort-by { 
    position: relative;
}

.sort-by:before,
.sort-by:after {
    border: 4px solid transparent;
    content: "";
    display: block;
    height: 0;
    right: 5px;
    top: 50%;
    position: absolute;
    width: 0;
}

.sort-by:before {
    border-bottom-color: #666;
    margin-top: -9px;
}

.sort-by:after {
    border-top-color: #666;
    margin-top: 1px;
}

.sort-up {
    background: orange;
    color: red;
}

.sort-down {
    background: yellow;
    color: blue;
}

.footer {
    clear: both;
    border-top: solid 1px #ddd;
    padding: 20px;
    text-align: center;
}