:root {
	--white: 255,255,255;
	--black: 51,41,37;
	--off-white: 255,229,175;
	--gold: 251, 185, 65;
	--gold-light: 254,207,118;
	--off-black: 51,41,37;
	--yellow: 255,207,52;
	--red: 244,23,59;
	--yellow-dark: 238,168,44;
	--salmon-dark: 135,65,78;
	--salmon-light: 255,179,137;
	--salmon: 255,94,88;
	--metal-gray-light: 231, 218, 212;
	--metal-gray-medium: 164, 140, 141;
	--metal-gray-dark: 101, 83, 88;
	--screen-blue-content: 45, 230, 255;
	--screen-red-content: 255, 140, 175;
	--screen-green-content: 125, 255, 145;
	--screen-yellow-content: 255, 228, 176;
	--teal: 112, 183, 151;
	--teal-light: 193, 250, 200;
	--brown: 144, 80, 70;
	--brown-light: 206, 146, 110;
	--blue: 107, 161, 214;
	--purple: 218, 153, 245;
	--blue-light: 152, 230, 249;
	--purple-light: 236, 181, 244;
	--pink-light: 253, 126, 143;

	--dpaam-light-gray: #F7F6F6;
	--dpaam-page-gray: #EEEDEC;
	--dpaam-white: #FFE4AE;
	--dpaam-border: #e3e3df;
	--dpaam-border-strong: #c9c9c4;
	--dpaam-black: #332925;
	--dpaam-black-muted: #6b6b66;
	--dpaam-accent: #2b2b2b;
	--dpaam-accent-text: #ffffff;
	--dpaam-success: #1f7a4d;
	--dpaam-danger: #a4302a;
	--dpaam-blue: #69A0D7;
	--dpaam-blue-light: #D2E2F3;
	--dpaam-blue-dark: #535EA0;
	--dpaam-teal: #2E9C96;
	--dpaam-teal-light: #D4E9E0;
	--dpaam-teal-dark: #45857E;
	--dpaam-salmon: #FF5E58;
	--dpaam-salmon-light: #FFCECD;
	--dpaam-salmon-dark: #B74A6E;
	--dpaam-gold: #FBB941;
	--dpaam-purple: #DA99F5;
	--dpaam-purple-light: #FFD2F3;
	--dpaam-gold-light: #FEEAC6;
	--dpaam-gold-dark: #C87D3B;
	--dpaam-brown: #AA605A;
	--dpaam-green: #80AA6A;
	--dpaam-green-light: #D4E8C8;
	--dpaam-pink: #FF8290;
	--dpaam-cyan: #97E6F9;
	--dpaam-lime: #c7f0b0;
	--dpaam-lavender: #DA99F5;
	--dpaam-gray: #A08D8D;
	--dpaam-beige: #FFE4AE;
	--dpaam-orange: #FF934E;
	--dpaam-tan: #D59981;
	--dpaam-blush: #EE5A6A;
  
}

