body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #282c34 0%, #3a404a 100%);
    color: #abb2bf;
    font-family: 'Press Start 2P', cursive, Arial, sans-serif; /* Added a retro font */
    position: relative; /* For absolute positioning of back-to-home */
    overflow: hidden; /* Prevent scrollbars from background effects */
}

.back-to-home {
    position: absolute;
    top: 20px;
    left: 20px;
}

.back-to-home a {
    color: #61afef;
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border: 1px solid #61afef;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-home a:hover {
    background-color: #61afef;
    color: #282c34;
}

h1 {
    color: #61afef;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(97, 175, 239, 0.7);
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(58, 64, 74, 0.9); /* Slightly transparent */
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), 0 0 50px rgba(97, 175, 239, 0.3); /* Enhanced shadow */
    padding: 25px;
    border: 2px solid #56b6c2;
    transition: all 0.3s ease-in-out;
    min-width: 455px; /* Fixed width to prevent resizing */
    min-height: 570px; /* Fixed height to prevent resizing */
}


canvas {
    background-color: #1a1e23; /* Darker background */
    border: 3px solid #56b6c2; /* Thicker border */
    border-radius: 8px; /* More rounded corners */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5); /* Inner shadow for depth */
}

.game-info {
    margin-top: 15px;
    text-align: center;
}

#score {
    color: #98c379;
    font-weight: bold;
    font-size: 1.5em; /* Larger score */
    text-shadow: 0 0 5px rgba(152, 195, 121, 0.7);
}

#message {
    color: #e06c75;
    font-weight: bold;
    margin-top: 15px;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(224, 108, 117, 0.7);
}

#restartButton, #startButton { /* Apply similar styles to both buttons */
    background: linear-gradient(45deg, #61afef, #56b6c2);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-family: 'Press Start 2P', cursive, Arial, sans-serif;
}

#restartButton:hover, #startButton:hover {
    background: linear-gradient(45deg, #56b6c2, #61afef);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

#restartButton:hover {
    background-color: #528cbf;
}

#startButton {
    background-color: #2ecc71; /* Green for start */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}


.hidden {
    display: none;
}
