@import "./animate.min.css";
@import "./base.css";

* {
	margin: 0;
	padding: 0;
}

html {
	--scale: 1;
}

html, body {
    width: 100vw;
    height: 100vh;
	overflow: hidden;
}

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

body>.container {
	position: relative;
	width: 100%;
	height: 100%;
}

body>.container>main {
	transform-origin: top left;
	scale: var(--scale);
	width: 1920px;
    height: 1080px;
	font-size: 36px;
	position: relative;
}

/* Basic layout containers */

/* scene defaults */
main>article {
	position: absolute;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

/* layer defaults */
article>section {
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
    justify-content: flex-start;
	pointer-events: none;
}


article>section.hidden {
	display: none;
}


/* panel defaults */
div.panel {
	position: relative;
	display: flex;
	flex-direction: column;
	background-position: center;
	background-repeat: no-repeat;
	height: 100%; width: 100%;
    justify-content: flex-start;
    overflow: hidden;
	pointer-events: none;
}

div.panel.full {justify-content: unset; align-items: unset;}
div.panel.top {justify-content: flex-start; align-items: unset;}
div.panel.middle {justify-content: center; align-items: unset;}
div.panel.bottom {justify-content: flex-end; align-items: unset;}
div.panel.left {justify-content: unset; align-items: flex-start;}
div.panel.centre {justify-content: unset; align-items: center;}
div.panel.right {justify-content: unset; align-items: flex-end;}
div.panel.topleft {justify-content: flex-start; align-items: flex-start;}
div.panel.topcentre {justify-content: flex-start; align-items: center;}
div.panel.topright {justify-content: flex-start; align-items: flex-end;}
div.panel.middleleft {justify-content: center; align-items: flex-start;}
div.panel.middlecentre {justify-content: center; align-items: center;}
div.panel.middleright {justify-content: center; align-items: flex-end;}
div.panel.bottomleft {justify-content: flex-end; align-items: flex-start;}
div.panel.bottomcentre {justify-content: flex-end; align-items: center;}
div.panel.bottomright {justify-content: flex-end; align-items: flex-end;}

div.panel.gridhorizontal,
div.panel.gridvertical {
	display: grid;
    grid-gap: 10px;
	justify-content: stretch;
	align-content: stretch;
}

div.panel.gridhorizontal {
	grid-template-columns: repeat(4, auto);
}

div.panel.gridvertical {
	grid-template-rows: repeat(4, auto);
	grid-auto-flow: column;
}


*[data-action] {
	cursor: pointer;
}


.absolute {
	position: absolute;
}

:root {
	--outline: red;
	--dk-text: green;
	--highlight: pink;
}

nav {
	background-color: #fff;
	display: flex;
	align-items: center;
	font-size: 20px;
	border-bottom: 1px solid var(--outline);
	z-index: 10;
}

nav * {
	/* fix flickering on scaled content */
	-webkit-transform-style: preserve-3d;
	-webkit-backface-visibility: hidden;
	z-index: 100;
}


nav ul {
	margin: 0;
	padding: 0;
}

nav>ul {
	height: 82px;
	justify-content: space-between;
	align-items: stretch;
	flex-grow: 1;
	display: flex;
	list-style: none;
	color: var(--dk-text);
	font-weight: bold;
	border-left: 1px solid var(--outline);
	border-right: 1px solid var(--outline);
}

nav>ul li {
	display: flex;
	align-items: center;
	position: relative;
	cursor: pointer;
}

nav>ul li:hover {
	color: var(--highlight);
}

nav>ul>li.active,
nav>ul>li:has(.active) {
	position: relative;
	color: #000;
}

nav>ul>li:first-child {
	padding-left: 1em;
}

nav>ul>li:last-child {
	padding-right: 1em;
}


nav>ul>li:has(ul) {
	padding-right: 1em;
	background-image: url(./img/arrow-down.png);
	background-repeat: no-repeat;
	background-position: right 36px;
	background-size: 12px;
}

nav>ul>li.active::after,
nav>ul>li:has(.active)::after {
	content: "";
	position: absolute;
	bottom: 3px;
	left: 0; right: 0;
	height: 0px;
	border-bottom: 3px solid var(--dk-text);
}

nav>ul>li:first-child.active::after {
	left: 1em;
}

nav>ul>li:last-child.active::after {
	right: 1em;
}

nav>ul>li>ul {
	display: none;
	border: 1px solid var(--outline);
	box-shadow: 0px 4px 4px 1px rgba(0,0,0,0.2);
	position: absolute;
	top: 100%;
	left: -20px;
	color: var(--dk-text);
}

nav>ul>li>ul>li {
	padding: .5em;
	white-space: nowrap;
}

nav>ul>li>ul>li.active {
	/* color: var(--dk-text); */
	color: #000;
	font-weight: bold;
}

nav>ul>li:hover>ul {
	z-index: 10;
	display: flex;
	flex-direction: column;
	font-weight: normal;
	background-color: #fff;
	padding: 20px 30px 30px 30px;
}


user-image {
	all: inherit;
}
