/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Title styles */
.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #212529;
    margin-bottom: 10px;
    text-align: center;
}

/* Game container styles */
#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

canvas {
    border: 2px solid #212529;
    background-color: #d3d3d3;
    border-radius: 4px;
}

/* Controls section */
.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.instructions {
    font-size: 1.25rem;
    color: #495057;
    text-align: center;
    margin: 0;
}

.buttons {
    display: flex;
    gap: 15px;
}

/* Button styles */
.btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-start {
    background-color: #28a745;
    color: white;
}

.btn-start:hover {
    background-color: #218838;
}

.btn-restart {
    background-color: #dc3545;
    color: white;
}

.btn-restart:hover {
    background-color: #c82333;
}

/* Death screen styles */
.death-screen {
    display: none;
    text-align: center;
    margin: 20px 0;
}

.death-screen h2 {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 10px;
}

.death-screen p {
    font-size: 1.25rem;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .title {
        font-size: 2rem;
    }

    .instructions {
        font-size: 1.1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1rem;
        min-width: 100px;
    }
}