:root {
    /* MaleInBallot.com palette:
       Midnight navy, ballot-box blue, campaign red, distressed white. */

    /* Scrolling banner */
    --scrolling-banner-back-color: #0A1E46;
    --scrolling-banner-fore-color: #FFFFFF;
    --scrolling-banner-border-color: #B5121B;
    --scrolling-banner-shadow: rgba(0, 0, 0, 0.35);

    /* Primary buttons (.custom) */
    --hot-button-back-color: #B5121B;
    --hot-button-fore-color: #FFFFFF;
    --hot-button-border-color: #7F0D14;
    --hot-button-shadow-color: rgba(181, 18, 27, 0.30);

    /* Secondary buttons */
    --button-back-color: #F7F7F4;
    --button-fore-color: #0A1E46;
    --button-border-color: #315A9D;
    --button-shadow-color: rgba(10, 30, 70, 0.16);

    /* Page & container */
    --page-back-color: #07142F;
    --panel-back-color: #0B214B;
    --blue-accent-color: #2F63B7;
    --red-accent-color: #B5121B;
    --white-accent-color: #F4F4F0;
}

/* --------------------------------------------------
   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(47, 99, 183, 0.22) 0%, rgba(47, 99, 183, 0) 34%),
        linear-gradient(180deg, #0A1E46 0%, #07142F 48%, #050E20 100%);
    color: var(--white-accent-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(15, 43, 91, 0.98) 0%,
            rgba(7, 20, 47, 0.98) 100%
        );
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 36px rgba(0, 0, 0, 0.35);
}

.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: 0;
    overflow: hidden;
    background:
        linear-gradient(180deg, #16376F 0%, var(--scrolling-banner-back-color) 100%);
    color: var(--scrolling-banner-fore-color);
    border-top: 2px solid var(--scrolling-banner-border-color);
    border-bottom: 2px solid var(--scrolling-banner-border-color);
    box-shadow: 0 4px 16px var(--scrolling-banner-shadow);
}

#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: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
    user-select: none;
}

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

.main {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px 24px 40px;
    box-sizing: border-box;
    background:
        linear-gradient(
            180deg,
            rgba(7, 20, 47, 0.10) 0%,
            rgba(4, 12, 28, 0.55) 100%
        );
}

.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%, #ECEDEB 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-transform: uppercase;
    text-align: center;
    cursor: default;
    transition: all .2s ease;
    box-shadow:
        0 4px 12px var(--button-shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.custom {
    background:
        linear-gradient(180deg, #D5252E 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 14px var(--hot-button-shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.custom:hover {
    transform: translateY(-2px);
    background:
        linear-gradient(180deg, #E22E38 0%, #C31620 100%);
    border-color: #650A10;
    box-shadow:
        0 6px 18px rgba(181, 18, 27, 0.42),
        0 0 0 2px rgba(255, 255, 255, 0.06);
}

.custom:active {
    transform: translateY(1px);
    box-shadow:
        0 2px 8px rgba(181, 18, 27, 0.24),
        inset 0 2px 4px rgba(0, 0, 0, 0.20);
}

/* --------------------------------------------------
   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(1, 6, 16, .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:
        linear-gradient(180deg, #102A59 0%, #081A3A 100%);
    color: #F4F4F0;
    border: 2px solid #315A9D;
    border-top-color: #5D86CA;
    border-radius: 20px;
    padding: 32px;
    box-sizing: border-box;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    font-family: 'Fredoka', sans-serif;
    animation: modalPop .20s ease-out;
}

.custom-modal-close {
    position: sticky;
    top: 0;
    float: right;
    width: 40px;
    height: 40px;
    border: 1px solid #315A9D;
    background: #07142F;
    border-radius: 50%;
    color: #FFFFFF;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: all .15s ease;
}

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

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

#CustomAlertBody a {
    color: #8AB2F1;
    text-decoration-color: var(--red-accent-color);
    font-weight: 700;
}

#CustomAlertBody hr {
    border: none;
    border-top: 2px dashed rgba(255, 255, 255, 0.20);
    margin: 24px 0;
}

/* Modal Scrollbar */

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

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

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

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

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