/* ------------------------------------------------------------
			Reset Styles
		------------------------------------------------------------ */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-style: inherit;
	font-size: 100%;
	font-family: inherit;
	vertical-align: baseline;
}

/* ------------------------------------------------------------
	General Styles
------------------------------------------------------------ */

:root{
	--background-color: #dadada;
	--first-level: color-mix(in srgb, var(--background-color) 80%, black);
	--line-color: rgba(0,0,0,0.25);
	--second-level: color-mix(in srgb, var(--first-level) 60%, var(--background-color));
	--third-level: color-mix(in srgb, var(--first-level) 40%, var(--background-color));
	--forth-level: color-mix(in srgb, var(--first-level) 20%, var(--background-color));
	--fifth-level: color-mix(in srgb, var(--first-level) 10%, var(--background-color));
	--sitemap-scale: 1;
	--sitemap-active-scale: 1;
	--sitemap-pan-x: 0px;
	--sitemap-pan-y: 0px;
}

h1{
	font-size: 33px;
	width: 250px;
	text-align: center;
	white-space: nowrap;
}

h1 span{
	font-size: 22px; 
	font-weight: normal;
}

h2{
	font-weight: bold;
	font-size: 22px;
	margin-bottom: 0;
	text-align: center;
	margin-top: 10px;
	position: sticky;
	margin-left: -10px;
	top: 0;
	z-index: 1;
	background-color: color-mix(in srgb, var(--background-color) 75%, transparent);
	padding-bottom: 10px;
	backdrop-filter: blur(3px);
	margin-right: -10px;
}

h3 {
	font-weight: bold;
	font-size: 22px;
	margin-bottom: 10px;
}

* {
	box-sizing: border-box;
}

html{
	width: fit-content;
	min-width: 100%;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	background: var(--background-color);
	color: black;
	font-size: 11px;
	line-height: 1;
	padding: 20px;
	padding-top: 50px;
	overflow-x: hidden;
	overflow-y: hidden;
}

#sitemap {
	transition: transform 0.12s ease-out 0.5s;
	transform-origin: top left;
	transform: translate(var(--sitemap-pan-x), var(--sitemap-pan-y)) scale(var(--sitemap-active-scale));
	will-change: transform;
}

#sitemap.is-pointer-tracking {
	transition: none;
}

img.is-zoomed {
	transform: scale(var(--sitemap-scale));
	transform-origin: top left;
}

.suite img:hover{
	outline: 6px solid black;
	outline-offset: -2px;
	cursor: zoom-in;
}

.zoom-scale-control {
	font-size: 12px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 10px;
}

.zoom-scale-control select {
	font-size: 12px;
}

body.showing-desktop .tablet-image,
body.showing-desktop .phone-image{
	display: none;
	visibility: hidden;
	position: absolute;
}

body.showing-tablet .desktop-image,
body.showing-tablet .phone-image{
	display: none;
	visibility: hidden;
	position: absolute;
}

body.showing-phone .desktop-image,
body.showing-phone .tablet-image{
	display: none;
	visibility: hidden;
	position: absolute;
}

body.showing-desktop .test img{
	height: 150px;
}

body.showing-tablet .test img{
	height: 300px;
}

body.showing-phone .test img{
	height: 400px;
}

/* ------------------------------------------------------------
	Page Styles
------------------------------------------------------------ */

/* -------- Top Level --------- */

.primaryNav {
	clear: both;
	width: 100%;
	margin-top: 3em;
}
.primaryNav #home {
	position: absolute;
	margin-top: -3em;
	margin-bottom: 0;
	min-width: 11.5em;
	width: 100%;
	display: none;
}

.primaryNav #home:before {
	display: none;
}
.primaryNav ul {
	display: flex;
	flex-wrap: nowrap;
	list-style: none;
	position: relative;
}
.primaryNav li {
	flex: 1;
	flex-basis: 11.5em;
	padding-right: 1.25em;
	position: relative;
	max-width: 300px;
}
.primaryNav > ul > li {
	margin-top: 3em;
}

