@import url(scrollbar_desktop.css);

@font-face {
    font-family: 'Playwrite';
    src: url(../fonts/Playwrite_IE/PlaywriteIE-VariableFont_wght.ttf);
}

/* DESKTOP */

/*
    GENERAL
*/
body {
    flex-direction: column-reverse;
    overflow: hidden;
    max-width: none;
    height: 100vh;
}

body#desktop:has(dialog[open])::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-desktop-primary-light);
    z-index: 1000;
    opacity: 0.75;
    filter: brightness(0.5);
}

.highlight {
    z-index: 1001 !important;
    position: relative;
}

main {
    flex-grow: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
}

a:link {
    color: var(--color-desktop-tertiary);
}

a:visited {
    color: var(--color-desktop-visited);
}

a.icon {
    text-indent: -999rem;
    height: 1.8rem;
    width: 1.8rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    outline-offset: 5px;
}

input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    background-image: var(--border-checkbox-idle);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}

input[type="checkbox"]:checked {
    background-image: var(--border-checkbox-active);
}

.card.shadow {
    filter: drop-shadow(6px 6px 0px var(--color-desktop-primary-accent));
    /*filter: drop-shadow(3px 3px 6px #72726c);*/
}

/*  
        FRONT / GROUND
*/
.front {
    filter: none;
    transition: filter 1.4s ease;
}

.front.ground {
    filter: blur(20px) brightness(0.85);
}

/*
        EXTERNAL LINK
*/
a.externalLink::after {
    content: "";
    display: inline-block;
    width: 1.75rem;
    height: 1.5rem;
    background-image: url(../icons/external_link.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: translate(-1px, 4px);
    border-bottom: 3px solid var(--color-desktop-tertiary);
}

/*
        BUTTON
*/
button.classic {
    background-color: var(--color-desktop-tertiary-dark);
    border-image-source: var(--border-image-desktop-button-idle);
    filter: drop-shadow(0 6px 0 var(--color-desktop-tertiary-light));
}

button.classic:active:not(:disabled) {
    border-image-source: var(--border-image-desktop-button-active);
    filter: none;
}

button.classic.secondaryButton {
    background-color: var(--color-white);
    color: var(--color-desktop-tertiary-dark);
    border-image-source: var(--border-image-desktop-button-secondary-idle);
}

button.classic.secondaryButton:active:not(:disabled) {
    border-image-source: var(--border-image-desktop-button-secondary-active);
}

button.selectProblem {
    flex-grow: 1;
    min-height: 2.5rem;
    margin-right: 0.5rem;
    background-color: var(--color-desktop-primary);
    border-image-source: var(--border-image-desktop-primary);
    border-image-slice: 1;
    border-image-repeat: stretch;
    border-width: 3px;
    background-clip: padding-box;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: 'Metrophobic', sans-serif;    
    text-align: start;
    color: var(--color-desktop-tertiary-dark);
}

button.selectProblem:not(:disabled):hover {
    border-image-source: var(--border-image-desktop-primary-dark);
}

button.selectProblem:active:not(:disabled) {
    border-image-source: var(--border-image-desktop-primary);
}

button.selectProblem.close {
    background-color: var(--color-desktop-primary-dark);
    border-image-source: var(--border-image-desktop-primary-dark);
    color: var(--color-white);
    background-image: url(../images/close.png);
    background-repeat: no-repeat;
    background-size: 1.15rem;
    background-position: left center;
    padding-left: 1.5rem;
}

button.selectProblem:disabled {
    filter: grayscale(0.45);
}

button.toggleControl {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 0;
    background-color: transparent;
    color: var(--color-desktop-tertiary-dark);
}

button.toggleControl::before {
    content: "";
    display: block;
    height: 3.6rem;
    width: 3.6rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
    padding: 0.25rem;
    border: 3px solid transparent;
    box-sizing: border-box;
}

button.toggleControl[aria-current="true"]::before {    
    border-image-source: var(--border-image-white);
    border-image-slice: 1;
    border-image-repeat: stretch;
    background-color: var(--color-white);
    background-clip: padding-box;
}

/*
        PROGRESS
*/
.progressSection {
    background-color: var(--color-white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.progressSection header {
    flex: 0 0 100%;
    font-weight: bold;
}

.progressSection p {
    padding: 0 0.4rem;
    width: 10%;
}

.progressSection progress {
    position: relative;
    top: 2px;
    flex-grow: 1;
    margin-right: 1rem;
    width: 70%;
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    height: 0.5rem;
    border: 8px solid transparent;
    border-image-source: var(--border-image-progress);
    border-image-repeat: stretch;
    border-image-slice: 3;
    box-sizing: content-box;
}

::-moz-progress-bar {
    background-color: var(--color-desktop-primary-dark);
}

.progressSection ::-webkit-progress-bar {
    background-color: var(--color-white);
}

.progressSection ::-webkit-progress-value {
    background-color: var(--color-desktop-primary-dark);
}

/*
    CONTEXT HELP
*/
.contextHelp {
    font-size: 0.92rem;
    margin: 0;
    padding: 1rem;
    top: 0;
    left: 0;
    background-image: url(../images/dialog_background.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: transparent;
    border: 0;
    width: 15rem;
    height: 15rem;
}

.contextHelp::backdrop {
    opacity: 0.2;
}

.contextHelp > section {
    display: flex;
    flex-direction: column;
    height: 80%;
    margin-top: 2rem;
}

.contextHelp header {
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Playwrite', serif;
    transform: rotateZ(356deg) translateY(-8px);
    padding: 0.5rem 0;
}

.contextHelpButton {
    align-self: center;
    margin-top: auto;
}

/*
        NOTIFICATION
*/
#notifications {
    position: fixed;
    right: 0;
    bottom: calc(3.8rem + 0.5rem);
    z-index: 1;
    display: flex;
    flex-direction: row;
}

#notificationContainer {
    border-image-source: var(--border-image-desktop-secondary);
    background-color: var(--color-desktop-secondary);
    color: var(--color-white);
    width: min(25rem, 95vw);
    overflow: auto;
    padding: 0 0.5rem;
    border-left-width: 0;
    margin-right: 0.5rem;
    min-height: 10.8rem;
}

#toggleNotifications {
    border-image-source: var(--border-image-desktop-secondary);
    background-color: var(--color-desktop-secondary);
    border-image-slice: 1;
    border-image-repeat: stretch;
    border-width: 3px;
    background-clip: padding-box;
    box-sizing: border-box;
    border-right-width: 0;
    text-indent: -999rem;
    min-height: 4.2rem;
    width: 2rem;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    outline-offset: 4px;
}

#toggleNotifications[aria-expanded="true"] {
    background-image: url("../images/notifications_close.png");
}

