/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body,
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.video-bg.hidden {
    opacity: 0;
}

/* UI Content Common */
.ui-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ui-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.title {
    font-size: 2rem;
    letter-spacing: 4px;
    margin-top: 1rem;
}

/* keep paragraph spacing tight for the intro above the button */
.intro {
    margin: 0 auto -430px auto;
    /* center horizontally, small gap below */
    max-width: 640px;
    /* limit width for better readability */
    text-align: center;
    /* center-align the text */
    line-height: 1.3;
}

/* center the continue button and keep small top margin */
#continueBtn {
    display: block;
    margin: 6px auto 0 auto;
    /* top 6px, horizontally centered */
}

/* Buttons */
.btn {
    background: #c0c0c0;
    border: none;
    border-radius: 20px;
    padding: 0.6rem 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #e0e0e0;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-small {
    background: #c0c0c0;
    border: none;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-small:hover {
    background: #e0e0e0;
}

/* Global rule to make all text white */
html,
body {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

body,
body * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

::placeholder,
::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

svg,
svg * {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Glassmorphism for buttons */
.glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 35px;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Primary large button */
.btn.glass {
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Small buttons */
.btn-small.glass {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    margin: 6px;
}

/* Hover / active states */
.glass:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.glass:active {
    transform: translateY(-1px) scale(0.997);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

/* Optional: make glass buttons slightly transparent on disabled */
.glass:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .btn-small {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Loader Overlay with Blur */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* semi-transparent dark layer */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s ease;
    backdrop-filter: blur(10px);
    /* Blur everything behind */
}

/* Spinner */
.loader-spinner {
    width: 70px;
    height: 70px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #ffd900c2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hide overlay when done */
.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Spin Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Use Lato everywhere and make text thin (300) */
html,
body,
body * {
    font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 300 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings: if you want to keep heavier headings editable later, they can be overridden.
   Currently all text uses 300 per your request. */