/* Global layout and generic elements */
html, body {
    height: 100%;
}

html {
    /* iOS Safari 100vh fix */
    height: -webkit-fill-available;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Anton', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    /* Prevent pull-to-refresh and rubber-band scroll on mobile */
    overscroll-behavior: none;
    min-height: -webkit-fill-available; /* pair with html fix */
}

/* Loading and transition overlays */
#loading-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 101;
}
#loading-screen p {
    font-size: 3em;
    color: white;
    text-shadow:
        -3px -3px 0 var(--black),
         3px -3px 0 var(--black),
        -3px  3px 0 var(--black),
         3px  3px 0 var(--black),
         5px 5px 8px rgba(0,0,0,0.5);
}

#transition-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--black);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity var(--transition-med);
}

/* Buttons defaults */
button {
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: 4px solid var(--black);
    background-color: var(--white);
    margin: 0 10px;
    font-family: 'Anton', sans-serif;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

/* Utility */
.image-pixelated {
    image-rendering: pixelated;
}

#hot-banner {
    position: fixed;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--black);
    border: 3px solid var(--black);
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'Anton', sans-serif;
    font-size: 18px;
    z-index: 150;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}