@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Oswald&display=swap");

/* GENERAL */

* {
	-webkit-tap-highlight-color: transparent;
	-webkit-highlight: none;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	margin: 0;
	padding: 0;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-webkit-font-smoothing: subpixel-antialiased;
	font-smoothing: subpixel-antialiased;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	-webkit-text-size-adjust: none;
}

::-webkit-scrollbar {
	display: none;
}

html,
body {
	overflow: hidden;
	background-color: black;
	margin: 0;
	position: fixed;
	width: 100%;
	height: 100%;
	overscroll-behavior: none;
	font-family: "Montserrat", sans-serif;
}

canvas {
	width: 100%;
	height: 100%;
}

/* GUI */

.dg.ac {
	display: none;
}

.dg.ac select,
option {
	color: black;
}

/* HEADER */

#header {
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	top: 1em;
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
	flex-direction: column;
}

#logo {
	position: relative;
	width: auto;
	height: 10vh;
	cursor: pointer;
	z-index: 200;
}

/* SETTINGS BTN */

#settings {
	position: absolute;
	right: 2em;
	top: 2em;
	width: 2em;
	height: 2em;
	border: .56em solid #fef;
	border-radius: 100%;
	cursor: pointer;
}

body.mobile #settings {
	bottom: 3em;
	top: auto;
}

/* TOOLTIP */

#tooltip {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	z-index: 201;
	visibility: visible;
	display: flex;
	justify-content: center;
	align-items: center;
	align-content: center;
	pointer-events: none;
}

#tooltip.active {
	visibility: visible;
	pointer-events: all;
}

#tooltipcontent {
	width: 90vw;
	color: white;
	background-color: rgba(0, 0, 0, 0.4);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-radius: .3em;
	padding: 1em 1em 1em 6em;
	translate: -100vw;
	opacity: 0;
	transition: translate 640ms ease, opacity 160ms ease;
	pointer-events: none;
}

body.mobile #tooltipcontent {
	padding: 1em 1em 1em 1em;
}

body.desktop #tooltipcontent {
	-webkit-transform: skew(-20deg);
	transform: skew(-20deg);
}

#tooltip.active #tooltipcontent {
	opacity: 1;
	translate: 0;
	pointer-events: all;
}

body.desktop #tooltiptext {
	-webkit-transform: skew(20deg);
	transform: skew(20deg);
}

#tooltiptext h2 {
	font-size: 1em;
	font-family: "Oswald", sans-serif;
	letter-spacing: .04em;
}

#tooltiptext h3 {
	font-size: .6em;
	margin: .6em 0;
}

#tooltiptext .divider {
	margin-top: 1em;
}

/* BURGER */

#burger {
	position: relative;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	-webkit-box-align: end;
	-ms-flex-align: end;
	align-items: flex-end;
	width: -webkit-max-content;
	width: -moz-max-content;
	width: max-content;
	padding: .5em;
	z-index: 100;
}

body.desktop #burger {
	display: none;
}

#burger:hover {
	cursor: pointer;
	opacity: 0.8;
}

#burger div {
	width: 40px;
	height: 5px;
	margin: 5px;
	background-color: #fff;
	-webkit-transition: 0.3s;
	transition: 0.3s;
}

#burger.active .bar1 {
	-webkit-transform: rotate(-45deg) translate(0px, 10px);
	transform: rotate(-45deg) translate(0px, 10px);
}

#burger.active .bar2 {
	opacity: 0;
}

#burger.active .bar3 {
	-webkit-transform: rotate(45deg) translate(-5px, -14px);
	transform: rotate(45deg) translate(-5px, -14px);
}

/* MOBILE MENU */

#menu-mobile {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: fit-content;
	margin: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	opacity: 0;
	pointer-events: none;
	transition: opacity 240ms ease 200ms;
}

body.desktop #menu-mobile {
	display: none;
}

body[data-isportrait="0"] #menu-mobile {
	flex-direction: row;
}

#menu-mobile.show {
	opacity: 1;
	pointer-events: all;
}

#menu-mobile a {
	width: auto;
	height: 6em;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: .4em;
	margin: .8em;
}

#menu-mobile a img {
	width: auto;
	height: 100%;
	z-index: 1;
}

#menu-mobile a:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	-webkit-transform: skew(-20deg);
	transform: skew(-20deg);
	backdrop-filter: blur(5px);
	border-radius: 5px;
	-webkit-backdrop-filter: blur(5px);
	z-index: 0;
}

/* DESKTOP MENU */

