@charset "utf-8";
/* CSS Document */
@import url("header.css");
@import url("footer.css");
@import url("font.css");

* {
	margin: 0;
	padding: 0;
	
	-webkit-transition: all .3s ease;
	transition: all .3s ease;
}

html {
	height: 100%;
	margin: 0;
}

body {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: rgba(229, 229, 229, 1);
}

::-moz-selection {
	color: #FFF;
	background: #003D5B;
}

::selection {
	color: #FFF;
	background: #003D5B;
}

.wrapper {
	flex: 1;
}

.box_text h1{
	font-size: 1.25em;
	line-height: 1.25em;
}
	
.box_text h2 {
	font-size: 1em;
	line-height: 2.5em;
}	

.box_text p {
	font-size: .75em;
}

.box_text span{
	font-size: .75em;
}

.line {
	width: 100%;
	height: 2px;
	background: white;
	margin: 3vh 0;
}

/* For mobile */

/* main */
.smallMain {
	position: relative;
	margin: 10vh auto 0;
	width: 80%;
	display: block;
	box-sizing: border-box;
	padding: 0;
}

.smallMain img {
	width: 100%;
}

.smallMain video {
	width: 100%;
}

.smallMain .box_text {
	padding: 10vh 5vh;
	background: #002333;
	color: rgba(255, 255, 255, 1);
	z-index: -5;
	margin-bottom: 10vh;
}

.smallMain .hat {
	height: 5vh;
}

.smallMain .blank {
	background: rgba(229, 229, 229, 1);
	height: 10vh;
}

main {
	display: none;
}

/* For tablets */
@media only screen and (min-width: 768px) {
	
	body {
		background: #090909;
	}
	
	.smallMain {
		display: none;
	}
	
	main {
		margin-top: 17vh;
		height: 77vh;

		display: grid;
		grid-template-columns: 5vh 1fr 0.25fr 0.5fr 2fr;
		grid-template-rows: 1fr 1fr 5vh 10vh 5vh;
		grid-column-gap: 0;
		grid-row-gap: 0;
	}
	
	.box_video {
		grid-column: 4/6;
		grid-row: 1/7;
		filter: saturate(75%);
		overflow: hidden;
		z-index: -5;
	}
	
	.videoSlide {
		position: relative;
		width: 100%;
		height: 100%;
	}
	
	.videoSlide img {
		position: absolute;
		height: 100%;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		-ms-transform: translate(-50%, -50%);
		-webkit-transform: translate(-50%, -50%);
		z-index: -2;
	}
	
	.videoSlide video {
		position: absolute;
		min-width: 100%;
		height: 100%;
		top: 50%;
		right: 0;
		transform: translate(0, -50%);
		-ms-transform: translate(0, -50%);
		-webkit-transform: translate(0, -50%);
		z-index: -2;
	}

	
	.box_text {
		grid-column: 2/5;
		grid-row: 2/3;
		
		padding: 5vh;
		align-self: flex-end; /*along the row*/
		z-index: 10;

		background: #002333;
		color: rgba(255, 255, 255, 1);
	}
	
	.box_btn {
		grid-column: 2/3;
		grid-row: 4/5;
		
		align-content: center; /*along the col*/
		align-self: flex-start; /*along the row*/

		display: grid;
		grid-template-columns: repeat(4, 1fr);
		grid-column-gap: 20px;
	}
	
	.btn:hover {
		cursor: pointer;
		z-index: 10;
	}

	.unselected {
		filter: saturate(25%);
	}

	.btn:hover img {
		filter: saturate(100%);
	}
	
	footer a {
		display: none;
	}
}

/* For desktop */
@media only screen and (min-width: 1200px) {
	
	main {
		margin-top: 8vh;
		height: 86vh;
		grid-template-columns: 5vh 1fr 0.25fr 0.5fr 3.5fr;
	}
	
	
	.box_text h1{
		font-size: 2.5em;
		line-height: 1em;
	}

	.box_text h2 {
		font-size: 1.5em;
		line-height: 2.5em;
	}	
	
	.box_text p {
		font-size: 1em;
	}
}
