/* Default style for my website*/

/*---------------------------------------
 *          CUSTOM FONTS
 *---------------------------------------*/
@font-face {
	font-family: 'Title_font';
	src: url('fonts/DancingScript-Regular.otf');
}

@font-face {
	font-family: 'RobotoRegular'; /*a name to be used later*/
	src: url('fonts/Roboto-Regular.ttf'); /*URL to font*/
}

@font-face {
	font-family: 'Slabo';
	src: url('fonts/Slabo27px-Regular.ttf');
}

@font-face {
	font-family: 'Pacifico';
	src: url('fonts/Pacifico-Regular.ttf');
}

/*---------------------------------------
 *          GENERAL PAGE DIMENSIONS
 *---------------------------------------*/
html {
	height: 100%;
	/*position:relative;*/
}

body {
	background-color: rgb(50, 50, 50);
	height: 100%;
}

#wrapper {
	position: relative;
	max-width: 700px;
	/*min-width: 150px;*/
	min-height: 100%;
	margin: auto;
	text-align: center;
/* 	border: 5px blue solid; */
}

h2 {
    font-size:2em;
	margin-top: auto;
	height: 32px;
}

/*---------------------------------------
 *          HEADER
 *---------------------------------------*/
header h1 {
    text-align: center;
    font-size: 3em;
    font-family: 'Title_font', Georgia;
    border-bottom: 2px solid;
    border-color: rgb(65,92,128);
    padding-top: 5px;
    padding-bottom: 5px;
    padding-right: 20px;
    padding-left: 20px;
    background-color: rgb(50, 50, 50);
    margin: auto;
    color: rgb(235,235,235);
    
}
/*---------------------------------------
 *          LANGUAGE SELECTION
 *---------------------------------------*/
#lang-menu {
	width: 110px;
	top: 5px;
	right: 0px;
	padding-right: 0px;
	position: absolute;
}

#lang-menu button {
    display: inline-block;
    margin-left: 8px;
    margin-top: 0px;
    width: 40px;
    height: 40px;    
    background-color: rgb(65,92,128);
    font-family: 'Slabo';
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

#lang-menu button:hover {
	background: rgb(24, 86, 98);
}

#lang-menu button.selected {
	color: #7cb686;
}

body.en :lang(fr) {
	display: none;
}

body.fr :lang(en) {
	display: none;
}

/*---------------------------------------
 *          NAVIGATION MENU
 *---------------------------------------*/
#main-menu {
    position: absolute;
    width: 100px;
    margin-left: -105px;
    margin-top: 0px;
    vertical-align: middle;
    text-align: left;    
    background-color : rgb(65,92,128);
    border-radius: 7.5px;
}

/*Used to fix the navigation on top after a certain scrolling time*/
#main-menu.fixed {
	position: fixed;
	top: 5px;
}

#main-menu ul {
	padding-left: 4px;
	padding-right: 4px;	
	list-style-type: none;
}

.nav-button {
	text-align: left;
	margin-left: 4px;
	margin-right: 4px;
	margin-bottom: 4px;
	margin-top: 4px;
	border-radius: 5px;
	font-family: 'Slabo';
	font-size: 1.2em;
	cursor: pointer;
}



.nav-button:hover {
	background: rgb(24, 86, 98);
}

#main-menu ul .nav-button.link.selected {
    color: rgb(24, 86, 98);
}


.link {
	display: block;
    cursor: pointer;
}

.link.selected {
    color: #7cb686;
}

.external-link {
    text-align: left;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 4px;
    margin-top: 4px;
    border-radius: 5px;
    font-family: 'Slabo';
    font-size: 1.2em;
    cursor: pointer;
    color: black;  
    background-color:gray; 
}

.external-link:hover {
    background: rgb(24, 86, 98);
}
    

/*---------------------------------------
 *          SUB-MENU
 *---------------------------------------*/
#sub-menu {
	position: relative;
	width: 100%; 
	z-index: 2;
}
/*
#sub-menu.fixed {
position: fixed;
width: inherit;
top: 0px;
}*/

#sub-menu ul {
    display: table;
    table-layout: fixed;
    width: 100%;    
    margin: 0;
    padding:0;
    background-color: rgb(65,92,128);
    border-radius: 5px;
    color:black;
}

#sub-menu li {
    text-align: center;
    display: table-cell;
    padding-right:5px;    
    /*border: 2px solid rgb(24, 86, 98);*/
}

#sub-menu ul .nav-button {
        
    font-size: 1.1em;
}

@media screen and (max-width: 900px) {
	#sub-menu ul .nav-button {
 		font-size: 12px;
	} 	
}
	
