/* Styles for the mute button */
#muteButton {
    display: flex;
    position: fixed;
    bottom: 20px;
    left: 20px;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    background-color: #6c757d;
    /* Make it a circle */
    width: 50px;
    height: 50px;
    color: white;
    font-size: 1.5em;
}

#muteButton:hover {
    background-color: #5a6268;
}

/* Styles for full screen button*/
#fullscreen-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    color: #aaaaaa;
    font-size: 1.5em;
}

/* Hover effect when NOT in fullscreen */
#fullscreen-btn:hover:not(.fullscreen-active) {
    transform: scale(1.5);
}

/* Hover effect when IN fullscreen */
#fullscreen-btn.fullscreen-active:hover {
    transform: scale(0.8);
}

#fullscreen-btn.fullscreen-active>svg {
    transform: scale(1.2);
}

/* Styles for settings menu*/

/* Settings Button */
#settings-btn {
    display: none;
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 998;
    backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 2px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
    background-color: #6c757d;
    padding: 0.5rem;
}

#settings-btn:hover {
    background-color: #5a6268;
}

#settings-btn>img {
    margin-bottom: -5px;
}

/* Settings Menu */
#settings-menu {
    position: fixed;
    top: 52px;
    right: 10px;
    z-index: 995;
    backdrop-filter: blur(2px);
    border-radius: 5px;
    border-top-right-radius: 0px;
    background: linear-gradient(180deg, #6c757d80, #343434b3);
    padding: 0.75rem;
    -webkit-backdrop-filter: blur(12px);
    transform: translateY(-10px);
    opacity: 0;
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.35);
    border: 0px solid rgba(0, 0, 0, 0.46);
    padding-bottom: 1rem;
    pointer-events: none;
    text-shadow: 0px 2px 5px #000c;
}

#settings-menu label {
    padding-right: 5px;
    color: lightgray;
    font-weight: bold;
    font-size: 0.9em;
}

#settings-menu select {
    margin-top: 0.5rem;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    color: #000;
}

#settings-menu select:hover {
    cursor: pointer;
    box-shadow: 0 0px 3px #007BFF inset;
    background-color: #f0f8ff;
}

#settings-menu.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.randomize-checkbox,
.autoplay-checkbox {
    display: flex;
    padding: 10px 0px 10px 0px;
}

input[type='checkbox'] {
    vertical-align: middle;
    margin: -3px 10px 5px 5px;
    zoom: 1;
    transform: scale(2);
    -ms-transform: scale(2);
    -webkit-transform: scale(2);
    -o-transform: scale(2);
    -moz-transform: scale(2);
    transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    cursor: pointer;
    accent-color: aqua;
}


/* Styles for mobile devices */
@media (max-width: 767px) {
    #muteButton {
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    #fullscreen-btn {
        right: 10px;
        bottom: 10px;
        font-size: 1.2em;
    }

    #fullscreen-btn:active {
        transform: scale(1.2);
    }

    /* Settings Menu */
    #settings-menu {
        top: 49px;
        right: 10px;
        border-radius: 10px;
        border-top-right-radius: 0px;
        background: linear-gradient(180deg, #6c757dc7, #6c757d99, #34343485);
        padding: 1rem;
        text-shadow: 0px 2px 3px #000c;
    }

    input[type='checkbox'] {
        zoom: 1;
        transform: scale(1.7);
        -ms-transform: scale(1.7);
        -webkit-transform: scale(1.7);
        -o-transform: scale(1.7);
        -moz-transform: scale(1.7);
    }
}