/* Sections */
.section-wrapper {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

/* Video section */
#video-section {
	height: 75vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	color: #fff;
}

#video-wrapper {
	min-height: 600px;
	position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    overflow: hidden;
}

#video-wrapper video {
	min-height:100%;
	min-width:100%;
}

.video-overlay {
	min-height: 600px;
	height: 75vh;
  	position: absolute;
  	top: 0;
  	left: 0;
  	width: 100vw;
}

#video-color-overlay {
  	z-index: 1;
  	background: var(--primary-color);
  	opacity: 0.85;
}

#video-pattern-overlay {
  	z-index: 2;
	background-image: url('../images/dotted-pattern.png');
	opacity: 0.1;
}

#video-content {
	z-index: 3;
	min-width: 1200px;
	margin: 0 auto;
	padding: 0;
	transition: all 0.3s ease;
	animation-duration: 1s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: both;
	opacity: 0
}

#video-content-heading {
	font-size: 3em;
	margin: 0;
	margin-bottom: 25px;
	max-width: 700px;
	white-space: nowrap;
}

#video-content-paragraph {
	margin: 0;
	margin-bottom: 40px;
	font-size: 1.2em;
	opacity: 0.75;
	max-width: 700px;
}

#video-download-button {
	float: left;
	padding: 15px 50px;
	border: 1px solid white;
	text-decoration: none;
	background-color: white;
	color: var(--primary-color);
	margin-right: 20px;
	cursor: pointer;
}

#video-download-button span {
	display: inline-block;
  	position: relative;
  	transition: 0.5s;
}

#video-download-button span::after {
	content: '\f287';
	font-family: 'Ionicons';
	font-size: 1.1em;
  	position: absolute;
  	opacity: 0;
  	top: 0;
  	right: -20px;
  	transition: 0.5s;
}

#video-download-button:hover span {
	padding-right: 25px;
}

#video-download-button:hover span::after {
	opacity: 1;
	right: 0;
}

#video-download-button:focus {
	outline: none;
}

#video-learnmore-button {
	float: left;
	padding: 15px 50px;
	border: 1px solid white;
	text-decoration: none;
	background-color: transparent;
	color: white;
	cursor: pointer;
}

#video-learnmore-button span {
	display: inline-block;
  	position: relative;
  	transition: 0.5s;
}

#video-learnmore-button:focus {
	outline: none;
}

#video-learnmore-button span::after {
	content: '\f287';
	font-family: 'Ionicons';
	font-size: 1.1em;
  	position: absolute;
  	opacity: 0;
  	top: 0;
  	right: -20px;
  	transition: 0.5s;
}

#video-learnmore-button:hover span {
	padding-right: 25px;
}

#video-learnmore-button:hover span:after {
	opacity: 1;
	right: 0;
}

/* Discover section */
#discover-section {
	margin-top: 80px;
	margin-bottom: 80px;
}

#discover-heading {
	box-sizing: border-box;
	font-size: 26px;
	position: relative;
	font-weight: 500;
	line-height: 1.5em;
	padding-bottom: 22px;
	margin-top: 0;
}

#discover-heading::after {
	box-sizing: border-box;
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background-color: var(--primary-color);
}

#discover-paragraph {
	line-height: 1.5em;
	color: #797979;
	font-size: 23px;
	font-style: italic;
	font-family: 'Lora', serif;
}

#discover-button {
	position: relative;
	display: inline-block;
	text-decoration: none;
	padding: 14px 30px 14px 55px;
	background-color: var(--primary-color);
	color: white;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 1px;
	border: 2px solid var(--primary-color);
	transition: background-color 0.3s ease, color 0.3s ease;
}

#discover-button::before {
	position: absolute;
	content: '';
	left: 18px;
	top: 50%;
	height: 1px;
	width: 20px;
	margin-top: -1px;
	background-color: white;
}

#discover-button:hover {
	transition: color 0.3s ease;
	background-color: white;
	color: var(--primary-color);
}

#discover-button:hover::before {
	background-color: var(--primary-color);
}

.discover-icon {
	width: 50px;
	height: 50px;
	color: var(--primary-color);
}