#toggleNotifications[aria-expanded="false"] {
    background-image: url("../images/notifications_open.png");
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes showNotifications {
        to {
            transform: translateX(0);
        }
    }

    #notifications.show {
        transform: translateX(min(25rem, 95vw));
        animation: showNotifications 1s ease-in-out 0.5s forwards;
    }
}

#notificationContainer header:first-of-type {
    font-weight: bold;
    margin-bottom: 1rem;
    background-color: var(--color-desktop-secondary);
}

#notificationContainer ol {
    list-style: none;
}

#notificationContainer a.appLink {
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.2rem 0.4rem 0.2rem 0;
}

#notificationContainer a.appLink::before {
    content: "";
    display: block;
    width: 2rem;
    height: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 0.5rem;
}

#notificationContainer .notificationGroup:not(:last-of-type) {
    margin-bottom: 1rem;
}

.notification {
    background-color: var(--color-desktop-secondary-light);
    border-image-source: var(--border-image-desktop-secondary-light);
    color: var(--color-black);
    margin: 0.25rem 0.45rem;
}

/*
        APP ICONS
*/
.mailAppLink::before {
    background-image: url("../icons/mail.png");
}

.archiveAppLink::before {
    background-image: url("../icons/folders.png");
}

.websitesAppLink::before {
    background-image: url("../icons/websites_analysis.png");
}

#logoutLink::before {
    background-image: url("../icons/logout.png");
}

/*
        APPLICATION BAR
*/
#appBar {
    height: 3.8rem;
    width: 100%;
    border-right: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    /*border-top: 3px solid var(--color-desktop-secondary-dark);
    background-color: var(--color-desktop-secondary-light);*/
    background-color: var(--color-desktop-secondary);
    outline-offset: -5px;
}

#appBar.hidden {
    /*display: none;*/
    visibility: hidden;
}

#logo {
    text-indent: -999rem;
    background-image: url(../images/logo_minimal_padded.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 3rem;
    height: 100%;
    object-fit: contain;
    margin: 0.5rem;
}

#appBar a.appLink,
#appBar .currentPage {
    background-clip: padding-box;
    outline-offset: 4px;
    /*min-width: 7.5rem;
    border: 3px solid transparent;
    border-image-source: var(--border-image-white);
    border-image-slice: 1;
    border-image-repeat: stretch;
    background-color: var(--color-white);*/
    border: 3px solid transparent;
    border-image-source: var(--border-image-desktop-secondary-dark);
    border-image-slice: 1;
    border-image-repeat: stretch;
    background-color: var(--color-desktop-secondary-dark);
    box-sizing: border-box;
    width: 100%;
}

#appBar a.appLink.navHelp {
    width: fit-content;
}

#appBar a.appLink {
    color: var(--color-white);
    text-decoration: none;
}

#appBar a.appLink:hover {
    border-image-source: var(--border-image-desktop-secondary-light);
}

#appBar .currentPage {
    /*border-image-source: var(--border-image-secondary-dark);*/
    border-image-source: var(--border-image-desktop-primary-light);
    background-color: var(--color-desktop-primary-light);
}

#primaryMenu ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
}

#primaryMenu ul li {
    margin: 0 0.2rem;
    min-width: 9rem;
}

#primaryMenu ul li>* {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.2rem 0.4rem 0.2rem 0;
    margin: 0;
}

#primaryMenu ul li>*::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-right: 0.5rem;
}

span.notCount {
    margin-left: auto;
    background-color: var(--color-red);
    padding: 0 0.5rem;
    font-family: 'Metrophobic', sans-serif;
    font-weight: normal;
    font-size: 1rem;
    border-image-source: var(--border-image-red);
}

/*
        APP
*/
.appSection {
    display: flex;
    flex-direction: column;
    /*width: 95%;
    height: 95%;
    margin: 0.5rem auto 0.85rem auto;
    border: 3px solid var(--color-desktop-secondary-dark);
    filter: var(--desktop-shadow);*/
    height: 100%;
}

.appSection.hidden {
    display: none;
}

.appHeader {
    background-color: var(--color-desktop-primary);
    padding: 0 0.15rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 3px solid var(--color-desktop-primary-dark);
}

.appHeader.hidden {
    /*display: none;*/
    visibility: hidden;
}

.appHeader h2 {
    font-size: 0.95rem;
}

#backLink {
    margin-left: auto;
    background-color: var(--color-red);
    border-image-source: var(--border-image-red);
    background-image: url("../images/close.png");
}

.appContainer {
    flex-grow: 1;
    height: 0;
    position: relative;
}




/*
    PAGES
*/

/*
        DESKTOP, LOGIN
*/
@keyframes desktopAppear {
    to {
        opacity: 1;
    }
}

#desktop.appear,
#login {
    opacity: 0;
    animation: desktopAppear 1.5s ease forwards;
}

/*
        DESKTOP
*/
#desktop main:not(:has(.appSection)) {
    background-image: url("../images/logo_pixel_simple.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    background-color: var(--color-desktop-primary-light);
}

#desktopApps {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: auto;
    margin: 2rem;
}

a.deskLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.6rem;
    width: 6.5rem;
    height: 6.5rem;
    margin: 0.5rem 0;
}

a.deskLink:visited {
    color: var(--color-desktop-tertiary);
}

a.deskLink::before {
    content: "";
    display: block;
    height: 4.25rem;
    width: 4.25rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: var(--desktop-shadow);
    margin-right: 4px;
    transform: translateY(8px);
}

/*
        LOGIN
*/
@keyframes loginDisappear {
    to {
        opacity: 0;
    }
}

#login {
    background-color: var(--color-white);
    height: 100vh;
    display: flex;
}

#loginHeader {
    height: 7rem;
    margin: 1rem 0;
}

#login.disappear {
    opacity: 1;
    animation: loginDisappear 1.5s ease forwards;
}

#login body {
    width: 90%;
    max-width: 45rem;
    height: fit-content;
    flex-direction: column;
    border-image-source: var(--border-image-desktop-primary-light);
    background-color: var(--color-desktop-primary-light);
}

#login #logo {
    background-image: url("../images/logo_pixel_simple.png");
    width: 100%;
    height: 100%;
    margin: 0;
}

#login main {
    flex-grow: unset;
    background-image: none;
    margin-top: auto;
}

#login main p {
    text-align: center;
}

#login main>header {
    text-indent: -999rem;
    height: 0;
}

