﻿:root {
    /*fonts*/
    --large-font-size: 16px;
    --normal-font-size: 14px;
    --small-font-size: 12px;
    --font-family: "Open Sans", Arial, Helvetica, sans-serif;
    --font-family2: "Roboto", Arial, Helvetica, sans-serif;
    /*colors*/
    --color-green: #10E5B1;
    --color-blue: #005FFF;
    --color-blue-hover: #0056b3;
    --color-orange: #F15A24;
    --color-orange-hover: #d44f20;
    --color-red: #DE0000;
    --color-red-hover: #c82333;
    --color-gray: #cccccc;
    --color-light-gray: #F2F2F2;
    --color-navy: #0B1556;
    --theme-dark-gray: rgba(255, 255, 255, 0.5);
    --theme-dark-gray2: #291F2CCC;
    --theme-dark-red: #C52034;
    --color-white: #FFFFFF;
    /* used colors by items */
    --theme-bg-btn: var(--color-navy);
    --theme-color-Or-btn: var(--color-navy);
    --theme-bg-Or-btn: white;
    --theme-bg-top-event-name: rgba(14, 56, 105, 1);
    --theme-start-icon-fill: rgba(11, 21, 86, 0.6);
    --theme-btn-submit-bg: var(--color-green);
    --theme-btn-submit-bg-hover: var(--color-green);
    --theme-btn-submit-color: var(--color-navy);
    --theme-btn-begin-bg: var(--color-green);
    --theme-btn-begin-color: var(--color-navy);
    --theme-btn-lookup-color: var(--color-white);
    --theme-btn-lookup-bg: var(--color-navy);
    --theme-lookup-icon-fill: var(--color-green);
    --theme-btn-new-reg-color: var(--color-blue);
    --theme-btn-new-reg-bg: var(--color-white);
    --theme-new-reg-dashed-icon-fill: var(--color-navy);
    --theme-new-reg-plus-icon-fill: var(--color-navy);
    --theme-bg-multi-record-item: white;
    --theme-color-multi-record-item: var(--color-navy);
    --theme-btn-print-bg: var(--color-navy);
    --theme-btn-print-color: white;
    --theme-pop-up-bg: #0b1556e6;
    --theme-btn-save-proceed-bg: var(--color-blue);
    --theme-btn-save-proceed-color: white;
    --theme-btn-keep-edit-bg: var(--color-green);
    --theme-btn-keep-edit-color: var(--color-navy);
    --theme-btn-edit-info-bg: var(--color-white);
    --theme-btn-edit-info-color: var(--color-navy);
    --theme-btn-discard-bg: var(--color-white);
    --theme-btn-discard-color: var(--color-navy);
    --theme-btn-close-modal-x-bg: var(--color-green);
    --theme-btn-close-modal-x-color: var(--color-navy);
    --theme-btn-pop-up-ok-bg: var(--color-green);
    --theme-btn-pop-up-ok-color: var(--color-navy);
    --theme-height-logo-brand: 100px;
    --theme-max-width-home: 550px;
    --theme-progress-bar-fill-bg: var(--color-navy);
    --theme-top-status-card-bg: var(--color-navy);
    --theme-status-card-bg: white;
    --theme-printer-instruction-color: white;
    --theme-all-set-icon-fill: var(--color-green);
    --theme-all-set-text-color: var(--color-green);
    --theme-all-set-timer-text-color: var(--color-navy);
    --theme-timer-progress-color: var(--color-green);
    --theme-start-over-btn-bg: var(--color-green);
    --theme-start-over-btn-color: var(--color-navy);
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--color-gray) 70%, transparent);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        opacity: 0.85;
    }

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray) transparent;
}

