/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;800&display=swap');

*{
    box-sizing: border-box;
}

body{
    background-image: linear-gradient(to bottom, #191a16, #252927, #343939, #46494b, #595a5c);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Lato',sans-serif;
    width: 100%;
}

h1{
    color: #fff;
    font-family: 'Poppins', sans-serif;
}
h2{
   color: white;
   margin-top: 60%;
   font-size: small;
}
h3{
    color: whitesmoke;
    margin-bottom: 40px;
    font-size: small;
}

.music-container{
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 20px 0 rgba(0,0,0,0.6);
    display: flex;
    padding: 120px 40px;
    margin: 100px 0;
    position: relative;
    z-index: 10;
    width: 80%;
    max-width: 800px;
}

.image-container{
    position: relative;
    width: 300px;
}
.image-container img{
    border-radius: 5%;
    object-fit: cover;
    height: 300px;
    width: 300px;
    position: inherit;
    bottom: 0;
    left: 0;
    animation: 20s linear infinite;
    animation-play-state: paused;
}
.music-container.play .image-container img{
    animation-play-state: running;
}

@keyframes rotate{
    from{
       transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

.navigation{
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.action-btn{
    background-color: #fff;
    border: 0;
    color: #1b2050;
    font-size: 20px;
    cursor: pointer;
    padding: 50px ;
    margin: 0 10px;
}
.action-btn:focus{
    outline: 0;
}
.action-btn-big{
    color:#0a0a55;
    font-size: 50px;
}

.music-info h4{
    margin: 0;
    padding-left: 43%;
    font-size: 23px;
    font-family: 'Poppins', sans-serif;
}
.music-info{
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    padding: 10px;
    border-radius: 15px 15px 0 0;
    background-color: rgba(255,255,255,0.5);
    opacity: 0;
    transform: translateY(0%);
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
    z-index: 0;
}
.music-container.play .music-info{
    opacity: 1;
    transform: translateY(-100%);
}

.progress-container{
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
    height: 4px;
    width: 100%;
    margin: 10px 0;
}

.progress{
    border-radius: 5px;
    background-color: #413a4d;
    height: 100%;
    width: 10%;
    transition: width 0.1s linear;
}

/* Hamburger */
.hamburger-menu{
    width: 35px;
    height: 30px;
    position: fixed;
    top: 25px;
    right: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}
.line{
    width: 90%;
    height: 3px;
    background-color: rgb(245, 237, 237);
    transition: all 0.8s;
}
.change .line-1{
    transform: rotateZ(-405deg) translate(-8px,6px);
}
.change .line-2{
    opacity: 0;
}
.change .line-3{
    transform: rotateZ(405deg) translate(-8px,-6px);
}

.navbar{
    width: 300px;
    height: 100%;
    background-image: linear-gradient(to top, #ffffff, #ededed, #dbdbdc, #c9c9cb, #b8b8ba, #a9a9ab, #9a9a9c, #8b8c8e, #7b7c7e, #6b6d6e, #5c5e5e, #4e4f4f);    
    position: fixed;
    top: 0;
    right: -300px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20% 0 0 20%;
    transition: all 0.5s ;
    z-index : 20;
}
.change{
    right: 0;
}

.nav-list {
    text-align: center;
    height: 100vh;
    margin-top: 15px;
}
.nav-item{
    margin: 25px;
    font-size: 20px;
    letter-spacing: 0.7px;
    font-weight: 300;
}
.navol{
    max-height: 100vh;
    overflow: auto;
}
.nav-link{
    text-decoration: none;
    color: #191a16;
    position: relative;
    padding: 2px 0;
    cursor: pointer;
    overflow-y: scroll;
}
.nav-link::before,
.nav-link::after{
    content: "";
    width: 100%;
    height: 2px;
    background-color: #343939;
    position: absolute;
    left: 0;
    transform: scaleX(0);
    transition: 0.5s;
}
.nav-link::after{
    bottom: 0;
    transform-origin: right;
}
.nav-link::before{
    top: 0;
    transform-origin: left;
}
.nav-link:hover::before,
.nav-link:hover::after{
    transform: scaleX(1);
}


/* Responsive Styles for Mobile */
@media (max-width: 600px) {
    body {
        padding: 0 4vw;
        min-height: 100vh;
        justify-content: center;
        overflow-x: hidden;
    }
    h1 {
        font-size: 1.5rem;
        text-align: center;
        margin: 10px 0;
    }
    h2 {
        font-size: 1rem;
        margin: 10px 0;
        text-align: center;
    }
    h3 {
        font-size: 0.9rem;
        margin: 10px 0 20px 0;
        text-align: center;
    }
    .music-container {
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        margin: 20px auto;
        width: 92vw;
        max-width: 92vw;
        min-width: 0;
        box-sizing: border-box;
    }
    .image-container {
        width: 70vw;
        max-width: 280px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }
    .image-container img {
        width: 70vw;
        height: 70vw;
        max-width: 280px;
        max-height: 280px;
        display: block;
        margin: 0 auto;
        border-radius: 10px;
    }
    .music-info {
        left: 0;
        width: 100%;
        padding: 15px 10px;
        position: relative;
        top: auto;
        background-color: rgba(255,255,255,0.9);
        border-radius: 10px;
        margin-bottom: 20px;
        opacity: 1;
        transform: none;
    }
    .music-info h4 {
        font-size: 1.1rem;
        padding-left: 0;
        text-align: center;
        word-break: break-word;
        color: #333;
    }
    .navigation {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0;
        gap: 15px;
    }
    .action-btn {
        padding: 15px;
        margin: 0;
        font-size: 1.5rem;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .action-btn-big {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
    }
    .progress-container {
        margin: 15px 0;
        width: 100%;
    }
    .navbar {
        width: 85vw;
        max-width: 85vw;
        right: -85vw;
        border-radius: 0 0 20px 20px;
        top: 0;
        height: 70vh;
        min-height: 350px;
    }
    .change {
        right: 0;
    }
    .nav-list {
        height: 65vh;
        margin-top: 20px;
        overflow-y: auto;
    }
    .nav-item {
        margin: 15px 0;
        font-size: 1.1rem;
    }
    .navol {
        max-height: 65vh;
    }
    .hamburger-menu {
        top: 20px;
        right: 20px;
        width: 32px;
        height: 28px;
        z-index: 30;
    }
}

/* Responsive Styles for Tablets & Laptops */
@media (min-width: 601px) and (max-width: 1024px) {
    .music-container{
        width: 80%;
        max-width: 600px;
        padding: 80px 30px;
        margin: 50px auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .image-container{
        width: 250px;
        flex-shrink: 0;
    }
    .image-container img{
        width: 250px;
        height: 250px;
        border-radius: 10px;
    }
    .navigation{
        margin-left: 30px;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .action-btn{
        padding: 20px;
        margin: 0 10px;
        font-size: 18px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .action-btn-big{
        font-size: 30px;
        width: 70px;
        height: 70px;
    }
    .music-info{
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        background-color: rgba(255,255,255,0.9);
        border-radius: 10px;
        opacity: 1;
        transform: none;
        margin-bottom: 20px;
        padding: 15px;
    }
    .music-info h4{
        font-size: 18px;
        padding-left: 0;
        text-align: center;
        color: #333;
    }
    .navbar{
        width: 70%;
        right: -70%;
    }
    .change{
        right: 0;
    }
}

/* Responsive Styles for Large Laptops/Desktops */
@media (min-width: 1025px) {
    .music-container{
        width: 70%;
        max-width: 700px;
        margin: 80px auto;
        padding: 100px 40px;
    }
    .action-btn{
        padding: 15px;
        margin: 0 15px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .action-btn-big{
        width: 70px;
        height: 70px;
    }
}

/* Additional fixes for very small screens */
@media (max-width: 400px) {
    .music-container {
        width: 95vw;
        padding: 25px 15px;
    }
    .image-container {
        width: 65vw;
        max-width: 250px;
    }
    .image-container img {
        width: 65vw;
        height: 65vw;
        max-width: 250px;
        max-height: 250px;
    }
    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    .action-btn-big {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
}
