:root {
    /* Color styles */
    --gray---gray-0: #FFFFFF;
    --gray---gray-25: #FCFCFC;
    --gray---gray-50: #FCFCFC;
    --gray---gray-75: #F5F5F5;
    --gray---gray-100: #EDEDED;
    --gray---gray-200: #E4E5E6;
    --gray---gray-300: #D4D6D9;
    --gray---gray-400: #BDC3C9;
    --gray---gray-500: #A2A8B0;
    --gray---gray-600: #828A94;
    --gray---gray-700: #697380;
    --gray---gray-800: #4E5A6B;
    --gray---gray-850: #303B4C;
    --gray---gray-900: #0A1B36;
    --gray---gray-950: #061121;
    --gray---gray-1000: #000000;
    --red---red-900: #7A1E14;
    --red---red-800: #961F11;
    --red---red-700: #C93626;
    --red---red-600: #E05444;
    --red---red-500: #F06F60;
    --red---red-400: #EF8A7F;
    --red---red-300: #F7A399;
    --red---red-200: #FBC4BE;
    --red---red-100: #FCEDEB;
    --orange---orange-900: #7E4408;
    --orange---orange-800: #B96613;
    --orange---orange-700: #D97E24;
    --orange---orange-600: #F39A41;
    --orange---orange-500: #F5A95C;
    --orange---orange-400: #FBBD7E;
    --orange---orange-300: #FFD2A5;
    --orange---orange-200: #FFE3C7;
    --orange---orange-100: #FFF2E5;
    --yellow---yellow-900: #704800;
    --yellow---yellow-800: #C77A0F;
    --yellow---yellow-700: #E5981C;
    --yellow---yellow-600: #F3B441;
    --yellow---yellow-500: #F8C363;
    --yellow---yellow-400: #FBD185;
    --yellow---yellow-300: #FFE2AD;
    --yellow---yellow-200: #FFEBC7;
    --yellow---yellow-100: #FFF6E7;
    --green---green-900: #134A36;
    --green---green-800: #186146;
    --green---green-700: #207D5E;
    --green---green-600: #28AB7D;
    --green---green-500: #41BF93;
    --green---green-400: #62CEA8;
    --green---green-300: #87E1C2;
    --green---green-200: #BAECDA;
    --green---green-100: #E7FFF6;
    --mint---mint-900: #134C41;
    --mint---mint-800: #1A6758;
    --mint---mint-700: #207D6D;
    --mint---mint-600: #28AB94;
    --mint---mint-500: #41C0AA;
    --mint---mint-400: #6AD1BF;
    --mint---mint-300: #93D7CB;
    --mint---mint-200: #ACE9DE;
    --mint---mint-100: #E0FDF8;
    --teal---teal-900: #134A4D;
    --teal---teal-800: #1A6367;
    --teal---teal-700: #20757D;
    --teal---teal-600: #28A2AB;
    --teal---teal-500: #5BBAC0;
    --teal---teal-400: #77C5CB;
    --teal---teal-300: #A4D9DD;
    --teal---teal-200: #B6E6EA;
    --teal---teal-100: #E5FDFF;
    --blue---blue-900: #29435C;
    --blue---blue-800: #395D80;
    --blue---blue-700: #5082B2;
    --blue---blue-600: #63A0DC;
    --blue---blue-500: #8CB9E4;
    --blue---blue-400: #A0C9F0;
    --blue---blue-300: #BAD6F3;
    --blue---blue-200: #C6DDF3;
    --blue---blue-100: #ECF6FF;
    --slate---slate-900: #304559;
    --slate---slate-800: #3C5870;
    --slate---slate-700: #496B8A;
    --slate---slate-600: #5C87AD;
    --slate---slate-500: #7BA6CC;
    --slate---slate-400: #8CB0CF;
    --slate---slate-300: #9EBCD5;
    --slate---slate-200: #ADCBE5;
    --slate---slate-100: #E8F0F8;
    --purple---purple-900: #2E3A57;
    --purple---purple-800: #3D4D73;
    --purple---purple-700: #4C608F;
    --purple---purple-600: #5C74AD;
    --purple---purple-500: #768CBF;
    --purple---purple-400: #899AC2;
    --purple---purple-300: #9CAACD;
    --purple---purple-200: #B0BBD4;
    --purple---purple-100: #EBF0FC;
    --raspberry---raspberry-900: #692A41;
    --raspberry---raspberry-800: #8F415E;
    --raspberry---raspberry-700: #BA4A73;
    --raspberry---raspberry-600: #E56996;
    --raspberry---raspberry-500: #EB84A9;
    --raspberry---raspberry-400: #F58AB1;
    --raspberry---raspberry-300: #F9A0C0;
    --raspberry---raspberry-200: #FEB9D2;
    --raspberry---raspberry-100: #FEEFF5;
    --pink---pink-900: #842929;
    --pink---pink-800: #BB3737;
    --pink---pink-700: #E15656;
    --pink---pink-600: #FC7272;
    --pink---pink-500: #FF8F8F;
    --pink---pink-400: #FB9595;
    --pink---pink-300: #FCAEAE;
    --pink---pink-200: #FDC6C6;
    --pink---pink-100: #FFEFEF;
    --peach---peach-900: #8D3B0F;
    --peach---peach-800: #B85520;
    --peach---peach-700: #DB7F4E;
    --peach---peach-600: #FC9A65;
    --peach---peach-500: #FDB791;
    --peach---peach-400: #FFC3A3;
    --peach---peach-300: #FFD2BA;
    --peach---peach-200: #FFDCC9;
    --peach---peach-100: #F8F1E8;

    /* Gradient Variables */
    --gradient-body-background: linear-gradient(180deg, #F0F1F1 0%, #CFD9DA 52.6%, #B1C1C9 100%);
    --gradient-content-area: linear-gradient(180deg, #F8F9F8 0%, #E9EAE7 100%);
    --gradient-card-background: linear-gradient(180deg, #FCFCFC 0%, #FCFCFC 100%);
    --gradient-entity-header-vignette: linear-gradient(325deg, rgba(48, 69, 89, 0.00) 40%, rgba(48, 69, 89, 1) 100%);
    --gradient-modal-background: linear-gradient(112deg, rgba(255, 255, 255, 0.20) 0%, rgba(0, 0, 0, 0.20) 99.45%), rgba(6, 17, 33, 0.60);
    --gradient-modal-content: linear-gradient(180deg, var(--gray---gray-50) 0%, var(--gray---gray-100) 100%), var(--gray---gray-0);
}










* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Prevent blue highlight on touch */
}

html {
    scroll-behavior: smooth; /* Smooth scrolling */
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu;
    line-height: 1.6;
    color: var(--gray---gray-800);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    -webkit-font-smoothing: antialiased; /* Improve text rendering */
    min-height: 100vh; /* Minimum height of the viewport */
    background: var(--gradient-body-background);
    background-repeat: no-repeat;
    background-size: cover;
}

.content-area{
    background: var(--gradient-content-area);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 50px;
    }
    @media (max-width: 600px) {
        /* Adjustments for very small screens */
        .content-area {
            margin: 0; /* Removes margin when view is 600px or less */
        }
    }

    @media (min-width: 601px) and (max-width: 1199px) {
        /* Adjustments for screens between 601px and 1199px */
        .content-area {
            margin: 0 20px; /* Sets horizontal margins to 20px */
        }
    }

.mainContent{
    padding: 12px;
    min-height: calc(100vh - 100px);
}







button, .button {
    position: relative;
    cursor: pointer;
/*    flex: 1;*/
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 16px;
    font-style: normal;
    font-weight: 510;
    line-height: normal;
    border: none;

    color: var(--blue---blue-700);
    background-color: var(--gray---gray-0);
    border: 1px solid var(--gray---gray-400);
    }
    button:hover, .button:hover {
        color: var(--blue---blue-900);
        border: 1px solid var(--gray---gray-850);
        }

button.primary, .button.primary {
    color: var(--gray---gray-0);
    background: var(--raspberry---raspberry-600);
    border: none;
}
    button.primary:hover, .button.primary:hover {
        color: var(--gray---gray-0);
        background: var(--raspberry---raspberry-700);
    }
    button.primary:disabled, .button.primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

button.secondary, .button.secondary {
    color: var(--raspberry---raspberry-600);
    background-color: var(--gray---gray-0);
    border: 1px solid var(--raspberry---raspberry-600);
}
    button.secondary:hover, .button.secondary:hover {
        color: var(--raspberry---raspberry-700);
        border: 1px solid var(--raspberry---raspberry-700);
    }
    button.secondary:disabled, .button.secondary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

button.ready{
        color: var(--gray---gray-0);
        border: 1px solid var(--green---green-700);
        background: var(--green---green-700);
    }

    .button-group {
        display: flex;
        flex-wrap: wrap;
    }
    .button-option {
        margin: 5px;
        padding: 10px 20px;
        border: 1px solid var(--gray---gray-300);
        border-radius: 4px;
        background-color: #f9f9f9;
        cursor: pointer;
        font-size: 16px;
        transition: background-color 0.3s;
    }
    .button-option.selected {
        background-color: var(--raspberry---raspberry-600);
        color: white;
    }
    .button-option:hover {
        border: 1px solid var(--raspberry---raspberry-700);
    }



/* Viewport and Zoom Control */
meta[name="viewport"] {
    content: "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"; /* Responsive and prevent zooming */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
}

/* Links */
a {
    color: var(--blue---blue-700);
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* Remove tap highlight on iOS */
}


/* Spinner */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.small_spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #333;
    animation: spin 1s linear infinite;
    margin: 0px 6px;
}


    .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
    }
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }



