/*! HTML5 Boilerplate v5.3.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
   ========================================================================== */

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

/*
 * 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.
 */

::-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
   ========================================================================== */

















/* ==========================================================================
   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,
       (-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:
   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;
    }
}


/* CUSTOM SITE STUFF */

body{
    background: #8bc600;
    overflow-x:hidden;
}

#particle-hero{
  position: absolute;
  top:0px;
  left:0px;
  background-color: transparent;
  opacity: 0;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}

#particle-hero.alive{
    opacity: .6;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}


#hero {
    background:#8bc600;
    color: #ffffff;
    overflow: hidden;
}

#hero .hero-inner{
      position: fixed;
      top: 50%;
      transform: translateY(-50%);
      width: 50%;
    z-index: 9999999999;
}

#hero h1{
    font-family: 'Quicksand', sans-serif;
    font-weight: normal;
    font-size: 60px; 
    display: block;
    line-height: 65px;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}
#hero h1.hide{
  opacity: 0;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}

#hero h1.swap{
    color: #8bc600;
    text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;  

}

#hero h1 .changeblock{
    display: block;
    color: #8bc600;
    text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;  
    margin-left: 45px;
    opacity: 0; 
    -webkit-transition: all 1s ease-out; 
    transition: all 1s ease-out; 
}
#hero h1 .changeblock.visible{
    opacity: 1;
    -webkit-transition: all 1s ease-out; 
    transition: all 1s ease-out; 

}  
#hero h1 .changeblock.swap{ 
    color: #ffffff;
    text-shadow:
    0px 0px 0 #8bc600,
    0px 0px 0 #8bc600,
    0px 0px 0 #8bc600,
    0px 0px 0 #8bc600;   
    -webkit-transition: all 2s ease-out; 
    transition: all 2s ease-out; 
}

#hero h1 .changeblock span{ 
}
#hero h1 .changeblock span.intertext{ 
    z-index: 99999999999;
}

#hero h1 .changeblock span:hover{ 
  cursor: url('../img/squeegee.png'), auto; 
}

#hero .intro-text{
        margin-top: 60px;
      position: relative;
      top: 50%;
      transform: translateY(-50%);
}


#hero .intro-text p{
    font-family: 'Quicksand', sans-serif;
   /* text-shadow: 1px 1px 2px rgba(0,0,0,.2);*/
    font-size: 18px;
}


.animated {
  -webkit-animation-duration: 1.5s;
  animation-duration: 1.5s;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes bounce {
  0%, 100% {
    -webkit-transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-5px);
  }
}
@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}


@-webkit-keyframes wiggle {
  0%, 100% {
    -webkit-transform: translateX(0);
  }
  50% {
    -webkit-transform: translateX(-5px);
  }
}
@keyframes wiggle {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-8px);
  }
}

.bounce {
  -webkit-animation-name: bounce;
  animation-name: bounce;
}
 
.wiggle {
  -webkit-animation-name: wiggle;
  animation-name: wiggle;
}
 
.arrow {
  position: relative; 
  width: 120px;
  height: 120px;
  background-image: url(../img/down.png);
  background-size: contain;
  opacity: 0;
    -webkit-transition: all 2s ease-out; 
    transition: all 2s ease-out; 
    cursor: pointer;
    cursor: hand;
}
 
.handshake {
  position: absolute; 
  bottom: 70px;
  left: 0;
  width: 100%;
  height: 80px;
  max-height: 0px;
  background-image: url(../img/handshake.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  opacity: 0;
    -webkit-transition: all 2s ease-out; 
    transition: all 2s ease-out; 
    cursor: pointer;
    cursor: hand;
}

.success .handshake {
  opacity: 1;
  max-height: 80px;
    -webkit-transition: all 2s ease-out; 
    transition: all 2s ease-out; 
}    


#openportfolio{ 
  opacity: 0;
      -webkit-transition: all 1s ease-out; 
      transition: all 1s ease-out;  
    margin-top: 30px;
    margin-left: -90px;
}

.swap #openportfolio{ 
      color: #ffffff; 
      -webkit-transition: all 1s ease-out; 
      transition: all 1s ease-out;  
    font-family: 'BioRhyme', sans-serif;
    font-size: 18px;  
    margin-top: 30px;
    margin-left: 90px;
    opacity: 1;
    cursor: pointer;
    cursor: hand;
  }

  #openportfolio i{
    font-size: 28px;
  }
 
.arrow.active {
  opacity: 1;
    -webkit-transition: all 2s ease-out; 
    transition: all 2s ease-out; 
}    
/* CONTACT FORM */

