body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #2c3e50, #3498db);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    text-align: center;
    position: relative;
    width: 800px;
    height: 600px;
}

#slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.slide {
    display: none;
    width: 100%;
    text-align: center;
}

.slide.active {
    display: block;
}

#controls {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#controls button {
    margin: 0 5px;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#controls button:hover {
    background-color: #0056b3;
}

canvas {
    background-color: #f3f3f3;
    border: 2px solid #333;
}

button {
    padding: 10px 20px;
    margin: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#game-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

#scoreboard {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#game-over {
    display: none;
    flex-direction: column;
    align-items: center;
}

#game-over.hidden {
    display: none;
}

#game-over.visible {
    display: flex;
}
body {
    font-family: Arial, sans-serif;
    display: flex;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 200px;
    padding: 20px;
    background-color: #f4f4f4;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    color: #333;
}

.sidebar button {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.sidebar button:hover {
    background-color: #0056b3;
}

.sidebar p {
    color: #333;
    margin: 10px 0;
}

.sidebar p span {
    color: #ff0000; /* Default color for spans */
}

#level {
    color: #ff00ff; /* Magenta for level */
}

#score {
    color: #00ff00; /* Green for score */
}

#lives {
    color: #0000ff; /* Blue for lives */
}

#gameCanvas {
    border: 1px solid black;
    background: linear-gradient(to right, #99ccff, #ffcc99);
    flex-grow: 1;
}

#game-over {
    color: red;
    font-size: 24px;
    display: none;
}

.visible {
    display: block;
}

.hidden {
    display: none;
}
