// Styles are copyrights Edouard Puginier

@import url('global.less');

html,
body {
	.ResetSpaces;
	min-width: initial;
	max-width: 100%;
	// height: 100%;
}

html {
	font-size: 62.5%;
	min-height: 100%;
}

body {
	margin: 0;
	padding: 0;
	min-width: @widthMinimumBody;
	min-height: 100vh;
	background-color: white;
	color: black;
	.FontMain;
	font-size: @defaultFontSize;
	line-height: @defaultLineHeight;
}

// 	:'######:::'#######::'##::::'##:'##::::'##::'#######::'##::: ##:
// 	'##... ##:'##.... ##: ###::'###: ###::'###:'##.... ##: ###:: ##:
// 	 ##:::..:: ##:::: ##: ####'####: ####'####: ##:::: ##: ####: ##:
// 	 ##::::::: ##:::: ##: ## ### ##: ## ### ##: ##:::: ##: ## ## ##:
// 	 ##::::::: ##:::: ##: ##. #: ##: ##. #: ##: ##:::: ##: ##. ####:
// 	 ##::: ##: ##:::: ##: ##:.:: ##: ##:.:: ##: ##:::: ##: ##:. ###:
// 	. ######::. #######:: ##:::: ##: ##:::: ##:. #######:: ##::. ##:
// 	:......::::.......:::..:::::..::..:::::..:::.......:::..::::..::

img {
	position: relative;
	margin: 10px;
	left: 50%;
	transform: translateX(-50%);
	&.rounded {
		border-radius: 6px;
	}
}

h1, h2, h3, h4, h5, h6 {
	color: @colorAppSecond;
}

h1 {
	font-weight: 100;
	font-size: 3em;
}

h2 {
	font-weight: 200;
	font-size: 2em;
	line-height: 1.5em;
	background-color: lighten(@colorAppSecond, 55%);
	text-align: center;
}

h3 {
	font-weight: 400;
	font-size: 1.5em;
}

h4 {
	font-weight: 500;
	font-size: 1em;
}

h5 {
	font-weight: 200;
	font-size: 1em;
}

h6 {
	font-weight: 200;
	font-size: 1em;
}

kbd { // Indicate input that is typically entered via keyboard.
	background-color: white;
	border: 1px solid lighten(black, 80%);
	border-radius: 0.3em;
	padding: 0.2em 0.4em;
	margin-right: 0.2em;
	&:last-child {
		margin-right: 0;
	}
}

var { // For indicating variables.

}

samp { // For indicating blocks sample output from a program.
	background-color: @colorAppMain;
	&.primary {
		color: lighten(@colorPrimary, 60%);
		background-color: @colorPrimary;
	}
	&.success {
		color: darken(@colorSuccess, 10%);
		background-color: lighten(@colorSuccess, 35%);
	}
	&.info {
		color: darken(@colorInfo, 15%);
		background-color: lighten(@colorInfo, 25%);
	}
	&.warning {
		color: darken(@colorWarning, 15%);
		background-color: lighten(@colorWarning, 30%);
	}
	&.danger {
		color: @colorDanger;
		background-color: lighten(@colorDanger, 45%);
	}
}

mark { // For highlighting a run of text due to its relevance in another context.

}

abbr { // For expanded text on long hover of an abbreviation, include the title attribute.
	cursor: help;
	background-color: lighten(@colorAppMain, 40%);
}

code { // Wrap inline snippets of code.
	margin: 1em;
	padding: 0.5em;
	background-color: lighten(@colorAppSecond, 95%);
	border-radius: 0.5em;
	border: 1px solid lighten(black, 80%);
	line-height: 2em;
}

pre { // to wrap multiple lines of code. Be sure to escape any angle brackets in the code for proper rendering.
	margin: 1em 0;
	padding: 1em 1em 1em 4em;
	background-color: lighten(@colorAppSecond, 95%);
	border-radius: 0.5em;
	border: 1px solid lighten(@colorAppSecond, 80%);
	line-height: 1em;
	border: 1px solid lighten(black, 80%);
}

p {

}

ul {
	position: relative;
	& li {
		list-style-type: disc;
	}
}

ol {
	position: relative;
	margin: 1em 0;
	padding: 1em 1em 1em 4em;
	background-color: @colorAppMain;
	border-radius: 0.5em;
	border: 1px solid lighten(@colorAppSecond, 40%);
	counter-reset: li;
	& > li {
		list-style: none;
		&::before {
			content: counter(li);
			counter-increment: li;
			position: absolute;
			left: 1em;
			width: 1.4em;
			height: 1.4em;
			line-height: 1.2em;
			background-color: @colorAppSecond;
			text-align: center;
			border: 1px solid @colorAppSecond;
			font-weight: 700;
			border-radius: 0.3em;
			color: @colorAppMain;
		}
	}
}

figure {
	display: inline-block;
	font-family: "Times", serif;
	& figcaption {
		text-align: center;
	}
}

