 /*TODO move to css files*/
 html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* prevent scrollbars */
    touch-action: none; /* better touch behavior */
}

canvas {
    display: block; /* fix necessary to remove space at bottom of canvas */            
}
p {
    color:rgb(0, 255, 213);
    font-family: monospace;
}

a {
    color:rgb(1, 82, 133);
    font-family: monospace;
    font-size:24px
}

#blocker {
    position: fixed;
    z-index: 9999;
    width: 100%;
    height: 100%;
    background-color: rgba(32,32,32,0.5);
    pointer-events: auto;
}

#instructions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
    color: black;
    background: none;
    padding: 20px;
    pointer-events: auto;
}


/* Start of 2d items */
#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows interaction with 3D canvas underneath */
}

/* Reticule */
.reticule {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #888; /* Grey color */
    transform: translate(-50%, -50%);
}

.reticule::before,
.reticule::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background-color: #888; /* Grey color */
}

.reticule::before {
    transform: translate(-50%, -50%);
}

.reticule::after {
    transform: translate(-50%, -50%) rotate(90deg);
}


#objectCount, #fpsDisplay, #jsonData {
    position: absolute;
    left: 0.5%;  /* Set the same left alignment */
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-align: left;  /* Ensure proper text alignment */
    transform: none;  /* Remove the misaligning transform */
}

#fpsDisplay {
    top: 0.5%;
}

#objectCount {
    top: 2%;
}

#jsonData {
    top: 3.5%;
}

#grid {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(auto-fill, 50px);
    gap: 5px;
}

/*
nav {
    display:none;
}
*/

#stats-panel {
    position: absolute;
    top: 0px; /* Align with the top of the viewport */
    right: 0px; /* Align with the right of the viewport */
    z-index: 1000; /* Ensure it's on top of other elements */
}

#joystickContainer {
    position: absolute;
    bottom: 60px;
    left: 60px;
    width: 120px;
    height: 120px;
    touch-action: none;
    z-index: 999;
  }
  
  #joystickBase {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    position: relative;
  }
  
  #joystickThumb {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    position: absolute;
    top: 30px;
    left: 30px;
    transform: translate(-50%, -50%);
  }
  