@import url(font/font.css);

/*=== START GENERAL HTML =================================================== */
html {
	font-family: var(--fontStyle), sans-serif;
	font-size:  var(--fontSize);
	height: 100%;
	width: 100%;
}
body {
	margin: 0;
	height: 100%;
}
p {
	line-height: 1.5em;
	margin: 0.3em 0;
}

table {
	margin: 0.3em auto;
}
table > caption {
	color: gray;
	font-style: italic;
}
table p {
	margin: 0.1em 0;
}
p img {
	vertical-align: middle;
	display: inline-block;
	margin: 1px 0;
}
a {
	color: #006978;
}
a:hover {
	opacity: 0.8;
}
button {
 	cursor: pointer;
	background-color: #00343c;
	border: medium none;
	color: #ffffff;
}
button:hover{
	background-color: #ec6607;
}
.hidden {
	display: none !important;
}
/*=== END GENERAL HTML ===================================================== */

/*=== START TEMPLATE ======================================================= */
body {
	background-color: var(--main-bg);
}

/* ROOT */
div.root {
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

/* HEADER */
#header {
	background: url("img/logo-canoprof.svg") no-repeat left center / auto 120px;
	position: relative;
	flex: 0 0 120px;
	display:flex;
	border-bottom:1px solid var(--borderColor);
}

/* MAIN */
#main {
	position: relative;
	flex: 1 1 auto;
	display: flex;
}

/* ASIDE */
main > aside {
    flex: 0 0 300px;
    background-color: #f6f6f6;
    text-align: center;
    padding: 1em;
    box-sizing: border-box;
}

aside h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
	font-weight: normal;
    font-size: 1.5em;
}

aside h1::before{
	font-family: "fontello";
    content: "\e828";
    font-weight: normal;
    background-color: #ffffff;
    border-radius: 50%;
    color: #ec6608;
    width: 78px;
    height: 78px;
    line-height: 78px;
    font-size: 2em;
}
aside .description {
	display: block;
	margin: 1em 0;
}

/* SECTION */
main > section {
    flex: 1 1 auto;
    padding: 1em;
    overflow: auto;
	max-width: 900px;
	margin: 0 auto;
}

/* FOOTER */
#footer {
	border-top:1px solid var(--borderColor);
	flex: 0 0 auto;
	padding: 1em;
	line-height: 1em;
	font-size: 0.7em;
	text-align: right;
}
#footer img {
	vertical-align: middle;
}
#footer a {
	text-decoration: none;
}
/*=== END TEMPLATE ========================================================= */


/*=== START FOLDER ========================================================= */
body.folder ul{
	list-style-type:none;
	padding: 0;
	overflow: hidden;
	transition: height .4s ease-in-out;
}
body.folder ul li {
	margin: 0.5em 0;
	min-height: 25px;
    visibility: hidden;
}
body.folder ul li.parent {
	padding-left: 0;
}
body.folder ul li a{
	text-decoration:none;
}

body.folder li.child {
    background-color: #e9e9e9;
}
body.folder li.child > div {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #006978;
	color: #fff;
}
body.folder li.child > div a.lnkResource {
	color: #ffffff;
	padding:0.5em 1em;
}
body.folder li.child > div a.lnkResource:hover {
    color: #ec6607;
}
body.folder li.child > div .resourceTools {
    padding: 0.5em 1em;
}

body.folder li.child > ul{
	padding-left:0.5em;
}

body.folder li.folder > div {
	background-color: #c3d3d4;
	color: #006978;
}
body.folder li.folder > div a.lnkResource {
	color: #006978;
}
body.folder li.child li.child {
	background-color: #ffffff;
}
body.folder li.child li.child li.child{
	background-color: #e9e9e9;
}
body.folder li.child li.child li.child li.child{
	background-color: #ffffff;
}
body.folder li.child li.child li.child li.child li.child{
	background-color: #e9e9e9;
}
body.folder li.child li.child li.child li.child li.child li.child{
	background-color: #ffffff;
}
body.folder li.child li.child li.child li.child li.child li.child li.child{
	background-color: #e9e9e9;
}
body.folder li.child li.child li.child li.child li.child li.child li.child li.child{
	background-color: #ffffff;
}

body.folder a.lnkResource {
	flex: 1;
}

/*	Types	*/
body.folder ul li > div a.lnkResource::before{
	font-family: "fontello";
	content: "\e813";
	margin-right: 5px;
	font-style:normal;
}
body.folder ul li > div a.lnkResource:hover::before {
	color: #ec6607;
}

body.folder li.parent > div a.lnkResource::before{
	content: "\e82a";
}
body.folder li.archive > div a.lnkResource::before{
	content: "\f1c6";
}
body.folder li.audio > div a.lnkResource::before{
	content: "\f1c7";
}
body.folder li.pdf > div a.lnkResource::before{
	content: "\f1c1";
}
body.folder li.file > div a.lnkResource::before{
	content: "\e82d";
}
body.folder li.image > div a.lnkResource::before{
	content: "\f1c5";
}
body.folder li.folder > div a.lnkResource::before{
	content: "\f114";
}
body.folder li.video > div a.lnkResource::before{
	content: "\f1c8";
}

/*=== END FOLDER ========================================================= */

