* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.game-container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
}

.game-content {
    flex: 1;
    min-width: 0; /* Prevents flex item from overflowing */
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.score {
    font-size: 24px;
}

.speed-indicator {
    font-size: 24px;
    text-align: right;
}

.speed-bar {
    width: 150px;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.speed-fill {
    width: 0%;
    height: 100%;
    background-color: #4CAF50;
    transition: width 0.3s ease;
}

.game-area {
    width: 100%;
    height: 600px;
    background-color: #333;
    position: relative;
    overflow: hidden;
    border: 2px solid #666;
}

.player {
    width: 50px;
    height: 50px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    transition: left 0.1s ease, top 0.1s ease;
}

.rocket {
    width: 100%;
    height: 100%;
    fill: #4CAF50;
    filter: drop-shadow(0 0 5px #4CAF50);
}

.obstacle {
    width: 40px;
    height: 40px;
    background-color: #ff4444;
    position: absolute;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px #ff4444);
}

.controls {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.mobile-controls {
    display: none;
}

.vertical-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vertical-controls button {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.game-over-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    display: none;
    z-index: 100;
}

.game-over-message h2 {
    color: #ff4444;
    margin-bottom: 10px;
    font-size: 32px;
}

.game-over-message p {
    color: white;
    font-size: 24px;
}

.game-over-message .final-score {
    color: #4CAF50;
    font-weight: bold;
}

.last-game-card {
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #4CAF50;
    min-width: 150px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.last-game-card h3 {
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 18px;
    text-align: center;
}

.last-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.last-score .score-label {
    color: #888;
}

.last-score .score-value {
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
}

@media (max-width: 768px) {
    .game-container {
        flex-direction: column;
    }
    
    .last-game-card {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 20px;
    }
    
    .game-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .speed-indicator {
        text-align: center;
    }
    
    .mobile-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 20px;
    }
    
    .mobile-controls button {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
} 