/* Form Inputs */
    .form-group {
        margin-bottom: 20px;
    }
    label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
    }
    input[type="text"], textarea, select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }
    textarea {
        height: 100px;
    }



/* Navigation */
.beta{
    display: inline-block;
    font-size: 12px;
    color: var(--gray---gray-0);
    background-color: var(--raspberry---raspberry-600);
    border-radius: 4px;
    padding: 0px 6px;
    text-transform: uppercase;
    margin: 0px 4px;
    }
.navbar {
    display: flex;
    padding: 12px 10px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-bottom: 1px solid var(--gray---gray-100);
    background: var(--gray---gray-0);
    }
.navbar .credit-count {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    padding: 0px 12px;
    color: var(--blue---blue-900);
    height: 24px;
    }
    .navbar .credit-count i {
        color: var(--orange---orange-600);
        font-size: 20px;
        margin: 0px 8px 0px 0px;
        }
    .nav-link{
        display: flex;
        padding: 0px 12px;
        align-items: flex-start;
        gap: 10px;
        color: var(--blue---blue-900);
        font-size: 14px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
        text-transform: uppercase;
    }
    .navbar-left {
        display: flex;
        align-items: center;
    }
    .navbar-right {
        display: flex;
        align-items: center;
    }
    .navbar-menu{
        position: relative;
        height: 24px;
        }
        a.icon-menu-toggle {
            padding: 0px 4px;
            }

    .navbar-logo {
        height: 24px;
        width: auto;
        margin-right: 8px;
    }
    .navbar-brand {
        margin-right: 20px;
        padding: 0px;
        color: var(--gray---gray-700, #697380);
        font-size: 22px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        text-decoration: none;
    }

    a.icon-menu-toggle i{
        color: var(--blue---blue-900);
    }

    .overlay-menu {
        display: none;
        position: absolute; /* Adjusted from fixed to absolute */
        top: 100%; /* Make it appear right below the navbar */
        right: 0;
        z-index: 1; /* Sit on top */
        overflow-x: hidden; /* Disable horizontal scroll */
        border-radius: 4px;
        background: var(--gray---gray-0);
        box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
        width: auto; /* Adjust width as needed */
        min-width: 200px; /* Minimum width to ensure menu items do not look squished */
    }
        @media (max-width: 768px) {
            /* Adjustments for mobile screens */
            .overlay-menu {
                width: 100%; /* Optional: Make the menu full-width on smaller screens */
            }
        }
        .menuItems{
            display: flex;
            padding: 4px;
            flex-direction: column;
            align-items: flex-start;
            gap: 4px;
            align-self: stretch;
            }
            .menuDivider {
                display: block;
                border-bottom: 1px solid #EDEDED;
                height: 1px;
                width: 100%;
            }
            .menuSectionHeader{
                display: block;
                text-transform: uppercase;
                padding: 2px 8px;
                font-size: 12px;
            }
            .menuItems a {
                display: flex;
                padding: 6px 8px;
                align-items: center;
                gap: 8px;
                align-self: stretch;

                text-decoration: none;
                color: var(--blue---blue-900);
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                
                transition: background-color 0.3s;
                }
                .menuItems a.active {
                    background-color: #007bff; /* Active item background color */
                    color: white; /* Active item text color */
                    }
                .menuItems a:hover {
                    background-color: var(--gray---gray-200);
                    }



/* Notification Banner */
.notification-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--green---green-600);
    color: var(--gray---gray-0);
    text-align: center;
    padding: 12px;
    z-index: 1000;
    display: none; /* Hidden by default */
    opacity: 0; /* Start invisible */
    transition: opacity 0.5s ease-in-out; /* Smooth transition for fading */
    }

    .notification-banner.show {
        display: block;
        opacity: 1; /* Fully visible */
    }

    .notification-banner.hide {
        opacity: 0; /* Start fading out */
    }

    .notification-banner.error {
        background-color: var(--red---red-600);
    }


/* Utility Classes */
.text-center {
    text-align: center;
}

/* Media Queries */
@media (min-width: 576px) {
    .container {
        padding: 0 30px;
    }
}

@media (min-width: 768px) {
    .navbar {
        padding: 10px 20px;
    }
}

@media (min-width: 992px) {
    .navbar {
        padding: 10px 40px;
    }
}

/* Touch-friendly Forms */
form input[type="button"], form input[type="submit"], form button {
    padding: 15px 20px; /* Larger touch targets */
    font-size: 16px; /* Readability */
}

/* Prevent Zoom on Input Focus */
form input[type="text"], form input[type="email"], form input[type="password"] {
    font-size: 16px; /* Prevent zoom on iOS */
}



/* Login Page Styles */
    .listCard.login{
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 32px;
        }


    /* Brand Header */
    .brandHeader {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        padding: 12px 12px;
    }

    /* Brand Logo */
    .brandLogo {
        width: auto;
        height: 100px; /* Dimension properties */
    }

    /* Brand Label */
    .brandLabel {
        display: flex;
        align-items: flex-start;
        gap: 4px; /* Spacing */
        color: var(--blue---blue-900);
        font-size: 38px;
        font-weight: 590;
        line-height: normal;
        font-style: normal;
    }

    /* New User Survey */
    .survey .formHeader{
        max-width: 600px;
        margin: 0 auto;
        padding: 20px 20px 0px 20px;
        text-align: left;
        }
        .formTitle {
            font-size: 26px;
            font-weight: 500;
            color: var(--raspberry---raspberry-800);
            }
        .formSubtitle {
            font-size: 16px;
            font-weight: 500;
            color: var(--gray---gray-600);
            }
    .survey-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 20px;
        text-align: left;
    }
    .survey-form .form-group{
        text-align: left;
    }
    .survey-form textarea{
        font-size: 14px;
    }
    .survey-form .action-buttons{
        justify-content: space-between;
        flex-direction: row;
        border: none;
        border-top: 1px solid var(--gray---gray-100);
        padding-top: 12px;
    }

    .survey-form .action-buttons button {
        margin-right: 10px;
    }

    .survey-form .action-buttons button:last-child {
        margin-right: 0;
    }


    /* Login Form */
    .login-form {
        max-width: 300px;
        margin: auto; /* Box model */
    }
    .password-wrapper {
        position: relative;
        }
    .toggle-password {
        position: absolute;
        right: 10px;
        top: 40%;
        transform: translateY(-50%);
        cursor: pointer;
        font-size: 20px;
        }

    .alert{
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 12px;
        line-height: normal;
        padding: 12px;
        border-radius: 4px;
        background-color: var(--yellow---yellow-200);
        }
    .alert-success{
        color: var(--gray---gray-0);
        background-color: var(--green---green-500);
        }
    .alert-danger{
        color: var(--gray---gray-0);
        background-color: var(--red---red-500);
        }

    .form-group {
        display: flex;
        flex-direction: column;
        margin-bottom: 15px; /* Box model follows display */
        text-align: center;
    }

    .form-label {
        display: block;
        margin-bottom: 5px; /* Box model follows display */
    }

    .form-input-description {
        text-align: left;
        font-size: 13px;
        line-height: 17px;
        }

    /* Form Inputs */
    .form-control {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px; /* Box model */
        border: 1px solid #ccc;
        border-radius: 4px; /* Border and radius */
        color: #333;
    }

    /* Action Buttons */
    .action-buttons {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--gray---gray-100, #EDEDED); /* Visual styling comes after layout */
    }

    .btn-login,
    .btn-create-account {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 100%;
        padding: 10px 15px; /* Box model */
        border: none;
        border-radius: 4px;
        font-size: 14px;
        line-height: normal;
        cursor: pointer; /* Visual styling */
        color: var(--gray---gray-0);
        background: var(--raspberry---raspberry-700);
    }
    .btn-create-account {
        background-color: var(--green---green-600);
    }
    .btn-login:hover,
    .btn-create-account:hover,
    .btn-login:focus,
    .btn-create-account:focus{
        border: none;
        opacity: 0.8;
/*        outline: none;*/
        box-shadow: 0 0 0 2px rgba(0, 123, 255, .25); /* Focus states */
        color: white;
    }

    /* Text & Links */
    .forgot-password {
        text-align: right;
        color: var(--blue---blue-800);
        font-size: 14px;
        font-weight: 590;
        line-height: normal;
        font-style: normal; /* Typography */
    }






/* ---- Search Container ----*/

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px;
    width: 100%;
}

.search-container input {
    padding: 8px 12px 8px 40px;
    flex: 1;
    border-radius: 100px;
    border: 1px solid var(--gray---gray-500);
    background: var(--gray---gray-0);
    width: 100%;
    font-size: 16px;
}

.search-container .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
}

.search-container .icon-search {
    left: 24px;
}

.search-container .icon-cancel {
    display: none;
    right: 24px;
}



/* --- Load More --- */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 40px;
    min-height: 100px; /* Adjust this value based on your container's desired height */
}

.load-more-button {
    background: var(--raspberry---raspberry-600);
    border: none;
    color: var(--gray---gray-0);
    padding: 12px 32px;
    font-size: 21px;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background: var(--raspberry---raspberry-700);
    color: var(--gray---gray-0);
    border: none;
}

.load-more-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}






/* ---- Pages ----*/