#loginForm {
    margin: 1.25rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
}

#loginForm>div {
    display: grid;
    grid-template-areas: "a b" "a c";
    align-items: center;
}

#loginForm>div::before {
    grid-area: a;
    content: "";
    display: block;
    height: 7.5rem;
    width: 7.5rem;
    background-image: url("../images/user_persona.png");
    background-repeat: no-repeat;
    background-size: contain;
    margin-right: 1rem;
}

#loginForm fieldset {
    border: none;
    margin: 0.6rem;
    width: 100%;
}

#loginForm button[type="submit"] {
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    max-width: 2rem;
}

#loginForm label {
    font-weight: bold;
    display: inline-block;
    width: 6.5rem;
    font-size: 1rem;
    padding: 0.5rem;
}

#loginForm .inputContainer {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

#loginForm .inputContainer::after {
    content: "";
    display: block;
    width: 95%;
    height: 2px;
    border-bottom: 2px dotted var(--color-black);
}

#loginForm input {
    font-family: 'Metrophobic', sans-serif;
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
    border: 0;
}

/*
        MAIL APP
*/
#mailApp {
    display: flex;
    flex-direction: column;
    background-color: var(--color-desktop-primary-light);
}

#mailApp>.appContainer {
    padding: 1rem calc((100vw - 60rem) / 2);
    display: grid;
    grid-template-areas: "a a" "b c";
    grid-template-rows: 6.5rem auto;
    grid-template-columns: 10rem auto;
}

#mailApp search,
#mailApp fieldset {
    width: 95%;
    max-width: 40rem;
    margin: 0 auto;
}

#mailApp search {
    grid-area: a;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
}

#mailApp search label {
    text-indent: -999rem;
    flex-shrink: 0;
    width: 42.1px;
    height: 42.1px;
    background-image: url("../icons/glass.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-image-source: var(--border-image-desktop-secondary-light);
    background-color: var(--color-desktop-secondary-light);
}

#filterMail {
    border: none;
    border-bottom: 2px solid #8f8f8f;
    width: 100%;
    height: 94%;
    margin-left: 0.5rem;
    font-size: 1rem;
}

#filterMail::placeholder {
    font-family: 'Metrophobic', sans-serif;
}

#mailApp fieldset {
    grid-area: b;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

#mailApp fieldset legend {
    float: left;
    font-weight: bold;
    text-transform: uppercase;
    background-color: var(--color-desktop-secondary-light);
    border-image-source: var(--border-image-desktop-secondary-light);
    width: 100%;
    margin: 0;
    color: var(--color-black);
}

#mailApp fieldset label {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0.8rem 0;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

#mailApp fieldset input {
    margin-right: 0.5rem;
    margin-left: 0.2rem;
}

#mailApp #mailNoResult {
    grid-area: c;
    width: fit-content;
    margin: auto;
    z-index: 1;
}

#mailApp ol,
#mailFull {
    background-color: var(--color-desktop-primary-accent-light);
    border-image-source: var(--border-image-desktop-primary-accent-light);
    margin: 0 1rem;
}

#mailApp ol {
    grid-area: c;
    list-style: none;
    overflow-y: auto;
}

#mailApp .mail {
    background-color: var(--color-desktop-primary);
    border-image-source: var(--border-image-desktop-primary);
    margin: 0.5rem 1.2rem;
}

#mailApp .mail:hover {
    border-image-source: var(--border-image-desktop-primary-dark);
}

#mailApp .unread {
    background-image: var(--image-notify);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    width: 1rem;
    height: 1rem;
    top: -20px;
    left: -14px;
    text-indent: -999rem;
}

#mailApp .mail>section {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 0 .5rem;
}

#mailApp .mail time {
    font-size: 0.85rem;
}

#mailApp .mailTitle {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-desktop-tertiary-dark);
}

#mailApp .mailContent {
    display: none;
}

#mailFull {
    position: relative;
    padding: 0.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    min-height: 0;
    display: grid;
    grid-template-areas: "a b""c d";
    grid-template-columns: auto auto;
    grid-template-rows: 6rem auto;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
}

#mailFull.hidden {
    display: none;
}

#mailFull header {
    padding: 0.25rem 0.75rem;
    background-color: var(--color-desktop-primary);
    border-image-source: var(--border-image-desktop-primary);
    font-size: 1.025rem;
    display: grid;
    grid-template-areas: "a b" "c b";
    align-items: center;
    width: 100%;
    grid-area: a;
}

#mailFull #mailTitle {
    grid-area: a;
    font-size: 1.15rem;
    font-weight: bold;
}

#mailFull time {
    grid-area: b;
    margin-left: auto;
}

#closeMailFull {
    background-image: url("../images/close.png");
    grid-area: b;
}

#mailContent {
    margin: 0 0.35rem;
    height: 100%;
    overflow: auto;
    grid-area: c;
}

#mailContent .signature {
    margin-top: 2rem;
    color: #6f6f6f;
}

.mailBadge {
    margin: 0.45rem;
    border-image-source: var(--border-image-desktop-secondary-dark);
    background-color: var(--color-desktop-secondary-dark);
    color: var(--color-white);
}

.mailBadge > img {
    display: block;
    height: 8.5rem;
    margin: 1rem auto;
    filter: drop-shadow(0px 0px 9px black);
}

/*
        ARCHIVE APP
*/
#archiveApp {
    background-color: var(--color-desktop-primary-light);
}

#archiveApp.hidden {
    display: none;
}

#archiveApp>.appContainer {
    padding: 2rem calc((100vw - 60rem) / 2);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#archiveApp>.appContainer>section>header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#archiveApp>.appContainer>section>header>h3 {
    padding: 0.4rem 0;
}

.personaProfile {
    margin: 0;
    padding: 0;
}

#personaSectionArchive ul {
    list-style: none;
    margin: 0 1rem;
}

#personaSectionArchive li {
    margin-bottom: 6.5rem;
}

#personaSectionArchive li:first-of-type {
    margin-top: 1rem;
}

.personaHeader {
    background-color: var(--color-desktop-primary);
    border-image-source: var(--border-image-desktop-primary);
    align-items: center;
}

.personaHeader .stillSprite {
    object-fit: contain;
    height: 7.5rem;
    padding: 0.5rem;
}

.personaProfile>section {
    margin: 0.4rem 0.65rem;
}


/*
        ANALYZER / WEBSITES APP
*/
#websitesApp {
    background-color: var(--color-desktop-primary-light);
}

#websitesApp.hidden {
    display: none;
}

