/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * 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
   ========================================================================== */
@import url('https://fonts.googleapis.com/css?family=Stint+Ultra+Expanded&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Maven+Pro&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Muli&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans&subset=latin-ext');
@import url('https://fonts.googleapis.com/css?family=Syncopate&subset=latin-ext');

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

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

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

::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{
  font-family: 'Maven Pro';
  background-color:#000000;
  color:#FFFFFF;
  overflow-x:hidden;
  overflow-y:scroll;
}

h1 {
  font-family: 'Stint Ultra Expanded';
}

h2 {
  font-family: 'Stint Ultra Expanded';
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

* {
  box-sizing: border-box;
  transition: 0.3s;
}

a{
  color:#FFFFFF; /*White*/
  text-decoration:none;
}

a:hover{
  color:#19D7CD !important;
}

.button{
  border: 0px solid #202020; /*Dark*/
  outline:none;
  cursor: pointer;
  width: 100%;
  padding: 10px 0;
  margin-bottom: 10px;
  background-color: #0A585C; /*Prim*/
  color: #FFFFFF; /*White*/
}

.button:hover, .active {
  background-color: #19D7CD; /*Prim2*/
}

.border-bottom{
    border-bottom: 3px solid #0A585C; /*Prim*/
}

.border-top{
    border-top: 3px solid #0A585C; /*Prim*/
}

/* colors */
.color-white{
  color: #FFFFFF;
}

.color-black{
  color: #000000;
}

.color-prim1{
  color: #0A585C;
}

.color-prim2{
  color: #19D7CD;
}

.color-sec1{
  color: #606060;
}

.color-sec2{
  color: #808080;
}

.bgcolor-white{
  background-color: #FFFFFF;
}

.bgcolor-black{
  background-color: #000000;
}

.bgcolor-dark{
  background-color: #202020;
}

.bgcolor-prim{
  background-color: #0A585C;
}

/* positioning */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.float-left{
  float:left;
}

.float-right{
  float:right;
}

.padding-top{
  padding-top:30px;
}

.padding-bottom{
  padding-bottom:60px;
}

.fullheight {
  min-height: 100vh;
}

.ninetyheight {
  min-height: 90vh;
}

@-webkit-keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}


::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
}

::-webkit-scrollbar-thumb {
    background: #888; 
}

::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* #CONTENT */
.content-bg{
  position: relative;
  width:100vw;
}

.content{
  width:100%;
  max-width: 1170px;
  margin: 0 auto;
  overflow: auto;
}

@media(max-width:1200px){
  .content{
    margin-left: auto;
    margin-right: auto;
    padding-right: 5%;
    padding-left: 5%;
  }
}

/* #NAVBAR */
.navbar{
  overflow:hidden;
  height:80px;
  width:100%;
  position:fixed;
  z-index:2;
  text-align: center;
}

.navbar a{
  padding:0px 16px;
}

.navbar-logo{
  margin:20px 0 0 0;
  font-size:22px;
}

.navbar ul{
  margin:8px 0 0 0;
  list-style:none;
  float:right;
}

.navbar li{
  float:left;
}

.side-nav{
  height:100%;
  width:0;
  position:fixed;
  z-index:10;
  top:0;
  left:0;
  opacity:0.9;
  overflow-x:hidden;
  padding-top:60px;
}

.side-nav a{
  padding:10px 10px 10px 30px;
  font-size:18px;
  display:block;
}

.side-nav .side-close{
  position:absolute;
  top:0;
  right:22px;
  font-size:36px;
  margin-left:50px;
  cursor: pointer;
}

@media(max-width:768px){
  .navbar-nav{display:none}
  .navbar-logo{float:center;}
}

@media(min-width:768px){
  #open-side{display:none}
  .navbar-logo{float:left;}
}

/* #Hero image */
.hero-txt{
  position: fixed; /* or absolute */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-bg{
  position: relative;
  height: 100vh;
  overflow: hidden;
  max-width: 100%;   
}

.hero-bg iframe, .hero-bg object, .hero-bg embed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index:0;
  overflow: hidden;
}

