html {
    position: relative;
    min-height: 100%;
}

.container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    margin-left: auto !important
}

.snappyjacks-logo {
    content:  url("SiteImages/snappyjacks_logo.svg");
    height: 60px;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .snappyjacks-logo {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .snappyjacks-logo {
        height: 40px;
    }
}

:root {
    --primary: #e5003d;
    --secondary: #00e5a8;
    --text: #111111;
    --bg: #f7f7f7;
    --card-bg: #ffffff;
    --border: #e5e5e5;
    --radius: 14px;
    --shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Global */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Header */
header {
    text-align: center;
    padding: 1.4rem 1rem;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

    header h2 {
        margin: 0;
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--primary);
        letter-spacing: -0.3px;
    }

/* Ticket Container */
#ticket-container {
    padding: 1.2rem;
}


.floating-logo {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.qr-timer {
    text-align: center;
    font-weight: 500;
}


/* Ticket Card */
.ticket-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
    max-width: 420px;
    margin: 0 auto;
    display: none;
    border: 1px solid rgba(0,0,0,0.04);
}

    .ticket-card.active {
        display: block;
    }

.qr-wrapper {
    position: relative;
    text-align: center;
    padding-top: 1.5rem; /* more space for the badge */
}


.dynamic-badge {
    position: absolute;
    top: -18px; /* moved higher so it never touches the QR */
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 0.3rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@keyframes pulseWarning {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.qr-timer.warning {
    color: var(--primary); /* your red */
    animation: pulseWarning 0.8s infinite;
}


.qr-timer {
    text-align: center;
    font-size: 1.1rem !important; /* much larger */
    font-weight: 700 !important; /* bold */
    margin-top: 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
    color: #333;
}


/* QR */
.qr-wrapper {
    text-align: center;
    margin-bottom: 1.2rem;
}

    .qr-wrapper canvas {
        width: 240px !important;
        height: 240px !important;
        cursor: pointer;
        border-radius: 8px;
        border: 1px solid var(--border);
    }

    .qr-wrapper div {
        margin-top: 0.4rem;
        font-size: 0.75rem;
        color: #666;
    }

/* Ticket Fields */
.ticket-field {
    margin: 0.45rem 0;
    font-size: 1.05rem;
}

    .ticket-field strong {
        font-weight: 600;
        color: var(--primary);
    }

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin: 1.4rem auto;
    max-width: 420px;
}

    .nav-buttons button {
        flex: 1;
        padding: 0.9rem;
        margin: 0 0.35rem;
        border: none;
        border-radius: var(--radius);
        background: var(--primary);
        color: white;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .nav-buttons button:hover:not(:disabled) {
            background: #c40034;
        }

        .nav-buttons button:disabled {
            background: #cccccc;
            cursor: not-allowed;
        }

/* QR Modal */
#qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

    #qr-modal img {
        width: 92%;
        max-width: 420px;
        border-radius: 12px;
        border: 2px solid var(--secondary);
    }
