@font-face {
    font-family: 'equity_sc';
    src: url('../fonts/equity_caps_b_bold-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'equity_sc';
    src: url('../fonts/equity_caps_b_regular-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal
}

body {
    width: calc(100vw - 2em);
    /* display: block; */
    margin: 0 auto;
    flex-flow: column;
    align-items: baseline;
    gap: 1.2em;
    justify-content: start;
    max-width: 80em;
    padding-bottom: 3em;
    height: 100%;
}


#canvas_div {
    text-align: center;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    margin: 0 auto;
    margin-top: -0.4em;
    position: relative;
    gap: 1.1em;
}
canvas {
  border: 2px solid black;
}

div.title {
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 2em;
}

h1.intro {
    /* text-align: center; */
    align-self: center;
    /* padding-top: 1.5em; */
    font-family: concourse_sc;
    font-weight: 400;
    font-feature-settings: 'c2sc';
    font-size: 3.3em;
    margin: 0;
    /* padding-top: 1.3em; */
    width: 80%;
    display: flex;
    flex-flow: row;
    gap: 0.5em;
    align-items: center;
    justify-content: space-between;
}

#intro p, #intro h2 {
    font-size: 1.2em;
}

#intro p:last-of-type {
    padding-bottom: 1.6em;
}

#intro .choices {
    border-top: 0.05em dotted;
    padding-top: 2em;
}

#intro h2 {
    font-size: 2em;
    font-family: 'equity_sc';
    font-feature-settings: 'c2sc';
    margin: 0;
}

.sound_icon {
    /* background-color: aliceblue; */
    display: inline-block;
    height: 2.8em;
    width: 2.8em;
    align-self: center;
    background-image: url('/img/sound.png');
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    justify-self: center;
    background-position: center;
}

.eraser_icon {
    /* background-color: aliceblue; */
    display: inline-block;
    height: 2.8em;
    width: 2.8em;
    align-self: center;
    background-image: url(/img/eraser.svg);
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    justify-self: center;
    background-position: center;
}

.sound_icon.mute {
    background-image: url('/img/mute.png');
}

#intro {
    font-family: 'equity_text';
    font-weight: 200;
    height: auto;
}

#range_operand {
    /* padding: 1.2em 0; */
    display: inline-flex;
    flex-flow: column;
    gap: 0.7em;
}

#range_operand input, #range_operand select {
    font-family: 'concourse_sc';
    font-size: 1.2em;
    font-weight: 300;
    /* font-feature-settings: 'c2sc'; */
}

#range_operand input {
    width: 3em;
    height: 1.3em;
}

#range_operand input[type=checkbox] {
    display: inline-flex;
    height: 0.5em;
    width: 1.3em;
    align-items: center;
    justify-content: center;
    /* flex-flow: row; */
}

input[type=checkbox]:before {
    /* display: inline-flex; */
    position: relative;
    height: 1.1em;
    width: 1.1em;
    margin: 0;
    align-self: auto;
}

#range_operand select {
    font-feature-settings: 'c2sc';
}

#range_operand span {
    font-size: 1.2em;
}

span:has(input) {
    display: flex;
    flex-flow: row;
    gap: 0.3em;
    align-items: center;
}

#range_operand button[type='submit'] {
    background-color: rgb(13 113 231 / 80%);
    border: 0;
    outline: 0.6em;
    border-radius: 0.15em;
    font-size: 2.2em;
    /* margin-bottom: -0.2em; */
    text-transform: uppercase;
    padding: 0.2em 0.8em;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 200ms linear;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    /* margin-top: 0.4em; */
    /* text-align: center; */
    display: flex;
    align-content: center;
    width: 3em;
    height: 1.7em;
    flex-flow: row;
    position: relative;
    justify-content: center;
    font-family: 'concourse_sc';
}

#range_operand button[type='submit']:after {
    content: 'GO!';
    position: absolute;
    /* width: 100%; */
    /* height: 100%; */
    /* line-height: 1; */
    /* display: flex; */
    align-self: center;
    justify-self: center;
}

#range_operand input[type='submit']:after {
    content: 'GO';
    font-size: 3em;
}

#range_operand input[type='submit']:hover {
    background-color: rgb(87 215 68 / 80%);
}

#questions {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: min(12vh, 9em);
    /* padding: 1em 0; */
    font-family: 'concourse_sc';
    font-weight: 400;
    /* transition: all 0.3s linear 0s; */
    user-select: none;
    height: 100%;
    align-items: center;
}

div.q_canvas {
    display: flex;
    flex-flow: column;
    gap: 0em;
    align-self: center;
}

#questions.set + #answers #tiles:not(.set) .answer:before {
    font-size: 6em;
}

#questions.set .question {
    font-size: 6em;
    /* transform: scale3d(1, 1.5, 1); */
    letter-spacing: 0.1em;
}

#questions div {
    font-size: 4em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    position: relative;
    display: flex;
    flex-flow: row;
}

.question:not(.invert):after {
    content: '☐';
    text-transform: capitalize;
    /* outline: 0.06em solid black; */
    /* height: 1.4em; */
    /* width: 1.4em; */
    display: block;
    line-height: 1;
    font-weight: 100;
    font-size: 1.3em;
}

.question {
    display: flex;
    flex-flow: row;
    align-items:center;
}

.question:not(.invert):before {
    content: var(--question) ' = ';
    margin-right: 0.35em;
    /* position: absolute; */
    /* display: inline-flex; */
    /* flex-flow: row; */
    /* width: 4em; */
    /* line-height: 0; */
    /* height: auto; */
    /* left: 0; */
}

