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

/*
 * What follows is the result of much research on cross-browser styling.
 * Cblueit 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
 *
 * 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;
}

:focus {
outline: 0;
}

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

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html, body{ 
  margin: 0; 
  padding: 0; 
	height: 101%;
}
            
html { 
  background: #ff7171;
  animation-name: colorchange;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

html.rider{ 
  animation-name: colorchange-rider;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}
@keyframes colorchange {
      0%   {background-color: #ff7171;}
      10%   {background-color: #ff7171;}      
      50%  {background-color: #ff2b97} 
      90%   {background-color: #ff7171;}
      100% {background-color: #ff7171}
  }  

@keyframes colorchange-rider {
  0%   {background-color: #e2e2e2;}
  10%   {background-color: #e2e2e2;}     
  50%  {background-color: #cedff3;} 
  90%   {background-color: #e2e2e2;}
  100% {background-color: #e2e2e2;}
}    
  

@keyframes colorchange-text{
  0%   {color: #ff7171;}
  10%   {color: #ff7171;}      
  50%  {color: #ff2b97} 
  90%   {color: #ff7171;}
  100% {color: #ff7171}
}  

  
  
body{
    color:darkblue;
    margin: 0; 
    padding: 0;
    height: 100%;
    font-family:"lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    letter-spacing:.02em;
    overflow-x: hidden;
    max-width: 100%;
    
}            


section {
  flex: 1 0 auto;
}

h1{
  font-size: 85.9vw;
  margin:-80px 0 20px;
  line-height:85%;
  text-transform:uppercase;
  text-align:center;
  font-family:"lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight:700;
  letter-spacing:-75px;
  width: 100%;
  overflow: hidden;
  position: relative;
  left: -120px;
  padding-right: 120px;
}

h1 a{
  color:blue;
  text-decoration:none;
}

h1 a span{
  color:blue;
  text-decoration:none;
}

h1 a:hover span{
  color:#fffd46;
  text-decoration:underline;
}
   
h2{
  text-align:center;
  text-transform:uppercase;
  font-family:"lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight:700;
  font-size:35px;
  margin-top:25px;
  position:fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index:-1;
}  

h2{
  position:relative;
  margin-bottom:-90px;
}

h3{
  font-family:"lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight:700;
  text-transform:uppercase;
  text-align:center;
  margin:50px auto 15px;  
  padding-bottom:10px;
  font-size:15px;
  border-bottom:3px solid darkblue;
}    

h4{
  text-transform:uppercase;
  font-family:"lato", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight:700;
  margin-top:2px;
  margin-bottom:2px;
  text-align:left;
  font-size:15px;
}  

h4#about{
  text-align:center;
  margin:auto;
  max-width:500px;
  line-height:2em;
} 

h4#about.rider{
  max-width:600px;
  padding-top:30px ;
  text-transform:none;
  font-weight:400;
}

h4#about.rider .product{
  text-transform:uppercase;
  font-weight:700;
  font-size:22px;
} 

h4#about.rider .title{
  border-bottom:3px solid darkblue;
  padding-top:8px;
  padding-bottom:8px;
  text-transform:uppercase;
  font-weight:700;
  line-height:41px;
} 

table{
  margin:40px auto;
}   

td{
  padding:5px 30px;
}

img.mainpic{
  width:70%;
  text-align:center;
  display:block;
  margin:auto;
}

/**
 * Vimeo
 */

.vimeo-embed-container{ 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    overflow: hidden; 
    max-width: 100%; 
    height: auto; 
    margin:auto;
}

.vimeo-embed-container iframe, .vimeo-embed-container object, .vimeo-embed-container embed{ 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    
}

#client-container{
  padding-top:35px;
  margin-top:80px;
}

#client-container h3{
  width:600px; 
}

#about-container{
  margin-top:85px;
  padding-top:25px;
}

#about-container h3{
    width:94%; 
}

#about-container img{
  width:40%;
  text-align:center;
  display:block;
  margin:40px auto;
}

#clients{
  text-align:center;
  
}

#clients ul{
  display:inline-block;
  list-style-type:none;
  padding:0;
  margin:20px 15px;
}

.big-button-container{
  display: block;
  margin: 130px 5px 0 5px;
  text-align:center;
}

.big-button-container.rider{
  margin: 80px 5px 0 5px;
}

