* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

a {
    color: #1565c0;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

html {
    scrollbar-gutter: stable;
}

header {
    background: #2b4c7e;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 36px;
    font-weight: bold;
}



.chapter-box {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 14px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.chapter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.chapter-box select {
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #bbb;
    max-width: 240px;
}

.chapter-box label {
    font-size: 14px;
    white-space: nowrap;
}

.chapter-box button {
    padding: 10px 22px;
    font-size: 15px;
    border-radius: 6px;
    border: none;
    background: #ff9800;
    color: #000;
    cursor: pointer;
    font-weight: bold;
}

.chapter-box button:hover {
    background: #ffa726;
}

.table-wrapper {
    width: 100%;
    max-height: none;
    overflow-y: visible;
}



table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top;
    word-break: break-word;
}

th {
    background: #2b4c7e;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}

tbody tr:hover {
    background-color: #f1f1f1;
}

button {
    padding: 10px 20px;
    background-color: #2b4c7e;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1c3e6d;
}

input, select, textarea {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #bbb;
    width: 100%;
    margin-bottom: 12px;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

textarea {
    resize: vertical;
}

@media (max-width: 768px) and (orientation: portrait) {
    body {
        font-size: 14px;
    }

    .chapter-box {
        border-radius: 0;
        box-shadow: none;
        padding: 12px;
    }

    .chapter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .chapter-box select,
    .chapter-box button {
        width: 100%;
        max-width: 100%;
    }

    table {
        min-width: 720px;
    }

    th, td {
        font-size: 13px;
        padding: 6px;
    }

    .verset {
        width: 44px;
        font-size: 13px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .table-wrapper {
        overflow-x: hidden;
    }

    table {
        table-layout: fixed;
        width: 100%;
        min-width: unset;
    }

    th, td {
        padding: 4px 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    .verset {
        width: 42px;
        font-size: 11px;
        white-space: nowrap;
    }

    th {
        font-size: 11px;
    }

    td {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

select {
    background-color: #2b4c7e !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border: 1px solid #2b4c7e !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    width: auto;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

select option {
    background-color: #2b4c7e;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
}

select option:checked {
    background-color: #1d3557;
}

.chapter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

footer {
    background-color: #2b4c7e;
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

footer p {
    font-size: 14px;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    color: inherit;
    text-decoration: none;
    background-color: #fff3b0;
    padding: 0 5px;
    border-radius: 3px;
    cursor: pointer;
}

a:focus {
    outline: 1px dotted #aaa;
}

table a {
    color: #000;
    font-weight: normal;
}
