@font-face {
    font-family: 'Bitwise';
    src: url('./Bitwise-m19x.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

canvas {
    pointer-events: auto;
}

canvas, body, html {
    font-family: 'Bitwise', sans-serif;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    overflow: auto;
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100vw;
    height: 100vh;
    cursor: crosshair;
    z-index: 0;
    background: black;
}

body, img, canvas {
    user-drag: none; /* Disable image dragging */
    -webkit-user-drag: none; /* For Safari */
    touch-action: none; /* Prevent touch actions like pinch-zoom and double-tap */
}

/* Custom scrollbar styles for all scrollable elements */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
    background-color: black; /* Background of the scrollbar track */
}

::-webkit-scrollbar-thumb {
    background-color: green; /* Color of the scrollbar thumb */
    border-radius: 10px; /* Round the edges of the thumb */
    border: 2px solid black; /* Adds space around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: limegreen; /* Color of the scrollbar thumb when hovered */
}

::-webkit-scrollbar-track {
    background-color: #0a0a0a; /* Color of the track (darker black) */
}

/* For Mozilla Firefox */
scrollbar-width: thin; /* Makes the scrollbar thinner */
scrollbar-color: green black; /* Thumb color and track color */

/* Ensure chatroom retains background styling */
#chatroom::-webkit-scrollbar {
    width: 8px;
}

#chatroom::-webkit-scrollbar-thumb {
    background-color: green;
    border-radius: 10px;
    border: 2px solid black;
}

#chatroom::-webkit-scrollbar-thumb:hover {
    background-color: limegreen;
}

#chatroom::-webkit-scrollbar-track {
    background-color: #0a0a0a;
}

div {
    font-family: 'Bitwise', sans-serif;
    color: green;
}

#chatroom, #chatroomInput, #gameInstructions, #clientFps, #serverFps, #clientMessagesPerSecond, #logDiv, #playersDiv, #cpuMemoryUsageDisplay, #scoreboard, #enemiesLeft {
    cursor: url('/resources/fonts/Bitwise-m19x.ttf'), auto;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    position: fixed;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid green;
    display: block;
    width: 80vw;
    height: 90vh;
}

#welcomeMessage {
    font-family: 'Bitwise', sans-serif;
    cursor: url('/resources/fonts/Bitwise-m19x.ttf'), auto;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    color: green;
    position: absolute;
    top: 0px;
    left: 20vw;
    padding: 10px;
    border-radius: 5px;
    display: block;
    width: 80vw;
    height: 100vh;
}
