/* Blazor-specific additions on top of the original style.css */

/* Boot loader progress bar driven by the WebAssembly download percentage */
#progress.blazor-progress {
    width: var(--blazor-load-percentage, 0%);
    transition: width 0.1s ease-in-out;
}

/* Responsive 16:9 YouTube embed in the games section */
.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

    .video-embed iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }

/* Contact form validation (EditForm) */
.validation-message {
    color: #dc3545;
    font-size: 0.9rem;
}

input.invalid,
textarea.invalid {
    border-color: #dc3545 !important;
}

#msgSubmit {
    margin-top: 15px;
}

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1100;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }
