@import url("foundation-icons/foundation-icons.css");
html, body{
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.05em;
  color: #555;
}
.vid video {
  position: absolute;
  top:0;
  width:100%;
  left:0;
  height: 100%;
  object-fit: cover;
  object-position: 60%;
}
.vid{
  position: absolute;
  top:0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.orange{
  /*! color: #f90; */
  background-color: #fea100;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 11px 0;
}
.portfolio-text{
  position: absolute;
  bottom: 0px;
  width: 100%;
  background: rgba(0, 0, 0,0.6);
  padding: 5px;
  color: white;
  z-index: 5;
}
.p_img{
  /*! border: 10px solid #fff; */
  border-radius: 3px;
  /*! box-shadow: 0 0 3px; */
  /*! width: 70%; */
  box-sizing: border-box;
  padding: 0;
  /*! border-bottom: 5px solid #fff; */
  position: relative;
  overflow: hidden;
  height: 200px;
  /*! padding: 2px; */
}
.icon{
  display: inline-block;
  margin-right: 15px;
  transform: scale(1.5,1.5);
  color: #1e465e;
}
.header.home:after{
  content:"";
  display:block;
  width:100%;
  height:100%;
  background-color: rgba(10, 70, 108, 0.71);
  position: absolute;
  top:0;
  z-index:0;
}
i{
	color: #ecf1f5;
	position: relative;
	top: 10px;
}
.header{
	background-color: #1e465e;
}
.header.home{
  background-color: #333;
  height: 90%;
  position: relative;
  background-image: url(images/daniel-korpai.jpg);
  /*! background-size: cover; */
  /*! background-position: center; */
  /*! overflow: hidden; */
}
.header .logo{
  color: white;
  text-align: center;
  /*! padding:10px; */
  text-transform: uppercase;
  position: relative;
  z-index:1;
  font-family: 'Russo One', sans-serif;
}
.logo {


}
.logo span{
  font-size: 2.5em;
  margin-top: 20px;
  display: inline-block;
}
.logo img{
  height: 40px;
  position: relative;
  top: 5px;
}
.header-text{
  position: absolute;
  z-index: 1;
  top:50%;
  left:50%;
  transform: translate(-50%,-50%);
  color: white;
  text-align: center;
  animation-name: bottomToTop;
  animation-duration: 0.5s;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
  padding-left: 13px;
  padding-right: 13px;
  opacity:0;
  font-weight: normal;
  font-family: Russo One;
  text-transform: uppercase;
}
#mask{
	position: fixed;
	width: 100%;
	height: 100%;
	z-index:2;
	background-color: rgba(0,0,0,0.6);
	top:0;
}
@keyframes bottomToTop{
  from{
	  opacity:0;
	  top:55%;
	  }
  to{
	  opacity:1;
	  top:50%;
	  }
}
.header-text:before{
  content:"";
  border-left:1px solid #eee;
  border-top:1px solid #eee;
  position: absolute;
  width:50px;
  height: 20px;
  top:0;
  left:0;
}
.header-text:after{
  content:"";
  border-right:1px solid #eee;
  border-bottom:1px solid #eee;
  position: absolute;
  width:50px;
  height: 20px;
  bottom:0;
  right:0;
}
.container{
  max-width: 1024px;
  margin: auto;
  padding-left:10px;
  padding-right:10px;
}
.nav {
	min-height: 40px;
  //background-color: #777;
   //background-color: #fff3; 
	position: relative;
	width: 100%;
	z-index: 3;

  transition: all 0.2s
}

