/* Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.selector {
    position: absolute;
    width: 50px;
    background-color: #B7A87F;
    border-radius: 5px;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#fontSizeOverlay .selector {
    width: 80px;
    border: 1px solid #fff;
}
#languageOverlay .selector {
    width: 80px;
    border: 1px solid #fff;
}
.overlay.active .selector {
    opacity: 1;
    border: 1px solid #fff;
}

.selector::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #B7A87F;
    z-index: 1;
}

.option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    color: #000;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.overlay.active .option {
    opacity: 1;
    
}

.overlay .option.active {
    color: white;
}

.option:last-child {
    border-bottom: none;
}