html, body {
    height: 100%;
    width:100%;
    padding:0;
    margin: 0;
    overflow: hidden; /* Verhindert Scrollen */
}

body {
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Verhindert Scrollen */
}

canvas {
    display: block; /* Entfernt den Abstand unter dem Canvas */
    width: 100vw; /* Volle Breite des Viewports */
    height: 100vh; /* Volle Höhe des Viewports */
}

h1, h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

h1, h2, p {
    color: #ffffff;
}

button {
    background-color: #1f1f1f;
    color: #ffffff;
    border: none;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #333333;
}

div {
    margin: 0;
}

#leaksOverlay {
    padding: 0;
    margin: 0;
}

#audioContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive Spalten */
    gap: 20px;
    padding: 20px;
}

#audioContainer > div {
    border: 2px solid rgba(255, 255, 255, 0.5); /* Weiße Border mit Transparenz */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Glow-Effekt */
    margin: 10px; /* Abstand zwischen den Zellen */
    padding: 10px; /* Innenabstand */
}

#leaksContainer > div {
    border: 2px solid rgba(255, 255, 255, 0.5); /* Weiße Border mit Transparenz */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Glow-Effekt */
    margin: 10px; /* Abstand zwischen den Zellen */
    padding: 20px; /* Erhöhe das Padding */
    text-align: center; /* Zentriere den Text */
    display: flex; /* Flexbox für Zentrierung verwenden */
    flex-direction: column; /* Inhalte vertikal anordnen */
    justify-content: center; /* Inhalte vertikal zentrieren */
    align-items: center; /* Inhalte horizontal zentrieren */
}

#leaksContainer {
    max-height: 100vh; /* Maximale Höhe für den Container */
    overflow-y: auto; /* Ermöglicht vertikales Scrollen */
}
#leaksContainer div:last-child{
    margin-bottom:10vh;
}

#leaksOverlay p {
    color: #ffffff;
    text-transform: uppercase; /* Großbuchstaben */
    font-size: 18px; /* Etwas größere Schriftgröße */
}

audio {
    width: 100%;
    margin-top: 5px;
    border-radius: 5px;
    background-color: #f1f1f1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

p {
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase; /* Großbuchstaben */
    font-size: 18px; /* Etwas größere Schriftgröße */
}

#audioContainer p {
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    overflow: hidden; /* Versteckt überlaufenden Text */
    text-overflow: ellipsis; /* Zeigt '...' für überlaufenden Text an */
    width: 80%; /* Maximale Breite der Zelle */
}
#leaksContainer {
    max-height: 100vh; /* Maximale Höhe für den Container */
    overflow-y: auto; /* Ermöglicht vertikales Scrollen */
    scrollbar-width: none; /* Für Firefox */
}

#leaksContainer::-webkit-scrollbar {
    display: none; /* Für Chrome, Safari und Opera */
}

.popup {
    max-width: 80%;
    word-wrap: break-word;
    white-space: normal;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 10px;
    border-radius: 5px;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none; /* Initially hidden */
}

@media (max-width: 768px) {
    h1, h2 {
        font-size: 24px; /* Kleinere Schriftgröße für mobile Geräte */
    }
    button {
        padding: 10px 20px; /* Kleinere Buttons für mobile Geräte */
    }
}

@media (max-width: 992px) {
    #audioContainer {
        display: grid;
        grid-template-columns: 1fr; /* 1 Spalte für Tablets und kleinere Bildschirme */
    }
    #leaksContainer{
        grid-template-columns: 1fr !important;
        overflow-y:scroll;
    }
}

@media (max-width: 480px) {
    h1, h2 {
        font-size: 20px; /* Noch kleinere Schriftgröße für sehr kleine Bildschirme */
    }
    button {
        padding: 8px 16px; /* Noch kleinere Buttons */
    }
}