.primaryNav li a.in-h2{
	text-decoration: none;
	color: black;
}

.primaryNav li a:not(.in-h2) {
	transition: all 0.25s ease-in-out;
	margin: 0;
	padding: 10px 5px;
	display: block;
	border-top-right-radius: 5px;
	border-top-left-radius: 5px;
	background-color: var(--first-level);
	text-decoration: none;
	width: 250px;
	text-align: center;
	color: black;
}

.primaryNav li a:hover{
	background-color: black;
	color: white;
}

.primaryNav li a.not-clickable{
	pointer-events: none;
	color: rgba(0,0,0,0.6);
	font-style: italic;
}

.primaryNav li img {
	margin-top: 0;
}


/* -------- Second Level --------- */

.primaryNav ul ul {
	display: block;
}
.primaryNav ul ul li {
	padding-top: .6875em;
	padding-right: 0;
}
.primaryNav ul ul li a {
	background-color: var(--second-level);
}
.primaryNav ul ul li:first-child {
	padding-top: 2em;
}

/* -------- Third Level --------- */

.primaryNav ul ul ul {
	margin-top: 10px;
	padding-top: 5px;
	padding-bottom: 0;
}
.primaryNav ul ul ul li {
	padding-top: .3125em;
	padding-bottom: .3125em;
}
.primaryNav ul ul ul li a {
	background-color: var(--third-level);
	font-size: .75em;
	padding: .75em;
	width: 225px;
	margin-right: 0;
	margin-left: auto;
}
.primaryNav ul ul ul li:first-child {
	padding-top: 1em;
}
.primaryNav ul ul ul li a:link:after,
.primaryNav ul ul ul li a:visited:after {
	font-size: .75em;
}

.primaryNav ul ul ul li img {
	width: 225px;
	margin-right: 0;
	margin-left: auto;
	object-position: top center;
}

.primaryNav ul ul ul li img:not(:last-child) {
	margin-bottom: 10px;
}


/* --------	Fourth Level --------- */

.primaryNav ul ul ul ul {
	margin-top: 0;
	padding-top: .3125em;
	padding-bottom: .3125em;
}
.primaryNav ul ul ul ul li a {
	background-color: var(--forth-level);
	padding: .75em ;
	width: 80%;
}
.primaryNav ul ul ul ul li a:link:after,
.primaryNav ul ul ul ul li a:visited:after {
	display: none;
}

.primaryNav ul ul ul ul li img {
	width: 80%;
	margin-right: 0;
	margin-left: auto;
	object-position: top left;
}


/* ------------------------------------------------------------
	Connecting Lines:
	Uncomment 'border-color: red' for debugging
------------------------------------------------------------ */