#websitesApp>.appContainer {
    padding: 2rem calc((100vw - 60rem) / 2);
    overflow-y: auto;
    overflow-x: hidden;
}

#websitesApp ol {
    list-style: none;
}

#websitesApp li {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 20rem;
    margin: 1.5rem 0;
}

.websitePos {
    position: relative;
    width: 2.5rem;
    height: 1.5rem;
    text-align: center;
    background-image: var(--image-step);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 1rem;
    z-index: 1;
}

.websitePos::after {
    content: "";
    display: block;
    position: absolute;
    width: 0.25rem;
    height: 21.2rem;
    left: 1.055rem;
    top: 1rem;
    background-color: var(--color-desktop-primary);
    z-index: -1;
}

#websitesApp li:last-of-type .websitePos {
    height: 2.5rem;
    font-size: 1.65rem;
    font-weight: bold;
}

#websitesApp li:last-of-type .websitePos::after {
    content: none;
}

.personaHelp {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    width: 13rem;
    flex-shrink: 0;
}

.personaHelp .stillSprite {
    object-fit: contain;
    max-width: 4rem;
        margin-left: 0.5rem;
}

.websiteBlurb {
    margin: 1.2rem 0.5rem;
    max-width: 60rem;
    width: 100%;
    align-self: center;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-bottom: 3px solid var(--color-desktop-primary-light);
}

.textualContent {
    max-height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    margin-left: 1rem;
}

.websiteBlurbHeader {
    margin-top: 0.4em;
    margin-bottom: 0.2em;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.websiteBlurbHeader > p {
    font-size: 1.05rem;
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.completedIcon {
    display: inline-block;
    text-indent: -999rem;
    background-image: url(../images/completed.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    width: 2rem;
    height: 2rem;
    margin: 0 0.5rem;
}

.textualContent>p {
    margin-top: 0.6em;
    overflow-y: auto;
    height: 7.5rem;
}

.imageContent {
    display: flex;
    flex-direction: column;
    width: 20rem;
}

.imageContent::before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    border: 0px solid transparent;
    border-top-width: 21px;
    border-left-width: 6px;
    border-right-width: 48px;
    border-image-source: var(--border-image-website-cover-top);
    border-image-repeat: stretch;
    border-image-slice: 7 16 0 2;
    box-sizing: border-box;
}

.websiteCover {
    object-fit: cover;
    width: auto;
    border: 3px solid transparent;
    border-top: 0;
    border-image-source: var(--border-image-website-cover-bottom);
    border-image-repeat: stretch;
    border-image-slice: 0 1 1 1;
    box-sizing: border-box;
}

.websiteBlurb .progressSection {
    margin-top: auto;
}

#websitesApp .progressSection > header {
    position: absolute;
    left: -100vw;
}

.websiteBadge {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-image-source: var(--border-image-desktop-secondary-dark);
    background-color: var(--color-desktop-secondary-dark);
    color: var(--color-white);
}

.websiteBadge .badgeCompleted {
    font-weight: bold;
    font-size: 1.1rem;
}

.websiteBadge > img {
    object-fit: contain;
    height: 5rem;
    margin-left: 7.5rem;
    filter: drop-shadow(0px 0px 9px black);
}

#endMessage {
    font-size: 1.1rem;
    font-weight: bold;
    margin: auto;
    width: fit-content;
}

/*
        WEBPAGE
*/
body:has(#webpageApp) {
    background-color: var(--color-desktop-primary-light);
}

/*
            INTRO
*/
#caseTitle {
    font-family: 'Cascadia_Code', monospace;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-primary-light);
    z-index: 99;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
}

@keyframes removeTitle {
    100% {
        opacity: 0;
        display: none;
    }
}

#caseTitle.hidden {
    animation: removeTitle 2.5s ease forwards;
    display: none;
}

#background {
    position: fixed;
    object-fit: contain;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
}

#background::before,
#background::after {
    content: "";
    height: 100%;
    flex: 1 0 48px;
    background-size: contain;
}

#background::before {
    background-image: url("../images/left_back.png");
    background-position: right;
}

#background::after {
    background-image: url("../images/right_back.png");
    background-position: left;
}

#caseTitle::before,
#caseTitle::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 65vh;
    display: block;
    background-repeat: no-repeat;
    background-position: center top;
    filter: drop-shadow(0px 0px 6px var(--color-black));
}

#caseTitle::before {
    background-image: url("../images/typewriter_back.png");
    z-index: 1;
}

#caseTitle::after {
    background-image: url("../images/typewriter_front.png");
    z-index: 2;
}

#caseTitle hgroup {
    text-indent: -999rem;
    position: absolute;
}

#movingTitle {
    width: min(100%, 38.5rem);
    padding: calc(2vh + 2rem) 2rem 0.5rem;
    margin: auto;
    box-sizing: border-box;
    z-index: 2;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 18rem;
}

#movingTitle > * {
    position: relative;
    z-index: 2;
}

#movingTitle::before {
    content: "";
    width: 38.5rem;
    height: 98vh;
    display: block;
    position: fixed;
    inset: 0;
    bottom: 0;
    top: auto;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-white);
    z-index: 1;
    filter: drop-shadow(0px 0px 6px var(--color-black));
}

#caseNo {
    font-size: 1.5rem;
    font-weight: 100;
}

#caseHeading {
    font-size: 2.4rem;
    font-weight: 300;
}

#beginCase {
    z-index: 3;
    margin: auto;
    position: fixed;
    left: 0;
    right: 0;
    width: fit-content;
    top: 18.5rem;
}

@media (prefers-reduced-motion: no-preference) {
    #movingTitle::before {
        height: 40vh;
        transition: height 2s steps(3);
    }

    #caseTitle.open #movingTitle::before {
        height: 98vh;
    }
}

/*
            END
*/
#caseClosed {
    margin-top: 1.5rem;
    position: relative;
    filter: drop-shadow(0px 0px 9px var(--color-black));
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#caseClosed::before {
    content: "";
    width: 3px;
    height: calc(100% - 6px);
    display: block;
    background-color: var(--color-primary-dark);
}

#caseClosed > * {
    max-width: 50rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-image-source: var(--border-image-primary);
    border-bottom-width: 0;
    background-color: var(--color-primary);
}

#caseCover {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform-origin: left;
    transform: rotateY(-180deg);
    z-index: 1;
}

#caseLabel {
    font-size: 2rem;
    font-weight: bold;
    max-width: 20rem;
    width: 100%;
    min-height: 10rem;
    margin: 0 auto;
    padding: 4rem 0;
    text-align: center;
    opacity: 0;
    transition: opacity 0s linear 1.3s;
}