#contact{ 
    color: #ffffff;
}

#contact .container{

      position: relative;
      top: 50%;
      transform: translateY(-50%);

}

#contact h2{
    font-family: 'Gravitas One';
    font-weight: normal;
    margin-top: 0px;
    font-size: 28px;
}

#contact form{
    background: transparent;
    padding: 20px;
    border: 2px dashed #ffffff;
    position: relative;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}


#contact form.error{
    border: 2px dotted #444444;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}

#contact form.success{
    border: 2px solid #ffffff;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
}

input::placeholder{
  color: #ffffff !important;
}

input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #ffffff !important;
}
input::-moz-placeholder { /* Firefox 19+ */
  color: #ffffff !important;
}
input:-ms-input-placeholder { /* IE 10+ */
  color: #ffffff !important;
}
input:-moz-placeholder { /* Firefox 18- */
  color: #ffffff !important;
}

#contact form .form-group{
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
}

#contact form .form-group label{
    display: none;
    z-index: 999999;
}

#contact form .form-group input,
#contact form .form-group textarea{
    border: 1px solid #ffffff;
    background: transparent;
    color: #ffffff;
    padding: 8px;
    display: inline-block;
    width: 100%;
    outline:0;
}

#contact form .form-group textarea{
  resize:none;
}
#contact form .form-group input.btn{
    background: transparent;
    color: #ffffff;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}

#contact form .form-group input.btn:hover{
    background: #ffffff; 
    color: #8bc600;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}
#contact form #form-messages{ 
    opacity: 0;
    max-height: 0px;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
    font-family: 'BioRhyme';
    text-transform: uppercase;
    color: #444444;
}
#contact form #form-messages.error{
    display: block;
    max-height: 100px;
    opacity: 1;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}
#contact form #form-messages.success{
    color: #ffffff;
    display: block;
    max-height: 100px;
    opacity: 1;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}

/* Modal Stuff */

.modal{

    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
  display:block; 
  opacity: 0;
  max-height: 0px;
}

.modal.visible{
    -webkit-transition: all .5s ease; 
    transition: all .5s ease; 
  opacity:1;
  max-height: 10000px;
}


.modal.fade .modal-dialog{ 
  width: 100%; 
    transform: translateY(0);
    margin: 0 auto;
}

.modal-content{ 
  background: #555555;
  color: #ffffff;
  border-radius: 0px;
  border:0px;
  width: 100%;
  height: 100%;
}

.modal-title{

    font-family: 'Quicksand', sans-serif;
    text-transform: uppercase;
    font-weight: normal;
    font-size: 16px; 
}

.modal-body{
  padding: 0px;
    font-family: 'Quicksand', sans-serif;
}

.modal-header{
  background: #222222; 
}

.modal-header button.close{
  margin-top: -25px;
  color: #ffffff;
  opacity: 1;
}
.modal-header button.close i{
  color: #ffffff;
  opacity: .7;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}
.modal-header button.close:hover i{
  color: #ffffff;
  opacity: 1;
    -webkit-transition: all .5s ease; 
    transition: all .5s ease;
}


.modal-body {
  background-color: #000000;
}

#port-modal .modal-body{

  background-image:url(https://media.giphy.com/media/13bA2eQ0StNCAE/giphy.gif);
  background-position: center center;
  background-repeat: no-repeat;
}

.modal-body .screenshot{ 
  background-position-x: center;
  background-position-y: top;
  background-repeat: no-repeat;
  position: relative;
  background-size: cover;
    -webkit-transition: background-position-y 5s ease; 
    transition: background-position-y 5s ease;
}
}

.modal-body .screenshot.scroller{
  background-position-y: bottom !important;
    -webkit-transition: background-position-y 5s ease; 
    transition: background-position-y 5s ease;

}


.modal-body .description-info {
  background-color: #8bc600;
  padding: 15px;
  position: absolute;
  bottom: 15px;
  left: 0px;  
  width: 100%;
}
.modal.visible .modal-body .description-info.closed{
    -webkit-transition: all 1s ease-out; 
    transition: all 1s ease-out;  
    max-height: 0;
}


.modal.visible .modal-body .description-info{
    -webkit-transition: all 1s ease-out; 
    transition: all 1s ease-out;  
    max-height: 400px;
}


.modal-body .description-info p{
  font-size: 14px;
}


.vcenter{
  position: relative;
  top: 50%;
  transform:translateY(-50%);
}

#title-modal .modal-body{
  background: #232323;
}