.question.invert:before {
    content: var(--question);
    margin-right: 0.35em;
}

#answers, #tiles {
    /* width: 67%; */
}

#answers {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    font-family: 'concourse_sc';
    font-weight: 400;
    /* height: 100vw; */
    position: relative;
    /* max-height: 71vh; */
    /* gap: 0em; */
    /* padding-top: 7em; */
    user-select: none;
}

#answers .background:after {
    content: '';
    /* background-image: url(https://images.pexels.com/photos/27795729/pexels-photo-27795729.jpeg?cs=srgb&dl=pexels-muhammad-amdad-hossain-1673442328-27795729.jpg&fm=jpg&w=4500&h=3001); */
    position: absolute;
    /* width: 100%; */
    /* height: 67vh; */
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0.3em;
    background-position: center;
    /* filter: blur(6px) hue-rotate(90deg); */
    /* backdrop-filter: blur(25px); */
    /* max-height: 100%; */
}

#answers .background {
    background-color: transparent;
    position: relative;
    height: 100%;
    /* width: 100%; */
    /* max-height: 67vh; */
    z-index: -1;
}

#reset {
    display: flex;
    flex-flow: row;
    gap: 7em;
    margin-top: 1em;
    width: 100%;
    font-feature-settings: 'c2sc';
    font-weight: 300;
    font-weight: 400;
    font-size: 1.5em;
    /* gap: 2em; */
    /* backdrop-filter: blur(7px); */
    align-items: center;
    justify-content: center;
    z-index: 2;
    bottom: 3vh;
    position: fixed;
    padding: 0 0.5em;
}

#reset div {
    /* width: 10em; */
    /* height: 2em; */
    background-color: floralwhite;
    /* margin: 0 auto; */
    text-align: center;
    padding: 0.8em;
    cursor: pointer;
    border-radius: 0.4em;
    outline: 0.1em solid;
    font-weight: 600;
    transition: background-color 400ms linear;
    /* backdrop-filter: blur(7px); */
    /* gap: 3em; */
}

#reset div:hover {
    background-color: rgb(255 255 0 / 50%);
}

#tiles {
    display: grid;
    /* grid-template-columns: 1fr 1fr 1fr 1fr; */
    /* grid-template-rows: auto; */
    height: 100%;
    /* max-height: 67vh; */
    width: 100%;
    align-items: center;
    justify-items: center;
    justify-content: space-evenly;
    /* position: relative; */
    transition: all 0.6s linear 0s;
    position: relative;
}

#tiles:after {
    content: '';
    /*     background-image: url(https://images.pexels.com/photos/27795729/pexels-photo-27795729.jpeg?cs=srgb&dl=pexels-muhammad-amdad-hossain-1673442328-27795729.jpg&fm=jpg&w=4500&h=3001); */
    background-image: var(--hidden_image);
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 0.3em;
    background-position: center;
    /* filter: blur(6px) hue-rotate(90deg); */
    transition: all 1s linear 0s;
    /* animation-delay: 5s; */
}

#tiles:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1.1em) hue-rotate(90deg);
    transition: all 1.2s linear 0s;
    /* animation-delay: 5s; */
}

#tiles:before {
}

#tiles.alldone:after {
    /* filter: none; */
    width: 100vw;
    height: 100vh;
    /* position: absolute; */
    top: 0;
    z-index: 1;
}

#tiles.alldone.fill_screen:after {
    position: fixed;
}

#tiles .question, #tiles .answer {
    background-color: cornsilk;
    width: 100%;
    height: 100%;
    min-height: 8.4em;
    cursor: pointer;
    /* box-shadow: 0.5px 0.5px 0px 0.2em #000000; */
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: all 0.3s linear 0s;
    /* font-size: 2.2em; */
    z-index: 1;
    /* outline: solid 0.06em slategrey; */
}

#tiles.set .question, #tiles.set .answer {
    font-size: 1.5em;
    letter-spacing: 0.07em;
    font-weight: 800;
    background-color: cornsilk;
}

#tiles.set .question:before, #tiles.set .answer:before {
    /* transform: scale3d(1, 1.5, 1); */
    letter-spacing: 0.1em;
    line-height: 1;
}

#tiles .answer.correct {
    background-color: transparent;
    box-shadow: unset;
    cursor: auto;
    border: solid 0px black;
}

#tiles .answer.correct:after {
    /* border: solid 0px black; */
    outline-color: rgba(0,0,0,0);
}

#tiles .answer.correct:before {
    content: '\00a0';
}

#tiles .question:before, #tiles .answer:before {
    content: var(--answer);
    font-size: 2.5em;
    z-index: 3;
    font-family: "concourse_sc";
    font-weight: 400;
    text-align: center;
    padding: 0.4em;
    font-weight: 600;
}

#tiles .answer:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    /* backdrop-filter: blur(1.1em); */
    z-index: 0;
    transition: all 0.3s linear 0s;
    outline: solid 0.03em rgba(0,0,0,1);
    display: inline-block;
    will-change: transform;
    /* backdrop-filter: blur(1.1em); */
}

#tiles.alldone:before {
    backdrop-filter: blur(0em) hue-rotate(0deg);
    /* transform: scale(1.5); */
    position: fixed;
    height: 100vh;
    width: 100vw;
    top: 0;
    z-index: 2;
}

#tiles.alldone .answer {
    outline: solid 0em grey;
}

canvas#canvas {
    /* width: calc(1037px / 2); */
    /* height: calc(152px / 2); */
}

#canvas_div {
    width: 100%;
}