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

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-container {
    text-align: center;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.score-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #555;
}

.score-container p {
    margin: 0 15px;
}

.score-container span {
    font-weight: bold;
    color: #667eea;
}

#gameCanvas {
    border: 3px solid #333;
    background-color: #f0f0f0;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
}

.controls {
    margin-top: 20px;
}

.controls p {
    margin-bottom: 10px;
    color: #666;
}

.touch-controls {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.control-row {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    font-size: 20px;
    touch-action: manipulation;
    user-select: none;
}

button {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #5568d3;
}

button:active {
    transform: scale(0.98);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.pause-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 30px 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.pause-indicator h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2em;
}

.pause-indicator p {
    color: #ddd;
    margin: 0;
    font-size: 1.1em;
}

.game-over h2 {
    color: #d32f2f;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #555;
}

.hidden {
    display: none;
}