#caseCover::before {
    content: "";
    width: 15rem;
    height: 10rem;
    background-image: url(../images/tape.png);
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(75px);
    opacity: 0;
    transition: opacity 0s linear 1.3s;
}

#caseContent {
    padding: 2.5rem 1.5rem 0;
}

#caseSheet {
    width: 100%;
    height: 100%;
    border-bottom-width: 0;
    padding: 1rem;
}

#caseSheet hgroup {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 4rem;
    background-image: url("../images/logo_pixel_simple.png");
    background-position: right top;
    background-size: 10rem;
    background-repeat: no-repeat;
}

#caseSheet h1 {
    font-family: 'Cascadia_Code', monospace;
    text-transform: uppercase;
    color: var(--color-red);
    border-image-source: url("../images/stamp_border.png");
    border-image-slice: 12;
    border-width: 12px;
    border-style: solid;
    width: fit-content;
    padding: 0 0.25rem;
    margin: auto;
    transform: rotateZ(357deg);
}

#caseSheet hgroup p {
    margin: 1.8rem;
}

#caseSheet dl {
    font-size: 1.15rem;
    display: grid;
    grid-template-areas: "a b";
    grid-template-columns: 6rem auto;
    row-gap: 0.8rem;
    width: fit-content;
    margin: 2rem auto;
}

#caseSheet dt {
    font-weight: bold;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes closeCase {
        0% {
            filter: drop-shadow(0px 0px 0px var(--color-black));
            transform: rotateY(-180deg);
        }

        49% {
            filter: drop-shadow(0px 0px 0px var(--color-black));
        }

        50% {
            filter: drop-shadow(0px 0px 9px var(--color-black));
            transform: rotateY(-90deg);
        }

        100% {
            filter: drop-shadow(0px 0px 9px var(--color-black));
            transform: rotateY(0);
        }
    }

    @keyframes stampAppear {
        0% {
            scale: 1.5;
            opacity: 0.5;
        }

        100% {
            scale: 1;
            opacity: 1;
        }
    }

    #caseCover.closed {
        animation: closeCase 1.5s linear forwards;
    }

    #caseCover.closed #caseLabel {
        opacity: 1;
    }

    #caseCover.closed::before {
        opacity: 1;
    }

    #caseSheet h1 {
        opacity: 0;
        animation: stampAppear 1s ease 0.25s forwards;
    }
}


/*
            CALL NOTIFICATION
*/
@media (prefers-reduced-motion: no-preference) {
    @keyframes disappearCall {
        100% {
            mask-position: right -100% top 50%;
        }
    }

    #incomingCall {
        mask-image: url(../images/rectangle_mask.png);
        mask-position: right 0% top 50%;
        mask-repeat: no-repeat;
        mask-size: 200%, auto;
    }

    #notificationContainer.switch #incomingCall {        
        animation: disappearCall 1.2s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    #incomingCall {
        transition: opacity 0.6s ease;
    }

    .filterSection {
        opacity: 0;
        transition: opacity 0.6s ease 0.6s;
    }

    #notificationContainer.switch #incomingCall {
        opacity: 0;
    }

    #notificationContainer.switch .filterSection {
        opacity: 1;
    }
}

#incomingCall {
    position: relative;
    z-index: 1;
}

#notificationContainer.switch .filterSection {
    position: absolute;
    top: -0.5px;
    width: calc(24rem - 3px);
    margin: 3px 0;
}

.callSection > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 7rem;
    margin: 0.5rem 0;
    background-color: var(--color-desktop-secondary-dark);
    border-image-source: var(--border-image-desktop-secondary-dark);
}

.filterSection > div {
    background-color: var(--color-desktop-secondary-light);
    border-image-source: var(--border-image-desktop-secondary-light);
    color: var(--color-black);
}

.filterSection .callInfo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.filterSection .callInfo.hidden {
    display: none;
}

.callerName {
    font-size: 1.15rem;
    margin-left: 1rem;
}

.callImg {
    object-fit: contain;
    width: 5.5rem;
}

#acceptCallContainer {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
}

#acceptCall {
    background-color: transparent;
    border: none;
    text-indent: -999rem;
    width: 4rem;
    height: 4rem;
    background-image: url("../images/answer_call.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#acceptCallContainer::before,
#acceptCallContainer::after {
    content: "";
    display: block;
    width: 2.2rem;
    height: 50%;
    background-image: url("../images/active_call.gif");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#acceptCallContainer::after {
    transform: rotateZ(180deg);
}

.filterButton {
    border: 0;
    height: 4rem;
    width: 4rem;
    margin: 0 2.2rem 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    mask-image: url("../images/circle_button_mask.png");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    outline-offset: -10px;
}

.filterButton.active {
    mask-image: url("../images/circle_button_dismiss_mask.png");
}

.filterButton img {
    object-fit: contain;
    height: 65%;
}

.filterButton > span {
    position: absolute;
    left: -999rem;
}

#CharlotteFilterButton {
    background-color: var(--color-Charlotte);
}

#notifications:has(#CharlotteFilterButton.active) #notificationContainer,
#notifications:has(#CharlotteFilterButton.active) #toggleNotifications,
#notifications:has(#CharlotteFilterButton.active) #notificationContainer header:first-of-type {
    background-color: var(--color-Charlotte);
    border-image-source: var(--border-image-Charlotte);
}

#filter_Charlotte:has(#CharlotteFilterButton.active) > div {
    background-color: var(--color-Charlotte-light);
    border-image-source: var(--border-image-Charlotte-light);
}

#LiamFilterButton {
    background-color: var(--color-Liam);
}

#notifications:has(#LiamFilterButton.active) #notificationContainer,
#notifications:has(#LiamFilterButton.active) #toggleNotifications,
#notifications:has(#LiamFilterButton.active) #notificationContainer header:first-of-type {
    background-color: var(--color-Liam);
    border-image-source: var(--border-image-Liam);
}

#filter_Liam:has(#LiamFilterButton.active) > div {
    background-color: var(--color-Liam-light);
    border-image-source: var(--border-image-Liam-light);
}

#OliviaFilterButton {
    background-color: var(--color-Olivia);
}

#notifications:has(#OliviaFilterButton.active) #notificationContainer,
#notifications:has(#OliviaFilterButton.active) #toggleNotifications,
#notifications:has(#OliviaFilterButton.active) #notificationContainer header:first-of-type {
    background-color: var(--color-Olivia);
    border-image-source: var(--border-image-Olivia);
}

