/*
COLORS:

Light green: #7ed56f
Medium green: #55c57a
Dark green: #28b485

*/

/* universal selector to reset browser default */

@font-face {
	font-family: 'sofia';
	src: url(/static/fonts/Sofia-Regular.otf);
}

*,
*::after,
*::before {
	margin: 0;
	padding: 0;
	box-sizing: inherit;
}

html {
	font-size: 62.5%;
}

body {
	font-family: "Lato", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.7;
	color: #777;
	padding: 2rem;
	box-sizing: border-box;
} 

.header {
	height: 95vh;
	background-image: linear-gradient(to right bottom,
		rgba(255,255,255, 0.2),
		rgba(0,0,0, 0.8)),
		url(/static/image/header.jpg);
	background-size: cover;
	background-position: center;
	position: relative;
	clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.header__logo-box {
	position: absolute;
	top: 4rem;
	left: 4rem;
}

.header__logo {
	height: 5rem;
}

/*
	.logo:hover {
		animation: fadeIn 2s ease-in;
	}
*/

.header__text-box {
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.heading-primary {
	color: #fff;
	text-transform: uppercase;
	backface-visibility: hidden; /* prevent animation not smooth as it should to! */
	margin-bottom: 5rem;
}

.heading-primary--main {
	display: block;
	font-size: 5rem;
	font-weight: 400;
	animation: moveInLeft 3s ease-out;
	font-family: 'sofia'
	/* 
		animation-delay: 1s; 
		animation-iteration-count: 3;	
	*/
}

.heading-primary--sub {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 1rem;
	animation-name: moveInRight;
	animation-duration: 3s;
	animation-timing-function: ease-out;	
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes moveInLeft {
	0% {
		opacity: 0;
		transform: translateX(-10rem);
	}

	70% {
		transform: translateX(2rem);
	}

	100% {
		opacity: 1;
		transform: translate(0);
	}
}

@keyframes moveInRight {
	0% {
		opacity: 0;
		transform: translateX(10rem);
	}

	70% {
		transform: translateX(-2rem);
	}

	100% {
		opacity: 1;
		transform: translate(0);
	}
}

@keyframes moveInBottom {
	0% {
		opacity: 0;
		transform: translateY(2rem);
	}

	100% {
		opacity: 1;
		transform: translate(0);
	}
}

.btn:link,
.btn:visited {
	text-transform: uppercase;
	text-decoration: none;
	padding: 1.5rem 3rem;
	display: inline-block;
	border-radius: 10rem;
	transition: all .2s; /* for making thing animate so smooth... */
	position: relative;
}

.btn:hover {
	transform: translateY(-3px); /* move up */
	box-shadow: 0 1rem 2rem rgba(0,0,0,.2);
}

.btn:active {
	transform: translateY(-1px); 
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
}

.btn--white {
	background-color: #fff;
	color: #777;
}

.btn::after {
	content: "";
	display: inline-block;
	height: 100%;
	width: 100%;
	border-radius: 10rem;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	transition: all .5s;
}

.btn--white::after {
	background-color: #fff;
}

.btn:hover::after {
	transform: scaleX(1.3) scaleY(1.5);
	opacity: 0;
}

.btn--animated {
	animation: moveInBottom 1s ease-out;
	animation-fill-mode: backwards;
}
