/* === GLOBALNE STYLE === */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: #111;
    color: white;
    font-family: Arial, sans-serif;
}

/* === STYLOWANIE CANVAS === */
canvas {
    border: 1px solid white;
    background: black;
}

/* === KONTENERY UKŁADU === */
#gameContainer {
    position: relative;
    width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

#canvasAndControls {
    position: relative;
    width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === INTERFEJS GRY === */
#score {
    position: absolute;
    top: -30px;
    left: 0;
    font-size: 24px;
}

#combo {
    position: absolute;
    top: -30px;
    right: 0;
    font-size: 24px;
    color: #ff6b35;
}

#controls {
    position: absolute;
    top: 0;
    right: -250px;
    background: #222;
    padding: 15px;
    border-radius: 5px;
    max-width: 200px;
    font-size: 16px;
}

#controls h3 {
    margin: 0 0 10px;
}

#controls p {
    margin: 5px 0;
}

/* === WYŚWIETLANIE POWER-UPÓW === */
#powerUpContainer {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    height: 50px;
    align-items: center;
    font-size: 18px;
}

.power-up-indicator {
    padding: 10px 15px;
    border-radius: 5px;
    background: #222;
    border: 2px solid #444;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s ease;
}

.power-up-indicator.active {
    animation: pulseIndicator 0.5s infinite;
    border-color: yellow;
    background: #333;
}

@keyframes pulseIndicator {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === POPUPY === */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-content {
    background: #222;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    max-width: 400px;
}

.popup-content h2 {
    margin: 0 0 20px;
    font-size: 32px;
}

.popup-content p {
    margin: 0 0 20px;
    font-size: 24px;
}

/* === PRZYCISKI === */
button {
    padding: 12px 25px;
    margin: 10px;
    font-size: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #45a049;
}

#playButton {
    background: #FFD700;
    font-size: 22px;
    padding: 15px 30px;
}

#playButton:hover {
    background: #FFEC8B;
}

/* === POLA WPROWADZANIA === */
input {
    padding: 8px;
    margin: 10px 0;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    width: 200px;
}

/* === TABELA NAJLEPSZYCH WYNIKÓW === */
table {
    margin: 20px auto;
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 8px;
    border: 1px solid #444;
    text-align: center;
}

th {
    background: #333;
}

td {
    background: #222;
}

/* === KLASY POMOCNICZE === */
.hidden { 
    display: none !important; 
}

/* === ANIMACJE COMBO === */
.combo-active {
    animation: pulseCombo 0.3s infinite;
}

@keyframes pulseCombo {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}