@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;
}

/* section */
section {
	margin: 10vh auto 0;
	width: 80%;
}

article {
	position: relative;
	float: left;
	min-height: 40vh;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 10vh 0;
	overflow: hidden;
}

.line {
	width: 100%;
	height: 3px;
	background: black;
	margin: 3vh 0;
}

.B {
	color: #1D4C63;
	background: #1D4C63;
}

.Y {
	color: #D88B36;
	background: #D88B36;
}

.R {
	color: #B72C41;
	background: #B72C41;
}

.box_text h1{
	font-size: 1.5em;
	line-height: 1.5em;
}
	
.box_text h2 {
	font-size: 1em;
	line-height: 1.5em;
}	

.box_text p {
	font-size: .75em;
	color: black !important;
}

/* For mobile */

article .box_text{
	width: 100%;
	box-sizing: border-box;
	padding: 5vh 5vh 10vh 5vh;
	line-height: 2em;
	background: rgba(255, 255, 255, .5);
	text-align: justify;
}

article img {
	width: 100%;
}

article .blank {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 3%;
}

/* For tablets */
@media only screen and (min-width: 768px) {
	
	section {
		margin-top: 18vh;
	}
	
	article:nth-child(2n) .box_text{
		position: relative;
		float: left;
		width: 50%;
		box-sizing: border-box;
		padding: 10vh;
		line-height: 2em;
		background: rgba(255, 255, 255, .5);
		text-align: justify;
	}

	article:nth-child(2n+1) .box_text{
		position: relative;
		float: right;
		width: 50%;
		box-sizing: border-box;
		padding: 10vh;
		line-height: 2em;
		background: rgba(255, 255, 255, .5);
		text-align: justify;
	}

	article:nth-child(2n) .blank {
		position: absolute;
		left: 0;
		width: 3%;
		height: 100%;
	}


	article:nth-child(2n+1) .blank {
		position: absolute;
		right: 0;
		width: 3%;
		height: 100%;
	}

	article:nth-child(2n) img{
		position: absolute;
		width: 50%;
		top: 50%;
		left: 50%;
		transform: translate(50%, -50%);
		-ms-transform: translate(0, -50%);
		-webkit-transform: translate(0, -50%);
	}

	article:nth-child(2n+1) img{
		position: absolute;
		width: 50%;
		top: 50%;
		left: 0;
		transform: translate(50%, -50%);
		-ms-transform: translate(0, -50%);
		-webkit-transform: translate(0, -50%);
	}
	
}

/* For desktop */
@media only screen and (min-width: 1200px) {
	
	section {
		margin-top: 8vh;
	}
	
	.box_text h1{
		font-size: 2em;
		line-height: 1.5em;
	}

	.box_text h2 {
		font-size: 1.25em;
		line-height: 1.5em;
	}	
	
	.box_text p {
		font-size: 1em;
	}

}
