/* Basic reset and body styling */
body {
    margin: 0;
    overflow: hidden; /* Prevent scrollbars */
    background-color: #333; /* Fallback background */
    font-family: "Press Start 2P", cursive;
    color: white; /* Default text color */
}

#gameContainer {
    position: relative; /* For positioning the overlay */
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#startScreen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAABNJREFUWEft0EEKACAQA8HV/ocuFEIk6qj+5+wAEu12uxbAX7kAAAAASUVORK5CYII=') repeat; /* Simple 1x1 black pixel for pattern base */
    background-size: 40px 40px; /* Control checker size */
    background-image: linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000),
                      linear-gradient(45deg, #000 25%, transparent 25%, transparent 75%, #000 75%, #000);
    background-position: 0 0, 20px 20px; /* Offset second layer for checkerboard */
    background-color: #fff; /* White background for checkers */
    z-index: 20; /* Ensure start screen is on top */
    text-align: center;
}

#startScreen.hidden {
    display: none;
}

#startBox {
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black */
    padding: 20px 30px;
    border: 2px solid white;
    margin-bottom: 20px; /* Space between box and button */
    display: inline-block; /* Shrink to content */
}

.startTitle {
    font-size: 1.8em; /* Adjust as needed */
    margin-bottom: 10px;
    color: white;
}

.startSubtitle {
    font-size: 1.2em; /* Adjust as needed */
    color: white;
}


/* Canvas styling */
canvas {
    border: 1px solid black; /* Keep border for visibility */
    display: block; /* Prevents potential extra space below canvas */
    /* width/height are set dynamically in JS */
    position: relative; /* Needed for z-index stacking if start screen wasn't absolute */
    z-index: 10;
}

/* Mute Button Styling */
#muteButton {
    /* display: inline-block; /* Now controlled by #startScreen visibility */
    /* margin-top: 20px; /* Removed, now positioned relative to startBox */
    padding: 8px 12px;
    font-family: "Press Start 2P", cursive; /* Match game font */
    font-size: 10px; /* Smaller font size */
    background-color: rgba(0, 0, 0, 0.7); /* Slightly darker background */
    color: white;
    border: 1px solid white;
    cursor: pointer;
    /* z-index: 10; /* Not needed, part of startScreen */
}

/* Removed .visible class as #startScreen handles visibility */

#muteButton:hover {
    background-color: rgba(255, 255, 255, 0.3); /* Lighten on hover */
}
