/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

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

/*
 * A better looking default horizontal rule
 */

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

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

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

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


body {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

video {
    width: 100%;
    height: auto;
    margin: 0;
    z-index: -1;
}

nav {
    width: 100%;
    height: 70px;
    /*padding: 1em 0 1em 2em;*/
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.2);
    z-index: 10;
}

    .skylab-logo {
        display: inline-block;
        min-width: 100px;
        max-width: 200px;
        z-index: 2;
    }

    nav ul {
        display: inline-block;
        right: 0;
        float: right;
        list-style: none;
        list-style-type: none;
        width: 45vw;
        margin-top: 25px;
        text-align: right;
    }

    nav ul li {
        display: inline-block;
        margin-right: 1.5em;
    }

    nav ul li a,
    nav ul li a:active,
    nav ul li a:hover {
      color: #333;
      text-decoration: none;s
    }

    nav ul li a:hover {
      border-bottom: 1px solid #333;
    }

    nav .hamburger, nav .cross {
        display: none;
        right: 0;
        float: right;
        list-style: none;
        list-style-type: none;
        min-width: 60px;
        height: auto;
        margin-top: 15px;
        margin-right: 15px;
        text-align: center;
        padding: 10px 5px;
        outline: 0;
        border: 2px solid black;
        background-color: white;
    }

    nav .cross {
        font-size: 20px;
        width: 20px;
        height: 35px;
    }

    nav ul.mobile {
        display: none;
        clear: both;
        width: 100%;
        background-color: #333;
        margin: 0;
    }
    nav ul.mobile li {
        display: none;
        text-align: center;
        padding: 25px;
    }

        nav ul.mobile li a {
            color: white;
        }

    @media only screen and (max-width: 750px) {
        nav ul.web {
            display: none;
        }

        nav ul.mobile {
            display: block;
            position: absolute;
            z-index: 10;
        }

        nav ul.mobile li {
            display: block;
        }

        nav .hamburger {
            display: block;
        }

        .homebutton {
            display: block;
            margin: 0 auto !important;
            width: 50%;
            margin-bottom: 20px !important;
        }

        .home-container {
            margin-top: 110px;
        }

        .home-section {
            height: 700px;
        }
    }

section {
    display: block;
}

  .normal_section {
    display: block;
    overflow: auto;
  }

.content_overlay {
    position: absolute;
    width: 100vw;
    background-color: rgba(0,0,0,0.5);
    z-index: 5;
}

a.button {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    text-transform: uppercase;
    text-decoration: none;
    min-width: 200px;
    border: 1px solid #fff;
    padding: 15px 30px;
    cursor: pointer;
    background-color: rgba(0,0,0,0);
    transition: 0.3s ease;
}

    a.button:nth-of-type(1){
        margin-right: 30px;
    }

a.button:hover {
    color: #000;
    background-color: #fff;
    transition: 0.3s ease;
}

a.button:focus,
a.button:active,
a.button:visited {
    outline: none;
}

.limit {
  max-width: 1110px;
  margin: 0 auto;
}

.square {
    float:left;
    position: relative;
    width: 30%;
    padding-bottom : 30%; /* = width for a 1:1 aspect ratio */
    margin:1.66%;
    background-color:#1E1E1E;
    overflow:hidden;
}

.square_by_two {
    float:left;
    position: relative;
    width: 46.66%;
    padding-bottom : 30%; /* = width for a 1:1 aspect ratio */
    margin:1.66%;
    background-color:#1E1E1E;
    overflow:hidden;
}

@media (max-width: 1200px) {
  video {
    height: 100%;
    width: auto;
  }
  .normal_section {
    /*overflow: initial;*/
  }
}

@media (max-width: 420px) {
  .square,
  .square_by_two {
      width: 97%;
      height: 60vw;
      padding-bottom : 30%; /* = width for a 1:1 aspect ratio */
      margin:1.66%;
  }
  footer img.footer_logo {
    width: 90%;
    margin-top: 20px;
    transform: translateX(-40px);
  }
  footer .span_5_of_12,
  footer .span_2_of_12 {
    padding: 0 40px;
    width: auto;
  }
  h1 {
    font-size: 36px;
  }
}

.square_by_two .content {
    position:absolute;
    height:69%; /* = 100% - 2*5% padding */
    width:80%; /* = 100% - 2*5% padding */
    padding: 10%;
}

.content {
    position:absolute;
    height:80%; /* = 100% - 2*5% padding */
    width:80%; /* = 100% - 2*5% padding */
    padding: 10%;
    transition: 0.3s;
    opacity: 0;
}


.content {
    background-color: rgba(0,0,0,0.7);
    opacity: 1;
    transition: 0.3s;
}

.content:hover {
    background-color: transparent;
    opacity: 0;
    transition: 0.3s;
}


.table{
    display:table;
    width:100%;
    height:100%;
}
.table-cell{
    display:table-cell;
    vertical-align:middle;
    text-align: center;
}

/*  For responsive images */

.content .rs{
    width:auto;
    height:auto;
    max-height:90%;
    max-width:100%;
}
/*  For responsive images as background */

.bg{
    background-position:center center;
    background-repeat:no-repeat;
    background-size:cover; /* you change this to "contain" if you don't want the images to be cropped */
    color:#fff;
}

.img1{
    background-image: url('https://farm3.staticflickr.com/2827/10384422264_d9c7299146.jpg');
}
.img2{
    background-image: url('https://farm7.staticflickr.com/6217/6216951796_e50778255c.jpg');
}
.img3{
    background-image: url('https://farm4.staticflickr.com/3794/13893055574_3df0ab636b.jpg');
}

.divider {
  margin: 0 1.6% 30px 1.6%;
}

  .divider_title {
    display: table;
    width: 230px;
    text-transform: uppercase;
    text-align: center;
    padding: 5px 50px;
    margin: 0 auto;
    border: 1px solid #cccccc;
    background-color: #fff;
    transform: translateY(36px);;
  }

footer {
  width: 100%;
  height: 200px;
  margin-top: 30px;
}

footer h4 {
      margin-top: 20px !important;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        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) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

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

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    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;
    }
}

/**
 *
 *  Forms style
 *
 **/

 .jb-form input[type="text"], .jb-form textarea {
    padding: .618em;
    line-height: 1.618;
    font-size: 100%;
    background-color: #f2f2f2;
    color: #43454b;
    outline: 0;
    border: 0;
    border-radius: 2px;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.125);
 }

 .jb-form textarea {
    width: 450px;
 }

 .jb-form input[type="text"] {
    width: 350px;
 }

 .jb-form p {
    margin: 0 0 1.618em;
 }

 .jb-form button {
    padding: 15px 25px;
    outline: 0;
    border: 0;
    background-color: black;
    color: white;
 }

 @media only screen and (max-width: 530px) {
    .jb-form textarea {
       width: 100%;
    }

    .jb-form input[type="text"] {
       width: 100%;
    }
 }
