/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

* {
    box-sizing:border-box;
}
html{
    width:100%;
}
body {
    font-family: Helvetica, Arial, sans-serif;
    background-color:#faf3e5;
    width:100vw;
}

.navbar {
    width:100%;
    height:60px;
    background-image: url(../img/texture_red.jpg);
}
.navbar-brand {
    background-color: transparent;
    float: left;
    padding: 0px 15px;
}
.navbar-brand img {
    vertical-align:middle;
}
.navbar-brand:hover {
    text-decoration:none;
}
.navbar-brand a:active, .navbar-brand a:hover {
    outline:0;
}

.main-container {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
}

.container {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;    
    width:300px;
    /* this width determines the total width, not the margin property */
    margin-top:20px;
}
.row {
    width:100%;
}
.col {

}
.sub-container {
    width:50%;
}



.header-holder{
    background:#000;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:100%;
}

.header--title {
    width:100%;
    background-image:url("../img/320_masthead_after.jpg");
    background-size:contain;
    background-repeat:no-repeat;
    background-position:center;
    background-color:#000;
    height:50px;
    padding:0 10px;

    color: rgb(242, 242, 195);
    font-weight: bold;

    display:flex;
    flex-direction:column;
    justify-content:center;

}
.header--projectname {
    font-size:18px;
}
.header--clientname {
    font-size:11px;
}

.header--img {
    background-image:url("../img/320_masthead_before.jpg");
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    background-color:#000;
    width:100%;
    height:100px;
}
.header--img img {
    width:100%;
}

.copyheader {
    color:#333333;
    font-size:18px;
    line-height:1.428571429;
    font-weight:bold;
}
.copytext {
    color:#333333;
    font-size:14px;
    line-height:1.428571429;
}

.image-holder {
    margin-top:4px;
    width:100%;
}

.image-holder img {
    width:100%;
    height:auto;
    display:block;
}


.video-holder {
    width:100%;
}

.video-holder video {
    width:100%;
    height:auto;
}

.yt-video-holder {
    width:100%;
    height:auto;
}

.btn-holder {
    border-radius: none;
    margin-top:4px; /* same as margin-top of .image */
    padding: 8px 20px;
    width:100%;
    background-image: url('../img/texture_red.jpg');
    display:flex;
    justify-content:center;
    align-items:center;
}

.btn-default {
    text-shadow: none;
    box-shadow: none;
    border: none;
    border-radius: none;
    text-decoration: none;
    font-size: 21px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    color: rgb(251, 242, 223);
/*    -webkit-filter: grayscale(0%);
    -webkit-transition: .3s ease-in-out;
    -moz-filter: grayscale(100%); 
    -moz-transition: .3s ease-in-out;
    -o-filter: grayscale(100%); 
    -o-transition: .3s ease-in-out;*/
}

.btn-default:hover {
/*    text-shadow: none;
    background-image: url('../img/texture_red.jpg');
    box-shadow: none;
    color: #fff;    
    -webkit-filter: grayscale(100%);*/
}

footer {
    background-image: url(../img/texture_red.jpg);
    width: 100%;
    height: 60px;
    margin: 0;
    padding: 0;
    margin-top:10px; /* matching size of container margins (mobile: 10px on left and right) */
}

.container.typeD {
    margin-top:0; /* there's already margin-top:4p; on .image-holder elements */
}



/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 480px) {

/* ====================
    INTERMEDIATE SIZE
   ==================== */

    .container {
  
        width:460px;
        /* this width determines the total width, not the margin property */
        margin-top:20px;

    }
    .row {
      
    }
    .col {

    }    


    .header--title {
        padding:0 80px;
        height:80px;
    }    

    .header--img {
    }    

    .header--projectname {
        font-size:24px;
    }
    .header--clientname {
        font-size:18px;
    }

    .container.typeD {
        margin-top:0; /* there's already margin-top:4p; on .image-holder elements */
    }
    
}