.document {
    display: inline-block;
    width: auto;
    max-width: -webkit-fill-available;
    width: -webkit-fill-available;
    border-radius: 6px;
    padding: 12px 20px;
    background-color: var(--gray---gray-0);
    color: var(--gray---gray-700);
    margin-bottom: 20px;
    }
    .document h1{
        margin-bottom: 12px;
        font-size: 16px;
        color: var(--blue---blue-900);
    }
    .document h2{
        margin-bottom: 12px;
        font-size: 16px;
        color: var(--blue---blue-900);
        }
        .document ul{
            margin-left: 40px;
            margin-bottom: 20px;
        }
        .document strong{
        color: var(--blue---blue-900);
        }
        .document p{
            margin-bottom: 20px;
        }
        .contact{
            padding: 20px 20px;
            }
            .contact a{
                font-size: 32px;
                }

.account_document{
    display: inline-block;
    width: auto;
    max-width: 1060px;
    width: -webkit-fill-available;
    border-radius: 6px;
    padding: 12px 20px;
    background-color: var(--gray---gray-0);
    color: var(--gray---gray-700);
    margin-bottom: 20px;
    }
    .account_document p{
        margin-bottom: 20px;
        }
    .available-slots {
        float: right;
        margin: 0px 20px 20px 20px;
        }
        /* Style for mobile screens */
        @media (max-width: 500px) {
            .available-slots {
                float: none;
                }
            }

/* ---- Section ----*/

.contentBody>.section {
    width: 100%;
    margin-bottom: 20px;
    }

/* ---- Section Header ----*/

.sectionHeader {
    padding: 20px 0px;
    }
    .sectionHeader_title {
        font-size: 20px;
        font-weight: 500;
        }
    .sectionHeader_subtitle {
        font-size: 14px;
        font-weight: 400;
        color: var(--gray---gray-700);
        }




/* ---- Series / Event Cards ----*/
.seriesTiles{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
    /* Style for mobile screens */
    @media (max-width: 600px) {
        .seriesTiles {
            flex-direction: column;
            }
        }


.eventTiles{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    }
    /* Style for mobile screens */
    @media (max-width: 600px) {
        .eventTiles {
            flex-direction: column;
            }
        }
    .eventTiles .card-image{
        height: 82px;
        }


/* Card styling */
a.card-link {
    color: inherit;
    padding: 8px 20px;
}

.card {
    display: flex;
    max-width: 600px; /* Ensures card never exceeds 600px */
    min-width: 200px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border-radius: 6px;
    box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
    border-bottom: 1px solid var(--gray---gray-75);
    background: var(--gradient-card-background);
    }
    .card:hover{
        box-shadow: 0px 4px 12px 0px rgba(48, 59, 76, 0.30);
        }
    @media (min-width: 601px) {
        /* Two columns when viewport is over 600px */
        .card {
            width: calc((102% - (3 * 12px)) / 2); /* 3 gaps, 2 cards */
            }
        }

    @media (min-width: 950px) {
        /* Three columns when viewport is over 900px */
        .card {
            width: calc((102% - (4 * 12px)) / 3); /* 4 gaps, 3 cards */
            }
        }

    @media (min-width: 1199px) {
        /* Four columns when viewport is over 1200px */
        .card {
            width: calc((102% - (5 * 12px)) / 4); /* 5 gaps, 4 cards */
            }
        }

    .card-header {
        display: flex;
        align-items: flex-start;
        gap: 9px;
        padding: 4px 8px;
        }
        .card-title{
            color: var(--gray---gray-800);
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            min-height: 40px;
            }
        .card-icon{
            color: var(--gray---gray-800);
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            line-height: normal;
            }
    .card-image{
        margin: 4px 0px;
        height: 126px;
        border-radius: 4px;
        background-position: center;
        background-size: cover;
        background-color: var(--gray---gray-400);
        }
    .card-text {
        font-size: 14px;
        font-weight: 300;
        margin: 10px 0px;
        }
    .card-meta{
        font-size: 12px;
        font-weight: 300;
        text-transform: uppercase;
        }
    .card-stats {
        display: flex;
        width: 234px;
        padding: 4px 0px;
        align-items: flex-start;
        gap: 12px;
        }
        .stat-item{
            display: flex;
            align-items: flex-start;
            gap: 4px;
            color: var(--gray---gray-800);
            font-weight: 300;
            font-size: 14px;
            }
            .stat-item .icon{
                font-size: 20px;
                }


.bannerBox{
    position: relative;
    margin-bottom: 32px;
}
.bannerTiles {
    position: relative;
    }
    .bannerTileWrapper{}
    .bannerTile{
        background: var(--gray---gray-800);
        border-radius: 6px;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        transition: opacity 1s ease;
        box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
        border-bottom: 1px solid var(--gray---gray-75);
        }
        .bannerTile:hover {
            box-shadow: 0px 4px 12px 0px rgba(48, 59, 76, 0.30);
            }
        .bannerTile_vignette{
            min-height: 260px;
            padding: 12px 12px 30px 12px;
            background: var(--gradient-entity-header-vignette);
            color: var(--gray---gray-0);
            display: flex;
            flex-direction: column;
            padding-bottom: 12px;
            }
            .bannerTile_title{
                font-size: 40px;
                text-shadow: 6px 6px 19px rgba(0, 0, 0, 0.8);
                line-height: normal;
                max-width: 400px;
                }
            .bannerTile_description{
                font-size: 18px;
                line-height: 23px;
                font-weight: 500;
                max-width: 350px;
                text-shadow: 1px 1px 50px rgba(0, 0, 0, 1);
                flex-grow: 1;
                }
            .bannerTile_meta {
                font-size: 15px;
                font-weight: 700;
                text-shadow: 1px 1px 4px rgba(0, 0, 0, 1);
                max-width: 280px;
                line-height: normal;
                margin: 12px 0px;
                text-transform: uppercase;
                }
            .bannerTile_buttons {
                display: flex;
                gap: 20px;
                }
            .bannerTile_button {
                display: flex;
                border-radius: 6px;
                background: rgba(255, 255, 255, 0.8);
                color: var(--gray---gray-800);
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                font-size: 20px;
                padding: 10px 12px;
                width: 200px;
                justify-content: center;
                cursor: pointer;
                transition: .3s ease;
                }
                .bannerTile_button:hover {
                    background: rgba(255, 255, 255, 1.0);
                    box-shadow: 0px 4px 12px 0px rgba(48, 59, 76, 0.30);
                    }
                .dots-container {
                    position: absolute;
                    bottom: 0px;
                    left: 50%;
                    transform: translateX(-50%);
                    display: flex;
                    justify-content: center;
                    gap: 12px;
                    padding: 12px 30px;
                    cursor: default;
                    border-radius: 65px;
                    }

                .dot {
                    width: 10px; /* Dot size */
                    height: 10px; /* Dot size */
                    border-radius: 50%;
                    background-color: var(--gray---gray-0);
                    cursor: pointer;
                    padding: 4px;
                }

                .dot.active {
                    background-color: var(--blue---blue-700);
                }





        .testimonial-carousel {
          display: flex;
          overflow-x: auto;
          scroll-snap-type: x mandatory;
          gap: 20px;
          padding: 20px;
            }

            .testimonial-card {
              flex: 0 0 auto;
              width: calc(100% - 40px);
              background-color: #f9f9f9;
              padding: 20px;
              border-radius: 10px;
              box-shadow: 0 4px 6px rgba(0,0,0,0.1);
              scroll-snap-align: start;
              text-align: center;
            }

            @media (min-width: 768px) {
              .testimonial-card {
                width: calc(50% - 40px);
              }
            }

            @media (min-width: 1024px) {
              .testimonial-card {
                width: calc(33% - 40px);
              }
            }




.plan-container {
    background-color: var(--gray---gray-50);
    border-radius: 8px;
    padding: 12px;
    font-family: Arial, sans-serif;
    width: 100%;
}

.plan-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.plan-header h2 {
    font-size: 24px;
    margin: 0;
    margin-right: 20px;
}

.status.active {
    color: var(--green---green-600);
    font-weight: bold;
}
.status.disabled {
    color: var(--peach---peach-600);
    font-weight: bold;
}
.status.canceled {
    color: var(--red---red-600);
    font-weight: bold;
}

.completion_state.complete {
    color: var(--green---green-600);
/*    font-weight: bold;*/
}
.completion_state.stub {
    color: var(--peach---peach-600);
    font-weight: bold;
}
.completion_state.stub {
    color: var(--red---red-600);
    font-weight: bold;
}

.plan-actions button {
    margin-left: 10px;
}

.plan-details {
    display: flex;
    flex-wrap: wrap; /* Ensure tiles wrap on smaller screens */
    justify-content: space-between;
    width: 100%;
}

.plan-details li{
    list-style: none;
    }

.usage-details,
.plan-features,
.billing-payment {
    flex: 1 1 220px; /* Flex grow, flex shrink, and basis set to 200px */
    background-color: var(--gray---gray-0);
    border: 1px solid var(--gray---gray-300);
    border-radius: 4px;
    padding: 12px;
    margin: 10px; /* Consistent margin */
    display: flex;
    flex-direction: column;
}

.usage-details h3,
.plan-features h3,
.billing-payment h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.usage-details p,
.billing-payment p {
    margin: 5px 0;
}

.name,
.hours,
.price,
.period,
.date {
    font-weight: bold;
}

/*.plan-container .btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    margin-top: auto; /* Aligns buttons to the bottom */
    max-width: 250px;
    margin:2px;
    }*/

    /*.btn.cancel,
    .btn.reactivate-membership,
    .btn.buy-more,
    .btn.edit-billing,
    .btn.view-invoices {
        background-color: #007bff;
        color: white;
    }*/

    .plan-features ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .plan-features li {
        margin-bottom: 5px;
    }

