@import "theme.css";
@import "column.css";

html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}

[data-clipboard-text],
[x-password],
[onClick] {
	cursor: pointer;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows:
		96px
		1fr
		64px
	;
	grid-template-areas:
		"header"
		"content"
		"footer"
	;

	header {
		display: grid;
		grid-template-columns: 0.5fr 700px 0px 0.5fr;
		grid-template-areas: "logo menu-items menu-burger clean-browser";
		align-items: center;

		grid-area: header;
		width: 100%;
		height: 100%;

		border-bottom: 1px solid #c0c0c0;

		.logo {
			grid-area: logo;
			img {
				height: 64px;
				margin-left: 32px;
			}
		}

		.menu-burger {
			display: none;
			grid-area: menu-burger;
			img { width: 32px };
		};

		.menu-items {
			grid-area: menu-items;

			display: grid;
			justify-items: center;

			.menu-item {
				float: left;
				font-family: 'nexa-bold';
				margin-right: 32px;
				&:last-child { margin-right: 0px; }

				a {
					color: var(--gibon_yellow);
					text-decoration: none;

					&.selected { color: #fff; }
					&:hover    { color: #1a1a1a; }
				}
			}
		}

		.clean-browser {
		grid-area: clean-browser;
			justify-self: right;
			padding-right: 32px;
		}
	}

	#menu-side {
		display: none;
		position: fixed;
		top: 0px;
		left: 0px;
		right: 0px;
		bottom: 0px;
		z-index: 8192;
		&.show { display: block }

		.menu-side-blackout {
			position: fixed;
			left: 0px;
			right: 0px;
			top: 0px;
			bottom: 0px;
			background: rgba(0, 0, 0, 0.25);
		}

		.menu {
			position: fixed;
			top: 0px;
			left: 0px;
			width: fit-content;
			bottom: 0px;

			width: fit-content;
			background: #222;
			padding: 32px;
			box-shadow: -6px 0px 26px 18px rgba(0,0,0,0.75);


			.menu-item {
				margin-bottom: 8px;
				font-size: 1.2em;
				font-family: 'nexa-bold';
				&:last-child { margin-right: 0px; }

				a {
					color: var(--gibon_yellow);
					text-decoration: none;

					&.selected { color: #fff; }
					&:hover    { color: #1a1a1a; }
				}
			}
		}
	}

	#content {
		grid: content;
		//display: none !important;
	}

	footer {
		grid-area: footer;
		background-color: var(--gibon_gray);
		display: grid;
		align-items: center;
		justify-items: center;

		div {
			color: var(--gibon_yellow);
			font-family: "nexa-bold";
			font-weight: normal;
			font-size: 16px;
		}
	}
}


@media only screen and (max-width: 1000px) {
	body {
		header {
			display: grid;
			grid-template-columns: 1fr 0px 64px 64px;

			.menu-burger { display: block }
			.menu-items { display: none }
		}
	}
}

@media only screen and (max-width: 250px) {
	#menu-side {
		.menu {
			width: 100% !important;
		}
	}
}

#error {
	position: fixed;
	top: 32px;
	left: 32px;
	right: 32px;
	height: 256px;
	box-shadow: 0px 9px 26px 0px rgba(0,0,0,0.75);

	background: #b33;
	color: #fff;
	padding: 16px;
	font-weight: bold;
	font-size: 1.25em;
	display: none;
	justify-items: center;
	align-items: center;
	z-index: 16384;

	&.show {
		display: grid;
	}
}

#framework-version {
	display: none;
	position: fixed;
	width:  200px;
	height: 80px;
	top:  50%;
	left: 50%;
	margin-left: -100px;
	margin-top:  -40px;
	z-index: 2000;

	text-align: center;
	line-height: 80px;
	background-color: #e00;
	font-weight: bold;
	color: #fff;
}

a {
	background-color: transparent;
	color: var(--gibon_gray);
	text-decoration: underline;
	outline: none;

	&:active,
	&:hover {
		color: var(--gibon_dark_yellow_2);
	}
	&:focus {
		color: var(--gibon_dark_yellow_2);
	}

}

#clipboard-copy {
	display: none;
	position: absolute;
	top: 256px;
	left: 256px;
	z-index: 8192;

	img {
		width: 48px;
		opacity: 0.5;
	}
}

.u-custom-menu {
	.u-nav-item {
		.selected { color: #fff !important }
	}
}

h1,
.u-nav .u-button-style,
.title {
	font-family: 'nexa-bold';
	color: #fff543;
}

#content > div {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    color: #515151;

}

.breadcrumbs {
	margin-left:   16px;
	margin-top:    8px;

	p { display: inline }
	p:before {
		content: ">";
		color: #ccc;
	}
}

.template-container {
	padding: var(--template_padding);
}

.page-section {
	&:after {
		display: block;
		content: "";
		height: 32px;
		clear: both;
	}

	.title {
		font-weight: bold;
		font-size: 18px;
		margin-bottom: 16px;
		cursor: pointer;
		color: #333;
		border-bottom: 1px solid #333;
		user-select: none;

		position: relative;

		&:after {
			content: "▼";
			position: absolute;
			right: 0px;
		}
		&:hover {
			color: #666;
			border-bottom: 1px solid #666;
			
		}
	}

	&.closed .title:after { content: "▲" }
	&.closed .content     { display: none }
}


.content-slow { display: none }
.content-done { display: none }

h1 {
	font-size: 32px !important;
	&:first-child { margin-top: 0 }
}

.banner {
	display: flex;
	height: 150px;
	background-image: url(/data/images/pexelsphoto3815759.jpeg);
	background-position: top;
	background-size: 100%;
	background-repeat: no-repeat;

	.inner {
		margin: auto 8px auto 64px;
		color: #fff;

		div:first-child {
			font-family: 'nexa-bold';
			font-size: 48px;
			color: #fff543;
		}

		div:nth-child(2) {
			margin-top: -4px;

			a    { color: #fff }

			span:before {
				color: #16b6a1;
				content: ">"
			}

			&:before {
				content: "> ";
				color: #16b6a1;
			}
		}
	}
}

.blackout {
	display: none;
	position: fixed;
	top: 0px;
	bottom: 0px;
	left: 0px;
	right: 0px;
	background-color: rgba(0, 0, 0, 0.35);
	z-index: 4096;

	&.show { display: block }
}

@media only screen and (max-width: 800px) {
	.page-section .title {
		padding-left: var(--section_padding);

		&:after {
			padding-right: var(--section_padding);
		}
	}
}


@media only screen and (max-width: 450px) {
	.template-container {
		padding: 16px;
	}

	.banner {
		.inner {
			margin: auto 8px auto 32px;

			div:first-child {
				font-size: 26px;
			}
		}
	}
}
