:root {
    /* ToileyTech.com palette pulled from the hero image */
    --page-back-color: #F4F8FA;
    --panel-back-color: #F8FBFD;

    --toiley-blue: #1C82B5;
    --toiley-blue-dark: #10648F;
    --toiley-blue-deep: #0B3F5D;
    --toiley-blue-light: #D7EAF4;
    --toiley-blue-pale: #EAF5FA;

    --toiley-orange: #F36A0A;
    --toiley-orange-dark: #C94E00;
    --toiley-orange-light: #FF8128;

    --ink-color: #16242C;
    --muted-border: #A9C5D3;

    /* Scroller */
    --scrolling-banner-back-color: #177EAE;
    --scrolling-banner-fore-color: #FFFFFF;

    /* Active / custom buttons */
    --hot-button-back-color: #F36A0A;
    --hot-button-fore-color: #FFFFFF;
    --hot-button-border-color: #C94E00;
    --hot-button-shadow-color: rgba(201, 78, 0, 0.20);

    /* Standard buttons */
    --button-back-color: #F8FBFD;
    --button-fore-color: #16242C;
    --button-border-color: #9FBFCC;
    --button-shadow-color: rgba(11, 63, 93, 0.10);
}

/* --------------------------------------------------
   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,
        #FFFFFF 0%,
        #F6FAFC 42%,
        #EEF6F9 100%
    );
    color: var(--ink-color);
    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: linear-gradient(
        180deg,
        #238DBC 0%,
        var(--scrolling-banner-back-color) 100%
    );
    color: var(--scrolling-banner-fore-color);
    border-top: 1px solid #0F6C98;
    border-bottom: 1px solid #0D638B;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

#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,
        #FFFFFF 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 3px 10px var(--button-shadow-color);
}

.styled-button:not(.custom):hover {
    background: var(--toiley-blue-pale);
    border-color: var(--toiley-blue);
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(11, 63, 93, 0.14);
}

.custom {
    background: linear-gradient(
        180deg,
        var(--toiley-orange-light) 0%,
        var(--hot-button-back-color) 52%,
        #E75A00 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),
        inset 0 1px 0 rgba(255,255,255,.22);
}

.custom:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        180deg,
        #FF923F 0%,
        #F8751A 52%,
        var(--toiley-orange) 100%
    );
    border-color: #B84400;
    box-shadow: 0 6px 16px rgba(201, 78, 0, 0.27);
}

.custom:active {
    transform: translateY(1px);
    box-shadow: 0 2px 7px rgba(201, 78, 0, 0.18);
}

/* --------------------------------------------------
   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, 43, 62, .64);
    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,
            #FFFFFF 0%,
            var(--panel-back-color) 100%
        );
    color: var(--ink-color);
    border: 3px solid var(--toiley-blue);
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.24),
        0 0 0 5px rgba(255, 255, 255, 0.30);
    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 var(--toiley-orange-dark);
    background: var(--toiley-orange);
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all .15s ease;
    box-shadow: 0 3px 9px rgba(201, 78, 0, 0.18);
}

.custom-modal-close:hover {
    background: var(--toiley-orange-light);
    border-color: var(--toiley-orange-dark);
    transform: scale(1.05);
}

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

#CustomAlertBody h1,
#CustomAlertBody h2,
#CustomAlertBody h3 {
    color: var(--toiley-blue-deep);
}

#CustomAlertBody a {
    color: var(--toiley-blue-dark);
    text-decoration-color: var(--toiley-orange);
    font-weight: 700;
}

#CustomAlertBody a:hover {
    color: var(--toiley-orange-dark);
}

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

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

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

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

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

.custom-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: var(--toiley-blue-dark);
}

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