.nav.sticky{
	position:fixed;
	top:0;
	background-color: #1e465ee6;
}
.nav.sticky li:first-child:before{
  content:"CLAB";
  background-image: url(images/C-logo.png);
  position: fixed;
  display:block;
  top: 15px;
  margin-left: -150px;
  height: 30px;
  width: 150px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position-x: 10px;
  text-align: left;
  color: white;
  text-indent: 50px;
  font-weight: bold;
  /*! font-family: "russo"; */
  font-family: 'Russo One', sans-serif;
  /*! padding-top: 5px; */
  font-size: 1.5em;
}
.nav ul{
  list-style-type: none;
  margin:0;
  padding:0;
  display:flex;
  justify-content:center;
flex-wrap: wrap;
  position: relative;
}
.nav a {
  color: white;
  text-decoration: none;
  padding: 15px;
  display: block;
  text-transform: uppercase;
  transition: all 0.5s;
  position: relative;
  z-index:1;
}
.nav a:after{
  content:"";
  display: block;
  border-bottom: 1px solid #eee;
  //border-top: 1px solid #eee;
  transform: scale(0,1);
  transition: all 0.5s;
  min-height: 40px;
  position: absolute;
  top:0;
  width:100%;
  padding-top:15px;
  left:0;
}
.nav a:hover:after{
  transform: scale(1,1);
 
  
}
.nav a:hover{

  
}
#content {
	text-align: justify;
}
h1{
  text-align: center;
  font-size: 2.1em;
}
.box-50 h1{
	margin-top:0;
}
.box-33{
  width: 33.33%;
  /*! float: left; */
  padding:10px;
  box-sizing: border-box;
  /*! display: inline-block; */
  /*! height: 200px; */
  overflow: hidden;
}
.box-50{
  width: 50%;
  float: left;
  padding:15px;
  box-sizing: border-box;
}

.box-33 img, .box-50 img{
	width:100%;
	vertical-align: middle;
  transition: all 1s;
}
.box-33:hover img {
  transform: scale(1.3, 1.3) rotate(5deg);
}
.textbox{
	text-align: justify;
}
.coords{
	clear: both;
}
.light-grey{
	background-color: #eee;
	text-align: center;
}
.card{
	background-color: #fff;
	min-height: 400px;
	padding: 20px;
}
.team-pic img{
	border-radius: 5px;
	width: 50%;
}
.team-text{
	text-align: justify;
}
.team-text h2, .team-text h3{
  text-align: center;
}
section{
	min-height: 70vh;
}
.portfolio {
	/*! height: auto !important; */
	/*! overflow: hidden; */
	/*! padding-bottom: 0; */
}
#footer section, .coords section{
  min-height: auto;
}
#footer{
  background-color: #1e465e;
  color: #eee;
}
#footer section a{
  color: #eee;
  text-decoration: none;
  padding: 5px;
  display: block;
}
#footer section ul{
  list-style-type: none;
  padding: 0;
}
.box-container{
	display: flex;
	flex-wrap: wrap;
	
}
@media screen and (max-width:768px){
  .nav ul {
    display:block;
  }
  .nav {
    background-color: #000;
    z-index:8;
    position: fixed;
    top:0;
    width:0;
    right:0;
    transition: all 0.5s;
    /*overflow:hidden;*/
  }
  .nav.show{
    width:80%;
     }

  .nav.show .toggle-button span {
   background-color: rgba(0,0,0,0);
  }
    .nav.show .toggle-button span:after{
    transform: rotate(-315deg);
    top:0;
  }
  .nav.show .toggle-button span:before{
    transform: rotate(315deg);
    top:0;
  }  

  .nav .toggle-button{
    display:block;
    z-index:10;
    width:40px;
    height:40px;
    top:10px;
    right:10px;
    position: fixed;
    background-color: rgba(0,0,0, 0.2);
    
  }
  .nav .toggle-button span{
    height: 4px;
    background-color: white;
    display: block;
    width: 30px;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    border-radius: 5px;
    transition: all 0.5s;
  }
  .nav .toggle-button span:after{
    content: "";
    top:10px;
    display: block;
    width: 30px;
    height: 4px;
    position: absolute;
    background-color: white;
    border-radius:5px;
    transition: all 0.5s;
  }
    .nav .toggle-button span:before{
    content: "";
    top:-10px;
    display: block;
    width: 30px;
    height: 4px;
    position: absolute;
    background-color: white;
      border-radius: 5px;
      transition: all 0.5s;
  }
  .box-33, .box-50{
    float: none;
    width: 100%;
  }
  .portfolio{
	  height: auto;
  }
  .nav.sticky li:first-child:before{
    display: none;
  }
}

