@import 'https://fonts.googleapis.com/css?family=Montserrat:700|Roboto:300';


body, html { font-size: 100%; padding: 0; margin: 0; height: 100%;}

*,
*:after,
*:before {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #f2ede3;
    background: #333;
    font-size: 0.9em;
    font-weight: 300;
}

a {
	color: #f0f0f0;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 0 5px;
	text-transform: uppercase;
	font-size: 80%;
}

a:hover {
	color: #fff;
}

.container { height: 100%; width: 100%;}

.bl-main {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.bl-main > section {
	position: absolute;
	width: 20%;
	height: 100%;
}

.bl-main > section:first-child {
	top: 0;
	left: 0;
	background: #658036;
}

.bl-main > section:nth-child(2) {
	top: 0;
	left: 20%;
	background: #39694c;
}

.bl-main > section:nth-child(3) {
	top: 0;
	left: 40%;
	background: #0c5161;
}

.bl-main > section:nth-child(4) {
	top: 0%;
	left: 60%;
	background: #4f7441;
}

.bl-main > section:nth-child(5) {
	top: 0%;
	left: 80%;
	background: #225d56;
}

@media (orientation:portrait) { 


    .bl-main > section {
        position: absolute;
        width: 100%;
        height: 20%;
    }

    .bl-main > section:first-child {
        top: 0;
        left: 0;
    }

    .bl-main > section:nth-child(2) {
        top: 20%;
        left: 0%;
    }

    .bl-main > section:nth-child(3) {
        top: 40%;
        left: 0%;
    }

    .bl-main > section:nth-child(4) {
        top: 60%;
        left: 0%;
    }

    .bl-main > section:nth-child(5) {
        top: 80%;
        left: 0%;
    }
    
}


.bl-box {
	position: relative;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 1;
	/* Centering with flexbox */
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
}

.bl-box h2 {
	text-align: center;
    margin: 0;
    padding: 10px;
    width: 100%;
    font-size: 1em;
    line-height: 1.4em;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #BDAF0B;
    display: none;
}

.bl-box h2.active {
	display: block;
}

.bl-icon {
	font-family: 'icomoon';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	cursor: pointer;
	-webkit-font-smoothing: antialiased;
}

.bl-icon:before {
	display: block;
	font-size: 4em;
	margin-bottom: 10px;
    cursor: pointer;
}

.bl-icon-about:before {
	content: "\e000";
}

.bl-icon-works:before {
	content: "\e001";
}

.bl-icon-blog:before {
	content: "\e002";
}

.bl-icon-contact:before {
	content: "\e003";
}

.bl-main > section .bl-icon-close {
	position: absolute;
	top: 10px;
	right: 20px;
	cursor: pointer;
	z-index: 100;
	opacity: 0;
	pointer-events: none;
}

.bl-icon-close:before {
	content:"\00d7";
}

.bl-content {
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 60px;
	left: 30px;
	right: 30px;
	bottom: 30px;
	padding: 0 20px;
	overflow: hidden;
	overflow-y: auto;
    padding: 100px 200px;
}

/* Custom content */

.bl-content p {
      font-family: 'Roboto', sans-serif;
      margin: 0 auto;
      padding-bottom: 15px;
      font-size: 1.3em;
      line-height: 1.8;
      letter-spacing: 0.04em;
}

.bl-content h2 {
      font-family: 'Montserrat', sans-serif;
      font-size: 2.5em;
      letter-spacing: 0.1em;
      color: #BDAF0B
}

.bl-content h3 {
      font-family: 'Montserrat', sans-serif;
      font-size: 1.5em;
      letter-spacing: 0.1em;
}

.bl-content img {
      max-width: 200px;
      max-height: 100px;
      vertical-align: middle;
      margin: 20px;
}



/* Transition classes and properties */
/* Separated for a better overview and control */

.bl-main > section {
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}

.bl-main > section.bl-expand {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(../img/monitor.jpg);
}

.bl-main > section.bl-expand-top {
	z-index: 100;
}

.bl-main > section:first-child.bl-expand {
	background: #658036;
    background-image: url(../img/alarme.jpg);
}
.bl-main > section:nth-child(2).bl-expand {
	background: #39694c;
    background-image: url(../img/cftv.jpg);
}
.bl-main > section:nth-child(3).bl-expand {
	background: #0c5161;
}
.bl-main > section:nth-child(4).bl-expand {
	background: #4f7441;
    background-image: url(../img/controle.jpg);
}



.bl-main.bl-expand-item > section:not(.bl-expand),
.bl-main.bl-expand-item > section.bl-scale-down {
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	-ms-transform: scale(0.5);
	transform: scale(0.5);
	opacity: 0;
}

.bl-box {
	-webkit-transition: opacity 0.2s linear 0.5s;
	-moz-transition: opacity 0.2s linear 0.5s;
	transition: opacity 0.2s linear 0.5s;
}

section.bl-expand .bl-box {
	opacity: 0;
	-webkit-transition: opacity 0s linear;
	-moz-transition: opacity 0s linear;
	transition: opacity 0s linear;
}

.bl-box h2 {
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
    -webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
    -webkit-transform-origin: top;
    -ms-transform-origin: top;
    transform-origin: top;
}

.no-touch section:not(.bl-expand) .bl-box:hover h2 {
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
}

.bl-content,
.bl-icon-close {
	-webkit-transition: opacity 0.1s linear 0s;
	-moz-transition: opacity 0.1s linear 0s;
	transition: opacity 0.1s linear 0s;
}

section.bl-expand .bl-content,
section.bl-expand .bl-icon-close {
	pointer-events: auto;
	opacity: 1;
	-webkit-transition: opacity 0.3s linear 0.5s;
	-moz-transition: opacity 0.3s linear 0.5s;
	transition: opacity 0.3s linear 0.5s;
}

@media screen and (max-width: 46.5em) {
	.bl-content,
	.bl-box {
		font-size: 75%;
	}

	.bl-expand .bl-box {
		height: 130px;
	}

}


#amatec {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 2;
    opacity: 0;
    -webkit-transition: opacity 1s ease-in-out;
    transition: opacity 1s ease-in-out;
}

#amatec.active {
    opacity: 1;
}

#logo {
    margin-top: -60px;
    width: 100%;
    max-height: 100%;
}

#logo polyline, #logo line {
    fill: none;
    stroke: #BDAF0B;
    stroke-width: 8;
    stroke-miterlimit: 10;
    -webkit-transition: stroke-dashoffset 4s ease-in-out;
    transition: stroke-dashoffset 4s ease-in-out;
}

#logo polyline {
    stroke-linecap: square;
    stroke-dasharray: 500;
    stroke-dashoffset: -480;
}

#logo line {
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: -80;
}

#logo.active line, #logo.active polyline {
    stroke-dashoffset: 0;
}

#icons {
    display: none;
}


.icon {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #BDAF0B;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke-dasharray: 500;
    stroke-dashoffset: -480;
    -webkit-transition: all 3s ease-in-out 2s;
    transition: all 3s ease-in-out 2s;
}

.icon.active {
    stroke-dashoffset: 0;
}

@media (orientation:portrait) { 
    #logo {
        margin-top: 0;
    }
    #amatec {
        display: none;
    }
    .icon {
        display: none;
    }
    .bl-box h2 {
        opacity: 1;
        font-size: 3em;
    }
    .bl-content {
        padding: 30px 60px;
    }
}

