.audio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.menu__audio {
    position: absolute;
    right: 40px;
    top: 100px;
    z-index: 9;
    display: none;
    align-items: center; /* Change from flex-start to center for better alignment */
    gap: 30px;
    justify-content: center; /* Center the content horizontally */
    width: 400px;
    padding: 20px;
    background-color: var(--clr-primary);
    color: var(--clr-black);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.audio-control {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center align content in the control */
}

.audio-control .label-mixer {
    font-size: 20px;
    margin-bottom: 10px; /* Increase space between the label and the slider */
    display: block;
    color: var(--clr-white);
    font-family: var(--ft-fm-bold);
    text-align: center;
}

.mixer-container {
    height: 200px; /* Adjust the height of the vertical slider */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 60px; /* Set the width of the container for better alignment */
}

.mixer-container input[type="range"] {
    width: 200px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg); /* Ensure the slider is centered properly */
}

.audio-control span {
    font-size: 26px;
    margin-top: 10px; /* Add more space between the slider and the value text */
    display: block;
    font-family: var(--ft-fm-regular);
    color: var(--clr-white)
}

.audio-control .volume-toggle {
    cursor: pointer;
    width: 30px; /* Adjust the size of the image */
    height: 30px;
    margin-top: 10px;
    transition: transform 0.3s ease-in-out;
}

.audio-control .volume-toggle:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.audio-control .volume-toggle:focus {
    outline: none; /* Remove focus outline */
}

/* Remove default appearance for Chrome and WebKit browsers */
.mixer-container input[type="range"] {
    -webkit-appearance: none; /* Disable default styling */
    appearance: none; /* Modern browsers */
    background: transparent; /* Remove default track background */
}

/* Style for the track (bar) */
.mixer-container input[type="range"]::-webkit-slider-runnable-track {
    background: var(--clr-terciary); /* Adjust with your custom color variable */
    height: 10px; /* Set height for the track */
    border-radius: 3px; /* Rounded corners */
    border: none; /* Remove border */
}

/* Style for the thumb (handle) */
.mixer-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Remove default appearance for WebKit browsers */
    appearance: none; /* Modern browsers */
    width: 20px; /* Thumb size */
    height: 20px;
    background: var(--clr-secondary); /* Thumb color */
    border-radius: 50%; /* Circular thumb */
    border: 2px solid var(--clr-secondary); /* Optional border */
    cursor: pointer; /* Pointer cursor */
    margin-top: -5px; /* Align thumb with track */
}

/* Hover and active states for thumb */
.mixer-container input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--clr-secondary); /* Slightly darker color on hover */
}

.mixer-container input[type="range"]::-webkit-slider-thumb:active {
    background: var(--clr-secondary); /* Darker color on active */
}
