:root {
  --safe-area-inset-top: env(safe-area-inset-top); /* For iOS dynamic island detection */
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevents scrollbars from appearing */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    width: var(--game-canvas-width);
    height: var(--game-canvas-height);

    background-color: black;
}

#gameCanvas {
    padding: 0;
    margin: 0;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    width: var(--game-canvas-width);
    height: var(--game-canvas-height);

    /* Prevents text selection on the canvas, which can interfere with gameplay */
    -webkit-user-select: none; /* Required for Safari */
    user-select: none;         /* Standard syntax */
}