#title-modal .modal-body h6{
  font-size: 36px;
  font-family: 'Monoton';
  letter-spacing: 2px;
}
#title-modal .modal-body p{
  
}

#title-modal .modal-header{
  border:0px; 
  background: #232323;
}
#title-modal .modal-header button.close{
  margin-top: 0px;
}


.port-toggle{

  position: absolute;
  top: -30px; 
  left: 0px;
  background: #8bc600; 
  padding: 5px 10px;
  text-align: center;
  cursor: pointer;
  cursor: hand;
}

#open-port i{

  color: #232323;
    -webkit-transition: color .3s ease; 
    transition: color .3s ease; 
}

#open-port:hover i{ 
    -webkit-transition: color .3s ease; 
    transition: color .3s ease; 
  color: #ffffff; 
}

#open-port,
.closed #close-port{ 
  max-height: 0;
    -webkit-transition: max-height .5s ease; 
    transition:  max-height .5s ease; 
}

#open-port i,
.closed #close-port i{
    opacity: 0;
    -webkit-transition: opacity 2s ease; 
    transition: opacity 2s ease; 
}


.closed #open-port,
#close-port{  
  max-height: 60px;
    -webkit-transition:  max-height .5s ease; 
    transition:  max-height .5s ease;  
}
.closed #open-port i,
#close-port i{  
  opacity: 1;
    -webkit-transition: opacity 2s ease; 
    transition: opacity 2s ease;  
}

#portfolio-wrap{
  position: fixed;
  height: 100%;
  overflow-x:hidden;
  overflow-y: auto;
  width: 100%;
  left: 100%;
  top:0px;
  z-index: 99999999999;
    -webkit-transition: all 1s ease; 
    transition: all 1s ease;  
}

#portfolio-wrap.show{ 
  left: 0%; 
    -webkit-transition: all .7s ease; 
    transition: all .7s ease;  
}



@media only screen and (max-width: 994px) {


  .modal-body .description-info{ 
    max-width: 100%;
  }
      
  #hero svg{
    position: fixed;
    top:0px;
    left: 0px;
  }


  #hero .hero-inner {
      position: absolute;
      top: 0%;
      transform: translateY(0%);
      width: 100%;
      z-index: 9999999999;
      margin-top: 120px;
      padding-top: 15px;
      -webkit-transition: background .6s ease-out; 
      transition: background .6s ease-out;  
  }

  #hero .hero-inner.swap{
      position: fixed; 
      background: #555555;
      margin-top: 0;
      -webkit-transition: background .6s ease-out; 
      transition: background .6s ease-out;  
  }

  #hero h1{
    margin-top: 0px;
    font-size: 40px;
    line-height: 42px;
  }

  #hero h1 .changeblock{
    display: inline-block;
    margin-left: 5px;
  }

  #hero h1 .changeblock.swap{ 
      color: #8bc600;
      text-shadow:
      0px 0px 0 #555555,
      0px 0px 0 #555555,
      0px 0px 0 #555555,
      0px 0px 0 #555555;   
      -webkit-transition: all 1s ease-out; 
      transition: all 1s ease-out; 
  }

  #hero h1.swap{
      color: #555555;
      text-shadow:
      -1px -1px 0 #8bc600,
      1px -1px 0 #8bc600,
      -1px 1px 0 #8bc600,
      1px 1px 0 #8bc600;  
  }

  #hero .intro-text {  
    top: 120px;
      transform: translateY(0%);
  }

  #hero .intro-text p{
    display: inline-block;
    max-width: 400px;
  }

  .arrow{
    left: 90%;

  }

  #contact{
    overflow: hidden;
    clear: both;
    padding-top: 120px;
  }

  #contact form{
    margin-top: 60px;
    margin-bottom: 40px;
    padding: 15px;
  }

  #contact form .form-group{
    width: 48%;
    margin-right: 1%;
    display: inline-block;
  }
  #contact form .form-group.message-wrap,
  #contact form .form-group.submit-wrap,
   #contact form .form-group#form-messages{
    width: 98%;
  }

}


@media only screen and (max-width: 994px) {

  #hero h1{ 
    font-size: 24px;
    line-height: 30px; 
    width: 100%;
    text-align: center;
  }


  #hero .intro-text {
    text-align: center;
  }

  #hero .intro-text p{
    font-size: 14px;
    text-align: center;
  }

  #hero h1 .changeblock{ 
    margin-left: 2px;
  }

  .arrow{
    left: 30%;
    margin-top: 50px;
  }

  #contact form{
    margin-top: 0px; 
    margin-bottom: 60px;
  }
  #contact{ 
    padding-top: 60px;
  }



}