@import url('https://fonts.googleapis.com/css2?family=Bitcount+Grid+Single+Ink:wght@100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=SUSE+Mono:ital,wght@0,100..800;1,100..800&display=swap');

body {
    font-family: "SUSE Mono", sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw; height: 100vh;
    user-select: none;
}

:root {
    --current-color: rgb(255, 102, 46);
    --default-color: rgb(255, 255, 255);
}

.main-next {
    padding: 1em;
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: lightblue;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    border: 4px solid #ff7e5f;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    transition: background .5s linear;
    display: none;
}

.main-next:hover {
    background: linear-gradient(45deg, #feb47b, #ff7e5f);
    transition: background .5s linear;
}

.main-next:active {
    background: linear-gradient(45deg, #e86a50, #e0a063);
    transition: background .5s linear;
}

.main-next img {
    width: 80%;
}

.bubble {
    position: absolute;
    width: fit-content;
    max-width: calc(100vw - 240px);
    text-wrap: wrap;
    padding: .5em;
    left: 0 auto;
    font-size: 2em;
    display: flex;
    box-sizing: border-box;
    border-radius: 10px;
    opacity: 0;
}

.bubble p {
    margin: 0;
    padding: 0;
}

.topbubble {
    background: rgba(255,239,208,0.88);
    top: 10px;
    transform: translateY(-150px);
}

.bottombubble {
    background: rgba(217, 255, 208, 0.88);
    bottom: 10px;
    transform: translateY(150px);
}

.page {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    display: flex;
    justify-content: center;
}

.page0 {
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 1.6em;
    top: 0;
    left: 0;
    opacity: 1;
    z-index: 1000;
    padding-left: 1em;
    box-sizing: border-box;
}


.page0 h1 {
    font-size: 4em;
}
.page0 h1, .page0 h2 {
    margin: 20px;
    text-indent: 0;
}

.page0 h2 {
    align-self: flex-start
}

.page0 .name-input {
    max-width: 80%;
    display: flex;
    gap: 10px;
}

.page0 .group {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.page0 .name-input .profile-pic {
    width: 80px;
    height: 80px;
    flex-grow: 0;
    flex-shrink: 0;
    /* background: white; */
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
    flex-grow: 0;
}

.page0 .name-input .profile-pic img {
    width: 80%;
    height: 80%;
}

.page0 input {
    height: 80px;
    outline: none;
    border: 2px solid white;
    font-family: "SUSE Mono", sans-serif;
    font-size: 1.3em;
    border-radius: 5px;
    padding: 0 .5em;
    box-sizing: border-box;
    font-weight: bold;
}

.page0 .continue {
    background: #7A3FD8;
    border-radius: 5px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .1s linear;
}

.page0 .continue:hover {
    transform: scale(1.03);
    transition: transform .1s linear;
}

.page0 .continue:active {
    transform: scale(1);
    transition: transform .1s linear;
}

.page0 .continue img {
    width: 70%;
}

.page1 {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.page1 .bg1 {
    width: 100%;
    height: 100%;
    background: url(1.1.png);
    background-position: center;
    background-size: cover;
}

.page1 .bg2 {
    width: 100%;
    height: 100%;
    background: url(1.2.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    animation: page1 2.5s linear infinite;
}

@keyframes page1 {
    0% {
        opacity: 0;
    } 50% {
        opacity: 1;
    } 100% {
        opacity: 0;
    }
}

.page2 {
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 998;
}

.page2 .bg1 {
    width: 100%;
    height: 100%;
    background: url(2.png);
    background-position: center;
    background-size: cover;
}

.page3 {
    position: fixed;
    top: 0;
    left: 0;
    /* opacity: 0; */
    z-index: 997;
}

.page3 .bg1 {
    width: 100%;
    height: 100%;
    background: url(3.png);
    background-position: center;
    background-size: cover;
}

.page4 {
    position: fixed;
    top: 0;
    left: 0;
    /* opacity: 0; */
    z-index: 996;
}

.page4 .bg1 {
    width: 100%;
    height: 100%;
    background: url(4.png);
    background-position: center;
    background-size: cover;
}

.page4 .bottombubble {
    background: transparent;
    display: grid;
    width: fit-content;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
    box-sizing: border-box;
}

.page4 .btn-btmbbl {
    padding: .5em;
    border: 3px solid #ff7e5f;
    background: white;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
}

.page4 .btn-btmbbl:hover {
    transform: scale(1.05)
}

.page4 .btn-btmbbl:active {
    transform: scale(1)
}

.page4 .accept {
    background: rgba(208, 255, 231, 0.5);
}

.accept

.page4 .deny {
    background: rgba(255, 208, 216, 0.5);
}

.page5 {
    background: url(5.png);
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    /* opacity: 0; */
    z-index: 995;
}

.page5 .clues-count {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    grid-template-columns: 100px;
    grid-template-rows: repeat(5, 1fr);
    width: 100px;
    gap: 4px;
}

.page5 .clues-count .item {
    width: 100px;
    height: 100px;
    background: rgba(255, 240, 251, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    outline: 1px solid white;
    box-sizing: border-box;
    position: relative;
    z-index: 999;
}

.page5 .clues-count .item img {
    position: absolute;
    width: 80px;
    top: 10px;
    left: 10px;
    opacity: 0;
    z-index: 1000;
}

.page5 .clues-count .item:nth-child(1) {
    background: url(bag.png);
    background-size: cover;
    background-position: center;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}

.page5 .buttons {
    width: 100px;
    height: 210px;
    gap: 10px;
    display: flex;
    position: absolute;
    right: 10px;
    top: 10px;
    flex-direction: column;
    z-index: 1000;
}

.page5 .buttons .button {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgb(142, 180, 255);
    background: rgba(142, 180, 255, 0.252);
    border-radius: 10px;
    cursor: pointer;
    box-sizing: border-box;
}

.page5 .buttons .button:hover img {
    transform: scale(1.05);
    transition: transform .1s linear;
}

.page5 .buttons .button:active img {
    transform: scale(1);
    transition: transform .1s linear;
}

.page5 .buttons .button img {
    width: 70%;
    transform: scale(1);
    transition: transform .2s linear;
}

.page5 .prev-screen {
    transform: rotateZ(180deg);
}

.page5 .bg2{
    width: 100%;
    height: 100%;
    background: url(5.1.png);
    background-position: center;
    background-size: cover;
    position: absolute;
    z-index: 995;
    top: 0;
    left: 0;
}

.page5 .screens {
    height: 100%;
    width: 400%;
    overflow: hidden;
    position: fixed;
    display: flex;
    transform: translateX(0);
    left: 0;
}

.page5 .screen {
    flex-grow: 0;
    flex-shrink: 0;
}

.page5 .screens .sc1 {
    width: 100vw;
    height: 100vh;
    background: url(5.1.png);
    background-position: center center;
    background-size: cover;
}

.page5 .screens .sc2 {
    width: 100vw;
    height: 100vh;
    background: url(5.2.png);
    background-position: center center;
    background-size: cover;
}

.page5 .screens .sc3 {
    width: 100vw;
    height: 100vh;
    background: url(5.3.png);
    background-position: center center;
    background-size: cover;
}

.page5 .screens .sc4 {
    width: 100vw;
    height: 100vh;
    background: url(5.4.png);
    background-position: center center;
    background-size: cover;
}

.page5 .clue {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    cursor: pointer;
}

.page5 .topbubble {
    position: absolute;
    z-index: 996;
}

.page5 .amount {
    font-size: 2em;
}

.page6 {
    width: 100%;
    height: 100%;
    background: url(6.png);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3em;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 994;
    /* opacity: 0; */
}

.page6 .table {
    width: calc(33vh + 10px);
    height: 60vh;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(5, 1fr);
    box-sizing: border-box;
    gap: 10px;
}

.page6 .item {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, .9)
}

.page6 .head {
    background: white;
    font-size: 1.3em;
    font-weight: bold;
}

.page6 .corner {
    border: none;
    background: transparent;
}

.page6 .item img {
    width: 9vh;
}

.page6 .inventory {
    display: grid;
    height: calc(22vh + 10px);
    grid-template-columns: 11vh;
    grid-template-rows: 11vh 11vh;
    gap: 10px;
}

.page6 .inventory .item {
    background: rgba(254, 208, 255, 0.9)
}

.page6 .clue1, .page6 .clue2 {
    cursor: grab;
    user-select: none;
}

.page7 {
    background: url(7.png);
    background-position: center;
    background-size: cover;
    z-index: 993;
}

.page7 .test {
    position: absolute;
    top: 0;
    left: 0;
    width: fit-content;
    transform: translateX(-50vw);
    max-width: 40vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.page7 .test-answer {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.page7 .checkbox {
    width: 35px;
    height: 35px;
    border: 2px solid white;
    flex-grow: 0;
    flex-shrink: 0;
    border-radius: 5px;
    box-sizing: border-box;
    outline: 2px solid #feb47b;
    cursor: pointer;
    transition: transform .1s linear;
    background: white;
}

.page7 .checkbox:hover {
    transform: scale(1.04);
    transition: transform .1s linear;
}

.page7 .checkbox:active {
    transform: scale(1);
    transition: transform .1s linear;
}

.page7 .answer {
    background: white;
    padding: .3em .7em;
    box-sizing: border-box;
    border-radius: 5px;
    min-height: 35px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    width: calc(100% - 45px);
    font-size: 1.3em;
}

.page7 .checked {
    background: #feb47b
}

.page7 .btn-check {
    background: lightcoral;
    padding: 1em .5em;
    display: flex;
    justify-content: center;
    font-size: 1.3em;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

.page7 .btn-check:hover {
    transform: scale(1.02);
    transition: transform .1s linear;
}

.page7 .btn-check:active {
    transform: scale(1);
    transition: transform .1s linear;
}

.page8 {
    background: url(8.png);
    background-position: center;
    background-size: cover;
    z-index: 992;
}

.page9 {
    background: url(9.png);
    background-position: center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 991;
}

.page9 input {
    width: 45vw;
    padding: .5em;
    font-size: 2em;
    border-radius: 10px;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-family: "SUSE Mono", sans-serif;
}

.page9 input::placeholder {
    color: #ff7e5f;
}

.page9 input:focus {
    outline: 3px solid #e0a063;
}

.page9 .conditions {
    display: flex;
    flex-direction: column;
    width: 45vw;
    gap: 10px;
}

.page9 .condition {
    background: rgb(255,239,208);
    border-radius: 10px;
    padding: .5em;
    opacity: 0;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(500px);
}

.page9 .icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 0;
    flex-shrink: 0;
}

.page9 .icon img {
    width: 80%;
}

.page9 .text {
    min-height: 50px;
}

.page9 .btn-check {
    background: lightcoral;
    padding: 1em;
    display: flex;
    justify-content: center;
    font-size: 1.3em;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.page9 .btn-check:hover {
    transform: scale(1.02);
    transition: transform .1s linear;
}

.page9 .btn-check:active {
    transform: scale(1);
    transition: transform .1s linear;
}

.page10 {
    background: url(10.png);
    background-position: center;
    background-size: cover;
    z-index: 990;
}

.page11 {
    background: url(11.png);
    background-position: center;
    background-size: cover;
    z-index: 989;
}

.page11 .field-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.field {
    width: 64vh;
    height: 64vh;
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 1px;
    background: gray;
    border: 1px solid gray;
}

.cell {
    background: var(--default-color);
}

.cell:hover {
    background: var(--current-color);
    opacity: .5;
}

.color-palette {
    display: grid;
    min-height: 30vw;
    width: 2vw;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-cell,
.tool-cell {
    background: var(--default-color);
    aspect-ratio: 1 / 1;
    width: 100%;
    transition: all .2s linear;
    cursor: pointer;
}

.color-cell:hover {
    transform: scale(1.1);
    transition: all .2s linear;
}

.color-cell.red {
    background: rgb(255, 102, 46);
}

.color-cell.green {
    background: rgb(26, 218, 84);
}

.color-cell.blue {
    background: rgb(83, 15, 255);
}

.color-cell.yellow {
    background: rgb(255, 236, 26);
}

.page11 .color-cell.skyblue {
    background: rgb(142, 229, 255);
}

.tool-cell {
    background: transparent;
    border: 1px solid white;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-cell img {
    width: 80%;
}

.fill-tool {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fill-tool img {
    width: 80%;
}

.selected {
    outline: 2px solid white;
    border: 2px solid black;
    box-sizing: border-box;
}

.selected:hover {
    transform: scale(1);
}

.range-group {
    display: flex;
    justify-content: center;
}

.height-input,
.width-input {
    writing-mode: vertical-lr;
    direction: rtl;
}

.page12 {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 988;
    overflow: scroll;
    flex-shrink: 0;
    display: grid;
    grid-template-rows: 100%;
    grid-template-columns: 70vh calc(100% - 70vh);
}

.page12 .cert {
    height: 1527px;
    width: 1080px;
    outline: 8px solid black;
    padding: 40px;
    position: relative;
    background: white;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    transition: box-shadow .1s linear;
    flex-shrink: 0;
    /* overflow: hidden; */
    box-sizing: border-box;
}

.page12 .cert-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 1080px;
}

.page12 .cert:hover {
    -webkit-box-shadow: 4px 4px 22px -1px rgba(34, 60, 80, 0.61);
    -moz-box-shadow: 4px 4px 22px -1px rgba(34, 60, 80, 0.61);
    box-shadow: 4px 4px 22px -1px rgba(34, 60, 80, 0.61);
    transition: box-shadow .1s linear;
}

.page12 .cert:active {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    transition: box-shadow .1s linear;
}

.page12 .cert .field {
    width: 350px;
    height: 350px;
    gap: 0;
    border: none;
    position: absolute;
    pointer-events: none;
}

.page12 .cert .h1 {
    position: absolute;
    width: 600px;
    height: 350px;
    top: 40px;
    right: 40px;
    text-align: left;
    font-size: 60px;
    font-weight: bold;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.page12 .cert .student-name {
    position: absolute;
    width: 1000px;
    text-align: center;
    top: 500px;
    font-size: 100px;
    font-weight: 800;
}

.page12 .sprite {
    position: absolute;
    bottom: 0;
    right: 40px;
    width: 350px;
}

.page12 .sprite img {
    width: 350px;
    display: block;
}

.page12 .info {
    position: absolute;
    bottom: 150px;
    width: 630px;
    font-size: 40px;
    gap: 20px;
    display: flex;
    flex-direction: column;
}

.page12 .info .head {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 50px;
}

.page12 .info .head-i {
    font-weight: 450;
    gap: 20px;
    display: flex;
    align-items: center;
}

.page12 .info .head-i img {
    width: 70px;
    flex-grow: 0;
    flex-shrink: 0;
}