#discover-section-top-row {
	padding-bottom: 25px;
}

.discover-content-block-paragraph {
	color: #7b7b7b;
	font-size: 15px;
	line-height: 1.7em;
}

/* Content section */
#content-section {
	background-color: #f1f2f3;
}

#content-heading {
	position: relative;
	display: inline-block;
	font-size: 35px;
	font-weight: 500;
	line-height: 1.2em;
	margin-top: 80px;
	margin-bottom: 5px;
}

#content-heading::after
{
	position: absolute;
	content: '';
	left: 105%;
	bottom: 5px;
	width: 40px;
	height: 2px;
	background-color: var(--primary-color);
}

#content-paragraph {
	color: #797979;
	font-size: 16px;
	line-height: 1.8em;
	margin-bottom: 80px;
}

#content-cards {
	padding-bottom: 50px;
}

#content-statistics {
	padding-bottom: 50px;
}

.content-anim {
	-webkit-animation-fill-mode: both;
	-webkit-animation-duration: 1s;
	transition: all 0.3s ease;
	animation-duration: 1s;
	opacity: 0;
}

/* Content cards */
.content-card {
	opacity: 0;
	padding: 12px 29px;
	border-radius: 10px;
	-webkit-animation-fill-mode: both;
	-webkit-animation-duration: 1s;
	transition: all 0.3s ease;
	animation-duration: 1s;
	height: 220px;
}

.content-header {
	color: #fff;
	font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: 8px;
    font-weight: 700;
	opacity: .8;
}

.content-title {
	color: #fff;
	font-size: 22px;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: -.01em;
}

.content-paragraph {
	color: #fff;
	font-size: 12px;
	letter-spacing: -.01em;
    line-height: 1.4em;
	opacity: .8;
	padding-top: 80px;
}

#content-card-1 {
	background-color: #4a8bfc;
}

#content-card-2 {
	background-color: #da5b70;
}

#content-card-3 {
	background-color: #8d5ce3;
}

#content-card-4 {
	background-color: #f48f63;
}

/* Preview section */
#preview-section {
	padding-top: 80px;
	padding-bottom: 80px;
	background-color: white;
	filter: invert(0%) hue-rotate(0deg);
}

.preview-heading {
	box-sizing: border-box;
	font-size: 26px;
	position: relative;
	font-weight: 500;
	line-height: 1.5em;
	padding-bottom: 22px;
	margin-top: 0;
}

.preview-heading::after {
	box-sizing: border-box;
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 2px;
	background-color: var(--primary-color);
}

.preview-paragraph {
	color: #797979;
	font-size: 16px;
	line-height: 1.8em;
}

.preview-block {
	-webkit-animation-fill-mode: both;
	-webkit-animation-duration: 1s;
	transition: all 0.3s ease;
	animation-duration: 1s;
	opacity: 0;
}

#homepage-second-row {
	margin-top: 48px;
}

.preview-video {
	border: 1px solid #ddd;
}

.control-wrapper {
	text-align: center;
	padding-bottom: 80px;
}

.section-control-panel {
	display: inline-block;
}

#color-change {
	color: var(--primary-color);
	cursor: pointer;
	background-color: #eee;
	padding: 4px 8px;
	border-radius: 2px;
	border: 1px solid #ddd;
	white-space: nowrap;
}

#color-change:hover {
	border-color: var(--primary-color);
}

/* Tablets (width smaller than 1200px) */
@media screen and (max-width:1200px) and (min-width:767px) {
	.section {
		padding-right: 25px;
		padding-left: 25px;
	}

	.discover-content-block {
		margin-top: 60px;
	}

	#video-content {
		min-width: 0px;
        align-items: center;
	}

	#video-content-heading, #video-content-paragraph {
    	text-align: center;
    }

	/* Buttons */
	#video-buttons-wrapper {
		position: absolute;
		left: 50%;
		transform: translate(-50%, 0);
		width: 400px;
	}

	#video-download-button {
		margin-right: 10px;
		width: 190px;
    }

	#video-learnmore-button {
		width: 200px;
	}

	#video-download-button span::after {
		content: '';
	}

	#video-download-button:hover span {
		padding-right: 0px;
	}

	#video-learnmore-button span::after {
		content: '';
	}

	#video-learnmore-button:hover span {
		padding-right: 0px;
	}

	#image-section {
		visibility: hidden;
		height: 0;
		padding: 0;
	}

	.content-card {
		margin-bottom: 30px;
	}

	.preview-block {
		padding-bottom: 30px;
	}

	.tablet-hide {
		display: none;
	}

	#preview-section {
		padding-bottom: 0;
	}
}

