.overlay {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;

    h3 {
        margin-top: 0;
    }

    a {
        padding: 8px;
        text-decoration: none;
        font-size: 1em;
        color: #818181;
        display: inline-block;
        margin-left: 20px;
        transition: 0.3s;

        &:hover,
        &:focus {
            color: #f1f1f1;
        }
    }

    #close-setting {
        position: absolute;
        right: 45px;
        font-size: 60px
    }
}

.overlay-content {
    position: relative;
    margin-left: 10px;
    color: white;
    width: 80%;

    .setting {
        margin: 20px;

        &>* {
            display: block;
        }
    }

    label {
        margin-bottom: 10px;
        border: 1px solid white;
        padding: 0.5em;
        cursor: pointer;
        width: fit-content;
    }

    label:has(input[type=checkbox]):hover {
        opacity: 0.5;
    }

    label:has(input[type=checkbox]:focus-visible) {
        opacity: 0.5;
    }

    label:has(input[type=checkbox]:checked) {
        background: color-mix(in srgb, currentcolor 50%, transparent);
    }

    input[type=checkbox] {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        margin-top: 4px;
        outline: none;
        border: 1px solid transparent;
        background-color: transparent;
    }
}

button {
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background-color: #232323;
    border: 2px solid #575757;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 20px;
    margin-bottom: 10px;

    &:hover {
        background-color: #3f3f3f;
    }
}

#change-color {
    background-color: var(--main-color);

    &:hover {
        background-color: color-mix(in srgb, var(--main-color) 20%, #575757);
    }
}

#change-text-color {
    background-color: var(--text-color);
    color: #232323;

    &:hover {
        background-color: color-mix(in srgb, var(--text-color) 20%, #575757);
    }
}

#change-age-color {
    background-color: var(--age-color);
    color: #232323;

    &:hover {
        background-color: color-mix(in srgb, var(--age-color) 20%, #575757);
    }
}