#opacity-slider {
    position: absolute;
    bottom: 5em;
    right: 1em;
    z-index: 900;

    display: flex;
    gap: 0.5em;
    align-items: center;
}

#opacity-slider label {
    font-weight: 300;
    white-space: nowrap;
}

#opacity-slider input {
    appearance: none;
    -webkit-appearance: none;
    width: clamp(15em, 20em, 90vw);
    height: 3px;
    border-radius: 5px;
    background-color: #333;
    padding: 0;
    cursor: pointer;
}

#opacity-slider input[type=range]::-webkit-slider-thumb,
#opacity-slider input[type=range]::-moz-range-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: #555;
}

@media (max-width: 950px) {
    #opacity-slider {
        bottom: 4em;
        right: 0.75em;
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    #opacity-slider {
        bottom: 3em;
        right: 0.75em;
    }
}

@media (max-width: 750px) {
    #opacity-slider {
        bottom: 3em;
        right: 0.75em;
        max-width: calc(100vw - 1em - 4em);
    }

    #opacity-slider input {
        max-width: 75%;
    }
}