/* Responsive adjustments */
@media (max-width: 600px) {
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .plan-actions {
        margin-top: 10px; /* Space between title and buttons */
    }
}





.membership-plans{
    font-family: Arial, sans-serif;
    width: 100%;
    }
.membership-plans h2{
    font-size: 24px;
    margin: 0;
    }

.pricing-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Aligns items to the left */
    width: 100%;
    }
    .pricing-container.readOnly{
        margin-top: 48px;
        margin-bottom: 48px;
        justify-content: center;
    }

    .pricing-container.readOnly ul{
        margin: 0px;
    }

.plan {
    position: relative;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 32px 20px;
    flex: 0 0 320px; /* Plans do not grow or shrink and are set at 320px width */
    box-sizing: border-box; /* Include padding and border in the element's width */
    margin-right: 20px; /* Right margin for spacing between the plans */
    margin-bottom: 20px; /* Bottom margin for spacing between rows */
    }
    .badge {
        position: absolute;
        top: -14px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--green---green-600);
        color: var(--gray---gray-0);
        padding: 0px 12px;
        border-radius: 4px;
        font-size: 16px;
        }

/* Responsive adjustments for viewports less than 600px wide */
@media (max-width: 600px) {
    .pricing-container {
        flex-direction: column;
        padding: 0; /* Remove padding to allow plans to fill the container width */
    }
    .plan {
        width: 100%; /* Each plan expands to fill the container */
        margin-right: 0; /* Remove right margin in single column layout */
        margin-bottom: 20px; /* Maintain bottom margin for spacing between stacked plans */
    }
}
        .plan.active {
            border-color: var(--blue---blue-800);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }

        .plan h2 {
            color: var(--gray---gray-800);
            font-size: 20px;
            font-style: normal;
            font-weight: 590;
            line-height: normal;
            }

        .plan .price {
            font-size: 24px;
            color: var(--gray---gray-600);
        }

        .plan .billing {
            color: var(--gray---gray-500);
            font-size: 14px;
        }

        .plan button {
            color: var(--gray---gray-0);
            background: var(--raspberry---raspberry-600);
            border: none;
            padding: 10px 20px;
            cursor: pointer;
            display: block;
            width: 100%;
            margin-top: 10px;
            border-radius: 4px;
            text-transform: capitalize;
            }
            .plan.active button {
                border-radius: 4px;
                background: var(--blue---blue-800);
                cursor: default;
                }
            /*.plan.pending button {
                border-radius: 4px;
                background: var(--blue---blue-800, #395D80);
                cursor: default;
                }*/

        .plan a {
            color: blue;
            text-decoration: none;
            display: block;
            text-align: center;
            margin-top: 10px;
            font-size: 14px;
        }

        .plan ul {
            list-style: none;
            padding: 0;
            margin-top: 20px;
        }

        .plan ul li {
            padding: 5px 0;
            font-size: 14px;
            color: var(--gray---gray-800);
        }


        .plan .icon-check{
            color: var(--green---green-600);
        }



#credit_pricing .plan {
    margin-top: 40px; /* Adds space between subscription plans and credit usage section */
}



/* Confirm Subscription Modal */
#forgotPasswordModal .modal-body{
    background-color: #fff;
    padding: 20px;
    }


/* Confirm Subscription Modal */
#confirmSubscriptionModal .modal-content{
    background-color: #fefefe;
    }
    .change_subscription{
        background: var(--gray---gray-0,);
        padding: 12px;
        font-size: 14px;
        }
        .change_subscription ul{
            list-style: circle;
            list-style-position: outside;
            margin-left: 20px;
            margin-bottom: 20px;
            margin-top: 20px;
            }



/* Purchase Credits Modal */
#purchaseCreditsModal{
    display: none;
}
#purchaseCreditsModal .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
}

#membershipPlanDiscount {
    border-bottom: 1px solid var(--gray---gray-100);
    background: var(--gray---gray-0);
    padding: 8px;
    width: 100%;
    text-align: center;
    }
    #membershipPlanDiscount .icon{
        color: var(--green---green-600);
    }
    #membershipPlanDiscount .membership-dicount{
        font-weight: bold;
    }

#pricing-packages {
    width: 100%;
    background: var(--gray---gray-0);
    padding: 0px 12px;
    font-size: 14px;
}

.credit-tile {
    padding: 8px 12px;
    margin: 8px 0;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border-radius: 4px;
    color: var(--gray---gray-850);
    background: var(--gradient-card-background);
    border: 1px solid var(--gray---gray-400);
    box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
    }
    .credit-tile:hover {
        background: linear-gradient(180deg, #FCFCFC 10%, #FCFCFC 100%);
        box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.30);
        }

.tile-left {
    display: flex;
    align-items: flex-start;
    flex-grow: 1;
    flex-direction: column;
    }
    .free-credits {
        font-size: 14px;
        color: var(--green---green-600);
        font-weight: bold;
        margin-bottom: 2px;
        }
        .free-credits .total-savings{
            display: inline-block;
            margin-left: 8px;
            color: var(--gray---gray-600);
            font-weight: normal;
        }
    .credit-cost{
        display: none;
        }
    .credit-tile-content{
        display: flex;
        flex-direction: row;
        gap: 55px;
        align-items: flex-start;
        }
        .credit-tile-icon {
            height: 40px;
            width: 40px;
            border-radius: 4px;
            background: linear-gradient(112deg, rgba(255, 255, 255, 0.00) 0%, rgba(255, 255, 255, 0.40) 35.74%, rgba(255, 255, 255, 0.00) 99.45%), var(--yellow---yellow-600);
            color: var(--gray---gray-0);
            box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
            font-size: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            }
        .credits-info-wrapper{
            display: flex;
            align-items: center;
            flex-direction: row;
            gap: 20px;
            }
        .credit-info, .cost-info {
            display: flex;
            flex-direction: column;
            justify-content: center;
            }
        .credit-info{
            align-items: flex-end;
            }
            .credit-values{
                display: flex;
                gap: 8px;
                }
            .base-credits{
                font-size: 18px;
                text-decoration: line-through;
                color: var(--gray---gray-600);
            }

        .cost-info{
            align-items: flex-end;
            }

        .credits, .cost {
            font-size: 18px;
            font-weight: bold;
            color: var(--blue---blue-900);
            }

        .credits-label, .cost-label {
            font-size: 14px;
            color: var(--gray---gray-600);
            }


.tile-right {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    }
    .credit-tile-arrow {
        font-size: 24px;  /* Adjusted for the required font size */
        margin-left: auto;
        color: var(--blue---blue-900);
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 50px;
        }

@media (max-width: 400px) {
    .credit-tile {
        flex-direction: column;
        align-items: flex-start;
    }

    .icon, .credit-tile-arrow {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .credit-info, .cost-info {
        align-items: flex-start;
    }

    .free-credits {
        position: static;
        margin-bottom: 10px;
    }
}


/* View Image Modal */
        .view_image_modal {
            display: none;
            opacity: 0;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(250, 250, 250, 0.9);
            cursor: pointer;
            transition: opacity 0.3s ease;
        }

        .view_image_modal.show {
            display: block;
            opacity: 1;
        }

        .view_image_modal_content {
            position: relative;
            margin: auto;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        .view_image_modal_image {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 1.5%;
        }

        .view_image_modal_close {
            position: absolute;
            top: 15px;
            right: 35px;
            color: #333;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
        }



/* Upload Image Modal */
#image-upload-form {
    background-color: #FFF;
    padding: 12px;
    width: 100%;
}
    #pasteArea {
        position: relative;
        width: 100%;
        height: 162px;
        border: 1px solid #ccc;
        margin-top: 12px;
        padding: 10px;
        text-align: center;
        margin-bottom: 12px;
        background-color: var(--gradient-modal-background);
        }
        #pasteArea::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url(/static/images/icon/image_upload.svg);
            background-position: center;
            background-repeat: no-repeat;
            background-size: 6vh;
            opacity: 0.1;
            z-index: 0;
        }

    #pasteArea img {
        max-width: 100%;
        max-height: 80px;
    }


/* Toast */

