/* styles.css */
body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#controls {
    margin-top: 1.25rem;
}

#equalizer {
    margin-top: 1.25rem;
}



#playlist {
    margin-top: 1.25rem;
}

input, button {
    position: absolute;
    z-index: 1;
    padding: 0.625rem;
    margin: 0.3125rem;
    border: none;
    border-radius: 0.3125rem;
    background-color: #444;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #666;
}

#fileInput, #imageInput {
    display: none;
}

#fileInputButton {
    top: 0.625rem;
    left: 0.625rem;
    font-size: 1.25rem;
}

#imageInputButton {
    top: 3.75rem;
    left: 0.625rem;
    font-size: 1.25rem;
}

#playButton {
    top: 0.625rem;
    left: 3.75rem;
}

#stopButton {
    top: 0.625rem;
    left: 6.25rem;
}

#loopButton {
    top: 0.625rem;
    left: 8.5625rem;
}

#fullscreenButton {
    top: 0.625rem;
    left: 11.25rem;
}

#equalizerButton {
    top: 0.625rem; /* 10px converted to rem */
    left: 13.75rem; /* 220px converted to rem */
    width: 2.1875rem; /* 35px converted to rem */
    height: 2.1875rem;
    padding: 0.3125rem; /* 5px converted to rem */
    background-color: #444;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5625rem; /* 25px converted to rem */
}

#menuButton {
    top: 0.625rem;
    right: 10px; /* 60px converted to rem */
    font-size: 0.625rem;
}

#drawerButton {
    position: fixed;
    bottom: 0.625rem;
    left: 0.625rem;
    font-size: 1.25rem;
    z-index: 2;
    cursor: pointer;
}

#menu {
    position: fixed;
    top: 0;
    right: -18.75rem;
    width: 18.75rem;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: right 0.5s;
    padding-top: 3.75rem;
    z-index: 2;
}

#menu a {
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    text-decoration: none;
    font-size: 1.125rem;
    color: #818181;
    display: block;
    transition: 0.3s;
    transition: width 0.3s ease;
}

#menu a:hover, #menu a.selected {
    color: #f1f1f1;
    text-shadow: 0 0 0.625rem #ffffff;
}

#menu .closebtn {
    position: absolute;
    top: 0;
    right: 1.5625rem;
    font-size: 2.25rem;
    margin-left: 3.125rem;
}

#musicTitle {
    position: absolute;
    bottom: 1.25rem;
    width: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 1.25rem;
    z-index: 1;
}

#playlist {
    position: absolute;
    bottom: 0.625rem;
    left: 0.625rem;
    width: 18.75rem;
    height: 9.375rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    overflow-y: auto;
    z-index: 1;
    border-radius: 0.625rem;
    padding: 0.625rem;
    transition: transform 0.5s ease;
}

#playlist.closed {
    transform: translateY(12.5rem);
}

#playlist ul {
    list-style-type: none;
    padding: 0;
}

#playlist li {
    padding: 0.625rem;
    cursor: pointer;
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.1);
}

#playlist li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.equalizer {
    position: absolute;
    bottom: 12.5rem;
    left: 0.625rem;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 0.625rem;
    border-radius: 0.625rem;
    z-index: 10;
}

.equalizer h3 {
    margin: 0;
    margin-bottom: 0.625rem;
    font-size: 1.125rem;
    color: white;
    text-align: center;
}

.equalizer input[type=range] {
    width: 100%;
    margin-bottom: 0.625rem;
}

#equalizerDiv {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    display: none;
}

        /* Style du bouton pour cacher/montrer l'interface */
        #toggleUIButton {
            position: fixed;
            bottom: 10px;
            right: 10px;
            background-color: #333;
            color: white;
            border: none;
            border-radius: 20%;
            padding: 15px;
            font-size: 10px;
            cursor: pointer;
            z-index: 1000;
        }

        #toggleUIButton:hover {
            background-color: #555;
        }

        /* Cacher l'UI quand elle est désactivée */
        .hidden-ui {
            display: none;
        }
        .translucent {
            opacity: 0.1; /* Réduit l'opacité pour donner un effet de transparence */
            transition: opacity 0.3s ease; /* Animation douce lors du changement d'opacité */
        }
/* Media Queries pour les petits écrans */
@media (max-width: 768px) {
    #controls, #equalizerButton, #fileInputButton, #imageInputButton, #playButton, #stopButton, #loopButton, #fullscreenButton {
        position: relative;
        top: 0rem;
        left: 0.625rem;
        display: block;
        margin: 0.625rem 0;
        width: 90%;  /* 100% converted to rem */
        max-width: 2.5rem;  /* 25px converted to rem */
        text-align: center;
    }

    #menu {
        width: 80%;
        max-width: 18.75rem;
    }
}

@media (max-width: 480px) {
    /* Le menu occupe 100% de la largeur pour les petits écrans */
    #menu {
        width: 100%;
        max-width: 100%;
    }

    /* Les liens du menu ont une police plus petite et un padding ajusté */
    #menu a {
        font-size: 1.2em;
        padding: 0.3125rem;
    }
}
