/* FocusOnNavigate focuses the page heading (for screen readers); hide the outline that would draw around it. */
h1:focus {
    outline: none;
}

/* Dark page while the app loads, instead of a white flash. */
html, body {
    margin: 0;
    background: #120a1e;
}

/* Shared game background (space image) and the two corner decorations; pages set the corner height. */
.quiz-bg {
    position: relative;
    overflow: hidden;
    background: #120a1e url("Assets/background1920B.jpg") center / cover no-repeat;
    color: #fff;
}

.quiz-corner {
    position: absolute;
    pointer-events: none;
}

    .quiz-corner.top-right {
        top: 0;
        right: 0;
    }

    .quiz-corner.bottom-left {
        bottom: 0;
        left: 0;
    }

/* Visually hidden, still read by screen readers. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Image buttons (UWP ButtonStyleImage / ButtonStyleImageAlt): normal, hover and pressed images. */
.img-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 0 16px;
    border: 0;
    background: url("Assets/button1.png") center / 100% 100% no-repeat;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    cursor: pointer;
}

    .img-btn:hover {
        background-image: url("Assets/button2.png");
    }

    .img-btn:active {
        background-image: url("Assets/button3.png");
    }

    .img-btn.alt {
        background-image: url("Assets/button1alt.png");
    }

        .img-btn.alt:hover, .img-btn.alt:active {
            background-image: url("Assets/button2alt.png");
        }

    /* Shown like in the UWP app but not working on the web (store): no hover or pressed look. */
    .img-btn:disabled {
        pointer-events: none;
    }

/* "Copied!" note of the Ask a friend menu (ask-friend.js): a popover, in front of the message box. */
.ask-friend-toast {
    position: fixed;
    inset: auto auto 32px 50%;
    margin: 0;
    transform: translateX(-50%);
    padding: 10px 20px;
    border: 0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-weight: 600;
    pointer-events: none;
    animation: ask-friend-toast 2s ease-out forwards;
}

@keyframes ask-friend-toast {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Blazor shows this banner (MainLayout) only when an unhandled error occurs. */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-sizing: border-box;
    padding: 0.6rem 1.25rem 0.7rem;
    background: lightyellow;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
}

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