:root {
    /* Damnbulance.com palette pulled from the hero image */
    --page-back-color: #161412;
    --page-back-deep: #0D0C0B;
    --panel-back-color: #F3E6C9;

    --poster-black: #111111;
    --poster-black-soft: #1B1815;

    --ambulance-red: #C52A1D;
    --ambulance-red-dark: #8F1C14;
    --ambulance-red-light: #E14428;

    --sunset-orange: #F47A24;
    --sunset-orange-dark: #C94D18;
    --sunset-gold: #F0B64F;

    --warm-cream: #F4E4BF;
    --warm-cream-light: #FFF1D1;
    --road-gray: #3A3530;
    --road-gray-light: #61594F;

    --scrolling-banner-back-color: #111111;
    --scrolling-banner-fore-color: #F4E4BF;

    --hot-button-back-color: #C52A1D;
    --hot-button-fore-color: #FFF4DF;
    --hot-button-border-color: #F47A24;
    --hot-button-shadow-color: rgba(0, 0, 0, 0.34);

    --button-back-color: #2A2622;
    --button-fore-color: #F4E4BF;
    --button-border-color: #61594F;
    --button-shadow-color: rgba(0, 0, 0, 0.28);
}

/* --------------------------------------------------
   Base Layout
-------------------------------------------------- */

html {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: var(--page-back-deep);
    overflow-y: auto;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background:
        linear-gradient(180deg, #2A1712 0%, var(--page-back-color) 24%, var(--page-back-deep) 100%);
    color: var(--warm-cream);
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .05em;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    overflow: hidden;
    background: transparent;
}

.banner {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------
   Scrolling Banner
-------------------------------------------------- */

.header {
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
    background: var(--scrolling-banner-back-color);
    color: var(--scrolling-banner-fore-color);
    border-top: 2px solid var(--sunset-orange-dark);
    border-bottom: 2px solid var(--sunset-orange-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}

#ScrollingBanner {
    margin: 0;
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    line-height: 36px;
    font-family: 'Fredoka', sans-serif;
    font-size: 24px;
    font-weight: 650;
    letter-spacing: .06em;
    user-select: none;
}

/* --------------------------------------------------
   Main Content
-------------------------------------------------- */

.main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 24px 42px;
    box-sizing: border-box;
    background: transparent;
}

.button-container {
    margin-bottom: 20px;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */

.styled-button {
    width: 100%;
    margin-top: 16px;
    padding: 16px 20px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #302B26 0%, var(--button-back-color) 100%);
    color: var(--button-fore-color);
    border: 2px solid var(--button-border-color);
    border-radius: 14px;
    font-family: 'Fredoka', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .07em;
    text-align: center;
    cursor: default;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: 0 4px 12px var(--button-shadow-color);
}

.styled-button:not(.custom):hover {
    background: linear-gradient(180deg, #3B342D 0%, #2F2A25 100%);
    border-color: var(--sunset-gold);
    color: var(--warm-cream-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .34);
}

.custom {
    background: linear-gradient(180deg, var(--ambulance-red-light) 0%, var(--hot-button-back-color) 58%, var(--ambulance-red-dark) 100%);
    color: var(--hot-button-fore-color);
    border-color: var(--hot-button-border-color);
    cursor: pointer;
    box-shadow:
        0 5px 14px var(--hot-button-shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

.custom:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #F0502E 0%, #D33220 58%, #9C2016 100%);
    border-color: var(--sunset-gold);
    box-shadow:
        0 7px 18px rgba(0, 0, 0, .40),
        0 0 0 1px rgba(240, 182, 79, .12);
}

.custom:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .30);
}

/* --------------------------------------------------
   Scroller spacing
-------------------------------------------------- */

.scroll {
    padding-left: 50px;
    padding-right: 50px;
}

/* --------------------------------------------------
   Custom Modal
-------------------------------------------------- */

.custom-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 20px;
    background: rgba(8, 7, 6, .78);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.custom-modal.show {
    display: flex;
}

.custom-modal-dialog {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: linear-gradient(180deg, #FFF0CC 0%, var(--panel-back-color) 100%);
    color: #241D18;
    border: 3px solid var(--ambulance-red-dark);
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    box-shadow:
        0 22px 55px rgba(0, 0, 0, .48),
        0 0 0 1px rgba(244, 122, 36, .18);
    font-family: 'Fredoka', sans-serif;
    animation: modalPop .20s ease-out;
}

.custom-modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    border: 2px solid #6A5040;
    background: #241E19;
    border-radius: 50%;
    color: var(--warm-cream-light);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all .15s ease;
}

.custom-modal-close:hover {
    background: var(--ambulance-red);
    border-color: var(--sunset-orange);
    color: #FFFFFF;
}

#CustomAlertBody {
    line-height: 1.6;
    letter-spacing: .03em;
}

#CustomAlertBody a {
    color: var(--ambulance-red-dark);
    text-decoration-color: var(--sunset-orange-dark);
    font-weight: 650;
}

#CustomAlertBody a:hover {
    color: var(--ambulance-red);
}

#CustomAlertBody hr {
    border: none;
    border-top: 2px dashed #B77B49;
    margin: 24px 0;
}

/* --------------------------------------------------
   Modal Scrollbar
-------------------------------------------------- */

.custom-modal-dialog::-webkit-scrollbar {
    width: 10px;
}

.custom-modal-dialog::-webkit-scrollbar-track {
    background: #E2CDA7;
}

.custom-modal-dialog::-webkit-scrollbar-thumb {
    background: var(--ambulance-red-dark);
    border-radius: 999px;
}

.custom-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: var(--ambulance-red);
}

/* --------------------------------------------------
   Animation
-------------------------------------------------- */

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --------------------------------------------------
   Mobile
-------------------------------------------------- */

@media (max-width: 600px) {
    .main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .styled-button {
        font-size: 17px;
        padding: 14px 16px;
        border-radius: 12px;
    }

    #ScrollingBanner {
        font-size: 20px;
        line-height: 30px;
    }

    .custom-modal {
        padding: 12px;
    }

    .custom-modal-dialog {
        padding: 24px 20px;
        border-radius: 16px;
    }
}
