body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(
        0deg,
        rgb(255, 113, 103) 0%,
        rgb(255, 175, 99) 50%,
        rgba(246, 188, 102, 1) 75%,
        rgb(255, 207, 135) 100%
    );
    font-family: "gelica", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: rgb(66, 6, 6);
}

.home-page {
    margin-top: 35vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.audio-player {
    position: relative;
    height: 100vh; 
    overflow: hidden; 
}

.p2container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%; 
    position: relative;
    z-index: 1;
}

.list, .audio {
    padding: 4%;
    align-self: center;
    width: 30vw;
    height: 90vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: linear-gradient(
        0deg,
        rgba(255, 97, 85, 0.7) 0%,
        rgb(255, 175, 99, 0.7) 50%,
        rgba(255, 207, 135, 0.7) 100%
    );
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(80, 80, 80, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-sizing: border-box; 
}

.list {
    margin-left: 15vw;
    overflow-y: scroll;
}

.list::-webkit-scrollbar {
    display: none;
}

.audio {
    margin-right: 15vw;
}

img {
    max-width: 25vw;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.song-info {
    display: flex;
       flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.song-info:hover {
    color: #f0f8fc;
    scale: 1.04;
}

.header, .list-songs, .audio {
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    color: #ce0056;
    padding-bottom: 2.7rem;
    font-family: "burghi-variable", sans-serif;
    font-variation-settings: "opsz" 20;
}

a {
    text-decoration: none;
}

.btnHome {
    align-self: flex-start;
    margin-top: 13px;
}


.btnHome:hover {
    scale: 1.03;
}

.titre {
    color: #ce0056;
    margin-bottom: 0;
    margin-bottom: 2px;
}

.artist {
    font-family: "pliego", sans-serif;
    font-size: 1rem;
    align-items: flex-start;
    margin: 0;
    font-weight: 100;
}

label {
    font-size: larger;
    margin-bottom: 15px;
    margin-right: 10px;
}

input {
    margin-bottom: 20px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    width: 75%;
}

input[type="range"]{
    width: 90%;
    margin: 10px 0;
}

.ctrl-pannel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10%;
}
.ctrl-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}


.playerBtn {
    padding: 1em 3em;
    background: rgba(246, 172, 105, 1) 50%;
    border: none;
    border-radius: 150px;
    color: #ffffff;
    font-size: 1.5rem;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.2rem;
    text-align: center;
    outline: none;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    box-shadow:
        -6px -6px 14px rgb(255, 189, 127),
        -6px -6px 10px rgba(246, 188, 102, 1),
        6px 6px 8px rgba(246, 172, 105, 1),
        6px 6px 10px rgba(245, 124, 115, 2);
}

.playerBtn:hover{
    box-shadow: -2px -2px 6px rgb(252, 190, 132),
              -2px -2px 4px rgba(246, 188, 102, 1),
              2px 2px 2px  rgba(246, 172, 105, 1),
              2px 2px 4px rgba(245, 124, 115, 1);
}

.playerBtn:active{
    box-shadow: inset -2px -2px 6px rgb(255, 191, 131),
    inset -2px -2px 4px rgba(246, 188, 102, 1),
    inset 2px 2px 2px rgba(246, 172, 105, 1),
    inset 2px 2px 4px  rgba(245, 124, 115, 1);
}

.t-a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: #ce0056;
    margin: 0 1%;
}




/***********************************/
/* For tablets and small screens (768px and below) */
@media (max-width: 768px) {
    .home-page {
        margin-top: 20vh;
    }

    .p2container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .list, .audio {
        width: 90vw;
    }

    .list {
        margin: 5vh 5vw;
        overflow-y: scroll;
        height: 90vh;
    }

    .list-songs {
        height: 95vh;
    }
    .audio {
        margin: 60vh 5vw 0 5vw;
        position: absolute;
        height: 30vh;
    }

    img {
        display: none;
    }

    .ctrl-pannel {
        margin-top: 5%;
    }

    .ctrl-btn {
        margin-top: 15px;
    }

    .playerBtn {
        padding: 1em 2em;
        font-size: 1.2rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    .titre {
        font-size: 1.2rem;
    }

    .artist {
        font-size: 0.9rem;
    }

    input[type="range"] {
        width: 100%;
    }

    .btn {
        font-size: 1.2rem;
    }
}

/* For mobile devices and very small screens (320px and below) */
@media (max-width: 320px) {
    .home-page {
        margin-top: 10vh;
    }

    .p2container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .list, .audio {
        width: 95vw;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    .list {
        margin-left: 0;
        overflow-y: scroll;
        height: 40vh;
    }

    .audio {
        margin-right: 0;
        margin-top: 15px;
    }

    .song-info {
        flex-direction: column;
    }

    .ctrl-pannel {
        flex-direction: column;
        margin-top: 5%;
    }

    .ctrl-btn {
        margin-top: 10px;
    }

    .playerBtn {
        padding: 0.8em 1.5em;
        font-size: 1rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    .titre {
        font-size: 1rem;
    }

    .artist {
        font-size: 0.8rem;
    }

    input[type="range"] {
        width: 100%;
    }

    .btn {
        font-size: 1rem;
    }
}