@font-face {
    font-family: 'Patterns';
    src: url('../assets/fonts/patterns/patterns-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
	font-family: 'Primer Print Bold';
    src: url('../assets/fonts/primerPrint/primer_print_bold-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Curses';
    src: url('../assets/fonts/curses/curs-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	font-display: swap;
}

*,
html,
body
 {
    padding: 0;
    margin: 0;
	-webkit-tap-highlight-color: rgba(0,0,0,0);	
	touch-action: manipulation;
}

body {
    overflow: hidden;
    position: relative;
    background-color: rgba(var(--off-black), 1);

    cursor: url("../assets/interface/cursor/default-1x.png"), auto !important;
    cursor: -webkit-image-set(
        url("../assets/interface/cursor/default-1x.png") 1x,
        url("../assets/interface/cursor/default-2x.png") 2x
    ), auto !important;

}

button, input, a, .activity-node {
	cursor: default;
    cursor: url("../assets/interface/cursor/pointer-1x.png"), auto !important;
    cursor: -webkit-image-set(
        url("../assets/interface/cursor/pointer-1x.png") 1x,
        url("../assets/interface/cursor/pointer-2x.png") 2x
    ), auto !important;
}


a {
	text-decoration: none;
	color: inherit;
  }

p,li,span {
	-webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
	font-family: 'Primer Print Bold', sans-serif;
	letter-spacing: -0.02rem;
}

button {
	font-family: 'Primer Print Bold', sans-serif;
}

textarea, input { 
	outline: none; 
	border: 0;
	user-select: none;
}

input::selection {
	background-color: transparent
}

button, input[type="submit"], input[type="reset"] {
	background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	outline: inherit;
	user-select: none;
}

.button-menu-global {
	background-color: rgba(var(--off-white), 1);
	color: rgba(var(--off-black), 1);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
	font-family: 'Primer Print Bold';
	box-sizing: border-box;
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: 20px;
	z-index: 998;
	border: 2.5px solid rgba(var(--off-black), 1);
}

.button-menu-global:hover {
	filter: brightness(0.85);
}

.site-container {
    width: 100vw;
    height: 100vh;
	height: calc(var(--vh, 1vh) * 100);
	max-width: 180vh;
	z-index: 0;
	position: relative;
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(var(--off-black), 1);
}

@media screen and (orientation: landscape) and (max-height: 400px) {
	.site-container {
		transform: translateX(-50%) scale(0.8);
	}
}

.link--text {
    text-decoration: underline;
    color: rgba(var(--salmon), 1);
}

.p--highlight {
    background-color: rgba(var(--gold), 1);
    padding: 0rem 0.4rem;
    border-radius: 0.1rem;
}

.p--highlight-white {
    background-color: rgba(var(--off-white), 1);
    padding: 0.1rem 0.4rem;
    border-radius: 0.1rem;
}
.p--gold { 
    color:rgba(var(--gold), 1);
}



.modal {
    width: 100%;
    height: 100%;
    transition: translateZ(0);
}

.modal__popup {
    width: calc(100% - 64px);
    max-width: 600px;
    height: auto;
    background-color: rgba(var(--off-white), 1);
    z-index: 1000;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -60%);
    border-radius: 8px;
    border: none;
    transition: transform 0.2s, opacity 0.15s;
    box-sizing: border-box;
    padding: 28px 32px 32px 32px;
	transform-origin: 65% 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	gap: 24px;
}

.modal__popup--hidden {
    transform: translate(-50%, -60%) scale(0.8) rotate(-10deg);
    opacity: 0;
}

.modal__popup--visible {
    transform: translate(-50%, -45%);
    opacity: 1;
}

.modal__title {
	font-size: 32px;
}

.modal__paragraph {
	line-height: 130%;
	font-size: 24px;
	margin-top: -2px;
}

.modal__x {
	text-align: center;
	position: absolute;
	border: none !important;
	top: 0;
	right: 0;
	padding: 3px 10px 3px 11px;
	line-height: 130%;
	font-size: 24px !important;
	border-radius: 0px 0px 0px 6px;
}

.modal__x:hover {
	background-color: rgba(var(--salmon), 0.3);

}

.modal__x:active {
	background-color: rgba(var(--salmon), 0.3);
}


.modal__button {
	background-color: rgba(var(--gold), 1);
	color: rgba(var(--off-black), 1);
    cursor: pointer;
	font-family: 'Primer Print Bold';
	box-sizing: border-box;
	border: none !important;
	width: fit-content;
	padding: 7px 20px 8px 20px;
	border-radius: 4px;
	font-size: 24px;
	font-family: 'Primer Print Bold';
}

.modal__button:hover {
	filter: brightness(0.92);
}

.modal__button:active {
	filter: brightness(0.92);
}

.modal__actions {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: flex-end;
	gap: 8px;
}

.modal-version {
	display: none;
	flex-direction: row;
	align-items: center;
	flex-wrap: wrap;
	margin-right: auto;
	font-family: 'Primer Print Bold', sans-serif;
	font-size: 14px;
	color: rgba(var(--off-black), 0.5);
}

.modal__popup--global-menu .modal-version {
	display: flex;
}

.modal-version > *:not(:last-child)::after {
	content: '•';
	margin: 0 8px;
	color: rgba(var(--off-black), 0.35);
}

.modal-version__link {
	color: inherit;
	text-decoration: none;
}

.modal-version__link:hover {
	color: rgba(var(--off-black), 0.75);
}

.modal__blackout {
    width: 100%;
    height: 100%;
    background-color: rgba(var(--off-black), 1);
    position: absolute;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s;
}

.modal__blackout--hidden {
    opacity: 0;
}

.modal__blackout--visible {
    opacity: 0.9;
}

@media (max-width: 600px), (max-height: 500px) {
    .button-menu-global {
        font-size: 16px;
        padding: 4px 8px;
        top: 8px;
        right: 8px;
        border-radius: 3px;
    }
    .modal__popup {
        width: calc(100% - 64px);
        padding: 20px 16px 16px 16px;
        gap: 16px;
        border-radius: 6px;
    }
    .modal__title {
        font-size: 20px;
    }
    .modal__paragraph {
        font-size: 16px;
    }
    .modal__button {
        font-size: 16px;
        padding: 6px 14px 7px 14px;
    }
    .modal__x {
        font-size: 18px !important;
        padding: 3px 8px;
    }
    .global-menu__kids-link {
        font-size: 16px;
        padding: 10px 8px;
    }
    .global-menu__teachers-link {
        font-size: 16px;
    }
    .global-menu__teachers-link-icon {
        width: 18px;
        height: 18px;
    }
}

.modal--hidden {
    opacity: 0;
    pointer-events: none;
}

.modal--visible {
    opacity: 1;
    pointer-events: auto;
}


/* ── Global Menu ───────────────────────────────────────────────────────── */

.global-menu {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	box-sizing: border-box;
}

/* ── Kids section ──────────────────────────────────────────────────────── */

.global-menu__kids {
	margin-top: 6px;
}

.global-menu__kids-links {
	display: flex;
	flex-direction: row;
	gap: 16px;
	width: 100%;
	box-sizing: border-box;
}

.global-menu__kids-link {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	text-align: center;
	text-decoration: none;
	font-family: 'Primer Print Bold', sans-serif;
	font-size: 24px;
	line-height: 1;
	padding: 16px 12px;
	border-radius: 4px;
	background-color: rgba(var(--gold), 1);
	color: rgba(var(--off-black), 1);
	cursor: pointer;
}

.global-menu__kids-link:hover {
	filter: brightness(0.92);
}

.global-menu__kids-link:active {
	filter: brightness(0.92);
}

.global-menu__kids-link--inactive {
	background-color: rgba(var(--off-black), 0.08);
	color: rgba(var(--off-black), 0.35);
	cursor: default;
	pointer-events: none;
}

/* ── Teachers section ──────────────────────────────────────────────────── */

.global-menu__teachers {
}

.global-menu__teachers-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
}

.global-menu__teachers-link {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	text-align: left;
	text-decoration: none;
	font-family: 'Primer Print Bold', sans-serif;
	font-size: 24px;
	color: rgba(var(--off-black), 1);
	border-radius: 4px;
	background-color: rgba(var(--off-white), 1);
}

.global-menu__teachers-link-icon {
	width: 19px;
	height: 19px;
	flex-shrink: 0;
	display: block;
	padding: 6px;
	border-radius: 4px;
}

.global-menu__teachers-link-icon[src*="modal-icon-teachers"] {
	background-color: rgba(var(--salmon), 1);
}

.global-menu__teachers-link-icon[src*="modal-icon-home"] {
	background-color: rgba(var(--gold), 1);
}

.global-menu__teachers-link-icon[src*="modal-icon-shop"] {
	background-color: rgba(var(--teal), 1);
}

.global-menu__teachers-link-icon[src*="modal-icon-dpaam"] {
	background-color: rgba(var(--blue), 1);
}

.global-menu__teachers-link-icon[src*="modal-icon-contact"] {
	background-color: rgba(var(--purple), 1);
}

.global-menu__teachers-link:hover {
	filter: brightness(0.92);
}

.global-menu__teachers-link:active {
	filter: brightness(0.85);
}

/* menu */

.menu {
    transition: transform 0.1s;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	width: 130%;
	left: -15%;
	top: -72%;
	position: absolute;
	padding: 5%;
	border-radius: 2vmin;
	box-sizing: border-box;
	transform-origin: bottom center;
}

.menu-button {
	width: 90%;
	background-color: gray;
	border-radius: 1vmin;
	color: white;
	margin: 5%;
	padding: 10% 0;
}

.menu--closed {
	transform: scale(0);
}

.menu--open {
    opacity: 1;
    animation: pop-in-menu 0.2s ease-out;
}

@keyframes pop-in-menu {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}  

/* keyboard */
.keyboard {
	position: absolute;
	width: 98.2%;
	bottom: 3.6%;
	left: 0.95%;
	z-index: 1;
	box-sizing: border-box;
	border-radius: 1vmin;
}

.keyboard-row {
	display: flex;
	justify-content: space-between;
	height: 50%;
	z-index: 1;
}

.keyboard-button {
	color: rgba(var(--black), 1);
	flex-basis: 100%;
	flex-grow: 1;
	border-radius: 0.2vmin;
	font-family: 'Primer Print Bold', sans-serif;
	background-size: 100% 100%;
	background-image: url(../assets/interface/button/keyboard/default.png);
	background-repeat: no-repeat;
	text-shadow: 0 0.2vmin 0.1vmin rgba(var(--metal-gray-light));
	transform: scale(1);
}


.state-aspect-ratio-input {
	aspect-ratio: 10/16;
	top: 22%;
	position: relative;
}

.state-opacity-0 {
	opacity: 0;
}

.state-opacity-1 {
	opacity: 1;
}

.state-display-none {
    display: none;
	pointer-events: none;
}

.state-display-block {
    display: block;
	pointer-events: auto;
}

.state-visibility-hidden {
    visibility: hidden;
    pointer-events: none;
}

.state-display-flex {
    display: flex;
}

.footer-element-time-remaining {
	text-align: center;
	color: rgba(var(--off-white),1);
	margin-top: 20%;
}

.state-pointer-events-none {
	pointer-events: none;
}

.state-pointer-events-auto {
	pointer-events: auto;
}

/* scrollbar */

/* Hide the scrollbar track and thumb */
::-webkit-scrollbar {
	-webkit-appearance: none;
	display: none;
	width: 0;
	height: 0;
  }
  
  /* Hide the scrollbar thumb */
  ::-webkit-scrollbar-thumb {
	background: transparent;
  }
  
  /* Hide the scrollbar track */
  ::-webkit-scrollbar-track {
	background: transparent;
  }
/*
  .fake-scrollbar-wrapper {
	position: absolute;
	top: 0;
	right: 1%;
	width: 1%;
	height: 200%;
	z-index: 4;
	overflow: hidden;
  }

  .fake-scrollbar {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 25%;
	background-color: #ccc;
	opacity: 0.7;
  }
  */

/* ------------------- */
/* reusable components */
/* ------------------- */

.style-material--gold {
	background-color: rgba(var(--gold));
	box-sizing: border-box;
	border-radius: 1vmin;
	box-shadow: 0vmin 0.6vmin 0vmin 0vmin rgba(var(--black), 1),
				inset 0vmin 0vmin 0vmin 0.25vmin rgba(var(--white), 1);
	border: 0.35vmin solid rgba(var(--black), 1);
}

.style-opacity--percent0 {
	opacity: 0;
}


.style-material--machine{	
}

.style-material--pcb {
}

.style-text--pcb {
	font-family: 'Primer Print Bold', sans-serif;
	color: rgba(var(--black), 1);
}

.style-text--gold-bold {
	font-family: 'Primer Print Bold', sans-serif;
	font-weight: 400;
	color: rgba(var(--off-black), 1);
	/* text-shadow: 0 0.15vmin 0vmin rgba(var(--white)); */
}

.style-text--metal-bold {
	font-family: 'Primer Print Bold', sans-serif;
	font-weight: 400;
	color: rgba(var(--off-black), 1);
	/* text-shadow: 0 0.15vmin 0vmin rgba(var(--white)); */
}

.style-text--metal-normal {
	font-family: 'Primer Print Bold', sans-serif;
	font-weight: 400;
	line-height: 120%;
	color: rgba(var(--off-black), 1);
	/* text-shadow: 0 0.15vmin 0vmin rgba(var(--white)); */
}

.style-text--printingPress-normal {
	font-family: 'Primer Print Bold', sans-serif;
	line-height: 120%;
	font-weight: 400;
	color: rgba(var(--off-black), 1);
}

.style-text--printingPress-bold {
	font-family: 'Primer Print Bold', sans-serif;
	line-height: 120%;
	font-weight: 400;
	color: rgba(var(--off-black), 1);
}

.style-text--paper-bold {
	font-family: 'Primer Print Bold', sans-serif;
	font-weight: 400;
	color: rgba(var(--off-black), 1);
	/* text-shadow: 0 0.15vmin 0vmin rgba(var(--white)); */
}

.style-text--paper-normal {
	font-family: 'Primer Print Bold', sans-serif;
	font-weight: 400;
	line-height: 120%;
	color: rgba(var(--off-black), 1);
	/* text-shadow: 0 0.15vmin 0vmin rgba(var(--white)); */
}

.style-text--handwritten {
	font-family: 'Primer Print Bold', cursive;
	color: rgba(var(--off-black), 1);
}

.style-text--math-default {
	font-family: 'Primer Print Bold', sans-serif;
    font-weight: 400;
	line-height: 120%;
	color: rgba(var(--off-black), 1);
}


.style-text--math-default {
	font-family: 'Primer Print Bold';
    src: url('primer_print_bold-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	color: rgba(var(--off-black), 1);
}

.style-text--background--gray-light {
	background-color: rgba(var(--metal-gray-light), 1);
	padding: 0%;
	box-sizing: border-box;
	border: solid rgba(var(--off-black), 1);
	border-radius: 0.5vmin;
}

.style-text--background--none {
	background-color: none;
	padding: 0%;
	box-sizing: border-box;
	border: 0.35vmin solid rgba(var(--off-black), 1);
	border-radius: 0.5vmin;
}

.style-text--background--blue-light {
	background-color: rgba(var(--blue-light), 1);
	padding: 0%;
	box-sizing: border-box;
	border: solid rgba(var(--off-black), 1);
	border-radius: 0.5vmin;
}

.style-text--background--white-light {
	background-color: rgba(var(--white-light), 1);
	padding: 0%;
	box-sizing: border-box;
	border: solid rgba(var(--off-black), 1);
	border-radius: 0.5vmin;
}

.style-text--background--highlight {
	background-color: rgba(var(--gold), 1);
	padding: 0% 1%;
}


@keyframes screenFlicker {
	0% {
	  opacity: 1;
	}
	80%, 85%, 90%, 95% {
	  opacity: 0.9;
	}
	81%, 82%, 83%, 84%, 86%, 87%, 88%, 89%, 91%, 92%, 93%, 94% {
	  opacity: 0.95;
	}
	100% {
	  opacity: 1;
	}
  }

.machine-text-red {
	color: rgba(var(--gold), 1);
}
.machine-crossword-cell-red{
	color: rgba(var(--gold), 1);
}
.input-red {
	color: rgba(var(--gold), 1);
	background-color: rgba(var(--off-black), 1);
}
.background-color--off-white {
	background-color: rgba(var(--off-white),1);
}
.background-color--off-black {
	background-color: rgba(var(--off-black),1);
}

@media (hover:hover){
	.keyboard-button:hover {
		background-image: url(../assets/interface/button/keyboard/hover.png);;
		text-shadow: 0 0.2vmin 0.1vmin rgba(var(--white));
		transform: scale(1);
	}
}

.div-rotate {
	display: none;
	position: absolute;
	width: 100vw;
	height: 100vh;
	background-color: rgba(var(--off-black),1);
	z-index: 999;
}

.div-rotate-content {
	position: absolute;
	top: 45%;
    left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	gap: 5vw;
}

.p-rotate {
	font-family: 'Primer Print Bold', sans-serif;
	font-size: 4vw;
	color: rgba(var(--off-white),1);
	text-align: center;
}

.p-rotate--gold {
	color: rgba(var(--gold),1);
}

.img-rotate {
	width: 100%;
	max-width: 30rem;
	aspect-ratio: 1/1;
}

@media (max-aspect-ratio: 1/1) {
	.div-rotate {
		display: block;
	}
}

.div-preload {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 5vh;
	height: 5vh;
	background-color: rgba(var(--off-black),1);
	z-index: 999;
}

.img-preload {
	width: 100%;
	height: 100%;
}

.background {
	width: 100vw;
	height: 100vw;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	transition: opacity 1s;
}

.keyboard-button:active {
	background-image: url(../assets/interface/button/keyboard/active.png);
	padding-top: 0.45%;
}

sup {
	line-height: 0;
	white-space: pre;
}

sub {
	line-height: 0;
	white-space: pre;
}

/*
.draggable {
	cursor: default;
    cursor: url("../assets/interface/cursor/grabber-1x.png"), auto !important;
    cursor: -webkit-image-set(
        url("../assets/interface/cursor/grabber-1x.png") 1x,
        url("../assets/interface/cursor/grabber-2x.png") 2x
    ), auto !important;
}
*/

.draggable,
.drag-and-drop {
}

.draggable--hidden {
	opacity: 0;
	transform: scale(1.5) rotate(-10deg);
	transition: opacity 0s, transform 0s;
}

.draggable--visible { 
	opacity: 1;
	transform: scale(1) rotate(0deg);
	transition: opacity 0.2s, transform 0.2s;
}

