/* Panel Styles */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden{
    display: none;
    left: 100px;
}

#compressed-panel {
    appearance: none;
    padding: 0;
    position: fixed;
    top: 20%;
    left: 0;
    width: 40px;
    height: 50px;
    background: #2B5F2B url(images/a11yIncludr_icon.svg) no-repeat center center !important;
    background-size: contain !important;
    border-radius: 5%;
    border: 1px solid #ffffff;
    z-index: 100000;
    transition: background 0.3s ease-in-out;
}

#background-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    opacity: 0.5;
    z-index: 99999;
}

#background-overlay.hidden {
    display: none;
}

#compressed-panel:hover {
    background: #1e411e url(images/a11yIncludr_icon.svg) no-repeat center center !important;
    cursor: pointer;
    background-size: contain !important;
}

#compressed-panel:focus-visible {
    outline: 3px solid #32ae15;
    outline-offset: 3px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.logo img {
    visibility: visible !important;
    display: block;
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.gradient-text {
    margin: 0;
    padding-bottom: 0;
    font-size: 40px !important;
    line-height: 40px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    background: linear-gradient(15deg, #2B5F2B, #32ae15);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-wrap: nowrap;
}

.button-style, .button-style-reset  {
    display: grid;
    grid-template-columns: 40px 1fr;
    height: 60px;
    align-items: center;
    background-color: #F1FFF5;
    border: 2px solid #2B5F2B;
    border-radius: 5px;
    gap: 10px;
    padding: 5px 10px;
    transition: box-shadow 0.3s ease-in-out;
}

.button-style-reset {
    display: block;
    text-align: center;
    height: 30px;
    margin-top: 20px;
}

.button-style:hover, .button-style-reset:hover {
  box-shadow: inset 0 0 0 2px #2B5F2B; 
  cursor: pointer;
}

.button-style.is-active {
    background-color: #2B5F2B;
    border-color: #173817;
    line-height: 1.2;
}

.button-style p, .button-style-reset p {
    margin: 0;
    font-size: 14px !important;
    font-family: "Poppins", sans-serif !important;
    line-height: 1.2 !important;
    color: #2B5F2B;
}

.button-style.is-active p {
    color: #ffffff;
}

#close-panel {
    position: absolute;
    top: 10px;
    right: 10px;
}

.button-style-close {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F1FFF5 !important;
    border: 2px solid #2B5F2B !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    margin: 25px 10px 0 0;
    height: 20px !important;
    width: 20px !important;
    color: #2B5F2B !important;
    transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.button-style-close:hover {
    background-color: #78cc78;
    border-color: #173817;
    color: #ffffff;
    cursor: pointer;
}

#accessibility-panel .button-style-close img {
    display: block !important;
    margin: 0;
    height: 12px !important;
    width: 12px !important;
    max-width: none !important;
    object-fit: contain;
    visibility: visible !important;
    line-height: 1 !important;
}

.icon-container {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #2B5F2B;
    border: 2px solid #F1FFF5;
    border-radius: 50%;
}

.button-style img {
    visibility: visible !important;
    width: 20px;
    height: auto;
    background-color: #2B5F2B;
}

#accessibility-panel {
    position: fixed;
    font-size: 14px !important;
    line-height: 20px !important;
    top: 0;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px !important;
    padding: 60px 20px !important;
    width: 450px !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 100000 !important;
}

fieldset {
border: none;
}

#accessibility-panel #button-divider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.note p, .note a {
    margin-top: 20px;
    font-size: 14px;
    color: #2B5F2B;
    text-align: center;
}

.note a {
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.note a:hover {
    color: #32ae15;
    text-decoration: none;
}



@media (max-width: 500px) {
    .button-style {
        grid-template-columns: 46px 1fr;
        min-height: 46px;
        gap: 8px;
        padding: 4px 8px !important;
    }

    .button-style img {
        width: 20px;
        height: 20px;
    }

    .button-style p, .button-style-close p {
        /* font-size: 15px !important; */
        line-height: 1.2;
    }

    #accessibility-panel {
        width: 100% !important;
        padding: inherit 14px !important;
    }

    #accessibility-panel #button-divider {
        grid-template-columns: 1fr;
    }

    .gradient-text {
        font-size: 30px !important;
        line-height: 30px !important;
        padding: 20px 0 20px 0;
}
}


/* Panel Animations */
@keyframes moveIn {
    0%   {left:-300px; opacity: 0;}
    100% {left:0; opacity: 100%;}
}

.move-in-animation {
    animation: moveIn 1.2s ease-in-out forwards;
}

@keyframes moveOut {
    0%   {left:0; opacity: 100%;}
    100% {left:-300px; opacity: 5%;}
}

.move-out-animation {
    animation: moveOut 1.2s ease-in-out forwards;
}