/* Fonts

/* Buttons, Links, Detail, Instruction, Copyright
   Font: poppins-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/poppins-v23-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('/fonts/poppins-v23-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/fonts/poppins-v23-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('/fonts/poppins-v23-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('/fonts/poppins-v23-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('/fonts/poppins-v23-latin-regular.svg#Poppins') format('svg'); /* Legacy iOS */
}

/* Heading & Title Font
   Font: cinzel-regular - latin 
   !Replace with Abobe Trajan Pro before Production
*/
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Cinzel';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/cinzel-v25-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('/fonts/cinzel-v25-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/fonts/cinzel-v25-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('/fonts/cinzel-v25-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('/fonts/cinzel-v25-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('/fonts/cinzel-v25-latin-regular.svg#Cinzel') format('svg'); /* Legacy iOS */
}

/*  Reading & Body Font
    Font: eb-garamond-regular - latin 
    !Replace with Adobe Garamond before Production
*/
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'EB Garamond';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/eb-garamond-v31-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('/fonts/eb-garamond-v31-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/fonts/eb-garamond-v31-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
    url('/fonts/eb-garamond-v31-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
    url('/fonts/eb-garamond-v31-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
    url('/fonts/eb-garamond-v31-latin-regular.svg#EBGaramond') format('svg'); /* Legacy iOS */
}


/* Global styles */
html, body {
    font-family: Cinzel, serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: white;
    color: black;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

p {
    font-family: 'EB Garamond', Times, serif;
    text-align: justify;
}

h1, h2, h3, h4 {
    font-family: Cinzel, serif;
}

/* Full-height layout */
.full-height-container {
    min-height: calc(var(--vh, 1vh) * 100 + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    /* Dynamic nav bar height */
    /* padding-bottom: calc(var(--nav-bar-height, 60px) + env(safe-area-inset-bottom, 0px)); */
    padding-bottom: calc(var(--nav-bar-height, 10px) + env(safe-area-inset-bottom, 0px));
}

.top-section {
    height: 10vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3px 0px 1px 0px;
    background-color: #4c2878;
}

    /* Ensure logo fits within top-section */
    .top-section img {
        height: 15vh; 
        width: auto; /* Maintain aspect ratio */
    }

    /* Style for the h3 text */
    .top-section h3 {
        font-family: Cinzel, serif; /* Match your heading font */
        color: white; /* Preserve existing color */
        font-size: 1.5rem; /* Adjust for balance */
        margin: 0 0 0 1rem; /* Maintain spacing from logo */
    }

    /* Style for the h4 text */
    .top-section h4 {
        font-family: Cinzel, serif; /* Match your heading font */
        color: white; /* Preserve existing color */
        font-size: 1.2rem; /* Adjust for balance */
        margin: 0 0 0 1rem; /* Maintain spacing from logo */
    }

.publisherCheckTitleText {   
    padding-top: 10px;
    font-size: 1.1rem;
    font-weight:bold;
}

.preLaunchText {
    padding-top: 10px;
    text-align: left;
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .top-section img {
        max-height: 60%; /* Reduce logo size on smaller screens */
    }

    .top-section h3 {
        font-size: 1.5rem; /* Smaller font size for text */
        margin-left: 0.5rem; /* Reduce spacing */
    }
}

.middle-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 20px 15px;
    background-color: white;
    overflow-y: auto;
}

.bottom-section {
    /* flex: 0 0 auto; */
    margin-top: auto; /* Pushes it to the bottom of flex container */
    background-color: white;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Environment Display */
.env-info-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: flex-start; /* Align items at the top */
    gap: 20px; /* Space between the two divs */
    margin: 0 auto; /* Ensure container is centered */
    padding: 20px; /* Optional: Add padding for better spacing */
    max-width: 800px; /* Optional: Limit width for readability */
}

.env-info-labels,
.env-info-values {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    line-height: 1.6; /* Adjust line spacing for readability */
}

.env-info-labels {
    text-align: right; /* Align labels to the right for clean pairing */
    font-weight: bold; /* Ensure bold text (reinforce <b> tags) */
}

.env-info-values {
    text-align: left; /* Align values to the left */
}

/* Navigation bar styles */
.nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: var(--banner-background-color, #b8860b) !important;
    padding: 15px 0;
    border-top: 1px solid black;
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0px); /* Above browser nav bar */
    width: 100%;
    height: var(--nav-bar-height, 60px); /* Define height explicitly */
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional: visual separation */
}

.nav-icon {
    color: black;
    text-decoration: none;
    padding: 8px;
}

    .nav-icon.active-nav-icon {
        color: #8b0000;
    }

    .nav-icon svg {
        width: 48px;
        height: 48px;
    }

/* Footer styles */
.footer {
    color: black;
    text-align: center;
    padding: 10px 0;
    line-height: 1.5;
    margin-bottom: var(--nav-bar-height, 20px); /* Match nav bar height */
    z-index: 999;
    position: relative;
}

    .footer a {
        color: black;
        text-decoration:underline;
        margin: 0 10px;
    }

        .footer a:hover {
            text-decoration: underline;
        }

/* Card styles */
.card {
    background-color: white;
    border: 1px solid #b8860b;
    margin: 0 15px 15px 15px;
    width: calc(100% - 30px);
    max-width: 800px;
    padding: 0;
}

/* Audio player styles */
.custom-audio {
    display: none;
}

.progress-container {
    width: 260px;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    position: relative;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: darkred;
    border-radius: 5px;
    transition: width 0.1s linear;
}

    .progress-bar.downloading {
        background-color: #ff9800;
    }

.time-display {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.play-pause-button,
.reset-button {
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .play-pause-button:hover,
    .reset-button:hover {
        background-color: #a10000;
    }

.play-icon,
.pause-icon,
.reset-icon {
    width: 20px;
    height: 20px;
}

/* Form switch styles */
.form-switch-container {
    margin-top: 1rem;
    text-align: center;
}

.label-text {
    margin-left: 8px;
    font-size: 1rem;
}

/* ... (Remaining styles unchanged: .card-header, .form-check-input, .custom-switch, .music-switch, .custom-button, etc.) ... */
.label-text {
    margin-left: 8px;
    font-size: 1rem;
}

.form-check-input:checked {
    background-color: #8b0000; /* Dark red when checked */
    border-color: #8b0000; /* Match border to background */
}

.form-check-input:focus {
    border-color: #8b0000; /* Dark red on focus */
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25); /* Dark red shadow */
}

.form-check-input:hover:not(:disabled) {
    background-color: #a10000; /* Slightly lighter red on hover */
}

/* Language Selection Switch */
.form-check-input.custom-switch {
    width: 4rem; /* 2x default width */
    height: 1.65rem;
    background-color: darkred;
    border-color: darkred;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

    .form-check-input.custom-switch:focus {
        box-shadow: none;
    }

    .form-check-input.custom-switch::before {
        position: absolute;
        content: "";
        width: 1.3rem;
        height: 1.3rem;
        background-color: white;
        border-radius: 50%;
        top: 0.1rem;
        left: 0.1rem;
        transition: transform 0.3s ease-in-out;
    }

    .form-check-input.custom-switch:checked {
        background-color: darkred;
        border-color: darkred;
    }

        .form-check-input.custom-switch:checked::before {
            transform: translateX(2.4rem);
        }

/* Include Background Music Switch */
.form-check-input.music-switch {
    width: 4rem; /* 2x width */
    height: 1.65rem;
    background-color: gray;
    border-color: gray;
    position: relative;
    transition: background-color 0.3s, border-color 0.3s;
}

    .form-check-input.music-switch:focus {
        box-shadow: none;
    }

    .form-check-input.music-switch::before {
        position: absolute;
        content: "";
        width: 1.3rem;
        height: 1.3rem;
        background-color: white;
        border-radius: 50%;
        top: 0.1rem;
        left: 0.1rem;
        transition: transform 0.3s ease-in-out;
    }

    .form-check-input.music-switch:checked {
        background-color: darkred;
        border-color: darkred;
    }

        .form-check-input.music-switch:checked::before {
            transform: translateX(2.4rem);
        }

/* Button styles */
.custom-button {
    background-color: #8b0000; /* Dark red */
    color: white; /* White text */
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: inline-block;
}

    .custom-button:hover {
        background-color: #a10000; /* Slightly lighter red on hover */
    }

/* From _Layout.cshtml.css */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: darkred;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2; /* Default Bootstrap primary */
    border-color: #1861ac;
}

    .btn-primary.custom-button {
        background-color: #8b0000; /* Override with custom dark red */
        border-color: #8b0000;
    }

        .btn-primary.custom-button:hover {
            background-color: #a10000; /* Override hover */
            border-color: #a10000;
        }

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Social Media Sharing */
.social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.social-button {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
    width: fit-content;
}

    .social-button.twitter {
        background-color: #1DA1F2;
    }

    .social-button.instagram {
        background-color: #E1306C;
    }

    .social-button.tiktok {
        background-color: #000000;
    }

/* 
 * Book list scroll container 
 */
.book-list {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%; /* Allow it to grow within its parent */
    width: 100%;
    padding: 10px;
    gap: 10px;
}

/* Each book item as a horizontal row */
.book-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

    .book-item:hover {
        background-color: #eee;
    }

/* Thumbnail styling */
.book-thumbnail {
    width: 60px;
    height: auto;
    object-fit: contain;
    margin-right: 15px;
}

/* Book text block */
.book-info {
    display: flex;
    flex-direction: column;
}

.book-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0;
    color: #8b0000;
}

.book-language {
    font-size: 0.95rem;
    color: #555;
    margin: 4px 0 0 0;
}

/* Ensure scroll area takes full height of middle-section */
.library-section {
    flex: 1;
    overflow: hidden; /* Prevent bleed beyond */
}

.middle-section.library-section .book-list {
    height: 100%;
}

/* Table layout for views/request/index.cshtml */
.request-index-table {
    vertical-align: top;    
}
    .request-index-table-col_1 {
        text-align: right;
        vertical-align: top;
    }

    .request-index-table-col_2 {
        text-align: left;
        padding-left: 5px;
        color: darkred;
    }

.request-index-img {
    width: 80%;
    max-width: 800px; /* Match the max-width of the text container */
    margin: 20px auto 0; /* Center horizontally with top margin */
    display: block; /* Ensure block-level for margin auto to work */
}