@media only screen and (min-width: 768px) {

/* ====================
    WIDE SIZE
   ==================== */

    .container {
        width:600px;
        margin-top:20px;
        padding:0 2px;
    }
    .row {
        margin:0 -2px;
        display:flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;        
    }
    .col {

    } 

    .copyheader {
        color:#333333;
        font-size:28px;
        line-height:1.428571429;
        font-weight:bold;
    }
    .copytext {
        color:#333333;
        font-size:16px;
        line-height:1.333;
        text-align: justify;
        -moz-text-align-last: center;
        text-align-last: center;
        margin-top:15px;
        margin-bottom:15px;
    }

    .header-holder {

    }
    .header--title {
        max-width:960px;
        padding:0 80px;
        height:100px;
        background-image:url("../img/768_masthead_after.jpg");
    }
    .header--img {
        max-width:1000px;
        height:200px;
        background-image:url("../img/768_masthead_before.jpg");
    }

    .header--projectname {
        font-size:36px;
    }
    .header--clientname {
        font-size:20px;
    }

    .container {
        flex-direction:row;
        flex-wrap:wrap;
    }

    .yt-video-holder {
        height:320px;
    }

    .typeA {
        /*border:1px solid green;*/
    }

   .col {
        width:100%;
        padding: 0px 2px;
   }
   .col-50 {
        padding: 0px 2px;
        max-width:50%;
   }
   .col-25 {
        padding: 0px 2px;
        max-width:25%;
   }
  
   .col-33 {
        padding: 0px 2px;
        max-width:33.34%;
   }
   .col-66 {
        padding: 0px 2px;
        max-width:66.67%;    
   }

   /*////// .col for typeA //////*/
   .col-30 {
        padding: 0px 2px;
        max-width:30%;    
   }  
   .col-70 {
        padding: 0px 2px;
        max-width:70%;    
   }  

   /*///////// .col for typeC /////////*/

    .col-32 {
        padding: 0px 6px;
        max-width:32%;    
    }
    .col-48 {
        padding: 0px 6px;
        max-width:47.5%;    
    }
    .col-20 {
        padding: 0px 2px;
        max-width:21.5%;
    }     
    .col-18 {
        padding: 0px 6px;
        max-width:18%;    
    }


/*    .typeA .image-holder{
        width:65%;
    }
    .typeA .video-holder{
        width:35%;
    }*/

/*    .typeB {
        border:1px solid blue;
        flex-direction:row;
        flex-wrap:wrap;
        height:600px; 
    }*/
/*    .typeB .image-holder {
        width:50%;
    }*/


    .typeC {
        /*border:1px solid orange;*/
        /*display:block;*/
        /*flex-direction:row;
        justify-content:center;
        align-items:center;
        flex-wrap:nowrap;*/
    }

    .typeC .image-holder {
        width:100%;
    }
/*    .typeC .image-holder {
        width:15%;
        flex-basis:0;
        flex-grow:1;
    }
    .typeC .video-holder {
        width:35%;
        flex-basis:0;
        flex-grow:1.8;
    }
    .typeC .video-holder.exception {
        width:50%;
        flex-basis:0;
        flex-grow:2.5;

        height:390px;
    }*/
/*    .typeC .video-holder.exception video {
        width:100%;
        height:100%;
    }*/

    .typeD {
    }
    .typeD .image-holder {

    }

    .typeD .image-holder-row-1 {
/*        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;
        height:200px;
        width:100%;*/
    }

    .typeD .image-holder-row-1 .image-holder.gif {
/*        flex-grow:2;
        flex-basis:0;*/
    }

    .typeD .image-holder-row-1 .image-holder.notgif {
/*        flex-grow:1;
        flex-basis:0;*/
    }

    .typeD .image-holder-row-2 {
/*        display:flex;
        flex-direction:row;
        justify-content:center;
        align-items:center;*/

    }
    .typeD .image-holder-row-2 .image-holder {
/*        width:25%;*/
    }

    .container.typeD {
        margin-top:0; /* there's already margin-top:4p; on .image-holder elements */
    }    
}

@media only screen and (min-width: 1140px) {

/* ===============
    Maximal Width
   =============== */

   .container {
        width:800px;
   }
   .row {

   }
   .col {
        width:100%;
        padding: 0px 2px;
   }
   .col-50 {
        padding: 0px 2px;
        max-width:50%;
   }
   .col-25 {
        padding: 0px 2px;
        max-width:25%;
   }
   .col-33 {
        padding: 0px 2px;
        max-width:33.34%;
   }
   .col-66 {
        padding: 0px 2px;
        max-width:66.67%;    
   }

   /*////// .col for typeA //////*/
   .col-30 {
        padding: 0px 2px;
        max-width:30%;    
   }  
   .col-70 {
        padding: 0px 2px;
        max-width:70%;    
   }  

   /*///////// .col for typeC /////////*/

    .col-32 {
        padding: 0px 6px;
        max-width:32%;    
    }
    .col-48 {
        padding: 0px 6px;
        max-width:48%;    
    }
    .col-18 {
        padding: 0px 6px;
        max-width:18%;    
    }

    .header--title {
        max-width:960px;
        padding:0 80px;
        height:150px;
        background-image:url("../img/1140_masthead_after.jpg");
    }
    .header--img {
        max-width: 1000px;
        height: 300px;
        background-image:url("../img/1140_masthead_before.jpg");
    }

    .typeA .video-holder {
        /*width:32%;*/
        margin-left:10px;
    }

/*    .typeB {
        height:720px;
    }*/

/*    .typeB .image-holder {
        width:48%;
        margin:2px;
    }*/

/*    .typeC .video-holder {
        width:48%;
        margin-right:10px;
    }  */

    .container.typeD {
        margin-top:0; /* there's already margin-top:4p; on .image-holder elements */
    }

}


/* ==========================================================================
   PRELOADER classes
   ========================================================================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #f5f5f5;
  /* change if the mask should have another color then white */
  z-index: 99;
  /* makes sure it stays on top */
  /*pointer-events: none;*/
}

#status {
  position: absolute;
  left: 50%;
  /* centers the loading animation horizontally one the screen */
  top: 50%;
  /* centers the loading animation vertically one the screen */
  margin: -20px 0 0 -25px;
  /* is width and height divided by two */
}

.spinner {
  margin: 100px auto;
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 10px;
}

.spinner > div {
  background-color: #333;
  height: 100%;
  width: 6px;
  display: inline-block;
  
  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }  
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% { 
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% { 
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}

/*js will remove this class from rest of page*/
.loading {
  overflow: hidden;
  height: 100vh;
}


/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}