.menu {
	color: black;
	font-family: "Lucida Grande", "Lucida Sans Unicode", sans-serif;
	letter-spacing: 0;
	font-size: 1.1em;
	margin: 0;
	padding: 0;
	& span,
	& span:only-child {
		background-color: white;
		border: 1px solid #c4c4c4;
		border-radius: 0.3em;
		padding: 0.2em 0.7em;
		margin: 0 0.1em;
		&:last-child:not(:only-child) {
			cursor: default;
			color: white;
			background-image: linear-gradient(-180deg, #6288F9 0%, #2261F7 100%);
			border: 1px solid #577FEF;
			border-bottom: 1px solid #0E52EB;
			&::after {
				content: '';
				margin-left: 0;
				color: white;
			}
		}
		&:not(:only-child)::after {
			.FontAwesome;
			content: '\f04b';
			font-size: 0.8em;
			line-height: 1em;
			color: #404040;
			margin-left: 0.7em;
			top: -0.15em;
			position: relative;
		}
	}
}

.alert {
	padding: 1em;
	border-style: solid;
	border-width: 1px;
	border-radius: 0.5em;
	font-weight: 400;
	&.primary {
		color: lighten(@colorPrimary, 60%);
		border-color: @colorPrimary;
		background-color: @colorPrimary;
	}
	&.success {
		color: darken(@colorSuccess, 10%);
		border-color: @colorSuccess;
		background-color: lighten(@colorSuccess, 45%);
	}
	&.info {
		color: darken(@colorInfo, 15%);
		border-color: @colorInfo;
		background-color: lighten(@colorInfo, 35%);
	}
	&.warning {
		color: darken(@colorWarning, 15%);
		border-color: @colorWarning;
		background-color: lighten(@colorWarning, 40%);
	}
	&.danger {
		color: @colorDanger;
		border-color: @colorDanger;
		background-color: lighten(@colorDanger, 55%);
	}
}

// 	'##::: ##::::'###::::'##::::'##:
// 	 ###:: ##:::'## ##::: ##:::: ##:
// 	 ####: ##::'##:. ##:: ##:::: ##:
// 	 ## ## ##:'##:::. ##: ##:::: ##:
// 	 ##. ####: #########:. ##:: ##::
// 	 ##:. ###: ##.... ##::. ## ##:::
// 	 ##::. ##: ##:::: ##:::. ###::::
// 	..::::..::..:::::..:::::...:::::

.trigger {
	position: absolute;
	color: white;
}

/* ================================================== */
/* ================================================== Nav Trigger */
/* ================================================== */

.navTrigger {
	top: 5px;
	left: 5px;
	height: 30px;
	width: 30px;
	overflow: hidden;
	background: none;
	border: 2px solid;
	border-color: white;
	.BorderRadius;
	&:hover {
		color: @colorAppMain;
		border-color: @colorAppMain;
		& .navTrigger-icon {
			left: -15px;
		}
	}
}
body.navIsTriggered .navTrigger:hover .navTrigger-icon {
	left: 0;
}

.navTrigger-icon {
	.Property (left);
	.Delay;
	.Speed (0.15s);
	.Curve;
	position: relative;
	left: 0;
}
body.navIsTriggered .navTrigger-icon {
	left: -15px;
}

body.navIsTriggered .navTrigger {
	color: @colorAppMain;
	border-color: @colorAppMain;
}

/* ================================================== */
/* ================================================== Home Trigger */
/* ================================================== */

.homeTrigger {
	top: 5px;
	right: 5px;
	font-size: 2em;
}

/* ================================================== */
/* ================================================== Nav */
/* ================================================== */

@widthNav: 250px;

.nav {
	.Property (left);
	.Delay;
	.Speed (0.3s);
	.Curve;
	position: absolute;
	width: @widthNav;
	background-color: @colorBackground;
	top: 0;
	bottom: 0;
	left: 0;
	padding: 2em 0;
	overflow: scroll;
}
body.navIsTriggered .nav {
	left: -@widthNav;
}

.navSectionTitle {
	font-weight: 100;
	text-align: center;
	&:first-child {
		margin-top: 0;
	}
}

.navSection {
	.Property (max-height);
	.Delay;
	.Speed (0.3s);
	.Curve;
	margin: 0;
	padding: 0 0 1em 0;
	border-bottom: solid 1px lighten(black, 80%);
}

.navSectionItem {
	font-weight: 200;
	list-style-type: none;
	padding-left: 1em;
	cursor: pointer;
	line-height: 3rem;
	min-height: 3rem;
	font-size: 1.4rem;
	&:nth-child(even){
		// background-color: fade(black, 2%);
	}
	&.hasSubSsection {
		&::before {
			.FontAwesome;
			content: '\f0da';
			position: absolute;
			left: 5px;
		}
		&.isToggle {
			&::before {
				content: '\f0d7';
				left: 2px;
			}
		}
	}
	&.isToggle {
		& .navSection {
			max-height: 150px;
		}
	}
	& .navSection {
		padding: 0;
		border: none;
		max-height: 0;
		overflow: hidden;
	}
}

.navSectionLink {
	.Property (background-image);
	.Delay;
	.Speed (0.10s);
	.Curve;
	padding-right: 1em;
	color: black;
	text-decoration: none;
	display: block;
	position: relative;
	background-image: linear-gradient(90deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0) 100%);
	&:hover {
		background-image: linear-gradient(90deg, rgba(0,0,0,0.00) 0%, rgba(0,0,0,0.05) 100%);
	}
	&::after {
		.Property (opacity right);
		.Delay;
		.Speed (0.10s);
		.Curve;
		position: absolute;
		right: 0;
		.FontAwesome;
		content: '\f054';
		opacity: 0;
		right: 15px;
	}
	&:hover::after {
		opacity: 1;
		right: 5px;
	}
	&.isActive {
		font-weight: 600;
	}
}


