body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212; /* Dark background color */
    color: #ffffff; /* Light text color */
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#container {
    display: flex;
    width: 100%;
    height: 100%;
}

#sidebar {
    width: 250px; /* Adjusted width for better fit */
    background-color: #1e1e1e;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#sidebar h2, #sidebar h3 {
    margin-top: 0;
    font-size: 20px;
}

#sidebar button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-size: 16px;
}

#sidebar button:hover {
    background-color: #555555;
}

#code-snippet {
    margin-top: 10px;
    width: 100%;
    background-color: #2e2e2e;
    color: #cfcfcf;
    border: 1px solid #333333;
    padding: 10px;
    font-family: monospace;
    resize: none; /* Prevent resizing */
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#main-content h1 {
    margin-bottom: 20px;
}

#game-container {
    display: grid;
    grid-template-columns: repeat(11, 1fr); /* Equal width columns */
    grid-template-rows: repeat(33, 1fr); /* Equal height rows */
    gap: 2px;
    width: 90vw; /* 90% of the viewport width */
    height: 90vh; /* 90% of the viewport height */
}

.cell {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e; /* Darker cell background */
    border: 1px solid #333333; /* Darker border color */
    font-size: calc(1.5vw); /* Responsive font size based on viewport width */
    color: #cfcfcf; /* Lighter text color for numbers */
}

.player {
    background-color: #ff5722; /* Bright color for the player */
    font-weight: bold;
    color: #ffffff; /* White color for the player symbol */
}

.visited {
    background-color: #ff0000; /* Red background for visited cells */
    color: #ffffff; /* White text color for visited cells */
}

#score {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 10px;
}
