* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #333;
}

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

#gameCanvas {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #000;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    padding: 20px;
}

#stats {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 18px;
}

#health-container {
    width: 200px;
    height: 20px;
    background-color: #333;
    border: 2px solid #fff;
    margin-bottom: 10px;
}

#health-bar {
    width: 100%;
    height: 100%;
    background-color: #0f0;
    transition: width 0.3s ease;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-family: Arial, sans-serif;
}

.screen h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.screen p {
    font-size: 24px;
    margin-bottom: 20px;
}

.screen button {
    padding: 10px 20px;
    font-size: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.screen button:hover {
    background-color: #45a049;
} 