/*
 _._     _,-'""`-._
(,-.`._,'(       |\`-/|
    `-.-' \ )-`( , o o)
          `-    \`_`"'-
*/

body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;

    font-family: Chewy, sans-serif;
}

main {
    position: relative;

    width: 100%;
    height: 100%;

    display: grid;
    grid-template-columns: 30% 40% 30%;
    grid-template-rows: 30% 25% 45%;

    background: linear-gradient(243.18deg, #FF9E3D 0%, #CC7E31 80%, #995F25 100%);
}

p {
    margin: 0;
    color: white;

    user-select: none;
}

.Blocker {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 999;
    display: none;

    cursor: pointer;
}

.Narrator {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: 999;

    background-color: black;

    font-family: Norican, serif;
    font-size: 8vw;

    transition: opacity 0.6s;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

.Narrator.Showing {
    transition: opacity 0.25s;
}

.Narrator p {
    text-align: center;
    max-width: 90vw;
}

.Streak {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;

    margin-bottom: 2px;

    font-size: 2vw;
    font-weight: normal;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;

    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex-direction: row;
}

.RNumber {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    z-index: 1;

    transition: opacity 0.6s;

    display: flex;
    justify-content: center;
    align-items: center;
}

.RNumber:hover {
    opacity: 0.85;
}

#TheNumber {
    width: 75%;
    height: 100%;

    overflow: hidden;
    background-color: #72461B;
    filter: drop-shadow(-5px 4px 8px rgba(0, 0, 0, 0.65));
    border-radius: 24px;
    cursor: pointer;

    letter-spacing: 0.05em;
    font-size: min(13cqw,25cqh);
    font-weight: bold;
    text-shadow:
            -4px -4px 0 #000,
            4px -4px 0 #000,
            -4px  4px 0 #000,
            4px  4px 0 #000;

    display: flex;
    justify-content: center;
    align-items: center;
}

.Graph {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -15%;
    z-index: 0;

    width: 20%;
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

#CanvasGraph {
    width: 100%;
    height: 100%;
    position: relative;

    will-change: transform;
    transform: translateX(130%) scale(0.1);
    transition: transform 0.5s, opacity 0.5s;

    opacity: 0.4;
    background-color: #ffffff;
    border: #000 3px solid;
    border-radius: 3px;
}

#CanvasGraph.shown {
    opacity: 1;

    transform: translateX(0) scale(1);
    transition: transform 0.5s, opacity 0.5s;
}

.GraphToggle {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;

    position: absolute;
    top: 50%;
    will-change: transform;
    transform: translateY(-50%) rotate(90deg);
    left: 7%;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
}

.GraphToggle p {
    z-index: 2;

    font-size: 2.2vw;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;

    cursor: pointer;

    transition: transform 0.2s;
}

main:has(#CanvasGraph.shown) .GraphToggle p {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

.answers {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 3;
    grid-row-end: 4;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.anwser {
    width: 20%;
    aspect-ratio: 1;
    margin-bottom: 15%;
    position: relative;
    z-index: 1;

    /*overflow: hidden;*/
    border-radius: 24px;

    text-align: center;
    font-size: min(1.75cqw,4cqh);
    font-weight: bold;
    text-shadow:
            -2px -2px 0 #000,
            2px -2px 0 #000,
            -2px  2px 0 #000,
            2px  2px 0 #000;

    cursor: pointer;
    transition: opacity 0.5s, background-color 0.5s, transform 0.3s;
    will-change: transform;

    display: flex;
    justify-content: center;
    align-items: center;
}

.anwser:before {
    position: absolute;
    z-index: -1;
    inset: 0;

    border-radius: inherit;
    background-color: #72461B;
    filter: drop-shadow(-5px 4px 8px rgba(0, 0, 0, 0.55));
    content: '';
    transition: background-color 0.5s;
}

.anwser:hover {
    transform: scale(1.05);
}

.anwser p {
    width: 100%;
    height: 100%;

    will-change: transform;

    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow {
    position: absolute;
    bottom: 0;
    z-index: -2;

    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;

    cursor: help;

    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.anwser:hover .arrow {
    opacity: 1;
    transform: translateY(100%);
}

.code {
    position: absolute;
    width: 300%;
    height: 40%;
    bottom: -75%;

    font-size: 70%;

    opacity: 0;
    visibility: hidden;
    transition: opacity 1s, visibility 1s;

    display: flex;
    align-items: center;
    justify-content: center;
}

.code p {
    background-color: #000000;
    border-radius: 16px;

    user-select: text;

    font-family: Inter, sans-serif;
    text-shadow: none;
    color: #00FF04;
}

.arrow:hover ~ .code {
    visibility: visible;
    opacity: 1;
}

.anwser.wrong:before {
    background-color: #D61809;
}

.anwser.correct:before {
    background-color: #27C728;
}

.unimportant {
    opacity: 0.2;
}

.Settings {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;

    margin: 1rem;
    gap: 2%;

    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.Settings img{
    transition: transform 0.3s;
}

.Settings img:hover {
    transform: scale(1.05);
}

.Setting {
    width: 10%;
    position: relative;

    cursor:  pointer;
    user-select: none;
}

.Setting img {
    max-width: 100%;

    user-select: none;
}

.ShowButton {
    height: 100%;
}

.ShowButton label img{
    max-width: 100%;

    cursor: pointer;
}

.ShowButton label {
    width: 100%;
    height: 100%;
}

.Slider {
    width: 250%;

    position: absolute;

    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);

    transition: opacity 0.2s;

    user-select: auto;
}

.Slider input {
    width: 100%;

    cursor: pointer;
}

.Links {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
    grid-row-end: 4;

    margin: 1rem;
    width: 10%;

    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.Links img {
    max-width: 100%;

    user-select: none;
}

a {
    text-decoration: none;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

.shown {
    opacity: 1;
    visibility: visible;
}