/* Mobile-phones */
@media screen and (max-width:767px) {
	/* Sections */
    .section-wrapper
    {
        margin: 0;
    }

	.control-wrapper {
		padding-bottom: 40px;
	}

	#image-section {
		visibility: hidden;
		height: 0;
		padding: 0;
	}

    /* Video section */
    #video-section {
        align-items: center;
    	height: calc(100vh - 55px);
        min-height: 550px;
    }

    #video-wrapper {
        margin-top: 55px;
        height: calc(100vh - 55px);
        min-height: 550px;
    }

    .video-overlay {
        margin-top: 55px;
    	height: calc(100vh - 55px);
        min-height: 550px;
    }

    #video-content {
        min-width: 0;
    	margin-left: 0;
        margin: 0 15px;
    }

    #video-content-heading {
    	font-size: 38px;
    	text-align: center;
		white-space: normal;
    }

    #video-content-paragraph {
    	text-align: center;
    }

    #video-download-button {
        float: none;
        width: 100%;
        margin-bottom: 15px;
    	margin-right: 0;
    }

    #video-learnmore-button {
        float: none;
        width: 100%;
    }

    /* Discover section */
    #discover-section {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 0;
    }

	#discover-heading {
		text-align: center;
	}

	#discover-heading::after {
		left: 50%;
		transform: translate(-50%, 0);
	}

	#discover-paragraph {
		text-align: center;
	}

    #discover-heading {
        font-size: 22px;
        margin-top: 40px;
    }

    #discover-paragraph {
        font-size: 18px;
    }

    #discover-button {
        box-sizing: border-box;
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    #discover-button::before {
        content: none;
    }

    .discover-icon {
        width: 100%;
        margin: 0px auto;
        text-align: center;
    }

    .discover-content-block-heading {
        text-align: center;
    }

    .discover-content-block {
        margin-top: 20px;
    }

    /* Content section */
    #content-section {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 0;
    }

    #content-paragraph {
        text-align: center;
    }

	#content-heading {
        display: block;
        margin: 0;
        padding-top: 40px;
        padding-bottom: 24px;
        text-align: center;
    }

    #content-heading::after {
        position: absolute;
    	content: '';
    	left: 50%;
        transform: translate(-50%, 0);
    	bottom: 1;
    	width: 40px;
    	height: 2px;
    	background-color: var(--primary-color);
    }

    #content-paragraph {
        margin-bottom: 30px;
    }

	.content-card {
		margin-bottom: 30px;
	}

	#content-card-4 {
		margin-bottom: 0;
	}

	/* Preview section */
	#preview-section {
		padding-left: 15px;
		padding-right: 15px;
		margin-top: 0;
		padding-bottom: 30px;
	}

	.preview-heading {
		text-align: center;
	}

	.preview-heading::after {
        position: absolute;
    	content: '';
    	left: 50%;
        transform: translate(-50%, 0);
    	bottom: 1;
    	width: 40px;
    	height: 2px;
    	background-color: var(--primary-color);
    }

	.preview-video {
		 width: 100%;
	}

	.preview-block {
		padding-bottom: 20px;
	}

	#homepage-second-row {
		margin-top: 0;
	}
}

/* Animations */
@keyframes fadeInUp {
    from {
        transform: translate3d(0, 60px, 0)
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}

@-webkit-keyframes fadeInUp {
    from {
        transform: translate3d(0, 60px, 0)
    }

    to {
        transform: translate3d(0, 0, 0);
        opacity: 1
    }
}

.content-fade-in-up {
    opacity: 0;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}
