@font-face {
    font-family: openSans;
    src: url(fonts/opensans/OpenSans-Regular.ttf);
}
@font-face {
    font-family: openSans;
    src: url(fonts/opensans/OpenSans-Bold.ttf);
    font-weight: bold;
}
@font-face {
    font-family: playFairDisplay;
    src: url(fonts/playfairdisplay/PlayfairDisplay-Regular.ttf);
}
@font-face {
    font-family: playFairDisplay;
    src: url(fonts/playfairdisplay/PlayfairDisplay-Bold.ttf);
    font-weight: bold;
}
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html{height: 100%;}
body{
  margin: 0;
  padding: 0;
  height: 100%;
}
header{
  min-height: 100%;
  position: relative;  
}

.logoWrapper {
    position: relative;
    width: 70%;
    margin: 10% auto;
    padding-bottom: 10%;
    padding-top: 20%;
    height: 0;
    overflow: hidden;
}
 .arrow-down{
  display: block;
  color: #fff;
  font-size: 70px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  margin-left: -35px;
  transition:all 0.2s;
}
.arrow-down:hover{
  color:rgb(32, 85, 123);
}
.logoWrapper .logo {   
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/outothebox_logo_medium_white.png') center;
  background-size: contain;
  -webki-animation: logo 30s 0.8s infinite; 
  animation: logo 30s 0.8s infinite; 
  background-repeat: no-repeat;
}

.header-background{
  text-align: center;
  position: absolute;
  background: url('images/clouds_large.jpg');
  background-size:cover;
  background-repeat: no-repeat;
  background-position: center;  
  z-index: -1;
  top:0;
  bottom: 0;
  left: 0;
  right: 0;
  -webkit-animation: headerBackground 30s infinite;
  animation: headerBackground 30s infinite;
}
@-webkit-keyframes logo{
  0%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
  20%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
  30%{ background: url('images/outothebox_logo_medium_blue.png') center;background-size: contain;background-repeat: no-repeat;}
  50%{ background: url('images/outothebox_logo_medium_blue.png') center;background-size: contain;background-repeat: no-repeat;}
  60%{ background: url('images/outothebox_logo_medium_black.png') center;background-size: contain;background-repeat: no-repeat;}
  80%{ background: url('images/outothebox_logo_medium_black.png') center;background-size: contain;background-repeat: no-repeat;}
  100%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
  }
