/* -------------------------------------------------- accessibility -------------------------------------------------- */
.button{
    cursor: pointer;
}

#screenReaderControls{
    display: flex;
    background: transparent;
    font-size: var(--font-size);
}
#screenReaderControls .button.hidden{
    display: none;
}
#toggleAccessibility, footer .button{
    padding: 2vw 1vw;
    font-size: var(--font-size);
    color: var(--color);
    background: var(--background);
    user-select: none;
    height: max-content;
    cursor: pointer;
}

#toggleAccessibility{
    position: fixed;
    left: 0;
    top: 50%;
    bottom: unset;
    transform: translateY(-50%);
    writing-mode: vertical-lr;
    transition: .5s top ease-in-out, .5s transform ease-in-out, 0s bottom linear;
}

#screenReaderControls{
    position: fixed;
    right: 0;
    top: 50%;
    bottom: unset;
    transform: translateY(-50%);
    writing-mode: vertical-lr;
    transition: .5s top ease-in-out, .5s transform ease-in-out, 0s bottom linear;
}

#screenReaderControls .button{
    transform: rotate(180deg);
    
    display: flex;
}

body.home #toggleAccessibility, body.home footer .button{
    padding: 1vw 2vw;
    font-size: var(--font-size);
    color: var(--color);
    background: var(--background);
    user-select: none;
    height: max-content;
}
#reset .button{
    padding: 0;
}
#toggleAccessibility.open, #toggleAccessibility:hover, footer .button:hover{
    background: var(--color) !important;
    color: var(--background) !important;
}
#accessibilityLabel{
    font-size: var(--font-size) !important;
    padding: 0;
    margin-bottom: 2vw;
}
#accessibility{
    position: fixed;
    padding: 1vw 2vw;
    font-size: var(--font-size);
    user-select: none;
}
#accessibility>div{
    margin-bottom: 2vw;
}
#accessibility>div:last-of-type{
    margin-bottom: 0vw;
}
#accessibility label{
    cursor: pointer;
}

dialog{
    opacity: 0;
    position: fixed;
    inset-block-start: 0px;
    inset-block-end: 0px;
    max-height: 70svh;
    user-select: text;
    visibility: visible;

    overflow: hidden;
    overflow-y: auto;

    padding: $padding-s;
    border: 0px solid transparent;
    background: var(--background);
    color: var(--color);


    transition: all 0.7s ease-out;
}
dialog::backdrop {
    background-color: var(--background);
    opacity: .5;
    transition: all 0.7s ease-out;
    filter: invert(0.5);
}
dialog[open]{
    opacity: 1;

}

dialog[open]::backdrop {
    background-color: var(--background);
    opacity: .5;
}

@starting-style {
    dialog[open] {
        opacity: 0;
    }
    dialog[open]::backdrop {
        background-color: var(--background);
        opacity: 0;
    }
}
dialog #dialogHeader{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
dialog #dialogHeader h2, dialog #dialogHeader #closeDialog{
    padding: 1vw 0;
}
dialog #dialogHeader #closeDialog{
    margin-left: 4vw;
    height: auto;
}

input[type="radio"] + label{
    opacity: 0.25;
}
input[type="radio"]:checked + label{
    opacity: 1;
}

@media all and (max-width: 780px) and (orientation: portrait){


    input[type="radio"]#sizeB + label{
        display: none;
    }
    input[type="radio"]#sizeB:checked + label{
        display: none;
    }
}



/* plain accessibility setting */
body.plain #toggleAccessibility{
    /*    border-top: .5vw solid var(--color);*/
    /*    border-bottom: .5vw solid var(--color);*/
    /*    border-right: .5vw solid var(--color);*/
}

body.plain.events #toggleAccessibility span::after, body.plain.event #toggleAccessibility span::after, body.plain.about #toggleAccessibility span::after, body.plain.locations #toggleAccessibility span::after {
    content: " Settings";
}


#toggleAccessibility i, #screenReaderControls i{
    display: none;
}
#toggleAccessibility span, #screenReaderControls span{
    display: block;
}


body.plain #screenReaderControls .button{
    /*    border-top: .5vw solid var(--color);*/
    /*    border-bottom: .5vw solid var(--color);*/
    /*    border-right: .5vw solid var(--color);*/
}
body.plain #toggleAccessibility, body.plain #toggleAccessibility, body.plain #screenReaderControls, body.plain #screenReaderControls{
    writing-mode:initial;
    top: unset;
    bottom: 0;
    transform: translateY(0%) !important;
    position: relative;
    transition: 0s top linear, 0s transform linear;
}

body.plain #screenReaderControls .button{
    transform: rotate(0deg);
}

body.plain #screenReaderControls{
    writing-mode: initial;
}
body.plain #toggleAccessibility, body.plain footer .button{
    padding: 1vw 2vw;
}
body.plain h2#accessibilityLabel{
    color: var(--color);
    background: none;
}