.body-content {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.head-content {
    flex: 0 0 auto;
    position: relative;
    text-align: center;
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    justify-content: space-between;
    padding: 10px 20px;
    height: 100px;
}

    .head-content .head-content-left {
        flex: 1 0 auto;
        display: flex;
        flex-flow: row;
        justify-content: flex-start;
        align-items: center;
        gap: 15px;
    }

        .head-content .head-content-left .event-top-info {
            text-align: start;
            display: flex;
            flex-flow: row nowrap;
            width: auto;
            gap: 5px;
            justify-content: flex-start;
            align-items: center;
        }

        .head-content .head-content-left #backBtn {
            font-size: 22px;
            width: 40px;
        }

    .head-content .fpbadgeWebIcon {
        width: 75px;
    }

    .head-content .event-top-info .event-title,
    .head-content .event-top-info .event-date {
        font-family: 'Open Sans';
        font-weight: 800;
        font-size: 18px;
        color: white;
        text-align: start;
        margin: 0;
        padding: 0;
    }

    .head-content .event-top-info .event-date {
        color: white;
    }

.main-content {
    flex: 1 0 auto;
    position: relative;
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

    .main-content > * {
        flex: 1 0 auto;
        display: flex;
        flex-flow: column nowrap;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: 200px;
        padding-bottom: 20px;
        height: 100%;
    }

.page-container > * {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.container {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    text-align: center;
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.title {
    color: var(--color-navy);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    color: var(--color-navy);
    font-size: 2.25rem;
    margin-bottom: 0px;
}

.date {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -15px;
}

.message {
    position: absolute;
    bottom: 40px;
    margin-top: 30px;
    padding: 15px;
    border-radius: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: none;
}

    .message.show {
        display: block;
        opacity: 1;
    }

    .message.success {
        background: var(--color-green);
        color: #1a5d3f;
    }

    .message.error {
        background: rgba(255, 82, 82, 1);
        color: #8b1a1a;
    }

    .message.warning {
        background: #ffe57faa;
        color: black;
    }

/*---------------------------- spinner -------------------------------------*/
*.loading {
    position: relative;
    padding-left: 2.2rem; /* Make space for spinner */
    background-color: #aaa !important;
    color: #fff !important;
    cursor: not-allowed;
}

    /* Spinner as a pseudo-element */
    *.loading::before {
        content: "";
        position: absolute;
        top: calc(50% - 11px);
        /*        transform: translate(-50%, -50%); */
        left: 20px;
        width: 22px;
        height: 22px;
        /* margin-top: -10px; */
        border: 2px solid var(--color-blue);
        border-top-color: transparent;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Another spinner*/
.custom-btn-spinner {
    display: inline-block;
    width: 1.5em; /* Scales automatically with button font-size */
    height: 1.5em; /* Scales automatically with button font-size */
    border: 3px solid currentColor; /* Matches the button's text color */
    border-right-color: transparent; /* Creates the cutout for the spin effect */
    border-radius: 50%;
    animation: btn-spin 0.75s linear infinite;
    vertical-align: middle;
}

    /* Adds a small gap if you pass text along with the loader */
    .custom-btn-spinner + .spinner-text {
        margin-left: 8px;
    }

/* The spinning animation */
@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}
/************************/

.img-dark {
    background-color: black;
    border-radius: 50%;
}

.img-navy {
    background-color: var(--color-navy);
    border-radius: 50%;
}

.img-white {
    background-color: white;
    border-radius: 50%;
}


.fp-btn {
    width: 300px;
    background: var(--color-navy);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .fp-btn i,
    .fp-btn img {
        margin-right: 8px;
        width: 20px;
    }

    .fp-btn:hover {
        transform: translateY(-2px);
        /*background: #0f1d36;*/
    }

    .fp-btn:active {
        transform: translateY(0);
    }

    .fp-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }


    .fp-btn.fp-btn-green {
        background-color: var(--color-green);
    }

    .fp-btn.fp-btn-blue {
        background-color: var(--color-blue);
    }

    .fp-btn.fp-btn-yellow {
        background-color: var(--color-orange);
    }

    .fp-btn.fp-btn-light {
        background: white;
        color: #1a2849;
    }

        .fp-btn.fp-btn-light:hover {
            background: #f0f0f0;
        }


    .fp-btn.fp-btn-light {
        background: white;
        color: #1a2849;
    }

        .fp-btn.fp-btn-light:hover {
            background: #f0f0f0;
        }


    .fp-btn.fp-btn-dark {
        background: linear-gradient(135deg, #1a2849 0%, #0f1d36 100%);
        color: white;
        /*margin-top: 0px;*/
    }

        .fp-btn.fp-btn-dark:hover {
            background: linear-gradient(135deg, #25448a 0%, #1a2849 100%);
            color: white;
        }

    .fp-btn.fp-btn-red {
        background: var(--theme-dark-red);
    }

        .fp-btn.fp-btn-red:hover {
        }

@keyframes bob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px); /* move slightly upward */
    }
}

/* ---------------------------------------
    Mobile responsiveness
    --------------------------------------- */
.fpbadge-logo-img-mobile,
.hide-in-desktop-version {
    display: none !important;
}

/* mobileWidthThreshold */
@media (max-width: 768px) {
    .hide-in-mobile-version {
        display: none !important;
    }

    .body-content {
        height: auto;
        justify-content: center;
    }

        .body-content .head-content {
            height: 130px;
            max-height: 130px;
            position: sticky;
            top: -1px;
            background: var(--theme-bg-top-event-name);
            z-index: 10;
            padding: 0;
        }

            .body-content .head-content .head-content-left {
                padding: 16px;
                width: 100% !important;
                overflow: hidden;
            }

    .fpbadge-logo-img-mobile {
        display: block !important;
        max-height: 100px;
        max-width: 35%;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .head-content .event-top-info .event-title {
        font-size: 20px;
        width: 100%;
    }

    .main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        max-height: fit-content;
        overflow: visible;
    }

    .express-title {
        font-size: 1.5rem !important;
    }

    .action-btn {
        padding: 16px !important;
        min-width: 275px;
    }

    .form-container {
        padding: 22px;
    }

    #formContainer {
        height: calc(100vh - 154px);
        width: 100%;
        max-height: calc(100vh - 154px);
        padding: 0 !important;
    }

    #previewContainer {
        padding: 0;
    }

        #previewContainer > div {
            flex-direction: column-reverse !important;
            gap: 16px !important;
            overflow: clip;
        }

        #previewContainer .preview-badge {
            min-width: 100% !important;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: center !important;
        }

    #previewBadgeFrame {
        margin-bottom: 32px;
        overflow: visible !important;
        max-width: none !important;
    }

    #previewContainer .buttons {
        width: -webkit-fill-available !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin: 16px 16px 0px 16px !important;
    }

    #printBadgeBtn {
        width: 75% !important;
        max-width: 450px;
        min-width: fit-content;
    }

    .edit-info-btn {
        width: 52px !important;
        height: 52px !important;
        padding: 0;
        border-radius: 50%;
    }

        .edit-info-btn span {
            display: none;
        }

        .edit-info-btn img {
            margin: 0;
        }

    .rings-container {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 350px !important;
        max-height: 350px !important;
    }

    /* you are all set */
    #finishPrinterContainer > div {
        gap: 32px !important;
    }

    .finish-printing-container {
        min-width: 95% !important;
        height: calc(100vh - 250px) !important;
    }

    .timer-section {
        padding: 50px 20px !important;
    }

    .starting-over-text {
        font-size: 24px !important;
        font-style: normal !important;
    }

    .timer-wrapper {
        height: auto !important;
    }

    .timer-svg {
        display: none;
    }

    .start-over-btn {
        width: 100% !important;
    }

    .timer-content {
        position: initial !important;
        flex-direction: row !important;
        justify-content: center;
        align-items: end;
        gap: 8px;
    }

    #timer-seconds {
        font-weight: 700 !important;
        font-size: 80px !important;
    }

    .timer-unit {
        font-size: 20px !important;
    }
}
