@font-face {
    font-family: 'Cubic_11';
    src: url('./font/Cubic_11.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Cubic_11', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100%;
    max-width: 450px;
    max-height: 100%;
    overflow: hidden;
    padding: 5px;
    /* border: 2px solid #555;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5); */
}

#game-canvas {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #222;
}

#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allow clicks to pass through to canvas unless on a button */
}

#score-display {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

#pause-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    background: #00000080;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pause-button:active {
    background: #ffffff80;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000b3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: all;
    /* Capture clicks */
}

.overlay h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.overlay h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.overlay p {
    font-size: 1.2em;
    margin-bottom: 30px;
    padding: 0 20px;
}

.overlay p.platform-info {
    font-size: 0.9em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
    align-items: center;
    padding: 0 100px;
}

.overlay p.platform-info img {
    width: 100%;
    height: 20px;
    vertical-align: middle;
    padding: 2px;
    border-radius: 4px;
}

.overlay button {
    padding: 15px 30px;
    font-family: 'Cubic_11', sans-serif;
    font-size: 1.5em;
    cursor: pointer;
    background-color: #eee;
    color: #111;
    border: none;
    border-radius: 5px;
    box-shadow: 0 5px #999;
    transition: all 0.1s ease-in-out;
}

.overlay button:active {
    transform: translateY(5px);
    box-shadow: none;
}