#filter_Olivia:has(#OliviaFilterButton.active) > div {
    background-color: var(--color-Olivia-light);
    border-image-source: var(--border-image-Olivia-light);
}

/*
            DESKTOP
*/
#emptyDesktop {
    width: 100%;
    height: 100%;
    background-image: url("../images/logo_pixel_simple.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50%;
    background-color: var(--color-desktop-primary-light);
}

#emptyDesktop.hidden {
    display: none;
}

/*
            WEBPAGE APP
*/
#webpageApp {
    background-color: var(--color-desktop-primary-light);
}

#webpageApp .appContainer {
    display: flex;
    flex-direction: row-reverse;
    position: relative;
}

#webPage,
#controls {
    padding: 0;
    margin: 1.25rem;
    border-image-source: var(--border-image-desktop-secondary-light);
}

#toolkitMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    padding: 0.5rem 0rem 0.5rem 0.25rem;
    background-color: var(--color-desktop-secondary-light);
}

#webPage {
    position: relative;
    flex: 1 1 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#websiteDoc {
    flex: 1 0 auto;
    border: 0;
    position: relative;
}

#websiteDoc.lock {
    pointer-events: none;
    filter: brightness(0.5);
}

#controls {
    display: flex;
    flex-direction: row-reverse;
}

#gameToolkit,
#gameProgress {
    width: 30vw;
    padding: 0.4rem 1rem;
}

.toolkitHeader {
    padding: 0.4rem 0;
    box-sizing: border-box;
}

.toolkitHeader h2 {
    font-size: 1.225rem;
}

#gameToolkit {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#gameToolkit.hidden {
    display: none;
}

#gameToolkit #problemsContainer {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-gutter: stable;
    background-color: var(--color-desktop-primary-accent-light);
    border-image-source: var(--border-image-desktop-primary-accent-light);
}

#problemsContainer::-webkit-scrollbar {
    background-color: var(--color-desktop-primary-accent-light);
}

#problemsContainer::-webkit-scrollbar-thumb {
    border: 3px solid var(--color-desktop-primary-accent-light);
}

#gameToolkit>header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#gameToolkit header h2 {
    margin-right: auto;
}

.toggleControl:not(:last-of-type) {
    margin-bottom: 1.5rem;
}

#toggleToolkit::before {
    background-image: url("../icons/a11y_barriers.png");
}

#toggleProgress::before {
    background-image: url("../icons/dashboard.png");
}

#gameProgress .progressSection > header {
    position: absolute;
    left: 100vw;
}

#gameProgress dt {
    font-weight: bold;
    font-size: 1.15rem;
}

#gameProgress dt::after {
    content: ":";
}

#gameProgress dd {
    margin-bottom: 2rem;
}

#navBackAnalyzer:not(.icon) {
    display: block;
    margin: auto;
    width: fit-content;
}

#navBackAnalyzer.icon {    
    background-image: url("../icons/go_back.png");
}

/*
            PERSONA INTRO
*/
#personaIntro,
#caseFile {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 999;
}

/*
            PERSONA INTRO
*/
@media (prefers-reduced-motion: no-preference) {
    @keyframes appearPersona {
        100% {
            transform: translateX(0);
        }
    }

    #personaIntroDialog[open] #personaIntro {
        transform: translateX(-100vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    @keyframes appearPersona {
        100% {
            opacity: 1;
        }
    }

    #personaIntroDialog[open] #personaIntro {
        opacity: 0;
    }
}

#personaIntroDialog {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    max-height: 100%;
    max-width: 100%;
}

#personaIntroDialog::backdrop {
    opacity: 0;
}

#personaIntro {
    height: 100%;
    width: min(100%, 70rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1rem;
    box-sizing: border-box;
}

#personaIntroDialog[open] #personaIntro {
    animation: appearPersona 1s ease 1.4s forwards;
}

#personaIntro.hidden {
    display: none;
}

#personaIntro .stillSprite {
    object-fit: contain;
    min-height: 0;
    transform: translateY(9rem);
    filter: drop-shadow(0px 0px 6px var(--color-black));
}

#personaIntro>header,
#personaIntro>div {
    filter: drop-shadow(0px 0px 6px var(--color-black));
}

#personaIntro > header {
    width: fit-content;
    padding: 0 1rem;
    color: var(--color-white);
    z-index: 2;
}

#personaIntroHeader_Liam {
    border-image-source: var(--border-image-Liam);
    background-color: var(--color-Liam);
}

#personaIntroHeader_Charlotte {
    border-image-source: var(--border-image-Charlotte);
    background-color: var(--color-Charlotte);
}

#personaIntroHeader_Olivia {
    border-image-source: var(--border-image-Olivia);
    background-color: var(--color-Olivia);
}

#personaIntro > div {
    background-color: var(--color-desktop-primary-light);
    border-image-source: var(--border-image-desktop-primary-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1.2rem 1.7rem 0.25rem;
    margin: 0.25rem 0;
    z-index: 1;
}

#introMovingDescription {
    height: 7rem;
    font-size: 1.2rem;
    overflow: auto;
    scrollbar-gutter: stable;
}

#introStillDescription {
    position: absolute;
    text-indent: -999rem;
}

#acceptCase {
    width: 6rem;
    margin: 0.8rem 0;
    flex-shrink: 0;
    margin-top: auto;
    align-self: center;
}

#personaPowerDialog {
    border: 0;
    background-color: transparent;
}

#personaPowerDialog::backdrop {
    opacity: 0;
}

#personaActivePower {
    display: grid;
    grid-template-areas:"a b" "a b" "a c";
    grid-template-columns: 13rem auto;
    grid-template-rows: 3rem auto 3.5rem;
    justify-items: center;
    align-items: center;
}

#personaActivePower header {
    font-size: 1.125rem;
    font-weight: bold;
    margin: 1rem 0;
}

#personaActivePower .activeSprite {
    grid-area: a;
    width: 100%;
    height: 15rem;
    object-fit: contain;
}

#personaActivePower > div {
    grid-area: b;
    padding: 0 1rem;
}

#personaActivePower .personaPowerTitle {
    margin-right: 1rem;
    height: fit-content;
}

#personaActivePower .personaPower {
    padding-right: 1rem;
    display: grid;
    grid-template-areas:"a b" "a c";
    row-gap: 0;
    column-gap: 1rem;
    color: var(--color-white);
}

#webpageApp .activeSprite {
    margin-right: 0;
}

.personaPowerImage {
    grid-area: a;
}

#personaActivePower > button {
    grid-area: c;
    width: fit-content;
}

