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

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #1a1a2e, #16213e);
    font-family: Arial, sans-serif;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.game-container {
    position: relative;
    min-width: 1000px;
    min-height: 600px;
    background: #fff;
    border: 2px solid #fff;
    border-radius: 5px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

h1 {
    margin: 0;
    color: #333;
    font-size: 32px;
    text-align: center;
}

#score {
    font-size: 24px;
    color: #333;
    font-weight: bold;
}

#gameCanvas {
    background: #000;
    border-radius: 5px;
}

#startMessage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    cursor: pointer;
}

.back-button {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1200px) {
    .game-container {
        min-width: auto;
        width: 100%;
        max-width: 800px;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    #score {
        font-size: 20px;
    }

    #startMessage {
        font-size: 20px;
        padding: 15px;
    }
} 