:root {
    /* TotallyChad.com palette pulled from the hero image */
    --page-back-color: #020711;
    --panel-back-color: #071120;

    --chad-black: #02050B;
    --chad-navy: #071120;
    --chad-navy-light: #0C1A31;
    --chad-blue: #0867FF;
    --chad-blue-bright: #19B8FF;
    --chad-blue-dark: #0047C8;
    --chad-blue-pale: #DCEBFF;

    --ink-color: #F7FAFF;
    --muted-ink: #B7C8E3;
    --muted-border: #174E9A;

    /* Scroller */
    --scrolling-banner-back-color: #06142A;
    --scrolling-banner-fore-color: #FFFFFF;

    /* Active / custom buttons */
    --hot-button-back-color: #0867FF;
    --hot-button-fore-color: #FFFFFF;
    --hot-button-border-color: #2D9CFF;
    --hot-button-shadow-color: rgba(8, 103, 255, 0.42);

    /* Standard buttons */
    --button-back-color: #0A1628;
    --button-fore-color: #F8FBFF;
    --button-border-color: #1D5EB8;
    --button-shadow-color: rgba(0, 76, 200, 0.28);
}

/* --------------------------------------------------
   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:
        radial-gradient(circle at 50% 0%, rgba(13, 92, 255, 0.16), transparent 38%),
        linear-gradient(180deg, #02050B 0%, #06101E 48%, #020711 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:
        linear-gradient(180deg, rgba(4, 11, 22, 0.98), rgba(3, 9, 18, 0.98));
    border-left: 1px solid rgba(19, 103, 255, 0.18);
    border-right: 1px solid rgba(19, 103, 255, 0.18);
    box-shadow: 0 0 46px rgba(0, 62, 170, 0.24);
}

.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, #0A2A58 0%, var(--scrolling-banner-back-color) 100%);
    color: var(--scrolling-banner-fore-color);
    border-top: 1px solid #1789FF;
    border-bottom: 1px solid #003D99;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.16),
        0 0 18px rgba(8, 103, 255, 0.34);
}

#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;
    text-shadow: 0 0 9px rgba(31, 171, 255, 0.42);
}

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

.main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 14px 24px 42px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(6, 15, 29, 0.96), rgba(2, 7, 17, 0.98));
}

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

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

.styled-button {
    width: 100%;
    margin-top: 16px;
    padding: 16px 20px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, #10213A 0%, var(--button-back-color) 56%, #07111F 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 14px var(--button-shadow-color),
        inset 0 1px 0 rgba(255,255,255,.08);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.styled-button:not(.custom):hover {
    background:
        linear-gradient(180deg, #133260 0%, #0C2244 58%, #08172D 100%);
    border-color: var(--chad-blue-bright);
    transform: translateY(-1px);
    box-shadow:
        0 6px 18px rgba(8, 103, 255, 0.30),
        0 0 14px rgba(25, 184, 255, 0.18);
}

.custom {
    background:
        linear-gradient(180deg, #20AFFF 0%, var(--hot-button-back-color) 50%, #0047C8 100%);
    color: var(--hot-button-fore-color);
    border-color: var(--hot-button-border-color);
    cursor: pointer;
    box-shadow:
        0 5px 16px var(--hot-button-shadow-color),
        0 0 16px rgba(25, 184, 255, 0.24),
        inset 0 1px 0 rgba(255,255,255,.30);
}

.custom:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #46C2FF 0%, #0B78FF 50%, #0057EA 100%);
    border-color: #72D1FF;
    box-shadow:
        0 7px 20px rgba(8, 103, 255, 0.48),
        0 0 22px rgba(25, 184, 255, 0.30);
}

.custom:active {
    transform: translateY(1px);
    box-shadow:
        0 3px 9px rgba(8, 103, 255, 0.34),
        inset 0 2px 5px rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------
   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(0, 3, 10, .78);
    backdrop-filter: blur(5px);
    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:
        radial-gradient(circle at 50% 0%, rgba(8, 103, 255, 0.15), transparent 38%),
        linear-gradient(180deg, #0C182B 0%, var(--panel-back-color) 100%);
    color: var(--ink-color);
    border: 3px solid var(--chad-blue);
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    box-shadow:
        0 22px 54px rgba(0, 0, 0, 0.62),
        0 0 0 5px rgba(8, 103, 255, 0.12),
        0 0 28px rgba(25, 184, 255, 0.22);
    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 #71D1FF;
    background: linear-gradient(180deg, #1EB0FF, #075FEA);
    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 11px rgba(8, 103, 255, 0.46),
        0 0 13px rgba(25, 184, 255, 0.24);
}

.custom-modal-close:hover {
    background: linear-gradient(180deg, #53C8FF, #0A75FF);
    border-color: #BCEBFF;
    transform: scale(1.05);
}

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

#CustomAlertBody h1,
#CustomAlertBody h2,
#CustomAlertBody h3 {
    color: #8EDBFF;
    text-shadow: 0 0 10px rgba(25, 184, 255, 0.24);
}

#CustomAlertBody p,
#CustomAlertBody li {
    color: var(--muted-ink);
}

#CustomAlertBody strong {
    color: #FFFFFF;
}

#CustomAlertBody a {
    color: #69CDFF;
    text-decoration-color: var(--chad-blue);
    font-weight: 700;
}

#CustomAlertBody a:hover {
    color: #FFFFFF;
    text-decoration-color: var(--chad-blue-bright);
}

#CustomAlertBody hr {
    border: none;
    border-top: 2px solid #164D91;
    margin: 24px 0;
    box-shadow: 0 0 10px rgba(8, 103, 255, 0.24);
}

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

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

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

.custom-modal-dialog::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1EB0FF, #075FEA);
    border-radius: 999px;
}

.custom-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #53C8FF, #0A75FF);
}

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