#music h1{
    margin-top: 20vh;
}


/* Music List */
#music ul {
    display: flex;
    flex-direction: column;
    margin: 15vh 0;
    gap: 15vh;
}


/* Music Container */
.music-card {
    /* Positioning */
    position: relative;
    z-index: 0;
    overflow: hidden;
    /* Box model */
    height: 50vh;
    border-radius: 3em;
    padding: 3em;
    /* Display */
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    list-style-type: none;

    /* Animations */
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* Pop out on hover */
.music-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(221, 0, 255, 0.3);
}

/* Gradient Colors */
#music li:nth-of-type(1){
    background-image: linear-gradient(120deg,
    rgba(0, 8, 255, 1) 0%, 
    rgba(238, 0, 255, 1) 100%);
}
#music li:nth-of-type(2){
    background-image: linear-gradient(120deg,
    rgba(179, 0, 255, 1) 0%, 
    rgba(255, 0, 102, 1) 100%);
}
#music li:nth-of-type(3){
    background-image: linear-gradient(120deg,
    rgba(255, 55, 0, 1) 0%, 
    rgb(237, 158, 0) 100%);
}

/* Container Decoration */
.diamond-overlay-1, .diamond-overlay-2{
    /* Positioning */
    position: absolute;
    z-index: -1;
    
    /* Box Model */
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255,255,255,0.28);
    /* Display */
    transform: rotate(45deg);
    pointer-events: none;
}

.diamond-overlay-1 {
    bottom: 50%;
    left: 50%;
}
.diamond-overlay-2 {
    bottom:-20%;
    left:10%;
}

/* Music Text */
.music-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40vw;
}

.music-title {
    /* Lettering */
    font-size: 3.5em;
    line-height: 1;
    /* Positioning */
    margin-top: auto;
}

.music-subtitle{
    color: var(--text-muted);
    line-height: 1.2;
}

/* Builtin Audio Controls  */
audio {
    margin: 2em 0;
    height: 2.5em;
    width: max(180px, 100%);
    height: 30px
}

/* Responsive Music Section */
@media (max-width: 800px) {
    #music ul li {
        flex-direction: column;
        height: 70vh;
        padding-bottom: 1em;
    }

    .music-title{
        font-size: 2.5em;
    }
}

/* waveform icon, left side */
.waveform {
    display: flex;
    align-items: center;
    gap: 0.5em;

    height: 7em;
    width: 5em;

    margin: auto 1em;
}

@media (max-width:800px){
    .waveform {
        height: 5em;
        width: 4em;
        gap: 0.4em;
    }
}
@media (max-width:600px){
    .waveform {
        height: 4em;
        width: 3em;
        gap: 0.3em;
    }
}

.waveform span {
    width: 0.5em;
    background: #fff;
    border-radius: 9999px;

    height: var(--min-height);

    animation: waveform var(--duration) ease-in-out infinite alternate;
    animation-delay: var(--delay);

}

/* Only devices with real hover capability */
@media (hover: hover) {
    .waveform span {
        animation-play-state: paused;
    }

    #music ul li:hover .waveform span {
        animation-play-state: running;
    }
}


.waveform span:nth-child(1) {
    --min-height: 21%;
    --max-height: 60%;
    --delay: -0.1s;
    --duration: 0.8s;
}

.waveform span:nth-child(2) {
    --min-height: 14%;
    --max-height: 40%;
    --delay: -0.3s;
    --duration: 1.1s;
}

.waveform span:nth-child(3) {
    --min-height: 24.5%;
    --max-height: 70%;
    --delay: -0.5s;
    --duration: 0.7s;
}

.waveform span:nth-child(4) {
    --min-height: 35%;
    --max-height: 100%;
    --delay: -0.2s;
    --duration: 1s;
}

.waveform span:nth-child(5) {
    --min-height: 17.5%;
    --max-height: 50%;
    --delay: -0.6s;
    --duration: 0.9s;
}

.waveform span:nth-child(6) {
    --min-height: 24.5%;
    --max-height: 70%;
    --delay: -0.4s;
    --duration: 1.2s;
}

@keyframes waveform {
    from {  height: var(--min-height);  }
    to {    height: var(--max-height);  }
}
