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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    padding: 20px;
}

.game-container {
    width: 100%;
    height: 100vh;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #7b68ee;
}

.progress-bar {
    width: 300px;
    height: 20px;
    background-color: #333;
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #7b68ee, #9370db);
    width: 0%;
    transition: width 0.2s ease;
}

#loading-text {
    font-size: 1.2em;
    color: #9370db;
}

/* Game area styles */
#game-area {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-ui {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.stats {
    display: flex;
    gap: 20px;
}

.health, .level, .score, .timer {
    font-size: 1.2em;
}

.controls {
    display: flex;
    gap: 10px;
}

#pauseBtn {
    background-color: #7b68ee;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
}

#pauseBtn:hover {
    background-color: #9370db;
}

#game-canvas-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
}

#gameCanvas {
    background-color: #222;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 0 0 20px rgba(123, 104, 238, 0.5);
}

/* Responsive handling */
@media (max-width: 850px) {
    .game-container {
        width: 100%;
        height: auto;
        max-height: 75vh;
    }
    
    .loading-content h2 {
        font-size: 24px;
    }
    
    .progress-bar {
        width: 250px;
    }
}

/* Mobile portrait mode */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        border-radius: 8px;
        max-height: 70vh;
    }
    
    .loading-content h2 {
        font-size: 22px;
    }
    
    .progress-bar {
        width: 200px;
    }
} 