:root {
    /* FrozeToes.com palette pulled from the hero image */
    --page-back-color: #F3EFE6;
    --panel-back-color: #FBF7EF;

    --lipstick-red: #C8202F;
    --lipstick-red-dark: #A91522;
    --lipstick-red-light: #D92E3B;

    --mint-green: #BFD8B8;
    --mint-green-deep: #8FB58B;
    --mint-green-text: #233126;

    --gold-accent-color: #D8AE4D;

    /* Scroller now visually extends the hero:
       background sampled from the hero's deeper green,
       text sampled from the lipstick-red lettering. */
    --scrolling-banner-back-color: #96B63D;
    --scrolling-banner-fore-color: #FFFFFF;

    --hot-button-back-color: #C8202F;
    --hot-button-fore-color: #FFF9F1;
    --hot-button-border-color: #A91522;
    --hot-button-shadow-color: rgba(168, 21, 34, 0.18);

    --button-back-color: #FBF7EF;
    --button-fore-color: #2D2A24;
    --button-border-color: #B7AA94;
    --button-shadow-color: rgba(72, 60, 43, 0.09);
}

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

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

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #FFFDF8 0%, var(--page-back-color) 100%);
    color: #2D2A24;
    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: none;
    box-shadow: none;
}

#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;
    /*text-transform: uppercase;*/
    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: var(--button-back-color);
    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-transform: uppercase;*/
    text-align: center;
    cursor: default;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
    box-shadow: 0 3px 10px var(--button-shadow-color);
}

.styled-button:not(.custom):hover {
    background: #FFFDF8;
    border-color: var(--mint-green-deep);
    transform: translateY(-1px);
    box-shadow: 0 5px 13px rgba(72, 60, 43, 0.11);
}

.custom {
    background: linear-gradient(180deg, var(--lipstick-red-light) 0%, var(--hot-button-back-color) 100%);
    color: var(--hot-button-fore-color);
    border-color: var(--hot-button-border-color);
    cursor: pointer;
    box-shadow: 0 4px 12px var(--hot-button-shadow-color);
}

.custom:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #E23845 0%, var(--lipstick-red-light) 100%);
    border-color: #94131E;
    box-shadow: 0 6px 16px rgba(168, 21, 34, 0.24);
}

.custom:active {
    transform: translateY(1px);
    box-shadow: 0 2px 7px rgba(168, 21, 34, 0.16);
}

/* --------------------------------------------------
   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(28, 24, 20, .62);
    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: var(--panel-back-color);
    color: #2D2A24;
    border: 2px solid var(--lipstick-red-dark);
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.23);
    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 #D6CBB8;
    background: #F5EFE4;
    border-radius: 50%;
    color: #625B50;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all .15s ease;
}

.custom-modal-close:hover {
    background: var(--lipstick-red);
    border-color: var(--lipstick-red-dark);
    color: #FFFFFF;
}

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

#CustomAlertBody a {
    color: var(--lipstick-red);
    text-decoration-color: var(--lipstick-red);
    font-weight: 650;
}

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

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

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

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

.custom-modal-dialog::-webkit-scrollbar-thumb {
    background: #C8BDAA;
    border-radius: 999px;
}

.custom-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: #AA9D88;
}

/* --------------------------------------------------
   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;
    }
}
