body {
    font-family: sans-serif;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ensure body takes full viewport height */
    background-color: #f0f0f0;
    margin: 0; /* Remove default body margin */
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.game-container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
    gap: 20px; /* Space between canvas and info panel */
    background-color: #ddd;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#gameCanvas {
    border: 2px solid #333;
    background-color: #fff;
    display: block; /* Remove extra space below canvas */
}

.info-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px; /* Give info panel some width */
    text-align: center;
}

.info-panel h2 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.2em;
    color: #555;
}

#score {
    font-size: 1.5em;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 15px;
}

#nextCanvas {
    border: 1px solid #ccc;
    background-color: #fff;
    margin-bottom: 15px;
}

#gameOver {
    color: red;
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

.hidden {
    display: none;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    color: white;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}