.hero2-txt{
  position: fixed; /* or absolute */
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero2-bg{
  position: relative;
  height: 50vh;
  overflow: hidden;
  max-width: 100%;   
}

.hero-bottom{
  position: fixed; /* or absolute */
  top: 100%;
  left: 50%;
  transform: translate(-50%, -100%);
}

.hero2-bottom{
  position: fixed; /* or absolute */
  top: 50%;
  transform: translateY(-100%);
}

/* #Table */
.fixed-table {
  display: table;
  width: 100%;
  table-layout: fixed;    /* For cells of equal size */
  margin-left: auto;
  margin-right: auto;
}

.fixed-table span {
  display: table-cell;
}

/* #Portfolio */
.portfolio{
  position:relative;
  width:19.5%;
  display: none;
  cursor:pointer;
}

.show{
  display:inline-block;
}

.desc{
  text-align: center;
  display:none;
}

.desc-mobile{
  position: absolute;
  display:none;
  width: 100%;
  z-index: 2;
  text-align: center;
  top:5%;
}

#d0{
  display: block;
}

.img-color, .img-filter{
  width:100%;
  object-fit:cover;
  height: auto;
  padding: 2px 0;
}

.img-filter {
  position:absolute;
  top:0;
}

.img-filter:hover{
  opacity: 0;
}

.box {
   display: flex;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: self-start;
}

.box-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.box-center-wide {
  display: flex;
  align-items: space-around;
  justify-content: space-around;
  flex-wrap: wrap;
}

.box-horizontal {
   display: inline-flex;
   flex: 50%;
   flex-direction: row;
   flex-wrap: wrap;
   align-items: self-start;
}

.box-vertical {
   display: inline-flex;
   flex: 50%;
   flex-direction: column;
   flex-wrap: wrap;
   align-items: center;
   justify-content: space-around;
   grid-row-gap: 50px;
}

@media(max-width:1200px) {
  .box-horizontal{
    flex: 100%;
  }
}

@media(max-width:1200px) {
  .box-vertical{
    flex: 100%;
  }
}

@media(max-width:768px){
  .portfolio{width:90%;}
  .desc-mobile{display:block;}
}

@media(min-width:769px) and (max-width:992px){
  .portfolio{width: 49%}
  .desc-mobile{display:block;}
}

/* Footer */
.footer-bg {
    padding-top: 33px;
    padding-bottom: 33px;
    margin-top: 30px;
}

/* Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100vh;
    overflow: auto; /* Enable scroll if needed */
    -webkit-animation-name: fadeIn; /* Fade in the background */
    -webkit-animation-duration: 0.3s;
    animation-name: fadeIn;
    animation-duration: 0.3s
}

.modal .content{
  max-width:992px;
}

.no-scroll {
  overflow: hidden;
}

/* Modals */
.modal-close {
    position: fixed;
    top: 15px;
    right: 35px;
    font-size: 40px;
    font-weight: bold;
}

.modal-close:hover, .modal-close:focus {
    color: #bbb;
    cursor: pointer;
}

.modal-content{
  position: relative;
}

.modal-content img{
  width:100%;
  padding-bottom: 15px;
  padding-top: 15px;
}

.width-l{
  width: 60%;
}

.modal-content .width-m, .width-m{
  width: 49.5%;
}

.modal-content .width-s, .width-s{
  width: 33%;
}

@media(max-width:1200px) {
  .modal-content .width-m,  .width-m, .width-l, .modal-content .width-l, .width-s, .modal-content .width-s{
    width: 100%;
  }
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    padding: 12px; /* Some padding */  
    border: none; /* Gray border */
    border-radius: 2px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; /* Bottom margin */
    resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
    background-color: #404040;
    color: white;
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
    background-color: #606060;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
    background-color: #45a049;
}


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * 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;
    white-space: inherit;
}

/*
 * 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 gallery 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,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

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

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !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) ")";
    }

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

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

    pre {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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