/* Global Styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100vh;
    overflow: hidden;
}

/* Header */
header {
    background-color: #1f1f1f;
    color: #f0f0f0;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Content */
main {
    flex-grow: 1;
    padding: 10px;
    width: 100%;
    max-width: 480px;
    box-sizing: border-box;
}

/* Status-Anzeige */
.status {
    margin: 20px 0;
    font-size: 1.4rem;
    color: #76c7c0;
    font-weight: bold;
    border: 2px solid #76c7c0;
    border-radius: 8px;
    background-color: #333;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.button {
    font-size: 1.4rem;
    padding: 15px 30px;
    margin: 20px 0;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.button:hover {
    background-color: #0056b3;
}

.button:active {
    transform: scale(0.98);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

/* Small Button Styles */
.small-button {
    font-size: 1.1rem;
    padding: 12px 22px;
    margin: 5px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 40%;
}

.small-button:hover {
    background-color: #45a049;
}

.small-button:active {
    background-color: #388e3c;
}

/* Sound List */
.sound-list {
    margin-top: 20px;
    text-align: left;
    width: 100%;
    max-width: 400px;
    background: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

#sound-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 20px;
}

.sound-item {
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    font-size: 1rem;
    color: #e0e0e0;
    transition: background-color 0.3s ease;
}

.sound-item:last-child {
    border-bottom: none;
}

.sound-item:hover {
    background-color: #444;
}

.sound-item.active {
    background-color: #007bff;
    color: white;
    font-weight: bold;
    border-radius: 4px;
}

/* Controls for next/prev buttons */
.controls {
    margin-top: 20px;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .button {
        font-size: 1.2rem;
        padding: 40px;
        max-width: 90%;
    }

    .small-button {
        font-size: 1rem;
        padding: 10px 20px;
        width: 40%;
    }

    .sound-list {
        padding: 10px;
    }

    .sound-item {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Status wenn der Sound läuft (grün) */
#status.playing {
    color: green;
}

/* Button wird ausgegraut, wenn der Sound läuft */
button.disabled {
    background-color: #666666; /* Grauer Hintergrund */
    cursor: not-allowed; /* Zeigt an, dass der Button nicht klickbar ist */
    opacity: 0.5; /* Heller und weniger auffällig */
}

/* Standard Play-Button */
button {
    background-color: #3b3b3b; /* Dunkler Hintergrund für den Button */
    color: white; /* Weiße Schrift */
    border: none;
    padding: 15px 30px; /* Größere Buttons für besseren Klickbereich */
    font-size: 18px; /* Lesbare Schriftgröße */
    border-radius: 5px; /* Abgerundete Ecken */
    cursor: pointer; /* Zeigt an, dass der Button klickbar ist */
    transition: background-color 0.3s ease; /* Sanfte Übergänge bei Hover */
}

button:hover {
    background-color: #666666; /* Etwas hellerer Hintergrund bei Hover */
}

/* Zentrieren der gesamten Liste und Hinzufügen von mehr Platz */
#sound-list-container {
    max-width: 90%; /* Maximale Breite der Liste auf 90% des Bildschirmbereichs setzen */
    margin: 0 auto; /* Zentriert die Liste auf dem Bildschirm */
    /* padding: 20px; */
    background-color: #2c2c2c; /* Dunkler Hintergrund für die Liste */
    border-radius: 10px; /* Abgerundete Ecken */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Schatten für ein moderneres Aussehen */
}

/* Stil der einzelnen Sound-Elemente */
.sound-item {
    display: flex; /* Flexbox für gleichmäßige Verteilung der Inhalte */
    justify-content: space-between; /* Elemente am Ende der Zeile verteilen */
    align-items: center; /* Vertikale Zentrierung */
    background-color: #3a3a3a; /* Dunkler Hintergrund für jedes Listenelement */
    color: #fff; /* Weißer Text */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px; /* Abstand zwischen den Listenelementen */
    font-size: 16px; /* Gut lesbare Schriftgröße */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Übergangseffekte */
}

/* Hover-Effekt für jedes Listenelement */
.sound-item:hover {
    background-color: #575757; /* Hellerer Hintergrund bei Hover */
    transform: translateY(-5px); /* Leichter "Hochheben"-Effekt */
}

/* Aktives Element hervorheben */
.sound-item.active {
    background-color: #4CAF50; /* Grüner Hintergrund für den aktuellen Sound */
    font-weight: bold; /* Fettgedruckt für den aktuellen Sound */
}

/* Stil für die Nummerierung */
.sound-item::before {
    content: attr(data-index); /* Nummer des Sounds anzeigen */
    background-color: #4CAF50; /* Grüner Hintergrund für die Nummer */
    color: white;
    padding: 5px 10px;
    border-radius: 50%; /* Runde Nummer */
    font-size: 18px;
    margin-right: 15px;
}

/* Dauer des Sounds anzeigen */
.sound-duration {
    font-size: 14px;
    color: #aaa; /* Grauer Text für die Dauer */
}

/* Optional: Statusanzeige und Buttons */
#status {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

/* Anpassungen für Buttons */
#prev-sound, #next-sound {
    font-size: 20px;
    background-color: #3a3a3a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#prev-sound:hover, #next-sound:hover {
    background-color: #575757;
}