@keyframes logo{
0%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
20%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
30%{ background: url('images/outothebox_logo_medium_blue.png') center;background-size: contain;background-repeat: no-repeat;}
50%{ background: url('images/outothebox_logo_medium_blue.png') center;background-size: contain;background-repeat: no-repeat;}
60%{ background: url('images/outothebox_logo_medium_black.png') center;background-size: contain;background-repeat: no-repeat;}
80%{ background: url('images/outothebox_logo_medium_black.png') center;background-size: contain;background-repeat: no-repeat;}
100%{ background: url('images/outothebox_logo_medium_white.png') center;background-size: contain;background-repeat: no-repeat;}
}
  
  
@-webkit-keyframes headerBackground{
  0%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  20%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  30%{ background: url('images/city_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  50%{ background: url('images/city_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  60%{ background: url('images/clouds_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  80%{ background: url('images/clouds_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  100%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }    
}
@keyframes headerBackground{
  0%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  20%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  30%{ background: url('images/city_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  50%{ background: url('images/city_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  60%{ background: url('images/clouds_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  80%{ background: url('images/clouds_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  100%{ background: url('images/building_large.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }    
}

.persist-header{
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.9);
  padding: 10px;
}
.persist-header a{
  float: right;
  background: rgba(32, 85, 123, 0.3);
  font-family: openSans;
  font-size: 16px;
  padding:5px 20px;
  border:none;
  color: #fff;
  text-transform: uppercase;
  margin-top: 5px;
  text-decoration: none;
  transition:all 0.3s;
}
.persist-header:hover a{
  background: rgba(32, 85, 123, 0.8);
  letter-spacing: 0.2em;
}
.persist-header::after{
  content: "";  
  left: 50%;
  bottom:-70px;
  margin-left: -70px;  
  position: absolute;
  border-top:70px solid rgba(255,255,255,0.8);
  border-left:70px solid transparent;
  border-right:70px solid transparent;
}
.persist-header .logo-symbol{
  position: absolute;
  left: 50%;
  z-index: 5;
  width: 100px;
  margin-left: -50px;
}
.persist-header .logo-name{
    height: 40px;
}
.section-1{
  background: url('images/always-grey.png'), #2f7fb8;
  padding: 50px 0;
}
.section-1 h2{      
     font-family: playFairDisplay;
     font-weight: bold;
     font-size: 70px;     
     color: #000;     
     line-height: 1.2;     
}
.section-1 p{      
     font-family: openSans;  
     font-size: 30px;     
     color: #fff;              
     margin-top: 20px;
}
article{  
    max-width:1000px;
    margin: auto;
}
.row{
  overflow: hidden;
}
.section-2{
  background: url('images/always-grey.png'), #20557b;
  padding: 40px 0;
}
.section-2 h2{
  font-family: playFairDisplay;
     font-weight: bold;
     font-size: 40px;     
     color: #3fa9f5;     
     line-height: 1.2;  
     margin-bottom: 20px;
}
.section-2 p{      
     font-family: openSans;  
     font-size: 23px;     
     color: #fff;              
     margin: 20px 0;
}
.section-2 ul{
    color: #fff;
    font-family: openSans;  
    font-size: 16px;
    list-style:none;
}
.section-2 ul li{
  margin-bottom: 15px;
  background: rgba(255,255,255,0.1);
  padding: 5px;
  color: #fff;
}
.section-2 .col-1{
  float: left;
  width: 55%;
  margin-right: 5%;
}
.section-2 .col-2{
  width: 40%;
  float: left;
}

.facts .col-1, .facts .col-2{
  width: 47.5%;
}
.facts ul li{
  font-size: 20px;
}
.section-1 .sub-head, .section-2 .sub-head{
  color: #000;
  font-size: 23px;
  font-weight: bold;
}

.vid-portfolio{
  overflow: hidden;
}
.vid-portfolio video{
  float: left;
  width: 32%;
  margin-right: 1%; 
}
@media screen and (max-width: 600px){
    .vid-portfolio video{
      float: none;
      width: 100%;
      margin-right: 0;
    }
}

footer{
  background: url('images/clouds_large.jpg');
  background-size:cover;
  background-repeat: repeat-y;
  background-position: 0 0;
  padding: 20px;    
  -webkit-animation: footerBg 120s infinite linear;
  animation: footerBg 120s infinite linear;
}
@-webkit-keyframes footerBg{
  0%{background-position:top;}
  100%{background-position:bottom;}
}
@keyframes footerBg{
  0%{background-position:top;}
  100%{background-position:bottom;}
}




footer .col-1{
  float: left;
  width: 25%;
  margin-right: 5%;
}
footer .col-2{
  float: left;
  width: 70%;
}
footer form .col-1{
  width:45%;
}
footer form .col-2{
  width: 50%;
}
footer form ul h3{
  font-family: playFairDisplay;
  color: #fff;
  font-weight: normal;
  margin-bottom: 15px;
  font-size: 16px;
}
footer form label{
  font-family: openSans;
  color: #20557b;
  font-weight: bold;
  width: 38%;
  display: inline-block;
  margin-bottom: 10px;
}
footer form input,footer form textarea {
  font-family: openSans;
  width: 60%;
  padding: 2px;
  border:none;
  background: rgba(255,255,255,0.4);
}
footer form input:focus,footer form textarea:focus {
  background: rgba(255,255,255,0.9);
  border: none;
}
footer form textarea{
  width: 100%;
  min-height:150px;
} 
footer form .comments_lbl{
  display: block;
}
footer form .submit{
  width:100%;
  text-transform: uppercase;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  background: rgba(32, 85, 123, 0.7);
  transition:all 0.3s;
}
footer form .submit:hover{
  background: rgba(32, 85, 123, 0.5);
  /*color: rgb(32, 85, 123);*/
  letter-spacing: 0.5em;
}

footer .copyrights{
  margin-top: 20px;
  border-top:1px dotted #fff;
  padding-top:10px;  
}
footer .copyrights p{
  color: #fff;
  text-align:center;
  margin:0px;
  font-size: 16px;
  font-family: openSans;
}
footer .copyrights p i{
  color: red;
  -webkit-animation:heartbeat 1.5s ease 0s infinite normal;
  animation:heartbeat 1.5s ease 0s infinite normal;
  margin: 0 5px;
}
footer .copyrights p a{
  color: #fff;
}
footer .copyrights p a:hover{
  color: rgb(32, 85, 123);
}
@keyframes heartbeat{
  0%  {  transform: scale(1);   }
  14% {  transform: scale(1.3); }
  28% {  transform: scale(1);   }
  42% {  transform: scale(1.3); }
  70% {  transform: scale(1);   }
}
@-webkit-keyframes heartbeat{
  0%  {  -webkit-transform: scale(1);  transform: scale(1);   }
  14% {  -webkit-transform: scale(1.3);  transform: scale(1.3); }
  28% {  -webkit-transform: scale(1);  transform: scale(1);   }
  42% {  -webkit-transform: scale(1.3);  transform: scale(1.3); }
  70% {  -webkit-transform: scale(1);  transform: scale(1);   }

}
footer #thanks:target:after{
    content: "Thank you for contacting us. Your message was sent successfully. We will be in touch shortly";
    white-space: pre-wrap;
    width:100%;
    display: block;
     color:rgb(32, 85, 123);
     background: #fff;
     padding:10px ;
     font-family: openSans;
     font-size: 15px;
  }

@media screen and (orientation: landscape) and (max-width:1024px) and (min-width:768px){
     .logoWrapper{
       margin-top: 20%;
       padding-bottom: 15%;
     }
}
@media screen and (orientation: portrait) and (max-width:1024px) and (min-width:768px){

  .logoWrapper{
       margin-top: 25%;
       padding-bottom: 30%;
     }
  .persist-header .logo-name{
    height: 29px;
  }
  element {
}
.section-1,.section-2{
  padding-left:10px;
    padding-right: 10px;
}
  .section-1 h2 {
 
    font-size: 40px; 
}
  .section-1 p {
 
    font-size: 20px;
    margin-top: 10px;
}
  .section-2 h2 {
    font-size: 25px;
  }
  .section-2 p{
    font-size: 20px;
  }
  .section-2 .col-1{
    width: 45%;
  }
  .section-2 .col-2{
    width: 50%;
  }
  footer form label {
    font-size: 13px;
  }

}
@media screen and (orientation: landscape) and (max-width:480px) and (min-width:320px){
     .persist-header{

  padding: 5px;
}
.persist-header a{
  font-size: 13px;
  margin-top: 5px;
  transition:all 0.3s;
}

.persist-header::after{
  bottom:-30px;
  margin-left: -30px;  
  border-top:30px solid rgba(255,255,255,0.8);
  border-left:30px solid transparent;
  border-right:30px solid transparent;
}
.persist-header .logo-symbol{
  width: 60px;
  margin-left: -30px;
}
.persist-header .logo-name{
    height: 19px;
  margin-top: 5px;
}
  .logoWrapper{
       margin-top: 20%;
       padding-bottom: 15%;
     }
  .arrow-down {
    font-size: 30px;
    bottom:10px;
    margin-left: -15px;
  }
}
@media screen and (max-device-width:480px){
    .header-background{
  background: url('images/clouds_medium.jpg');
  }
  @-webkit-keyframes headerBackground{
  0%{ background: url('images/building_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  20%{ background: url('images/building_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  30%{ background: url('images/city_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  50%{ background: url('images/city_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }  
  60%{ background: url('images/clouds_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  80%{ background: url('images/clouds_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }
  100%{ background: url('images/building_medium.jpg');
      background-size:cover;
      background-repeat: no-repeat;
      background-position: center;
    }    
}



}
@media screen and (orientation: portrait) and (max-width:480px) and (min-width:320px){

     .persist-header{

  padding: 5px;
}
.persist-header a{
  font-size: 12px;
  margin-top: 0px;
  transition:all 0.3s;
  padding: 5px 10px;
}

.persist-header::after{
  bottom:-20px;
  margin-left: -20px;  
  border-top:20px solid rgba(255,255,255,0.8);
  border-left:20px solid transparent;
  border-right:20px solid transparent;
}
.persist-header .logo-symbol{
  width: 48px;
  margin-left: -24px;
}
.persist-header .logo-name{
    height: 12px;
  margin-top: 10px;
}
  .logoWrapper{
       margin-top: 30%;
       padding-bottom: 35%;
     }
  .arrow-down {
    font-size: 30px;
    bottom:30px;
    margin-left: -15px;
  }
}
@media screen and (max-width:480px) and (min-width:320px){

  .section-1,.section-2{
  padding-left:10px;
    padding-right: 10px;
}
  .section-1 h2 {
    font-size: 24px;
  }
    .section-1 p{
      font-size: 18px;
    } 
  .section-2 .col-1, .section-2 .col-2, footer form .col-1, footer form .col-2, footer .col-2{
    float: none;
    width: 100%;
  } 
  .section-2 h2{
    font-size: 22px;
  }
    .section-2 p, .facts ul li {
      font-size: 16px;
    }
  footer article img{
    display: none;
  }
  footer .copyrights p{
    font-size: 13px;
    margin-bottom: 5px;
  }
}
