body, html { 
	margin:0;
	height: 100%;
}

main {

	background-color: #fff;
	position: relative;

}

li img { height:40px; }

p { text-align: center; }

/* Activated when:
 * height is greater than 1300px
 * AND
 * width is lesser than 930px
 */ 
@media screen and (min-height: 1300px) and (min-width: 930px){

	html { scroll-snap-type: y mandatory; }

	main {
		height:100%;
		min-width:700px;
	}

	.delete-bar { height:101%; }

	.carrousel , .index , .documents, .videogames, .codes, .contact { height:100%; }

	.notes ul { margin-left: 40px; }

	.documents-aside {
		flex-direction:row;
		justify-content:space-evenly;
	}

	.videogame-text {
		width: 450px;
		height: 200px;
		background-color: white;
		margin: 10px;
	}

	.code-line{ width: 100%; }

	.contact-background{
		width: 50%;
		background-image: url("img/dc.jpg");
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;

	}

	.contact-aside{
		height:100%;
		width:50%;
	}
	
	.contact-aside img{ width:60px; }
	
	.contact-aside p{
		padding: 20px;
		margin: 10px;
	}

	.contact-aside > p > a > img {
		max-width: 45px;
		margin: 10px;
	}

}
/* Activated when:
 * width is more than 930px 
 * AND
 * height is lesser than 1300px
 */
@media screen and (min-width:930px) and (max-height:1300px){

	main{ min-width: 930px; }

	.index, .delete-bar, .carrousel{ height: 600px; }

	.documents{ height: 1100px; }

	.documents-aside{
		flex-direction: row;
		justify-content: space-evenly;
	}
	.documents-background {
		width: 100%;
		position: relative;
		height: 50%;
		background-image: url("img/dc.jpg");
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;

	}

	.notes ul{ margin-left: 5px; }

	.videogames{ height: 1000px; }

	.videogame-line{
		flex-direction:column;
		height:auto;
	}

	.videogame-image{ display:none; }

	.videogame-text {
		width: 450px;
		background-color: white;
		margin: 10px;
		
	}
	.videogame-text img{
		background-color: white;
		padding: 10px;
	}
	
	.codes{ height: 900px; }

	.code-line{ width:100%; }

	.contact{ height: 200px; }

	.contact-background{
		visibility: hidden;
		width: 0;
	}
	.contact-aside{
		width: 100%;
		height: auto;
	}
	.contact-aside img{
		width: 30px;
		margin: 10px;
	}

}

/* Activated when:
 * width is lesser than 930px
 * 
 * Added because of mobile responsive design
 */
@media screen and (max-width: 930px){


	.index, .delete-bar, .carrousel{ height: 600px; }

	.documents-aside{
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.documents-background {
		height: 0;
		width: 0;
	}

	.notes ul{ margin-left: 5px; }

	.videogames{ height: 1000px; }

	.videogame-line{
		flex-direction: column;
		height: auto;
	}

	.videogame-image{ display: none; }

	.videogame-text {
		width: 50%;
		background-color:white;
		margin:10px;
	}
	.videogame-text img{
		background-color: white;
		padding:10px;
	}
	
	.codes{ height: 900px; }

	.code-line{
		margin-left: 40px;
		margin-top: 50px;
		width: 85%;
	}

	.contact{ height: 200px; }

	.contact-background{
		visibility: hidden;
		width:0;
	}
	.contact-aside{
		width: 100%;
		height: auto;
	}
	.contact-aside img{
		width: 30px;
		margin: 10px;
	}

}
/* INDEX */

.delete-bar{

	overflow-x: auto;
	overflow-y: hidden;
	visibility: hidden;

}

.carrousel{
	float: left;
	visibility: visible;
	width: 100%;
	white-space: nowrap;
}

.index {

	display: inline-block;
	width: 100%;
	position:relative;

	background-position: center;
	background-image: url("img/63616469.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	scroll-snap-align: start;

}

.index-nav {

	width: 100%;

	position: absolute;
	left: 0;
	right: 0;
	top: 50%;

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;

}

.index-nav img{
	margin: 5px;
	height: 2.5em;
}

.index2 {

	display: inline-block;
	width: 100%;
	position: relative;
	top: 0;
	background-position: center;
	height: 100%;
	background-image: url("img/keyboard.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	scroll-snap-align: start;

}

.index-nav2 {

	width: 100%;

	position: absolute;
	left: 0;
	right: 0;
	top: 50%;

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;

}

.index-nav2 img{ width: 15px;}

.index2 a{

	color: black;
	text-decoration: none;
	font-weight: bold;

}

.end {

	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 90%;

	text-align: center;

	width: 100%;

	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-around;

}

/* RETURN ELEMENT */

.return{
	position: sticky;
	z-index: 2;
	top: 0;
}

.return a{
	position: absolute;
	right: 0;
}

.return img{ width: 60px; }

/* PAGE INDICATOR */

.page-indicator{

	position: sticky;
	z-index: 1;
	left:0;
	top: 0;

}

.page-indicator img{
	margin: 5px;
	float: left;
	width: 40px;
}

/* DOCUMENTS */

.documents {

	position: relative;
	width: 100%;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	background-color: white;

}

.documents-aside {
	position:relative;
	display:flex;

	height:50%;
	width:100%;
	background-color: white;
}

.notes{
    vertical-align: top;
    flex: 0 0 auto;
}

.notes ul{ list-style-type: none; }

.notes li a {

	text-decoration: none;
	display:block;
	color: black;
	height:100%;

	text-align: center;
	padding:20px;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);

}

/* VIDEOGAMES */

.videogames {
	position:relative;
	max-width:100%;

	background-size: cover;
	background-position: center;
	background-image: url("img/leds.jpg");

	scroll-snap-align: start;
	display: flex;
	flex-direction:column;
}

.videogame-line {
	margin:auto;
	text-align: center;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.videogame-image{
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
	width:450px;
	overflow:hidden; 
}

.videogame-image p{
	margin:0;
	height:200px;
}

.videogame-image img{
	object-fit: cover;
	width: 100%;
	height: 100%;
}
.videogame-text{
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);

	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.videogame-text img{
	width: 40px;
	margin: 10px;
}

/* CODES */

.codes {

	position: relative;
	width: 100%;
	background: linear-gradient(180deg, rgba(0,5,64,1) 0%, rgba(0,4,26,1) 100%);
	scroll-snap-align: start;

}

.code-line{ float:left; }

.code-box img{ width:40px; }

.code-box {
	background-color: white;
	text-align: center;
	float:left;
	margin:5%;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;

	width:40%;
	height:200px;

}

.head {

	text-decoration: none;
	display:block;
	color: black;
	height:100%;
	text-align: center;
	padding:20px;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
	font-size:30px;

}

/* CONTACT */

.contact {

	position: relative;
	max-width: 100%;
	scroll-snap-align: start;
	background-color: rgba(255, 255, 255, 1);
	display: flex;
	flex-direction: row;

}

.contact-background {

	position:relative;
	height:100%;
	background-image: url("img/am.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;

}

.contact-aside {

	background-color: rgba(250, 250, 250, 1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;

}

.contact img{ vertical-align:middle; }

