/* BASICS */

@font-face {
	font-family: 'Bookman Old Style';
	src:url('../font/BOOKOS.ttf') format('truetype');
}

@font-face {
	font-family: 'Rajdhani';
	src:url('../font/Rajdhani-Regular.ttf') format('truetype');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.clear {
	display: block;
	clear: both;
}

img {
	display: block;
}

html {
	height: 100%;
	font-family: 'Bookman Old Style';
}

body {
	overflow: hidden;
	height: 100%;
	background: url(../img/pattern.jpg);
}

h2, h3 {
	font-family: 'Rajdhani';
	font-weight: 100;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.25rem;
	text-transform: uppercase;
}

p {
	text-align: justify;
}

span {
	text-align: center;
}

/* CONTENT */

main {
	display: table;
	margin: 0 auto;
	padding: 100px 0;
	width: 100%;
	height: 100%;
}

section {
	display: table-cell;
	width: 50%;
	vertical-align: middle;
}

main .left {
	padding-right: .5rem;
	height: 100%;
}

main .right {
	padding: 1rem 1rem 1rem .5rem;
}

/* Gallery */

figure {
	overflow: hidden;
	position: relative;
	padding: 1rem 0;
	width: 100%;
	height: 100%;
	opacity: 0;
}

#home {
	background: url(../img/0.jpg);
	background-position: left 65%;
}

#first {
	background: url(../img/1.jpg);
	background-position: 70% 55%;
}

#second {
	background: url(../img/2.jpg);
	background-position: 80% 35%;
}

#third {
	background: url(../img/3.jpg);
	background-position: center 25%;
}

#fourth {
	background: url(../img/4.jpg);
	background-position: 90% 70%;
}

#home, #first, #second, #third, #fourth {
	position: absolute;
	margin-left: 1rem;
	width: 100%;
	height: 100%;
	height: -moz-calc(100% - 2rem);
	height: -webkit-calc(100% - 2rem);
	height: calc(100% - 2rem);
	background-repeat: no-repeat;
	background-size: cover;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
}

#first, #second, #third, #fourth {
	left: 100%;
}

/* About */

#about {
	position: relative;
	height: calc(100% - 400px);
	background-color: rgba(255, 255, 255, .75);
	box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
}

#about h2 {
	padding: 1rem 0 .5rem 1rem;
	text-align: left;
}

#about h3 {
	position: absolute;
	bottom: 1.25rem;
	width: 100%;
	margin: 0 auto;
}

#about p {
	padding: .5rem 1rem;
	line-height: 1.5rem;
}

#about span {
	line-height: 2.5rem;
}

/* Activity */

#activity {
	width: 100%;
}

.box {
	position: relative;
	float: left;
	width: 50%;
	height: 200px;
	text-align: center;
	transition: all .5s ease 0s;
	z-index: 1;
}

.front, .back {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, .75);
	width: 100%;
	height: inherit;
	background-color: rgba(255, 255, 255, .75);
	backface-visibility: hidden;
	cursor: pointer;

	transition: all 1s ease 0s;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
}

.front {
	transform: rotateX(0deg);
}

.back {
	transform: rotateX(180deg);
	color: #FFF;
	background-color: #333;
}

.box h3, .box p {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	text-align: center;
}

.box h3 {
	padding: 0 1rem;
}

.box p {
	padding: .5rem;
}

#box1 {
	-webkit-transform-origin: 0 0;
	-moz-transform-origin: 0 0;
	-ms-transform-origin: 0 0;
	-o-transform-origin: 0 0;
	transform-origin: 0 0;
}

#box2 {
	-webkit-transform-origin: 100% 0;
	-moz-transform-origin: 100% 0;
	-ms-transform-origin: 100% 0;
	-o-transform-origin: 100% 0;
	transform-origin: 100% 0;
}

#box3 {
	-webkit-transform-origin: 0 100%;
	-moz-transform-origin: 0 100%;
	-ms-transform-origin: 0 100%;
	-o-transform-origin: 0 100%;
	transform-origin: 0 100%;
}

#box4 {
	-webkit-transform-origin: 100% 100%;
	-moz-transform-origin: 100% 100%;
	-ms-transform-origin: 100% 100%;
	-o-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

.box:hover {
	z-index: 2;
}

.box:hover .front {
	border: 1px solid #00F;
	background-color: rgba(255, 255, 255, 1);
	box-shadow: 7px 7px 15px rgba(0, 0, 0, .25);
}

/* RESPONSIVE */


@media only screen and (max-width: 1200px){
	#about h2 {
		padding: .5rem 0 0 1rem;
	}

	#about h3 {
		bottom: .75rem;
	}

	#about p {
		padding: .25rem 1rem;
	}

	.box p {
		font-size: .9rem;
	}
}

@media only screen and (max-width: 991px){
	html {
		font-size: 14px;
	}

	body {
		font-size: 14px;
	}

	main {
		padding: 85px 0 100px;
	}

	section {
		display: block;
		float: none;
		width: 100%;
	}

	main .left {
		padding: 0;
		height: 300px;
	}

	main .right {
		padding: .5rem 0;
		height: calc(100% - 300px);
	}

	figure {
		padding: 0;
	}

	#home, #first, #second, #third, #fourth {
		margin-left: 0;
		height: inherit;
	}

	#about {
		height: calc(100% - 240px);
	}

	#about h2 {
		padding: 1rem 0 .5rem 1rem;
	}

	#about h3 {
		bottom: 1rem;
	}

	#about p {
		padding: .5rem 1rem;
	}

	#activity {
		overflow: hidden;
	}

	.box {
		height: 120px;
	}

	.box p {
		font-size: 1rem;
	}
}

@media only screen and (max-width: 767px){
	html {
		font-size: 14px;
	}

	body {
		overflow: visible;
		font-size: 14px;
	}

	main {
		padding: 0 0 .5rem;
		height: auto;/**/
	}

	section {
		display: block;
		float: none;
		width: 100%;
	}

	main .left {
		height: 250px;
	}

	main .right {
		padding: .5rem 0 0;
	}

	figure {
		/*top: -100%;*/
		left: 0;
		height: inherit;
	}

	#first, #second, #third, #fourth {
		opacity: 1;
	}

	#about {
		height: auto;
	}

	#about h3 {
		position: relative;
		bottom: 0;
		padding: 1rem 0;
		width: auto;
	}

	#activity {
		overflow: visible;
	}

	.box {
		width: 100%;
		height: 100px;
	}

	.box p {
		font-size: 1rem;
	}

	#box1, #box2, #box3, #box4 {
		-webkit-transform-origin: 50% 50%;
		-ms-transform-origin: 50% 50%;
		-moz-transform-origin: 50% 50%;
		-o-transform-origin: 50% 50%;
		transform-origin: 50% 50%;
	}
}

@media only screen and (max-width: 575px){
	html {
		font-size: 12px;
	}

	body {
		font-size: 12px;
	}

	main .left {
		height: 200px;
	}

	figure {
		height: inherit;
		z-index: 0;
	}

	#home {
		left: 0;
		top: 0;
	}

	#first, #second, #third, #fourth {
		opacity: 0;
	}

	#about h3 {
		padding: .5rem 0;
	}

	#box1, #box2, #box3, #box4 {
		-webkit-transform-origin: 50% 50%;
		-ms-transform-origin: 50% 50%;
		-moz-transform-origin: 50% 50%;
		-o-transform-origin: 50% 50%;
		transform-origin: 50% 50%;
	}
}

@media only screen and (max-width: 399px){
	main .left {
		height: 150px;
	}
}
