#power-ups {
    background-color: rgba(15, 15, 40, 0.8);
    color: #eef5ff;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
    text-align: center;
    border: 2px solid #5ee7df;
    box-shadow: 0 0 10px rgba(94, 231, 223, 0.3);
    min-height: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.power-up-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.power-up-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.power-up-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}body {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
    background-color: #0f0f1e;
    color: #eef5ff;
    text-align: center;
    overflow-x: hidden;
    background-image: linear-gradient(to bottom, #0f0f1e, #1a1a3a);
    min-height: 100vh;
}

h1 {
    margin-top: 20px;
    color: #5ee7df;
    text-shadow: 0 0 10px #5ee7df, 0 0 20px #5ee7df;
    font-size: 2.5rem;
    letter-spacing: 2px;
}

#game-container {
    margin: 20px auto;
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 800px;
}

#game-canvas {
    border: 3px solid #5ee7df;
    background-color: rgba(15, 15, 40, 0.8);
    box-shadow: 0 0 20px rgba(94, 231, 223, 0.5);
    display: block;
    box-sizing: content-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border-radius: 10px;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(94, 231, 223, 0.8));
}

#game-info {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    width: 150px;
}

#next-piece, #hold-piece, #level-info, #score-panel, #controls {
    background-color: rgba(15, 15, 40, 0.8);
    color: #eef5ff;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: left;
    border: 2px solid #5ee7df;
    box-shadow: 0 0 10px rgba(94, 231, 223, 0.3);
}

#controls {
margin-top: 380px;
margin-right: 25px;
height: 180px;
width: 130px;
}

.badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
  }

.badge-green {
    background-color: #28a745;
}  

#next-canvas, #hold-canvas {
    background-color: rgba(13, 13, 13, 0.6);
    border: 1px solid #5ee7df;
    border-radius: 5px;
}

.touch-controls {
    display: none;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Basis-Button-Stil */
.touch-btn {
    width: 70px;
    height: 70px;
    margin: 5px;
    border: 2px solid #eef5ff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #eef5ff;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 0 0 5px rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(94, 231, 223, 0.3);
    transition: all 0.2s ease;
}

/* Farbige Buttons für verschiedene Aktionen */
#btn-left, #btn-right {
    background: linear-gradient(135deg, #0072ff, #00c6ff);
}

#btn-rotate-ccw, #btn-rotate-cw {
    background: linear-gradient(135deg, #00b09b, #96c93d);
}

#btn-down {
    background: linear-gradient(135deg, #fc4a1a, #f7b733);
}

#btn-drop {
    background: linear-gradient(135deg, #ee0979, #ff6a00);
}

#btn-hold {
    background: linear-gradient(135deg, #834d9b, #d04ed6);
}

#btn-pause {
    background: linear-gradient(135deg, #4b6cb7, #182848);
}

/* Button-Hover-Effekt */
.touch-btn:active {
    opacity: 0.8;
    transform: scale(0.95);
    box-shadow: 0 0 25px rgba(94, 231, 223, 0.5);
}

/* Überschriften im Spiel */
#level-info h3, #next-piece h3, #hold-piece h3, #score-panel h3 {
    color: #5ee7df;
    text-shadow: 0 0 5px #5ee7df;
    margin-top: 0;
}

/* Gesamter Hintergrund */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* iPad und andere Tablets */
@media (max-width: 1024px) {
    .touch-controls {
        display: flex;
    }
    
    .touch-btn {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    /* Steuerungsanleitung auf Tablets ausblenden */
    #controls {
        display: none;
    }
    
    /* Mehr Platz für das Spielfeld */
    #game-container {
        margin-bottom: 5px;
    }
}

/* Animierte Elemente */
@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(94, 231, 223, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(94, 231, 223, 0.6);
    }
    100% {
        box-shadow: 0 0 10px rgba(94, 231, 223, 0.3);
    }
}

#game-canvas, #next-piece, #hold-piece, #level-info, #score-panel {
    animation: glow 3s infinite;
}body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    text-align: center;
    overflow-x: hidden;
}

h1 {
    margin-top: 20px;
    color: #333;
}

#game-container {
    margin: 20px auto;
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 800px;
}

#game-canvas {
    border: 2px solid #333;
    background-color: #111;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: block;
    box-sizing: content-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

#logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: auto;
    z-index: 10;
}

#game-info {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    width: 150px;
}

#next-piece, #hold-piece, #level-info, #score-panel, #controls {
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    text-align: left;
}

#next-canvas, #hold-canvas {
    background-color: #222;
    border: 1px solid #555;
}

.touch-controls {
    display: none;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    
}

/* Basis-Button-Stil */
.touch-btn {
    width: 70px;
    height: 70px;
    margin: 5px;
    border: 2px solid white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Farbige Buttons für verschiedene Aktionen */
#btn-left, #btn-right {
    background-color: #2980b9; /* Blau */
}

#btn-rotate-ccw, #btn-rotate-cw {
    background-color: #27ae60; /* Grün */
}

#btn-down {
    background-color: #e67e22; /* Orange */
}

#btn-drop {
    background-color: #c0392b; /* Rot */
}

#btn-hold {
    background-color: #8e44ad; /* Lila */
}

#btn-pause {
    background-color: #7f8c8d; /* Grau */
}

/* Button-Hover-Effekt */
.touch-btn:active {
    opacity: 0.7;
    transform: scale(0.95);
}

/* iPad und andere Tablets */
@media (max-width: 1024px) {
    .touch-controls {
        display: flex;
    }
    
    .touch-btn {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    /* Steuerungsanleitung auf Tablets ausblenden */
    #controls {
        display: none;
    }
    
    /* Mehr Platz für das Spielfeld */
    #game-container {
        margin-bottom: 5px;
    }
}

@media (max-width: 700px) {
    #game-container {
        flex-direction: column;
        align-items: center;
    }
    
    #game-info {
        margin-left: 0;
        margin-top: 20px;
        width: 320px;
         
    }
    
    .touch-controls {
        display: flex;
    }
}