// 	'##::::'##::::'###::::'####:'##::: ##:
// 	 ###::'###:::'## ##:::. ##:: ###:: ##:
// 	 ####'####::'##:. ##::: ##:: ####: ##:
// 	 ## ### ##:'##:::. ##:: ##:: ## ## ##:
// 	 ##. #: ##: #########:: ##:: ##. ####:
// 	 ##:.:: ##: ##.... ##:: ##:: ##:. ###:
// 	 ##:::: ##: ##:::: ##:'####: ##::. ##:
// 	..:::::..::..:::::..::....::..::::..::

.main {
	.Property (left);
	.Delay;
	.Speed (0.3s);
	.Curve;
	position: absolute;
	left: @widthNav;
	top: 0;
	bottom: 0;
	right: 0;
	min-width: (@widthMinimumBody - @widthNav);
	overflow: hidden;
	box-shadow: 0 0 4px fade(black, 50%);
}
body.navIsTriggered .main {
	left: 0;
}

.contentHeader {
	background-color: @colorAppSecond;
	color: white;
	text-align: center;
	min-height: @heightContentHeader;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	& .headerTitle {
		font-weight: 300;
		font-size: 1.5em;
		margin: 0;
		line-height: 40px;
		color: white;
	}
}
body.home .contentHeader {
	background-color: transparent;
	& .headerTitle {
		display: none;
	}
}

.content {
	padding: (@heightContentHeader + 24px) 24px 24px 24px;
	min-height: 100vh;
	// text-align: center;
	// & img {
	// }
	// & * {
	// 	text-align: center;
	// }
}
body.home .content {
	padding: 0;
}

// 	'##::::'##::'#######::'##::::'##:'########:
// 	 ##:::: ##:'##.... ##: ###::'###: ##.....::
// 	 ##:::: ##: ##:::: ##: ####'####: ##:::::::
// 	 #########: ##:::: ##: ## ### ##: ######:::
// 	 ##.... ##: ##:::: ##: ##. #: ##: ##...::::
// 	 ##:::: ##: ##:::: ##: ##:.:: ##: ##:::::::
// 	 ##:::: ##:. #######:: ##:::: ##: ########:
// 	..:::::..:::.......:::..:::::..::........::

.appArea {
	background-image:
						url('../../images/Icon-Full.png'),
						url('../../images/BackgroundGrid.png'),
						radial-gradient(50% 124%, #4F9BF3 24%, #205695 100%);
	background-repeat:
						no-repeat,
						repeat,
						no-repeat;
	background-position:
						center bottom,
						left top,
						left top;
	text-align: center;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	height: 100vh;
	color: @colorAppMain;
	& h1 {
		position: absolute;
		display: none;
	}
	& h2 {
		position: absolute;
		display: none;
	}
	& img {
		
	}
	& p {
		bottom: 8rem;
		left: 0;
		right: 0;
		position: absolute;
		font-size: 1.5rem;
		font-weight: 300;
		text-align: center;
	}
}

// 	'########::'#######:::'#######::'########:'########:'########::
// 	 ##.....::'##.... ##:'##.... ##:... ##..:: ##.....:: ##.... ##:
// 	 ##::::::: ##:::: ##: ##:::: ##:::: ##:::: ##::::::: ##:::: ##:
// 	 ######::: ##:::: ##: ##:::: ##:::: ##:::: ######::: ########::
// 	 ##...:::: ##:::: ##: ##:::: ##:::: ##:::: ##...:::: ##.. ##:::
// 	 ##::::::: ##:::: ##: ##:::: ##:::: ##:::: ##::::::: ##::. ##::
// 	 ##:::::::. #######::. #######::::: ##:::: ########: ##:::. ##:
// 	..:::::::::.......::::.......::::::..:::::........::..:::::..::

.footer {
	margin-top: 100px;
	padding-bottom: 20px;
	text-align: center;
}

.social {
	color: @colorAppSecond;
	text-decoration: none;
	margin-right: 1em;
	&:last-child {
		margin-right: 0;
	}
	& .fa {
		margin-right: 0.25em;
		font-size: 1.5em;
	}
}

body.home {
	& .footer {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
	}
	& .social {
		color: @colorAppMain;
	}
}