* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: black;
    font-family: Helvetica;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: auto;
}

.buttons-grid {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
}

.audio-button {
    position: absolute;
    width: 100px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;

}

.audio-button:hover {
    transform: scale(1.1);
    opacity: 0.6;
  transition: 0.3s;


}

.audio-button:active {
  transform: scale(0.95);
transform: rotate(90deg);
}

.audio-button.playing {
  transform: scale(0.95);
  transform: rotate(90deg);
  filter: hue-rotate(120deg) brightness(1.2);
}

.button-image {
    width: 50px;
    height: 80px;
    border-radius: 5px;
    margin: 8px;
}


.audio-button-title {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    word-wrap: break-word;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover,
.close:focus {
    color: black;
}

#audioTitle {
    margin-bottom: 20px;
    color: #333;
}

#audioPlayer {
    width: 100%;
    margin-top: 20px;
}

/* Tablet (768px bis 1024px) */
@media (max-width: 1024px) {
    .audio-button {
        width: 90px;
        height: 110px;
    }

    .button-image {
        width: 50px;
        height: 50px;
    }

    .audio-button-title {
        font-size: 11px;
    }
}

/* Mobile (unter 768px) */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .buttons-grid {
        height: 90vh;
        min-height: 500px;
    }

    .container {
        margin: 0;
        width: 100%;
    }

    .audio-button {
        width: 80px;
        height: 100px;
    }

    .button-image {
        width: 45px;
        height: 45px;
    }

    .audio-button-title {
        font-size: 10px;
    }

    .modal-content {
        margin: 100px auto;
        width: 95%;
        padding: 20px;
    }
}

/* Kleine Handys (unter 480px) */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

 .container {
        margin: 0;
        width: 100%;
    }

    .buttons-grid {
        height: 100vh;
        min-height: 400px;
    }

    .audio-button {
        width: 70px;
        height: 90px;
    }

    .button-image {
        width: 40px;
        height: 40px;
    }

    .audio-button-title {
        font-size: 9px;
    }

    .modal-content {
        margin: 80px auto;
        width: 98%;
        padding: 15px;
    }

    #audioPlayer {
        margin-top: 15px;
    }
}