main:has(#webpageApp) #Charlotte_power {
    border-image-source: var(--border-image-Charlotte);
    background-color: var(--color-Charlotte);
}

main:has(#webpageApp) #Liam_power {
    border-image-source: var(--border-image-Liam);
    background-color: var(--color-Liam);
}

main:has(#webpageApp) #Olivia_power {
    border-image-source: var(--border-image-Olivia);
    background-color: var(--color-Olivia);
}

/*
@media (prefers-reduced-motion: no-preference) {
    #personaIntro {
        transform: translateX(-100vw);
        transition: transform 2s ease-in-out;
    }

    #personaIntro.front {
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #personaIntro {
        opacity: 0;
        transition: opacity 2s ease-in-out;
    }

    #personaIntro.front {
        opacity: 1;
    }
}*/

/*
            DETAILS
*/
.problem {
    margin: 5px 12px;
    display: flex;
    align-items: center;
    position: relative;
    line-height: 1.5;
    min-height: 3rem;
    flex-wrap: wrap;
}

/*.problem button.selectProblem:disabled {
    visibility: hidden;
    display: block;
}

.problem button.selectProblem {
    background-image: url("../images/select.png");
}

.problem button.selectProblem.close {
    background-image: url("../images/close.png");
}*/

/*button.summary {
    flex-direction: row;
    justify-content: flex-start;
    width: 95%;
    border: 0;
    background: none;
    color: var(--color-black);
    filter: none;
    font-size: 0.94rem;
    font-weight: bold;
    text-align: start;
    padding: 0;
    min-height: 3rem;
    margin: 0;
}

button.summary:active:not(:disabled) {
    color: var(--color-black);
    border: 0;
}

button.summary::before,
button.summary:active:not(:disabled)::before {
    content: "";
    display: inline-block;
    background-image: url("../images/marker.png");
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0.3rem;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 0 0 auto;
}

button.summary[aria-expanded="true"]::before {
    transform: rotate(90deg);
}*/

button.summary {
    all: revert;
    flex-shrink: 0;
    text-indent: -999rem;
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-desktop-primary);
    border-image-source: var(--border-image-desktop-primary);
    border-image-slice: 1;
    border-image-repeat: stretch;
    border-width: 3px;
    background-clip: padding-box;
    box-sizing: border-box;
    position: relative;
    cursor: pointer;
}

button.summary:hover {
    border-image-source: var(--border-image-desktop-primary-dark);
}

button.summary:active:not(:disabled) {
    border-image-source: var(--border-image-desktop-primary);
}

button.summary::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--image-accordion);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 33px;
}

button.summary[aria-expanded="true"]::before {
    transform: rotateZ(-180deg);
}

.problemDesc {
    font-size: 0.94rem;
    flex-basis: 100%;
    order: 1;
    margin: 0.125rem 0.275rem;
}

.problemDesc>section>header {
    font-weight: bold;
}

.problem>header {
    flex: 1 0 80%;
    display: flex;
    flex-direction: row;
    align-items: center;
    /*background-color: var(--color-desktop-primary-light);*/
}

.problem .wcagscSection {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.problem .wcagscSection>ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.problem .wcagscSection>ul li {
    list-style: none;
}

/*
            DIALOG
*/
dialog::backdrop {
    background-color: var(--color-desktop-primary-light);
    opacity: 0.75;
}

dialog {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 991;
    filter: drop-shadow(0px 0px 9px var(--color-black));
}

#dialogContainer {
    max-width: 45rem;
}

#dialogContainer.mismatch #dialogInfo {
    display: grid;
    grid-template-areas: "a b" "a c" "a d";
    justify-items: start;
}

#dialogContainer.mismatch #dialogInfo::before {
    grid-area: a;
    content: "";
    display: block;
    width: 20rem;
    height: 15rem;
    background-image: url("../images/wrong_match.png");
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
}

#dialogContainer.mismatch.mismatch_Liam #dialogInfo::before {
    background-image: url("../images/wrong_match_Liam.png");
}

#dialogContainer.mismatch.mismatch_Olivia #dialogInfo::before {
    background-image: url("../images/wrong_match_Olivia.png");
}

#dialogInfo > header {
    grid-area: b;
    font-weight: bold;
    font-size: 1.15rem;
    padding-top: 1.5rem;
}

#dialogInfo > div {
    grid-area: c;
}

#dismissDialog {
    grid-area: d;
    justify-self: center;
}


/*
            FILTERS
*/

/*
                FILTER CAROUSEL
*/
/*#gameFilters #filtersCarousel {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

#filtersCarouselNext {
    background-image: var(--button-image-right-arrow-secondary);
}

#filtersCarouselPrev {
    background-image: var(--button-image-left-arrow-secondary);
}

#filtersCarouselPrev.hidden,
#filtersCarouselNext.hidden {
    display: block;
    visibility: hidden;
}

#filtersCarousel ul {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

#filtersCarousel ul li {
    flex-shrink: 0;
    width: 100%;
}

#filtersCarousel .filterSection {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#filtersCarousel .filterSection::before {
    content: "";
    display: block;
    height: 6.5rem;
    width: 5.5rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#filtersCarouselPosition {
    list-style: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

#filtersCarouselPosition>li {
    width: 1rem;
    height: 1rem;
    margin: 0 1rem;
    text-indent: -999rem;
    background-color: var(--color-desktop-primary-light);
    border: 0.3rem solid var(--color-white);
}

#filtersCarouselPosition>li.active {
    background-color: var(--color-desktop-primary-dark);
}

#filtersCarouselPosition.hidden {
    visibility: hidden;
}*/

/*
                OLIVIA
*/
#websiteDoc.keyboardOnly {
    pointer-events: none;
}

/*
                CHARLOTTE
*/
/*#websiteDoc.noColors {
    filter: grayscale(1);
}*/

/*
                LIAM
*/
#gameScreenReader {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url("../images/broken_screen_2.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

#gameScreenReader.hidden {
    display: none;
}

#screenReaderVoice {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: white;
}

#screenReaderVoice > header {
    margin: 1rem 0.5rem;
}

#screenReaderVoice p {
    margin-left: 1rem;
    margin-right: 1rem;
}

#screenReaderVoice ul {
    margin: 0.25rem 2.5rem;
}

#screenReaderVoice > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    padding: 1rem;
}

#screenReaderVoice button {
    margin: 0.5rem;
}

#screenReaderVoice #screenReaderVoicePrev {
    margin-left: 5rem;
}

.readerPlay {
    background-image: url("../images/expand.png");
}

.readerPause {
    background-image: url("../images/pause.png");
}