/*=== START QRCODE ========================================================= */
.btnQrcode {
	height:25px;
	width:25px;
	padding:0;
}
h1 .btnQrcode {
	height:auto;
	width:auto;
    margin-right: 5px;
}
.btnQrcode::before {
	content: "\e82b";
	font-family: "fontello";
	font-size: 110%;
}
h1 .btnQrcode::before {
	font-size: 1.5em;
}
.btnQrcode > span {
	display: none;
}
.qrcodeFrame {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}
.qrcodeOver{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: rgba(255, 255, 255, 0.7);
}
.qrcodeFigure{
	background-color: rgba(255, 255, 255, 1);
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -440px;
	margin-top: -440px;
	padding: 40px 40px 20px 40px;
	border-radius:5px;
	box-shadow: 0 0 6px 0 gray;
}
.qrcodeHolder img{
	margin: 0 auto;
}
.btnClose{
	position: absolute;
	top: -10px;
	right: -10px;
	font-size:130%;
	height:30px;
	width:30px;
	padding:0;
}
.qrcodeTitle{
	text-align: center;	
	font-style: italic;
	color:#006978;
	min-height: 15px;
	margin-top: 5px;
}
/*=== END QRCODE ========================================================= */

/*=== START SCMOBILE ======================================== */
body.scmobile .btnQrcode {
	display:none;
}

/*=== END SCMOBILE =================================================== */

/*=== START Cookie warn bar ======================================== */
.cookieWarnBar{
	position:relative;
	border-bottom:2px solid #e0dcd8;
	background-color: #FFF;
	padding: 6px 10px;
	margin: 0;
	opacity:1;
	min-width: 850px;
	z-index: 1000;
}
.cookieWarnBar.acknowledged{
	opacity:0;
	height:0 !important;
	padding: 0 10px;
	margin: 0 -7px 0 -7px;
	border-bottom:0;
	transition-property : opacity,display,padding,margin;
	transition-duration : 0.5s;
}
.cookieWarnBtn{
	display: block;
	position: absolute;
	top: 5px;
	right: 5px;
	text-decoration: none;
}
.cookieWarnBar.acknowledged .cookieWarnBtn{
	display: none;
}
.cookieWarnBtn:hover{
	opacity:0.8;
}
.cookieWarnMsg{
	display: block;
	margin-right: 20px;
}
/*=== END Cookie warn bar ======================================== */

/*=== START RESPONSIVE =================================================== */
@media (max-width:850px){
	#header {
		background: white url("img/logo-canoprof-small.svg") no-repeat right center / auto 120px;
	}
	#header > div {
		margin-right:50px;
	}
}
@media (max-width:600px){
	#header h1 {
		font-size:1.2em;
	}
	h1 .btnQrcode::before {
		font-size:1.2em;
	}
	#header .description {
		margin-left: 30px;
	}
	body.folder header h1::before{
		margin-right:5px  !important;
		padding:5px !important;
	}
	.flex-1-1,
	.flex-2-1{
		display: block;
	}
}
@media (max-width:550px){
	#header > div {
		padding-left: 0;
	}
	#header h1 {
		margin-left: 0.5em;
		font-size:1.1em;
	}
	h1 .btnQrcode::before {
		font-size:1.1em;
	}
	body.folder header h1::before{
		font-size: 60% !important;
	}
	#header .description {
		margin-left: 34px;
		font-size:80%;
	}
}
@media (max-width:500px){
	#header h1 {
		margin-left: 0.3em;
		font-size:1.05em;
	}
	h1 .btnQrcode::before {
		font-size:1.05em;
	}
	#header .description {
		margin-left: 30px;
		font-size:60%;
	}
}
@media (max-width:450px){
	#header h1 {
		font-size:0.9em;
	}
	h1 .btnQrcode::before {
		font-size:0.9em;
	}
	#header .description {
		margin-left: 28px;
	}
}
@media (max-width:400px){
	#header h1 {
		font-size:0.8em;
	}
	h1 .btnQrcode::before {
		font-size:0.8em;
	}
	#header .description {
		margin-left: 27px;
	}
}

/*--- START QRCODE --------------------------------------------------------------*/
@media (max-width:900px), (max-height:900px){
	.qrcodeHolder img{
		width: 700px;
		height: 700px;
	}	
	.qrcodeFigure{
		margin-left: -390px;
		margin-top: -390px;
	}
}
@media (max-width:800px), (max-height:800px){
	.qrcodeHolder img{
		width: 600px;
		height: 600px;
	}	
	.qrcodeFigure{
		margin-left: -340px;
		margin-top: -340px;
	}
}
@media (max-width:700px), (max-height:700px){
	.qrcodeHolder img{
		width: 500px;
		height: 500px;
	}	
	.qrcodeFigure{
		margin-left: -290px;
		margin-top: -290px;
	}
}
@media (max-width:600px), (max-height:600px){
	.qrcodeHolder img{
		width: 400px;
		height: 400px;
	}	
	.qrcodeFigure{
		margin-left: -240px;
		margin-top: -240px;
	}
}
@media (max-width:500px), (max-height:500px){
	.qrcodeHolder img{
		width: 300px;
		height: 300px;
	}	
	.qrcodeFigure{
		margin-left: -190px;
		margin-top: -190px;
	}
}
@media (max-width:400px), (max-height:400px){
	.qrcodeHolder img{
		width: 200px;
		height: 200px;
	}	
	.qrcodeFigure{
		margin-left: -140px;
		margin-top: -140px;
	}
}
@media (max-width:300px), (max-height:300px){
	.qrcodeHolder img{
		width: 100px;
		height: 100px;
	}	
	.qrcodeFigure{
		margin-left: -90px;
		margin-top: -90px;
	}
}
/*--- END QRCODE --------------------------------------------------------------*/

/*=== END RESPONSIVE ========================================================= */
