body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: white;
}

#display-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#display-container img,
#display-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}



/* Static Text Styles */
.text-display {
    width: 90%;
    font-size: 8vh;
    text-align: center;
    white-space: pre-wrap;
    font-family: sans-serif;
}

/* --- Vertical Scroll (Bottom to Top) --- */
.text-display.scroll-vertical {
    position: absolute;
    transform: translateY(100%);
    /* Animation name, timing, and repetition */
    animation: scroll-vertical-anim linear infinite;
}

@keyframes scroll-vertical-anim {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(-100vh);
    }

    /* vh ensures it goes fully off screen */
}

/* --- Horizontal Scroll --- */
.text-display.scroll-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    /* Force left origin for consistent transforms */
    transform: translateY(-50%);
    width: max-content;
    /* Critical for measuring full width */
    animation: scroll-horizontal-ltr-anim linear infinite;
    /* Default to LTR animation */
}

/* If it also has the .rtl class, use the RTL animation instead */
.text-display.scroll-horizontal.rtl {
    animation-name: scroll-horizontal-rtl-anim;
}

/* LTR Animation (Right to Left movement) */
@keyframes scroll-horizontal-ltr-anim {
    from {
        transform: translateX(100%) translateY(-50%);
    }

    to {
        transform: translateX(-100vw) translateY(-50%);
    }

    /* Exit fully to -100vw ensures clearing screen */
}

/* RTL Animation (Left to Right movement) */
/* Start from Left Edge (-100% of text width is off screen left) to Right Edge (100% of container) */
@keyframes scroll-horizontal-rtl-anim {
    from {
        transform: translateX(-100%) translateY(-50%);
    }

    to {
        transform: translateX(100vw) translateY(-50%);
    }
}

/* --- Zone and Composition Styles --- */
.zone {
    /* The position is set by JS, but we can add defaults */
    box-sizing: border-box;
    /* Include padding and border in the element's total width and height */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* This ensures text content is centered within its zone div */
.text-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* We need to adjust the vertical scroll animation to use the container height */
@keyframes scroll-vertical-anim {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(-100%);
    }

    /* Animate relative to its own height now */
}

/* --- NEW BRANDED Provisioning Display Styles --- */

/* Add this with your other provisioning styles */
/* Replace the old .provisioning-header rule with this */
.provisioning-header {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    text-align: center;
    color: #ecf0f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* --- THIS IS THE FIX --- */
}

.provisioning-clock {
    font-size: 5.5em;
    /* Large, bold time */
    font-weight: bold;

}

.provisioning-date {
    font-size: 2.2em;
    opacity: 0.8;

}

.provisioning-wrapper {

    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Using a dark, professional gradient background */
    background: #141E30;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #243B55, #141E30);
    background: linear-gradient(to right, #243B55, #141E30);
    color: white;
    flex-shrink: 0;

    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

.provisioning-card {

    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    /* Semi-transparent dark card */
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.provisioning-logo {
    max-width: 550px;
    /* Make the logo a bit larger */
    margin-bottom: 20px;
    margin-top: 150px;
    /* Optional: If your logo has a white background you want to hide, uncomment the next line */
    mix-blend-mode: screen;
}

/* This title is now hidden because the logo contains the name */
.provisioning-title {
    display: none;
}

.provisioning-tagline {
    font-size: 1.6em;
    margin: 5px 0 30px 0;
    color: #ecf0f1;
    opacity: 0.8;
    font-weight: 300;
    /* Lighter font weight */
}

.provisioning-instructions {
    font-size: 1.2em;
    color: #bdc3c7;
    /* Lighter grey for instructions */
}

.provisioning-code-container {
    margin-top: 20px;
}

.provisioning-code {
    font-size: 5em;
    font-weight: bold;
    letter-spacing: 15px;
    /* Using your logo's green as the accent color */
    color: #00A65A;
    text-shadow: 0 0 10px rgba(0, 166, 90, 0.5);
    /* Add a glow effect */
    background-color: rgba(0, 0, 0, 0.3);
    padding: 15px 30px;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid rgba(0, 166, 90, 0.5);
    /* Border matching the green */
}

/* Styles for "Ready", "Success", etc. messages */
.provisioning-display .provisioning-title {
    font-size: 3em;
    color: white;
}

.provisioning-display p {
    font-size: 1.5em;
    color: #bdc3c7;
}

/* Add this to the bottom of the provisioning styles */
.provisioning-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 1em;
    color: white;
    opacity: 0.7;
}

/* This is the updated rule for a smaller, bottom-left QR code */
/* This is the corrected rule for the QR code */
.provisioning-qr-code {
    position: absolute;
    bottom: 80px;
    left: 80px;
    width: 100px;
    height: 100px;
    background-color: white;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;


    /* Add this to your screen.css */
    .status-display {
        color: #555;
        text-align: center;
    }

    /* --- ADD THIS LINE --- */
    cursor: pointer;
    /* Changes the mouse to a "hand" pointer on hover */
    /* --- THIS IS THE FIX --- */
    /* This tells the element to align itself to the start (bottom) of the flex container, overriding the center alignment. */
    align-self: flex-end;
}