.primaryNav ul:before,
.primaryNav ul:after,
.primaryNav ul li:before,
.primaryNav ul li:after {
	display: block;
	content: '';
	position: absolute;
	border-width: 0;
	border-color: var(--line-color);
	border-style: solid;
	z-index: -1;
	/* border-color: red; */
}
.primaryNav > ul > li:before {
	height: 1.375em;
	top: -1.375em;;
	right: calc(50% + .625em);
	width: calc(100% - 2px);
	border-top-width: 2px;
	border-right-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:first-child + li:before {
	border-top-width: 0;
	height: 5em;
	top: -5em;
	/* border-color: red; */
}
.primaryNav ul ul li:after {
	width: 50%;
	height: .6875em;
	top: 0;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red */;
}
.primaryNav ul ul li:first-child:before {
	width: 50%;
	height: 1.3125em;
	top: .6875em;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav > ul > li:last-child:after {
	border-bottom-width: 0;
}
.primaryNav ul ul ul li:before {
	width: calc(50% - 5px) !important;
	height: calc(100% - 2px);
	top: -50%;
	left: 0;
	border-left-width: 2px;
	border-bottom-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:first-child:before {
	height: 2.125em;
	top: -1px;
	border-top-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul:before {
	width: 50%;
	height: 1.45em;
	top: -10px;
	right: 1px;
	border-left-width: 2px;
	/* border-color: red; */
}
.primaryNav ul ul ul li:after {
	border-width: 0;
}
.primaryNav ul ul ul ul li:before,
.primaryNav ul ul ul ul li:first-child:before {
	display: none;
}

.primaryNav ul ul ul ul:before {
	width: 1px;
	height: calc(100% + 2.5em);
	top: -2.5em;
	left: 0;
	border-left-width: 2px;
	/* border-color: red; */
}

/* ------------------------------------------------------------
	Responsive Styles
------------------------------------------------------------ */

@media screen and (max-width: 30em) {
	.primaryNav ul {
		display: block;
	}
	.primaryNav li {
		width: 100%;
		padding-right: 0;
	}
	.primaryNav #home {
		width: 100%;
		position: relative;
		margin-bottom: -1em;
		margin-top: 0;
	}
	.utilityNav {
		float: none;
		display: block;
		width: 100%;
		text-align: right;
		margin-bottom: 2.5em;
		max-width: 100%;
	}
}

a:hover + img,
img:hover {
	height: 150px;
}

img{
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
	transition: height 0.25s ease-in-out;
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.15);
	cursor: zoom-in;
	width: 250px;
	height: 125px;
	object-fit: cover;
	background-color: #cacaca;
	object-position: top center;
	display: block;
	transition-delay: 0.5s;
}

.top-bar{
	box-sizing: border-box;
	background-color: black;
	color: white;
	display: block;
	padding: 10px;
	font-size: 12px;
	text-align: left;
	z-index: 1;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.top-bar a{
	color: rgba(255,255,255,0.75);
	text-decoration: none;

	&:hover{
		color: rgba(255,255,255,1);
	}
}

.top-bar-inner{
	display: flex;
	justify-content: space-between;
    align-items: center;
}

iframe{
	transition: all 0.25s ease-in-out 1s;
	position: fixed;
	bottom: -400px;
	right: 10px;
	left: auto;
	width: 2000px;
	height: 1000px;
	transform: scale(0.5);
	transform-origin: bottom right;
	max-width: 100%;
	z-index: 1;
}

.showing-tablet{
	iframe{
		width: 768px;
	}
}

.showing-phone{
	iframe{
		width: 375px;
	}
}


iframe:hover{
	transform: scale(0.75);
	bottom: 0;
	box-shadow: -60px -60px 160px 10px rgba(0, 0, 0, 0.5);
	outline: 10px solid rgba(255, 255, 255, 0.5);
}

.only-for-nightly a.action,
a.action.only-for-nightly,
img.only-for-nightly{
	display: none;
}

li.only-for-nightly {
	opacity: 0.4;
}

li.only-for-nightly img{
	display: none;
}

.left-menu, .right-menu{
	display: flex;
	gap: 5px;
	align-items: center;
}

.left-menu{
	float: left;
}

.right-menu{
	float: right;
}

.nightly-toggle{
	display: none;
}

html:has(.only-for-nightly) .nightly-toggle{
	display: flex;
	align-items: center;
}

html:has(#ShowNightly:checked) li.only-for-nightly {
	opacity: 1;
}

html:has(#ShowNightly:checked) .only-for-nightly,
html:has(#ShowNightly:checked) .only-for-nightly a.action,
html:has(#ShowNightly:checked) .only-for-nightly img{
	display: block !important;
}

li.only-for-nightly:hover {
	opacity: 1 !important;
}

li.only-for-nightly:hover .only-for-nightly,
li.only-for-nightly:hover a.action,
li.only-for-nightly:hover img{
	display: block !important;
}

a.action{
	position: absolute;
	width: auto !important;
	height: 20px;
	overflow: hidden;
	border-top-left-radius: 20px !important;
	border-bottom-left-radius: 20px !important;
	right: 0;
	margin-top: 10px !important;
}

a.action:hover{
	background-color: black !important;
	color: white !important;
}

html:has(a.action:hover) iframe{
	transform: scale(0.75);
	bottom: 0;
}


/*/////////////////////////////////////////////////////////
//
// Dialog
//
/////////////////////////////////////////////////////////*/

#imagePreviewDialog {
	padding: 0;
	border: none;
	width: 100vw;
	height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	background: rgba(0, 0, 0, 0.9);
}

#imagePreviewDialog::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.image-preview-dialog-content {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 24px;
}

.image-preview-dialog-content img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	background: transparent;
	box-shadow: none;
	cursor: default;
}

.image-preview-suite-name {
	position: absolute;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 1;
	font-size: 14px;
	padding: 8px 12px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	white-space: nowrap;
	text-align: center;
}

dialog{
	padding: 20px;
	border: none;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	font-size: 16px;
	line-height: 26px;
	max-width: 75%;
	min-width: 500px;
}

dialog button{
	float: right;
	border: 2px solid red;
	background: none;
	color: red;
	user-select: none;
	border-radius: 10px;
	background-color: rgba(0, 0, 0, 0.5);
}

dialog button:focus{
	outline: none;
}

dialog .image-preview-dialog-nav{
	transition: all 0.25s ease-in-out;
	position: absolute;
	bottom: 0;
	top: 0;
	z-index: 1;    
	width: 50px;
    border: none;
    color: white;
    font-size: 50px;
	background: none;
	cursor: pointer;
	text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.image-preview-dialog-nav.is-previous {
	left: 0;
}

.image-preview-dialog-nav.is-previous:hover {
	background: linear-gradient(90deg, rgba(0, 0, 0, 1) 11%, rgba(0, 0, 0, 0) 100%);
	color: yellow;
}

.image-preview-dialog-nav.is-next{
	right: 0;
}

.image-preview-dialog-nav.is-next:hover {
	background: linear-gradient(90deg, rgba(0, 0, 0, 0) 11%, rgba(0, 0, 0, 1) 100%);
	color: yellow;
}

dialog .image-preview-dialog-close{
	position: absolute;
	top: 5px;
	right: 5px;
	z-index: 1;
	padding: 8px 12px;
	border-color: white;
	color: white;
	font-size: 10px;
	text-transform: uppercase;
}
dialog .image-preview-dialog-close:hover{
	border-color: yellow;
	color: yellow;
}

.image-preview-dialog-nav[disabled] {
	opacity: 0.4;
	cursor: not-allowed;
}

dialog button.error:hover{
	background-color: red;
	color: black;
}

dialog blockquote{
	border-top: 1px solid;
	font-family: monospace;
	margin-top: 20px;
	padding-top: 20px;
	color: red;
	font-weight: normal;
	font-size: 13px;
	line-height: 13px;
}

dialog blockquote.code {
	color: yellow;
}

/*/////////////////////////////////////////////////////////
//
// Print styles
//
/////////////////////////////////////////////////////////*/

.only-print{
	display: none !important;
}

@media print {
	a.action.not-print,
	.not-print{
		display: none !important;
	}

	li.only-for-nightly{
		opacity: 1 !important;
	}

	.only-for-nightly,
	li.only-for-nightly img,
	.only-print{
		display: block !important;
	}

	.hide-from-print,
	.primaryNav li a:not(.in-h2){
		display: none;
	}

	img{
		height: 150px !important;
		box-shadow: none;
		object-fit: contain;
        object-position: top center;
	}

	.top-bar{
		width: 100%;
		position: relative;
		margin-bottom: 20px;
        margin-top: -30px;
	}

	.test{
		break-inside: avoid;
	}

	#sitemap{
		transform: scale(1) !important;
	}
}