a.big-button{
  font-size: 35px;
  font-weight:700;
  margin-top: 50px;
  padding: 20px;
  background: darkblue;
  text-decoration:none;
  color: #ff7171;
  animation-name: colorchange-text;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

a.big-button:hover{
  background: blue;
  transition: all 0.4s ease-in-out;
}

footer{
  text-align:center;
  margin-top:60px;
}

footer ul{
  display:inline-block;
  list-style-type:none;
  padding:0;
  margin:20px 15px;
}

footer li, footer li h4{
  display:inline;
}

footer ul.extras{
  position:absolute;
  right:0;
  margin-top:20px;
}

footer ul.navigation li{
  padding:6px 12px;
}

footer ul.navigation li h4{
  font-size:24px;
}

footer a{
  text-decoration:none;
  color:darkblue;
  cursor:pointer;
}

footer a:hover{
  color:blue;
  transition: all 0.4s ease-in-out;
}

footer a.current{
  border-bottom:3px solid darkblue;
}

footer a.current:hover{
  border-bottom:3px solid blue;
}

/*  Lower navigation Extras */



a.contact-bottom{
  display:inline-block;
  padding: 5px;
  font-size: 13px;
  letter-spacing:.075em;
  text-decoration:none;
}

a.social{
  display:inline-block;
  text-decoration:none;
  padding-left:5px;
  font-size:20px;
}

a.social.email-icon{
  display:none;
}

.fa.fa-instagram, .fa.fa-tumblr, .fa.fa-envelope{
  color:darkblue;
  font-size:12px;
}

.fa:hover{
  color:blue;
  transition: all 0.4s ease-in-out;
}

#plus-link{
  font-size:23px;
  vertical-align:-2px;
}


.clear-all{
  clear:both;
}

/*  Animated Plus/Minus */

.closed .vertical {
    transition: all 0.5s ease-in-out;
    transform: rotate(-90deg);
}
.closed .horizontal {
    transition: all 0.5s ease-in-out;
    transform: rotate(-90deg);
    opacity: 1;
}

.opened {
  opacity: 1;
}  
.opened .vertical {
    transition: all 0.5s ease-in-out;
    transform: rotate(90deg);
}
.opened .horizontal {
    transition: all 0.5s ease-in-out;
    transform: rotate(90deg);
    opacity: 0;
}

.circle-plus {
    height: 4em;
    width: 4em;
    font-size: 1em;
    opacity: 1;
    position: relative;
    bottom: -8px;
    z-index:50;
}

.circle-plus .circle {
    position: fixed;
    width: 2.55em;
    height: 2.5em;
    right: 5px; 
    top:5px;
    cursor:pointer;
    
}
.circle-plus .circle .horizontal {
    position: absolute;
    background-color: darkblue;
    width: 30px;
    height: 5px;
    left: 50%;
    margin-left: -15px;
    top: 50%;
    margin-top: -2.5px;
}
.circle-plus .circle .vertical {
    position: absolute;
    background-color:darkblue;
    width: 5px;
    height: 30px;
    left: 50%;
    margin-left: -2.5px;
    top: 50%;
    margin-top: -15px;
}

.circle-plus .circle:hover .horizontal, .circle-plus .circle:hover .vertical{
  background-color:blue;
  transition: all 0.4s ease-in-out;
}

.circle-plus .plus-content{
  position:fixed;
  position: fixed;
  right: -315px;
  top: 12px;
  transition-property: right;
  transition-duration: .5s;
}

.circle-plus.opened .plus-content{
  right:50px;
}


.plus-content a.navlink-top{
  background:darkblue;
  display:inline-block;
  padding: 5px;
  font-size: 13px;
  letter-spacing:.075em;
  text-decoration:none;
  color: #ff7171;
  animation-name: colorchange-text;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

.plus-content a.navlink-top:hover{
  background-color:blue;
  transition: all 0.4s ease-in-out;
}



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

@media only screen and (max-width: 800px) {
  h1{
    font-size: 90.9vw;
    margin:-60px 0 15px;
    line-height:85%;
    letter-spacing:-50px;
    left: -80px;
    padding-right: 80px;
    
  }
  
  h2, h2.scrolled{
    position:relative;
    margin:40px auto -35px;
  }
  
  img{
    width:100%
  }
  
  h3{
    width:100% !important;
  }
  
  #clients ul{
    display:block;
    margin:0 15px;
  }
  #clients li{
    margin-left:10px;
  }
  
  #about-container{
    margin-top:15px;
    padding-top:20px;
  }
  
  h4#about{
    text-align:left;
    margin-left:25px;
  }
  
  .big-button-container{
    margin-top:110px;
  }
  
  #client-container{
    margin-top:55px;
    padding-top:18px;
  }
  
  footer{
    text-align:left;
  }
  
  
  footer ul, footer ul.extras{
    position: relative;
    clear: both;
    float: left;
    margin: 10px 15px;
  }
  
  footer ul.navigation li{
    padding:6px;
  }
  
  footer ul.navigation li h4{
    font-size:20px;
  }
  
  a.social i.fa{
    font-size:23px;
  }
  
  footer a:hover, .fa:hover{
    color:darkblue;
  }
  
  footer a.current:hover{
    border-bottom:2px solid darkblue;
  }
  
  .circle-plus .circle:hover .horizontal, .circle-plus .circle:hover .vertical, .plus-content a.navlink-top:hover, .plus-content a.contact-bottom:hover, .circle-plus-bottom .circle:hover .horizontal, .circle-plus-bottom .circle:hover .vertical{
    background-color:darkblue;
  }
  
  .vimeo-embed-container{ 
      max-width: 100%; 
  }
  
}

@media only screen and (max-width: 370px) {
  .plus-content a.navlink-top {
      padding: 3px;
      font-size: 12px;
  }
}


/* ==========================================================================
   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);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    blue-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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    blue-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 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 {
        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 {
        blue-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;
    }
}