.readerNext {
    background-image: url("../images/next.png");
}

.readerPrev {
    background-image: url("../images/prev.png");
    margin-left: 4rem;
}

/*
        SOLVER
*/
#solverApp {
    background-color: var(--color-desktop-primary-light);
}

#solverApp .appContainer {
    display: flex;
    flex-direction: row-reverse;
}

#barrierLocation {
    display: flex;
    flex-direction: column;
    max-width: 30rem;
    width: 100%;
    border-image-source: var(--border-image-desktop-secondary-light);
    padding: 0;
    margin: 2rem;
}

#barrierLocation #websiteProblemDoc {
    width: 100%;
    flex-grow: 1;
    border: 0;
}

#barrierLocation > div {
    background-color: var(--color-desktop-secondary-light);
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 3.5rem;
}

#pinpointBarrier {
    margin: 0 0.25rem 0 auto;
    transform: translateY(-3px);
}

#pinpointBarrier::after {
    background-image: url("../icons/pin.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    content: "";
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    top: -3px;
    left: -3px;
}

#solverForm {
    overflow-y: auto;
    scrollbar-gutter: stable;
    flex-grow: 1;
    padding: 2rem;
}

#solverBarrierInfo {
    display: grid;
    grid-template-columns: 8rem auto;
    row-gap: 0.5rem;
}

#solverBarrierInfo dt {
    font-weight: bold;
}

#questionPosition h3 {
    text-indent: -999rem;
}

#questionPosition ol {
    width: 100%;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

#questionPosition li {
    font-size: 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#questionPosition li:not(:last-of-type)::after {
    content: "";
    display: block;
    height: 3px;
    width: 5rem;
    background-color: var(--color-desktop-primary);
}

#questionPosition li.current::after {
    background-color: var(--color-desktop-secondary-light);
}

#questionPosition li.current ~ li::after {
    background-color: var(--color-desktop-secondary-light);
}

#questionPosition li p {
    width: 1.5rem;
    text-align: center;
    background-image: var(--image-step);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#questionPosition li.current p {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.65rem;
    font-weight: bold;
}

#questionPosition li.current ~ li p {
    background-image: var(--image-step-inactive);
}

/*#solverForm > header:has(.correctAnswer),
#solverForm > header:has(.wrongAnswer) {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#solverForm > header:has(.correctAnswer)::before,
#solverForm > header:has(.wrongAnswer)::before {
    margin: 1rem;
    content: "";
    display: block;
    width: 5rem;
    height: 5rem;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    flex-shrink: 0;
}

#solverForm > header:has(.correctAnswer)::before {
    background-image: url("../images/correct.png");
}

#solverForm > header:has(.wrongAnswer)::before {
    background-image: url("../images/wrong.png"); 
}*/

.wrongAnswer {
    margin: 0 0.8rem 2rem;
    display: grid;
    grid-template-areas: "a b" "a c";
    grid-template-columns: 2.5rem auto;
    align-items: center;
    column-gap: 1rem;
    border-image-source: var(--border-image-solver-wrong);
    background-color: var(--color-solver-wrong);
}

.wrongAnswer>p {
    margin: 0.15rem;
}

.wrongAnswer::before {
    grid-area: a;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("../images/solver_wrong.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#solverForm fieldset {
    padding: 1rem;
    margin: 2rem 0;
}

#solverForm legend {
    margin: 5px;
    width: 98%;
    border-image-source: var(--border-image-desktop-primary-dark);
    color: var(--color-white);
    background-color: var(--color-desktop-primary-dark);
    font-size: 1.05rem;
}

#codeSection {
    margin-bottom: 1.25rem;
}

fieldset .radioEntry {
    padding: 1rem 0.4rem;
    width: auto;
    display: grid;
    grid-template-areas: "a b" "c c";
    grid-template-columns: 2.2rem auto;
    align-items: center;
}

input[type="radio"] {
    grid-area: a;
    width: 1.2rem;
    height: 1.2rem;
    appearance: none;
    background-size: 19px;
    background-repeat: no-repeat;
    background-image: var(--border-radio-button-idle);
    background-position: center;
}

input[type="radio"]:checked {
    background-image: var(--border-radio-button-active);
}

#solverApp label {
    grid-area: b;
    width: 100%;
    font-size: 1em;
}

#solverForm button {
    margin: 0.5rem auto;
}

#solverApp #solverInfo {
    padding: 0.6rem 0;
}

.answerCode {
    grid-area: c;
    margin-left: 2.2rem;
}

.playground {
    border-image-source: var(--border-image-desktop-primary);
    background-color: var(--color-desktop-primary);
}

.playground > header {
    font-weight: bold;
    font-size: 1.025rem;
}

.playground > section {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.playground > section > * {
    padding: 0.5rem;
}

.playground > section > p {
    width: 65%;
}

.playground > section > .data {
    width: 35%;
}

#textSizePlayground label,
#textContrastPlayground label,
#graphicContrastPlayground label {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: fit-content;
    padding: 0.5rem 0;
}

#variableSizeText {
    font-size: 15px;
    height: 8rem;
    overflow: auto;
    scrollbar-gutter: stable;
}

#coloredText {
    font-size: 1.5rem;
}

#sizeType,
#ratio,
#largeScaleCheck {
    font-weight: bold;
}

#textSizePlayground input,
#textContrastPlayground input,
#graphicContrastPlayground input {
    margin-left: 1rem;
    font-size: 1rem;
    font-family: 'Metrophobic', sans-serif;
}

#sizeContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#colorList {
    list-style: lower-alpha;
    margin-left: 1rem;
}

#colorList li p {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#colorList li span {
    padding: 0.5rem;
}

#scrollPaddingPlayground > section {
    align-items: flex-start;
}

#scrollPaddingPlayground > section > section {
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 30rem;
}

#scrollPaddingPlayground .paddingBox {
    padding: 0;
    position: relative;
    margin: 0.6rem;
    box-sizing: border-box;
    height: 150px;
    overflow-y: scroll;
}

#scrollPaddingPlayground .paddingBox.solved {
    scroll-padding-top: 60px;
}

#scrollPaddingPlayground .paddingBox > header {
    background-color: var(--color-gray);
    color: var(--color-white);
    height: 60px;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    font-weight: bold;
    position: sticky;
    top: 0;
}

#scrollPaddingPlayground .paddingBox > section {
    height: 45px;
}

.paddingBoxStyle {
    margin: 0 0.6rem;
    flex-grow: 1;
}

.paddingBoxStyle header {
    font-weight: bold;
}