body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

#wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Align items to the top to prevent stretching */
    justify-content: center;
    gap: 20px; /* Space between columns */
}

#game-container { /* This is the canvas-wrapper now */
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.3);
    border: 2px solid #333;
    line-height: 0; /* Important to remove extra space below canvas */
    position: relative; /* For absolute positioning of loading message */
}

canvas {
    display: block;
    background-color: #050510;
}

/* New styles for guide and cheats containers */
#guide-container, #cheats-container {
    width: 250px; /* Fixed width for side panels */
    height: 800px; /* Match initial canvas height, will adjust with game size */
    background-color: #1a1a2e; /* Dark background */
    border: 1px solid #4a4a6a;
    box-shadow: 0 0 10px rgba(0, 246, 255, 0.1);
    padding: 15px;
    box-sizing: border-box; /* Include padding in width/height */
    overflow-y: auto; /* Enable scrolling if content overflows */
    font-size: 12px; /* Smaller default font for side panels */
    color: #eee;
    white-space: pre-wrap; /* Preserve whitespace and allow wrapping */
}

/* Adjust height for guide/cheats when canvas resizes */
body.expanded-width #guide-container,
body.expanded-width #cheats-container {
    height: 880px; /* New height for expanded canvas */
}

#guide-container h3, #cheats-container h3 {
    color: #00f6ff;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

#guide-container p, #cheats-container p {
    margin: 5px 0;
    line-height: 1.3;
}