#menu-desktop {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	width: 50%;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	gap: 20px;
	color: white;
}

body.mobile #menu-desktop {
	display: none;
}

#menu-desktop .card {
	height: 200px;
	width: 250px;
	-webkit-transform: skew(-20deg);
	transform: skew(-20deg);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	overflow: hidden;
	-webkit-transition: 0.5s;
	transition: 0.5s;
	z-index: 3;
	padding: 20px;
	border-radius: 5px;
}

#menu-desktop .card .card-container {
	-webkit-transform: skew(20deg);
	transform: skew(20deg);
}

#menu-desktop .card .card-container .hover {
	display: none;
	width: 100%;
	height: 200px;
	-o-object-fit: contain;
	object-fit: contain;
	-o-object-position: 50% 50%;
	object-position: 50% 50%;
}

#menu-desktop .card:hover {
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	-webkit-transition: 1s;
	transition: 1s;
	width: 100%;
	z-index: 5;
	opacity: 1;
	cursor: pointer;
}

#menu-desktop .card:hover .card-title {
	display: none;
}

#menu-desktop .card:hover .hover {
	display: block;
	-webkit-transition: 1s;
	transition: 1s;
}

@media screen and (max-width: 1280px) {

	/*#tooltipcontent {
    width: 100vw !important;
    padding: 30px 30px 30px 100px !important;
  }
  #tooltiptext {
    margin-left: 20px;
  }
  #tooltiptext h2 {
    font-size: 20px;
  }
  #tooltiptext h3 {
    font-size: 15px;
  }
  #tooltiptext .divider {
    margin-top: 40px;
  }*/
	#menu-desktop {
		width: 70%;
	}

	#menu-desktop .card {
		height: 200px;
	}

	#menu-desktop .card .hover {
		width: 100%;
		height: 150px;
		-o-object-fit: contain;
		object-fit: contain;
		-o-object-position: 50% 50%;
		object-position: 50% 50%;
	}
}

@media screen and (max-width: 1200px) {
	#menu-desktop {
		width: 80%;
	}
}

@media screen and (max-width: 768px) {

	/*#tooltipcontent {
    -webkit-transform: skew(0);
            transform: skew(0);
  }
  #tooltiptext {
    margin-left: 0px;
    -webkit-transform: skew(0);
            transform: skew(0);
  }
  #tooltiptext h2 {
    font-size: 20px;
  }
  #tooltiptext h3 {
    font-size: 15px;
  }
  #tooltiptext .divider {
    margin-top: 40px;
  }
  #tooltip {
    left: 0;
  }
  #tooltipcontent {
    width: 100vw !important;
    left: 0 !important;
    padding: 50px !important;
    margin: 0;
  }*/
	#menu-desktop {
		width: 90%;
	}

	#menu-desktop .card {
		height: 150px;
		font-size: 14px;
	}

	#menu-desktop .card .hover {
		height: 100px;
	}
}

@media screen and (max-width: 740px) {
	#menu-desktop .card {
		height: 150px;
		font-size: 11px;
	}

	#menu-desktop .card .hover {
		height: 100px;
	}
}

@media screen and (max-width: 576px) {

	/*#tooltipcontent {
    top: 30vh !important;
    padding: 20px !important;
  }
  #tooltiptext .divider {
    margin-top: 30px;
  }
  #tooltip {
    left: 0;
    top: 0;
  }
  #tooltipcontent {
    width: 100vw !important;
    left: 0 !important;
    top: 30vh !important;
    padding: 20px !important;
    margin: 0;
    -webkit-overflow-scrolling: touch !important;
    overflow-y: visible !important;
  }
  #tooltiptext {
    -webkit-overflow-scrolling: touch !important;
    overflow-y: visible !important;
  }
  #tooltiptext h2 {
    font-size: 18px;
    letter-spacing: 0px;
  }
  #tooltiptext h3 {
    font-size: 12px;
    margin: 10px 0;
  }
  #tooltiptext .divider {
    margin-top: 25px;
  }*/
	#menu-desktop {
		top: 75%;
		left: 50%;
		-webkit-transform: translate(-50%, -75%);
		transform: translate(-50%, -75%);
	}

	#menu-desktop .card .hover {
		height: 80px;
	}
}

@media screen and (max-width: 575px) {
	/*#tooltipcontent {
    top: 15vh !important;
  }
  #tooltip {
    left: 0;
    top: 0;
  }
  #tooltipcontent {
    top: 15vh !important;
  }*/
}