html {
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom, #172b36 0%, #d9e8e3 100%);
    touch-action: none;
    overscroll-behavior: none;
}

#container {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: min(70vh, 80%);
    max-width: 900px;
    height: 100%;
    position: relative;
    gap: 10px;
}

canvas {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    margin-top: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

#hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 24px;
    color: #114c5a;
    background: rgba(241, 246, 244, 0.85);
    border: 1px solid rgba(23, 43, 54, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    gap: 12px;
    z-index: 3;
}

#timer {
    font-size: 40px;
    font-weight: 700;
}

#overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: monospace;
    font-size: 24px;
    color: #172b36;
    pointer-events: none;
    text-align: center;
    z-index: 2;
}

.side-overlay {
    position: absolute;
    top: 45%;
    transform: translate(-50%, -50%);
    font-family: monospace;
    font-size: 28px;
    color: #172b36;
    pointer-events: none;
    text-align: center;
    width: 80px;
    z-index: 2;
}

#overlayLeft {
    left: 25%;
}

#overlayRight {
    left: 75%;
}

.hidden {
    display: none !important;
}

#made {
    text-align: center;
    line-height: 1.5;
    font-family: monospace;
    margin-top: auto;
    margin-bottom: 20px;
    font-size: 10px;
}

#made a {
    color: #172b36;
}
