body,
html {
    background-size: cover;
background-repeat: no-repeat;
background-position: center center;
height: 100vh; /* Ensures the background covers the full height of the viewport */
width: 100vw; /* Ensures the background covers the full width of the viewport */
margin: 0;
padding: 0;
}

canvas {
  display: block;
  width: 100vw;
  height: auto;
  max-height: 100vh; 
  aspect-ratio: attr(data-aspect-ratio); 
    background-color: transparent;
    image-rendering: auto;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
    will-change: transform, opacity;
    transform: translateZ(0);
}

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

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

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

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-family: 'xoxb', monospace;
    z-index: 9;
}

#begin {
    background-color: #ffffff;
    border: 2px solid #009cde;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 24px;
    margin: 4px 2px;
    color: #009cde;
    border-radius: 4px;
    z-index: 10;
}

#begin:hover {
    cursor: progress;
    /* Initially disabled */
}

#begin span {
    font-family: 'xoblk', monospace;
}

#begin.enabled:hover {
    cursor: pointer;
    /* Enable cursor when button is enabled */
}