/*---------------------------------------
 *          MAIN CONTENT
 *---------------------------------------*/
section {
    position: relative;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
    padding: initial;
    padding-top: 2px;
    padding-bottom: 30px;
    /*padding-left:20px;
    padding-right:20px;*/
    width: 100%;
    vertical-align: top;
    background-color: rgb(50,50,50);
    /*border-radius: 10px; 
    border: 5px white solid;*/
}

#content {
    position: relative;
    margin: auto;
    width: 90%;
    font-family: 'RobotoRegular', 'Times New Roman';
    font-size: 1.2em; 
    color : rgb(235,235,235);
    text-align: justify;    
}

/*---------------------------------------
 *          SUB CONTENT
 *---------------------------------------*/
/*#subSection {
	margin-left: 0px;
	width: 100%;
}*/

#subContent {
	z-index: 1;
	position: relative;
	margin-top: 20px;
	text-align: justify;
	padding: 0px;
	padding-top: 50px;
}


#subContent img {
	display:block;
	width: 100%;
}

/*----------------------------------
 *              FOOTER
 *----------------------------------*/
 
footer {
	position: relative;
	padding-top: 5px;
	border-top: 1.5px solid;
    border-color: rgb(65,92,128);
	font-size: 0.65em;
    color:rgb(235,235,235);
}

#footer_table {
	width: 100%;
	height: 45px;
	text-align: left;
}

#footer_text {
	text-align: center;
	margin-left: 20px;
	font-size: 0.70em;
}


#subContent div {
	position: relative;
	margin-top: -70px;
}

#language-button {
	visibility: hidden;
}

img {
	display: block;
	max-width: 600px;
	height: auto;
	margin: 0 auto;
}

iframe {    
    display: block;
    margin: 0 auto;    
    width: 90%;    
    height: 315px;
    font-family: "Times New Roman"; 
    /*frameborder: 0;*/
}
 


@media screen and (max-width: 910px) {
	section {
		top: 20px;
	}
	#main-menu {
		display: none;
		position: fixed;
		top: 5px;
		margin-left: 20px;
		opacity: 1;
		z-index: 3;
	}
	#lang-menu {
		position: absolute;
		top: 0px;
		right: 0px;
		padding: 0;
		display: none;
		z-index: 3;
	}
	#showmenu {
		position: fixed;
		float: left;
		top: 5px;
		z-index: 2;
		cursor: pointer;
	}
	.bar {
		position: relative;
		width: 15px;
		height: 3px;
		margin: 5px 0;
		background-color: rgb(65,92,128);
	}
	#language-button {
		position: absolute;
		right: 0px;
		float: right;
		top: 0px;
		visibility: visible;
		cursor: pointer;
	}
    .link:hover{        
        background: rgb(65,92,128);
    }
}

/*---------------------------------------
 *          LINKS
 *---------------------------------------*/

.link:hover {
    background: rgb(24, 86, 98);
    border-radius:5px;
}

a:visited{
    color:#7cb686;
}

a:link{
    color:rgb(65,92,128);
}

/*---------------------------------------
 *          TABLE OF CONTENT
 *---------------------------------------*/

#table-of-content-wrapper {
    width: 50%;
    overflow: hidden;
    border-bottom-color: rgb(235,235,235);
    border-bottom: 1px solid;
}

#table-of-content-name {
    
    width: 200px;
    float: left; /* add this */
}

#table-of-content-button {
    overflow: hidden;
    position: relative;
    float: right;
    cursor: pointer;
    -webkit-transform: rotate(180deg);    
}

#table-of-content-button .spin {
    -webkit-transform: rotate(180deg);
}

#table-of-content {
    visibility:visible;
}

#table-of-content link .selected {
    color: #7cb686;
}



/*---------------------------------------
 *          CHAPTER NAVIGATION
 *---------------------------------------*/

#chapter-navigation {
    margin: auto;
    overflow: hidden;
    /*border-top-color: rgb(235,235,235);
    border-top: 1px solid;*/
    border-radius: 5px;
    background-color: rgb(65,92,128);    
}

#chapter-navigation-previous {
    width: 150px;
    padding-left: 20px;
    float: left;
    cursor: pointer;
    color: black;
    visibility: visible; /* hidden by default as the first page is the chapter1*/
}

#chapter-navigation-next {
    width: 150px;
    padding-right: 20px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    float: right;
    cursor: pointer;
    color: black;
    visibility: visible;
}

/*---------------------------------------
 *          OTHERS
 *---------------------------------------*/


/*Horizontal line*/

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}