/* ===========================
   GOOGLE FONT
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');


/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{

    width:100%;
    height:100%;

    font-family:'Poppins',sans-serif;

    background:#050816;

    color:white;

}


/* ===========================
   BODY
=========================== */

body{

    background:#050816;

    color:white;

    font-family:'Poppins',sans-serif;

    padding:30px;

}


/* ===========================
   MAIN CONTAINER
=========================== */

.container{

    width:100%;

    max-width:1400px;

    margin:0 auto;

}


/* ===========================
   HEADER
=========================== */

header{

    text-align:center;

    margin-bottom:30px;

}

header h1{

    font-size:3rem;

    font-weight:700;

    color:#ffffff;

    margin-bottom:10px;

}

header p{

    color:#9ca3af;

    font-size:1rem;

}


/* ===========================
   TOP CONTROLS
=========================== */

.top-controls{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    flex-wrap:wrap;

    margin-bottom:25px;

}


/* ===========================
   BUTTONS
=========================== */

button,
.upload-btn{

    background:#2563eb;

    color:white;

    border:none;

    padding:12px 22px;

    border-radius:10px;

    cursor:pointer;

    transition:.3s;

    font-size:15px;

    font-weight:500;

}

button:hover,
.upload-btn:hover{

    background:#1d4ed8;

    transform:translateY(-2px);

}


/* ===========================
   FILE INPUT
=========================== */

.upload-btn input{

    display:none;

}


/* ===========================
   SELECT
=========================== */

select{

    padding:12px 16px;

    border-radius:10px;

    border:none;

    outline:none;

    background:#1e293b;

    color:white;

    cursor:pointer;

}


/* ===========================
   VISUALIZER SECTION
=========================== */

.visualizer-section{

    margin-top:20px;

}
/* ===========================
   VISUALIZER CANVAS
=========================== */

#visualizer{

    width:100%;

    height:600px;

}
canvas{

    display:block;

}


/* ===========================
   PLAYER CONTROLS
=========================== */

.player-controls{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin-top:25px;

    flex-wrap:wrap;

}

.player-controls button{

    min-width:130px;

}


/* ===========================
   TIMELINE
=========================== */

.timeline{

    display:flex;

    align-items:center;

    gap:15px;

    margin-top:25px;

}

.timeline span{

    width:60px;

    text-align:center;

    color:#cbd5e1;

    font-size:14px;

}


/* ===========================
   RANGE SLIDER
=========================== */

input[type="range"]{

    flex:1;

    cursor:pointer;

}


/* ===========================
   VOLUME
=========================== */

.volume-control{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:15px;

    margin-top:25px;

}

.volume-control label{

    font-size:18px;

}

#volume{

    width:250px;

}


/* ===========================
   BUTTON EFFECTS
=========================== */

button:active{

    transform:scale(.96);

}

button:disabled{

    opacity:.5;

    cursor:not-allowed;

}
/* ===========================
   STATUS BAR
=========================== */

.status-bar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:25px;

    padding:15px 20px;

    border-radius:12px;

    background:#182235;

    color:#d1d5db;

    flex-wrap:wrap;

    gap:10px;

}

.status-bar strong{

    color:#ffffff;

}


/* ===========================
   FOOTER
=========================== */

footer{

    margin-top:25px;

    text-align:center;

    color:#94a3b8;

    font-size:.9rem;

}


/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#0f172a;

}

::-webkit-scrollbar-thumb{

    background:#2563eb;

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#3b82f6;

}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:900px){

    .container{

        padding:20px;

    }

    header h1{

        font-size:2.2rem;

    }

    #visualizer{

        height:450px;

    }

    .top-controls{

        flex-direction:column;

    }

    .player-controls{

        flex-direction:column;

    }

    .player-controls button{

        width:100%;

    }

    .timeline{

        flex-direction:column;

    }

    .timeline span{

        width:auto;

    }

    .volume-control{

        flex-direction:column;

    }

    #volume{

        width:100%;

    }

    .status-bar{

        flex-direction:column;

        text-align:center;

    }

}


@media (max-width:600px){

    body{

        padding:15px;

    }

    .container{

        padding:15px;

    }

    header h1{

        font-size:1.8rem;

    }

    header p{

        font-size:.9rem;

    }

    #visualizer{

        height:320px;

    }

}


/* ===========================
   SMOOTH TRANSITIONS
=========================== */

button,
select,
input,
.container,
#visualizer{

    transition:.3s ease;

}


/* ===========================
   FOCUS STATES
=========================== */

button:focus,
select:focus,
input:focus{

    outline:none;

    box-shadow:0 0 12px rgba(37,99,235,.5);

}
.visualizer-section:fullscreen{

    width:100vw;

    height:100vh;

    background:black;

}


.visualizer-section:fullscreen #visualizer{

    width:100vw;

    height:100vh;

    display:block;

}