.toast {
    position: fixed;
    top: 100px; /* Adjust based on header size */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 15px 30px;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.25);
    text-align: center;
    font-size: 16px;
    }
    .toast-success {
        background: var(--green---green-500, #41BF93);
        }

    .toast-error {
        background: var(--red---red-500, #F06F60);
        }



/* Footer */

.footer {
    display: flex;
    padding: 8px 10px;
    justify-content: space-around;
    align-items: center;
    align-self: stretch;
    border-top: 1px solid var(--gray---gray-300, #D4D6D9);
    background: var(--gray---gray-75, #F5F5F5);
    flex-wrap: wrap;
    gap: 0px 20px;
    margin: -50px 20px 0px 20px;
    max-width: 1200px;
    }
    @media (max-width: 600px) {
        .footer {
            margin: 0;
            width: 100%;
        }
    }
    @media (min-width: 1201px) {
        .footer {
            margin-left: auto;
            margin-right: auto;
        }
    }
    .footer a {
        color: var(--gray---gray-800, #4E5A6B);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        padding: 8px 8px;
        border: 1px solid transparent;
        }
        .footer a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            border-radius: 4px;
            border: 1px solid #DDD;
        }
    .footer .copyright {
        font-size: 14px;
        }


























#entity_details{
    display: none;
}

/* Base layout styles */
    .mainHeader {}
    .headerImage {
        height: 200px;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-color: steelblue;
        box-shadow: 0px 3px 3px inset rgba(0,0,0,0.3);
        border-top: 1px solid rgba(0, 0, 0, 0.4);
        }
        @media (min-width: 600px) {
            .headerImage {
                height: 300px;
            }
        }

/* Content and Actions */
    .entityHeader{
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: start;
        gap: 32px;
        margin: 20px;
        position: relative;
        }
        .entityHeader_vignette{
            background: linear-gradient(325deg, rgba(48, 69, 89, 0.00) 40%, rgba(48, 69, 89, 1) 100%);
            height: 100%;
            padding: 12px 12px 12px 12px;
            color: #FFF;
            display: flex;
            flex-direction: column;
            }
            .entityHeader_vignette button{
                background: rgba(255, 255, 255, 0.9);
                display: flex;
                border-radius: 6px;
                color: var(--gray---gray-800, #4E5A6B);
                font-size: 16px;
                font-style: normal;
                font-weight: 500;
                line-height: normal;
                font-size: 20px;
                padding: 10px 12px;
                width: 200px;
                justify-content: center;
                cursor: pointer;
                transition: .3s ease;
                flex: 0;
                }

    .entityBreadcrumbs{
        font-weight: 500;
        color: var(--gray---gray-600);
        }
    .entityHeaderImageWrapper{
        width: 245px;
        height: 343px;
        background-position: center;
        background-size: auto;
        background-repeat: no-repeat;
        position: absolute;
        top:-250px;
        border-radius: 8px;
        overflow: hidden;
        border: 3px solid var(--gray---gray-0,);
        background-color: var(--gray---gray-850, #303B4C);
        }
        .entityHeaderImageWrapper.found{
            transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
            cursor: pointer;
            }
        .entityHeaderImageWrapper.found:hover{
            transform: scale(1.04);
        }
        .entityHeaderImageWrapper.character{
            background-image: url('/static/images/character.png'); 
        }
        .entityHeaderImageWrapper.location{
            background-image: url('/static/images/location.png'); 
        }
    .entityHeaderImage{
        display: block;
        height: 100%;
        width: 100%;
        border-radius: 4px;
        overflow: hidden;
        }
    .entityHeaderLeft{
        flex-grow: 1;
        max-width: 60%;
        box-sizing: border-box;
/*        padding-bottom: 20px;*/
        }
        .series .entityHeaderLeft, 
        .series #read_button{
            display: none;
        }
        .entityHeaderLeft.imageAdjust{
            margin-left: 265px;
            max-width: 40%;
            }
        .entitySeries{
            font-weight: 600;
            }
    .entityHeaderRight{
        box-sizing: border-box;
        }
        .entityTitle{
            font-size: 36px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            margin-top: 8px;
            color: var(--gray---gray-850, #303B4C);
            }
            .entityTitle i{
                position: relative;
                top: 5px;
                }
        .event_parent_chapter{
            font-size: 12px;
            text-transform: uppercase;
            padding: 10px 0px;
            }
            .event_parent_chapter a{
                text-transform: none;
                font-size: 13px;
                }
        .entityMeta{
            color: var(--gray---gray-700, #697380);
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: normal;
            padding-bottom: 12px;
            }
            .entityMetaRow div{
                display: inline-block;
                }
            .entityTheme{
                text-transform: capitalize;
                }
            .entityGenre{
                text-transform: uppercase;
                margin: 14px 0px;
                font-weight: 500;
                }

    @media (max-width: 768px) {
        .entityHeader {
            gap: 0px; /* Further reduce gap for mobile devices */
        }
        .entityHeaderImageWrapper{
            top: -200px;
        }
        .entityHeaderLeft.imageAdjust {
            max-width: none;
            margin-left: 0; /* Ensure imageAdjust does not affect mobile layout */
            margin-top: 150px;
        }
        .entityHeaderLeft, .entityHeaderRight{
            max-width: none;
            width: 100%;
        }
        .entityHeader_vignette{
            display: none;
            }
        .series .entityHeaderLeft, 
        .series #read_button{
            display: block;
        }
    }


    .entityActionWrapper{
        display: flex;
        align-items: flex-start;
        }
    .entityActionBar {
        display: flex;
        padding: 4px 8px;
        align-items: flex-start;
        }
        .entityActionBar .button{
            color: #29435C;
            padding: 4px 12px;
            border-radius: 0px;
            background: #FFF;
            border: 0px;
            cursor: pointer;
            font-size: 24px;
            }
            .entityActionBar .button:first-child{
                border-radius: 4px 0px 0px 4px;
                }
            .entityActionBar .button:last-child{
                border-radius: 0px 4px 4px 0px;
                }
            .entityActionBar .button:hover {
                opacity: 0.5;
                }
            .entityActionBar .button.solo{
                color: #fff;
                background-color: var(--blue---blue-800, #395D80);
                border-radius: 4px !important;
                font-size: 18px;
                line-height: 40px;
                padding: 4px 20px;
                }
                #read_button:hover{
                    opacity: 0.8;
                    }
        .entityActionMenu{
            position: relative;
            }
            .entityActionMenu:hover .overlay-menu{
                display: block;
                }


    .contentActionBar {
        display: flex;
        padding: 4px 8px;
        align-items: flex-end;
        gap: 4px;
        }
        .entityActionBar .button{
            color: #29435C;
            border-radius: 0px;
            background: #FFF;
            border: 0px;
            cursor: pointer;
            }
            .entityActionBar .button:first-child{
                border-radius: 4px 0px 0px 4px;
                }
            .entityActionBar .button:last-child{
                border-radius: 0px 4px 4px 0px;
                }
            .entityActionBar .button:hover {
                opacity: 0.5;
                }


    @media (max-width: 768px) {
        .entityActionBar{
            justify-content: right;
        }
    }



    .storyContent, .relatedCharacter, .relatedLocation, .relatedItem, .newEntity {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Space between the two sections */
        align-items: start; /* Aligns children at the top */
        gap: 32px;
        }
    .contentContainer {
        display: none; /* Hide all content containers by default */
        flex-direction: column;
        overflow-y: auto;
        }
    .storyContent {
        gap: 32px; /* Increased gap for main story content */
        }


/* Tab Bar */
.tabBar {
    display: flex;
    padding: 4px 20px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-top: 1px solid var(--gray---gray-300, #EDEDED);
    border-bottom: 1px solid var(--gray---gray-300, #D4D6D9);
    background: var(--gray---gray-25, #FCFCFC);
}
.tabBar.fullwidth {
    margin-left: -12px;
    margin-right: -12px;
}
.tabs-container {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
}
.tab {
    display: flex;
    padding: 10px 10px 8px 10px;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 2px solid var(--gray---gray-0, #FFFFFF);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.tab:hover {
    display: inline-flex;
    align-items: flex-start;
    border-bottom: 2px solid var(--gray---gray-500, #A2A8B0);
}
.tab:disabled {
    display: inline-flex;
    align-items: flex-start;
    cursor: default;
}
.tab.active {
    display: flex;
    align-items: flex-start;
    border-bottom: 2px solid var(--Raspberry-Raspberry-700, #BA4A73);
}
.overflow-menu {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
    padding: 4px 12px;
    display: flex;
    align-items: center;
}

.overflow-menu:hover {
    cursor: pointer;
    background-color: #e9ecef;
    border-radius: 4px;
}

.overflow-menu i {
    margin-left: 4px;
    line-height: 1;
}

.overflow-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2;
}

.overflow-content .tab {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.overflow-content .tab:hover {
    background-color: #f1f1f1;
}

/* Sort Button */
.sort-dropdown {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 42px;
    margin-bottom: 12px;
    margin-top: 4px;
}

.sort-button {
    cursor: pointer;
    padding: 4px 12px;
    background-color: #f4f5f3;
    position: relative;
    z-index: 1;
    border-radius: 4px;
}
span.sort-selected {
    font-weight: bold;
}
.sort-button:hover {
    background-color: #e9ecef;
}


/* Pseudo-element for divider line */
.sort-dropdown::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; /* Adjusts the divider line to start from the left */
    width: 100%; /* Extends the divider line to the full width */
    height: 1px;
    background-color: #ccc; /* Color of the divider line */
    z-index: 0;
}

/* Ensure the dropdown menu appears above the line */
.overlay-menu.sort-options {
    z-index: 1;
}


/* Series Overview */
.seriesOverview{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    }
    .seriesOverview .description{
        flex: 1 1 60%;
        min-width: 300px;
        }
    .seriesOverview .properties{
        flex: 1 1 35%;
        min-width: 250px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        }

        @media (max-width: 675px) {
            .seriesOverview .properties {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
/*                padding-bottom: 1rem;*/
            }
            
            .propertyTile {
                flex: 0 0 auto;
                scroll-snap-align: start;
                background-color: var(--gray---gray-0);
                border: 1px solid var(--gray---gray-100);
                border-radius: 4px;
            }
        }

        .propertyTile{
            padding: 4px 4px 4px 4px;
            align-items: flex-start;
            font-weight: 500;
            text-align: center;
            width: 130px;
            }
            .propertyTileLabel{
                color: var(--blue---blue-900, #29435C);
                font-size: 15px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                text-transform: uppercase;
                padding: 8px 0px;
                }
            .propertyTileBody{
                color: var(--blue---blue-900, #29435C);
                font-size: 14px;
                font-style: normal;
                font-weight: 700;
                line-height: normal;
                }
                .propertyTileBody div{
                    font-size: 20px;
                    }
                .propertyTileBody span{
                    font-weight: normal;
                }
                .propertyTileBody span.mini{
                    font-size: 12px;
                    text-transform: capitalize;
                }
                .propertyTileBody .rating{
                    font-size: 12px;
                    }

    .description{
        font-family: serif;
        padding: 12px 19px;
        color: var(--gray---gray-850, #303B4C);
        font-size: 18px;
        line-height: 1.4em;
        }

    .sectionHeading{
        color: var(--blue---blue-900, #29435C);
        font-family: sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: normal;
        text-transform: capitalize;
        padding: 0px 8px;
        margin-bottom: 12px;
        margin-top: 20px;
        }

/* List Cards */

.storyArcsDropdown {
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: var(--gray---gray-0);
    color: var(--gray---gray-850, #303B4C);
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    width: auto;
    }

    .listCard{
        display: flex;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
        min-width: 300px;
        border-radius: 4px;
        background: var(--gray---gray-0,);
        box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
        }
        .listCardImage{
            width: 100%;
            height: 75px;
            background-position: center;
            background-size: cover;
            border-radius: 6px 6px 0px 0px;
            }
        .listCardHeader{
            display: flex;
            padding: 8px 12px;
            align-items: center;
            align-self: stretch;
            border-bottom: 1px solid var(--gray---gray-100, #EDEDED);
            }
            .listCardTitle{
                color: var(--gray---gray-950, #061121)
                font-size: 17px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                }
            .listCardActions{
                flex: 1 0 0;
                }
        .listCard .loadingIndicator{
            display: none;
            width: 100%;
            padding: 8px 12px;
            box-sizing: border-box;
            color: var(--gray---gray-850, #303B4C);
            font-size: 13px;
            font-style: normal;
            font-weight: 510;
            line-height: normal;
            }
        .listCardBody{
            padding: 8px 12px;
            width: 100%;
            box-sizing: border-box;
            }
            .login>.listCardBody{
                min-width: 350px;
                }
            .listCardDescription{
                margin-bottom: 20px;
                padding: 20px 0px;
                font-size: 15px;
                line-height: 1.5;
                }
            .listCardList{
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: 28px 42px;
            }
            .listCardBody.entities{
                padding: 0px;
                }
            .listCardBody .property{
                display: flex;
                align-items: flex-start;
                gap: 8px;
                align-self: stretch;
                margin-bottom: 12px;
                flex-direction: column;
                }
                .listCardBody .property>strong{
                    text-transform: uppercase;
                    }
                .listCardBody .property>span{
                    color: var(--gray---gray-700);
                    }
            .listCardBody .property.metaAdmin{
                opacity: 0.5;
                }
                .listCardBody strong{
                    color: var(--gray---gray-850, #303B4C);
                    font-size: 13px;
                    font-weight: 600;
                    min-width: 90px;
                    line-height: normal;
                    }
                .listCardBody span{
                    color: var(--gray---gray-850, #303B4C);
                    font-size: 14px;
                    font-weight: 400;
                    line-height: normal;
                    }
                .listCardBody ul{
                    list-style: circle;
                    padding-left: 12px;
                    width: -webkit-fill-available;
                    }
                .listCardBody li{
                    font-size: 14px;
                    text-transform: capitalize;
                    line-height: normal;
                    padding-bottom: 12px;
                    }
            .propertyGroup{}
                .propertyGroup h2{
                    font-size: 12px;
                    text-transform: uppercase;
                    color: #888;
                    margin-bottom: 12px;
                    }


/* Linked Entities */
.linked_entities {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.linked_entity {
    width: 100%;
    display: flex;
    margin-bottom: 12px;
    gap: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}
a.linked_entity{
    border: 1px solid var(--gray---gray-0);
}
a.linked_entity:hover{
    border: 1px solid var(--gray---gray-200);
}
.linked_entity .characterImageWrapper {
    height: 48px;
    width: 48px;
    border-radius: 100%;
    margin-left: auto;
    margin-right: auto;
}
.linked_entities .characterImage {
    height: 48px;
    width: 48px;
    border-radius: 100%;
}
.linked_entities .entityInfo {
    text-align: left;
    padding-bottom: 12px;
    width: 100%;
}
.linked_entities .entityName {
    font-weight: 600;
    color: inherit;
    padding: 4px 0px;
}
.linked_entities .entityDescription {
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    color: var(--gray---gray-800);
}


/* Entity Cards */
        .entityListTile{
            display: flex;
            align-items: flex-start;
            gap: 12px;
            align-self: stretch;
            border-bottom: 1px solid var(--gray---gray-75, #F5F5F5);
            background: linear-gradient(180deg, #FCFCFC 0%, #FCFCFC 100%);
            padding: 6px 12px;
            color: var(--gray---gray-850, #303B4C);
            cursor: pointer;
            }
            .entityListTile:hover{
                color: var(--gray---gray-850, #303B4C);
                background: #F5F5F5;
                }
            .entityListTile.locked{
                }
            .entityListTile i.icon{
                font-size: 24px;
                color: var(--gray---gray-800, #4E5A6B);
                }
            #unlockEventModal .entityListTile{
                cursor: default;
                }
                #unlockEventModal .entityListTile:hover{
                    color: inherit;
                    background: linear-gradient(180deg, #FCFCFC 0%, #FCFCFC 100%);
                }
            .entityImageWrapper.character{
                background-image: url('/static/images/character_onwhite.png'); 
                background-size: cover;
                background-size: 70%;
                background-position: center;
                background-repeat: no-repeat;
            }
            .entityImageWrapper.location{
                background-image: url('/static/images/location_onwhite.png'); 
                background-size: cover;
                background-size: 70%;
                background-position: center;
                background-repeat: no-repeat;
            }
            .entityImage{
                display: flex;
                position: relative;
                width: 60px;
                min-width: 60px;
                height: 60px;
                min-height: 60px;
                justify-content: center;
                align-items: center;
                background-size: cover;
                background-position: top;
                border-radius: 4px;
                background-size: 38px;
                background-repeat: no-repeat;
                background-position: center;
                }

            .entityBranchLabel {
                padding: 2px 12px;
                text-transform: uppercase;
                font-size: 12px;
                }
                .entityBranchDescription {
                    font-size: 12px;
                    padding: 4px 12px;
                    line-height: normal;
                    margin-bottom: 8px;
                    }
            .entityMeta{
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 3px;
                width: 100%;
                }
                .entityName{
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: normal;
                    margin-bottom: 4px;
                    color: var(--gray---gray-800, #4E5A6B);
                    }
                .entityOccupation{
                    font-size: 13px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    text-transform: capitalize;
                    }
                .entityDescription{
                    font-size: 13px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    }
                .entityDateTime{
                    font-size: 13px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    text-transform: capitalize;
                    }
                .entityDescriptors{
                    font-size: 13px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    text-transform: capitalize;
                    }
                .entityUnlock{
                    display: block;
                    width: 100%;
                    font-size: 13px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    text-align: right;
                    }
                    span.credits{
                        display: inline-block;
                        padding: 4px 8px;
                        align-items: flex-start;
                        border-radius: 4px;
                        background: var(--yellow---yellow-200);
                        margin-left: 4px;
                        font-size: inherit;
                        font-weight: inherit;
                        color: inherit;
                        }



/* Story Arc Tiles */
#arc_list {
    overflow-x: auto;
    margin-right: -20px;
}
#arc_list.grid_layout{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-right: 0px;
    }
.arc-tiles-container {
    display: flex;
    gap: 20px;
    padding: 12px 0px;
}
.arc-tile {
    flex: 0 0 300px;
    min-height: 275px;
    border-radius: 8px;
    background-color: var(--gray---gray-0);
    box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 350px;
}
.arc-tile-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--blue---blue-800);
    text-decoration: none;
    margin-bottom: 12px;
    min-height: 60px;
}
    @media (max-width: 559px) {
        #arc_list.grid_layout {
            grid-template-columns: 1fr;
        }
        .arc-tile {
            flex: 1 1 100%;
            max-width: 100%;
            min-height: auto;
        }
        .arc-tile-title{
            min-height: auto;
        }
    }
.arc-tile-title i {
    margin-right: 8px;
}
.arc-tile-description {
    font-size: 14px;
    color: var(--gray---gray-800);
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: -5px;
}
.arc-tile-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: auto;
}
.meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.meta-item i {
    font-size: 24px;
    margin-bottom: 4px;
    color: var(--blue---blue-600);
}
.meta-item span {
    font-size: 12px;
    color: var(--gray---gray-700);
}
.arc-tile-characters {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.arc-tile-characters span {
    font-size: 12px;
    background-color: var(--blue---blue-100);
    color: var(--gray---gray-850);
    padding: 2px 8px;
    border-radius: 12px;
}
.arc-tile-events {
  margin-top: 12px;
  font-size: 14px;
  color: var(--gray---gray-800);
  overflow-y: auto;
  max-height: 120px;
  padding-right: 8px;
}

.arc-tile-events h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--blue---blue-700);
}

.arc-tile-events ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 8px;
}

.arc-tile-events li {
  margin-bottom: 4px;
}

.arc-tile-events a {
  color: var(--blue---blue-600);
  text-decoration: none;
}

.arc-tile-events a:hover {
  text-decoration: underline;
}

/* Chapter Information Styles */
.chapterContainer {
  margin-top: 30px;
}

.chapterList {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chapterCard {
  background-color: var(--gray---gray-0);
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
  padding: 20px;
}

.chapterHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.chapterHeader h3 {
  font-size: 18px;
  color: var(--blue---blue-800);
  margin: 0;
}

.chapterDate {
  font-size: 14px;
  color: var(--gray---gray-600);
}

.chapterContent {
  font-size: 14px;
  color: var(--gray---gray-800);
}

.chapterContent h4 {
  font-size: 16px;
  color: var(--blue---blue-700);
  margin-top: 15px;
  margin-bottom: 5px;
}

.chapterActions ul {
  list-style-type: none;
  padding-left: 0;
}

.chapterActions li {
  margin-bottom: 5px;
}

.chapterCliffhanger {
  font-style: italic;
}

.chapterNotes, .chapterSpinoff {
  font-size: 13px;
  color: var(--gray---gray-700);
}


/* Event Tiles */

    #event_list {
        overflow-x: auto;
        margin-right: -20px;
    }
    #event_list.grid_layout{
        width: 100%;
    }
    .event-tiles-container {
        display: flex;
        gap: 20px;
    }
    #event_list.grid_layout .event-tiles-container{
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
        margin-right: 0px;
        }

    .event-tile {
        flex: 0 0 300px;
        height: 350px;
        border-radius: 8px;
        background-color: var(--gray---gray-0);
        box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
        padding: 16px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .event-tile-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--blue---blue-800);
        text-decoration: none;
        margin-bottom: 12px;
    }

    .event-tile-title i {
        margin-right: 8px;
    }

    .event-tile-description {
        font-size: 14px;
        color: var(--gray---gray-800);
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }

    .event-tile-characters {
        margin-top: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .event-tile-characters span {
        font-size: 12px;
        background-color: var(--blue---blue-100);
        color: var(--gray---gray-850);
        padding: 2px 8px;
        border-radius: 12px;
    }

    /* For WebKit browsers */
/*    #event_list::-webkit-scrollbar {
        height: 8px;
    }

    #event_list::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    #event_list::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    #event_list::-webkit-scrollbar-thumb:hover {
        background: #555;
    }*/


/* Event Cards */
/*        .eventCard {
            display: flex;
            padding-bottom: 12px;
            flex-direction: column;
            align-items: flex-start;
            gap: 8px;
            align-self: stretch;
            border-radius: 4px;
            border-bottom: 1px solid var(--gray---gray-100);
            background-color: var(--gray---gray-0);
            box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
            margin-bottom: 12px;
            }
            .eventCardHeader{
                display: flex;
                padding: 8px;
                align-items: center;
                align-self: stretch;
                border-bottom: 1px solid var(--gray---gray-100, #EDEDED);
                }
                a.eventCardTitle{
                    flex: 1 0 0;
                    color: var(--blue---blue-800);
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 510;
                    line-height: normal;
                    text-decoration: none;
                    }
                .eventCardTitle i{
                    font-size: 16px;
                    margin-right: 8px;
                    }
                .eventCardActions{
                    display: flex;
                    padding: 4px 8px;
                    align-items: flex-start;
                    gap: 12px;
                    }
                    .eventCardActions button {
                        width: 28px;
                        height: 28px;
                        border-radius: 4px;
                        color: var(--blue---blue-900);
                        background: rgba(6, 17, 33, 0.05);
                        border: 0px;
                        cursor: pointer;
                        padding: 0px;
                        }
                        .eventCardActions button:hover {
                            color: var(--gray---gray-0);
                            background-color: var(--blue---blue-900);
                            }
            .eventCardBody{
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 4px;
                align-self: stretch;
                }
                .eventCard .eventDateTime {
                    font-style: italic;
                    display: flex;
                    padding: 4px 12px;
                    align-items: flex-start;
                    gap: 10px;
                    align-self: stretch;
                    color: var(--gray---gray-800);
                    font-size: 12px;
                    }
                .eventCard .eventDescription {
                    display: flex;
                    padding: 4px 12px;
                    align-items: flex-start;
                    gap: 10px;
                    align-self: stretch;
                    color: var(--gray---gray-800);
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: normal;
                    }
                .eventCard .eventCharacters {
                    display: flex;
                    flex-wrap: wrap;
                    padding: 4px 12px;
                    align-items: flex-start;
                    gap: 10px;
                    align-self: stretch;
                    }
                    .eventCharacters span{
                        border-radius: 29px;
                        background: var(--blue---blue-100);
                        color: var(--gray---gray-850);
                        padding: 2px 8px;
                        font-size: 14px;
                        font-style: normal;
                        line-height: normal;
                        }
            .arcDetails {
                margin-top: 10px;
                display: flex;
                flex-wrap: wrap;
                gap: 10px;
            }
            .arcDetails span {
                background-color: #f0f0f0;
                padding: 5px 10px;
                border-radius: 5px;
                font-size: 0.9em;
            }*/

/* Character Tiles */

    .characterScrollContainer {
      display: flex;
      overflow-x: auto;
      gap: 20px;
      margin-right: -20px;
    }

    .characterTile {
      flex: 0 0 auto;
      width: 200px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
      transition: transform 0.3s ease;
      background-color: var(--gray---gray-0);
    }

    .characterTile:hover {
      transform: translateY(-5px);
    }

    .characterImageWrapper{
        background-image: url(/static/images/character_onwhite.png);
        background-color: var(--gray---gray-75);
        background-size: cover;
        background-size: 40%;
        background-position: center;
        background-repeat: no-repeat;
        }
    .characterImage {
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
    }

    .characterInfo {
      padding: 15px;
    }

    .characterName {
      font-size: 16px;
      font-weight: 600;
      color: var(--gray---gray-850);
      margin-bottom: 5px;
    }

    .characterOccupation {
      font-size: 14px;
      color: var(--gray---gray-600);
    }


    /* Scrollbar styling */
/*    .characterScrollContainer::-webkit-scrollbar {
      height: 8px;
    }

    .characterScrollContainer::-webkit-scrollbar-track {
      background: var(--gray---gray-100);
      border-radius: 4px;
    }

    .characterScrollContainer::-webkit-scrollbar-thumb {
      background: var(--gray---gray-400);
      border-radius: 4px;
    }

    .characterScrollContainer::-webkit-scrollbar-thumb:hover {
      background: var(--gray---gray-500);
    }*/



/* Location Tiles */
.locationScrollContainer {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  margin-right: -20px;
}
.locationTile {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 2px 10px rgba(48, 59, 76, 0.15);
  transition: transform 0.3s ease;
  background-color: var(--gray---gray-0);
}
.locationTile:hover {
  transform: translateY(-5px);
}
.locationImageWrapper {
  background-image: url(/static/images/location_onwhite.png);
  background-color: var(--gray---gray-75);
  background-size: 40%;
  background-position: center;
  background-repeat: no-repeat;
}
.locationImage {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}
.locationInfo {
  padding: 15px;
}
.locationName {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray---gray-850);
  margin-bottom: 5px;
}
.locationDescription {
  font-size: 14px;
  color: var(--gray---gray-600);
}
/* Scrollbar styling */
/*.locationScrollContainer::-webkit-scrollbar {
  height: 8px;
}
.locationScrollContainer::-webkit-scrollbar-track {
  background: var(--gray---gray-100);
  border-radius: 4px;
}
.locationScrollContainer::-webkit-scrollbar-thumb {
  background: var(--gray---gray-400);
  border-radius: 4px;
}
.locationScrollContainer::-webkit-scrollbar-thumb:hover {
  background: var(--gray---gray-500);
}*/



/* Character Cards */
        .character-card {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 15px;
            background-color: #f9f9f9;
            }
            .character-card .character-name a {
                color: var(--blue---blue-700);
                font-weight: bold;
                text-decoration: none;
                }
            .character-card .character-description {
                margin-top: 10px;
                font-size: 14px;
                }
            .character-card .character-mood {
                margin-top: 5px;
                font-style: italic;
                color: var(--gray---gray-600);
                }

/* Location Cards */
        .location-card {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 15px;
            background-color: #f9f9f9;
            }
            .location-card .location-name a {
                color: var(--blue---blue-700);
                font-weight: bold;
                text-decoration: none;
                }
            .location-card .location-description {
                margin-top: 10px;
                font-size: 14px;
                }
            .location-card .location-mood {
                margin-top: 5px;
                font-style: italic;
                color: var(--gray---gray-600);
                }

/* Items Cards */
        .item-card {
            border: 1px solid #ddd;
            border-radius: 4px;
            padding: 15px;
            margin-bottom: 15px;
            background-color: #f9f9f9;
            }
            .item-card .item-name a {
                color: var(--blue---blue-700);
                font-weight: bold;
                text-decoration: none;
                }
            .item-card .item-description {
                margin-top: 10px;
                font-size: 14px;
                }
            .item-card .item-mood {
                margin-top: 5px;
                font-style: italic;
                color: var(--gray---gray-600);
                }



/* Content Container */
        .contentBody{
            display: flex;
            padding: 0px 20px;
            align-items: flex-start;
            gap: 20px;
            align-self: stretch;
            }
        .contentBody.column {
            flex-direction: column;
            }
        .contentBody .row {
            display: flex;
            flex-wrap: nowrap; /* Prevent wrapping to ensure side-by-side layout */
            margin: 0 -15px; /* Adjust spacing as needed */
            }

        .contentBody .column {
            }

        .contentBody div#storyArcsTimeline{
            width: 100%;
            }

            /* Style for the left column */
            .contentBody .left {
                display: flex;
                flex-direction: column;
                }

            /* Style for the right column */
            .contentBody .right {
                display: flex;
                flex: 1;
                flex-direction: column;
                }

            @media (max-width: 768px) {
                .contentBody{
                    flex-direction: column; /* Stack the sections on narrow screens */
                    }
            }


/* Series Overview */


            /* Additional styling for the sections */
            .seriesStats, .keyCharacters, .keyEvents {
                background: #f9f9f9; /* Light grey background */
                margin-bottom: 20px;
                padding: 20px;
                border-radius: 5px; /* Rounded corners */
            }

            .seriesStats h3, .keyCharacters h3, .keyEvents h3 {
                margin-top: 0;
            }

            /* Responsive layout adjustments */
            @media screen and (max-width: 768px) {
                .contentContainer .column {
                    flex: 100%; /* Full width on smaller screens */
                    width: 100%;
                }
                .contentContainer .contentBody .description {
                    overflow: hidden;
                    position: relative;
                    text-overflow: ellipsis;
                    display: -webkit-box;
                    -webkit-line-clamp: 6;
                    -webkit-box-orient: vertical;
                    cursor: pointer;
                    padding: 0px;
                }
                .contentContainer .contentBody .description::after {
                    content: '... More';
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    background: #f6f7f5;
                    padding-left: 5px;
                    color: var(--blue---blue-800, #395D80);
                }
                .contentContainer .contentBody .description.more {
                    display: block;
                    -webkit-line-clamp: unset;
                    max-height: none;
                    }
                    .contentContainer .contentBody .description.more::after {
                        display: none;
                    }
            }


/* Character Profile */
.character-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.character-content {
  margin-bottom: 20px;
}

.character-stats {
  margin-bottom: 20px;
}

.character-stat-item {
  margin-bottom: 10px;
}

.character-stat-label {
  font-weight: bold;
}

.details-section {
  margin-bottom: 20px;
}

.section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.character-info-item {
  margin-bottom: 5px;
}

.character-info-label {
  font-weight: bold;
}

.skill-list {
  list-style-type: none;
  padding: 0;
}

.skill-item {
  display: inline-block;
  margin-right: 10px;
  margin-bottom: 5px;
}

@media (max-width: 600px) {
  .character-profile {
    padding: 10px;
  }
}



/* Event Vignette */
        .vignette{
            display: flex;
        }

        .eventVignette, .relatedContent, .newEntity {
            flex: 1;
            min-width: 300px;
            margin-bottom: 20px;
            font-family: Times;
            font-size: 20px;
            border-radius: 6px;
            box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
            color: var(--gray---gray-800);
            border-bottom: 1px solid var(--gray---gray-75);
            background: var(--gradient-card-background);
            }
            .eventVignette p {
                padding: 20px 40px;
                }

/* Vignette Header */
        .vignetteHeader, .vignetteHeader .vignetteLeft, .vignetteHeader .vignetteRight, .vignetteMeta {
            display: flex;
            align-items: flex-start;
            padding: 20px 40px 8px 40px;
            }
        .vignetteHeader {
            justify-content: space-between; /* Aligns children to opposite ends */
            }
            .vignetteLeft {
                flex-direction: column;
                }
            .vignetteRight {
                justify-content: flex-end; /* Corrected property name */
                }

/* Vignette Title and Meta */
        .vignetteTitle, .vignetteMeta, .date_description, .character_meta, .location_meta, .item_meta, .newEntity {
            font-size: 14px;
            font-weight: 400;
            line-height: normal;
            color: var(--gray---gray-600);
            }
        .vignetteTitle {
            font-size: 26px;
            color: var(--gray---gray-800);
            }
        .date_description {
            padding-left: 40px;
            border-bottom: 1px solid var(--gray---gray-100);
            }

/* Sidebar and Related Content */
        .sidebar {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-width: 300px;
            max-width: 370px;
            }
            @media (max-width: 768px) {
                .sidebar{
                    max-width: none;
                    width: 100%;
                }
            }
        .relatedContent-header, .relatedContent-title, .relatedContent-icon {
            display: flex;
            align-items: flex-start;
            gap: 9px;
            padding: 0px 8px 8px 8px;
            border-bottom: 1px solid var(--gray---gray-100);
            }
        .relatedContent-title, .relatedContent-icon, .character_name, .location_name, .item_name, .newEntity_name {
            font-size: 16px;
            font-weight: 700;
            color: var(--gray---gray-800);
            }

/* Tiles for Characters, Locations, and Items */
        .character_tile, .location_tile, .item_tile {
            width: 100px;
            height: 100px;
            border-radius: 4px;
            background-color: var(--gray---gray-100);
            background-size: cover;
            background-position: top;
            }

/* Responsive Design */
        @media (max-width: 768px) {
            .storyContent {
                flex-direction: column; /* Stack the sections on narrow screens */
                }
        }



/* Modal */
    .modal-background {
      display: none;
      align-items: center;
      justify-content: center;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--gradient-modal-background);
      z-index: 1000;
      }
      
    /* Style for the modal content */
    .modal-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 8px;
        background: var(--gradient-modal-content);
        box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.25);
        overflow: hidden;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        max-height: 90%;
        overflow-y: auto;

        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        max-width: 500px;
    }
      
     /* Style for the modal header, body, and footer */
    .modal-header{
      display: flex;
      padding: 8px 12px;
      align-items: center;
      gap: 4px;
      align-self: stretch;
      border-bottom: 1px solid var(--gray---gray-100);
      background: var(--gray---gray-0);

      /* Shadow */
      box-shadow: 0px 1px 6px 0px rgba(48, 59, 76, 0.10);
      }
      .close-btn {
        width: 20px;
        height: 20px;
        font-size: 20px;
        line-height: 20px;
        cursor: pointer;
        }
      .modal-name {
        flex: 1 0 0;
        color: var(--gray---gray-800);
        font-size: 18px;
        font-style: normal;
        font-weight: 590;
        line-height: 20px;
        }
    .modal-body{
      display: block;
      width: 100%;
      background-color: var(--gray---gray-0);
      }
      .errorMessage{
        padding: 12px;
          }
      .credit-balance{
        display: block;
        padding: 8px 8px;
        border-bottom: 1px solid var(--gray---gray-100);
        background: var(--gray---gray-0);
        text-align: center;
        text-transform: uppercase;
        font-size: 13px;
        font-weight: 600;
        }
    .prom-wrapper {
        }
    .prom-container {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 8px 8px;
        }
        .prom-image{
            position: relative;
            height: 250px;
            width: 300px;
            border: 1px solid var(--gray---gray-200);
            border-radius: 4px;
            background-color: var(--gray---gray-0);
            }
            .prom-image:after{
                display: block;
                position: relative;
                height: 250px;
                width: 300px;
                border-radius: 4px;
                border: 1px solid var(--gray---gray-400);
                }
        .prom-text{
            position: absolute;
            font-size: 14px;
            bottom: 119px;
            text-align: center;
            }
        .prom-description>span{
            display: block;
            font-size: 13px;
            text-align: center;
            }
      .progress-indicator{
        display: none;
        padding: 8px 8px;
        border-bottom: 1px solid var(--gray---gray-100);
        background: var(--gray---gray-0);
        color: var(--gray---gray-800);
        font-size: 14px;
        font-weight: 500;
        }
        .progress-message i{
          padding: 0px 6px;
          font-size: 20px;
          }
          .progress-message.notice i{
            color: var(--orange---orange-700);
            }
          .progress-message.updates i{
            color: var(--green---green-600);
            }
          .progress-message.updates i.icon-cancel{
            color: var(--red---red-700);
            }
    .progress-bar {
        width: 100%;
        height: 20px;
        background-color: var(--gray---gray-200);
        border-radius: 20px;
        overflow: hidden;
        margin:8px 0px;

    }
    .progress-bar-fill {
        width: 0%;
        height: 20px;
        background-color: var(--blue---blue-600);
        transition: width 0.1s linear;
    }
      .entity-tile{
        display: flex;
        padding: 8px;
        align-items: flex-start;
        gap: 9px;
        align-self: stretch;
        }
    .modal-footer {
      display: flex;
      padding: 8px;
      flex-direction: row;
      align-items: center;
      gap: 9px;
      border-bottom: 1px solid var(--gray---gray-75);
      background: var(--gradient-card-background);
      width: 100%;
      justify-content: space-between; /* Splits buttons left and right if there are two */
        }

        .modal-footer > button:only-child {
          margin-left: auto; /* Aligns a single button to the right */
        }





/* ------ Feedback Form ----------- */
    .feedback_form_submitted {
        display: none;
        padding: 20px 12px;
        transition: .5s;
        font-size: 14px;
        text-align: center;
        width: 100%;
        font-weight: 400;
        }
        .feedback_form_submitted i{
            color: #28AB7D;
            }
    .star_input {
        display: flex;
        }
    .star_input label{
        cursor: pointer;
        padding: 0px 2px;
        }
    .star_input i.icon-star{
        color: var(--yellow---yellow-600);
        }
    .star_input  i.icon-star_outline{
        color: var(--gray---gray-700);
        }
    .star_input input[type="radio"] {
        display: none;
        }
    .feedback_comment_input textarea{
        width: 100%;
        min-height: 100px;
        border-color: var(--gray---gray-700);
        color: var(--gray---gray-800);
        border-radius: 4px;
        padding: 4px;
        }
    #feedback_form button {
        display: flex;
        width: 279px;
        padding: 8px 12px;
        justify-content: center;
        align-items: center;
        gap: 4px;
        border-radius: 4px;
        border: 1px solid var(--raspberry---raspberry-600);
        background-color: var(--gray---gray-0);
        color: var(--raspberry---raspberry-600);
        font-size: 12px;
        font-style: normal;
        font-weight: 510;
        line-height: normal;
        }
        #feedback_form button:hover {
            border: 1px solid var(--raspberry---raspberry-700);
            color: var(--raspberry---raspberry-700);
            }




