@font-face {
    font-family: retroGaming;
    src: url(../assets/font/RetroGaming.woff);
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
    background-color: rgb(0, 0, 0);
    font-family: retroGaming;
    display: flex;
    align-items: center;
    justify-content: center;
}

#frame {
    display: grid;
    width: 100vw;
    height: 100vh;
    place-content: center;
}

#world {
    container-type: size;
    container-name: game;
    position: relative;
    width: 100vw;
    max-width: calc(100vh * 4 / 3);
    max-height: 100vh;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: rgb(255, 255, 255); /* Same as app background */
}

#app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    z-index: 0;
    transform-origin: center center;
    will-change: transform;
}

@container game (aspect-ratio < 4/3) {
    #world {
        width: 100%;
        height: auto;
    }
}

/* Timer display styles */
.mcq-timer {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timer-digit {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 1px;
}

.timer-warning {
    animation: pulse-red 0.5s infinite alternate;
}

@keyframes pulse-red {
    from {
        background-color: rgba(255, 255, 255, 0.9);
        border-color: #000;
    }

    to {
        background-color: rgba(255, 200, 200, 0.9);
        border-color: #ff0000;
    }
}

@container game (aspect-ratio > 4/3) {
    #world {
        width: auto;
        height: 100%;
    }
}