body {
    margin: 0px;
    overflow: hidden;
}

#gameBox {
    width: 100vw;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

canvas {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

nav {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arrow {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #4B3025;
    border-radius: 10px;
    width: 55px;
    height: 55px;
    pointer-events: auto;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#uArrow {
    top: 10px;
    left: calc(50% - 27px);
}

#dArrow {
    bottom: 10px;
    left: calc(50% - 27px);
}

#lArrow {
    left: 10px;
    top: calc(50% - 27px);
}

#rArrow {
    right: 10px;
    top: calc(50% - 27px);
}

#rotateMessage {
    display: none;
}

/* PHONE HELD VERTICALLY */
@media (orientation: portrait) and (pointer: coarse) {
    #gameBox {
        display: none;
    }

    nav {
        display: none;
    }

    #rotateMessage {
        display: flex;
        position: fixed;
        inset: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        font-size: 24px;
        font-family: Arial, sans-serif;
        background: #F5E8D0;
        color: #3A2418;
    }
}

#lArrow {
    left: 10px;
    top: calc(50% - 27px);
}

#rArrow {
    right: 10px;
    top: calc(50% - 27px);
}
