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

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

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





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

/* ==========================================================================
   Custom styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Montserrat&subset=latin-ext');

body
{
	background-image: url("../img/back.jpg");
	background-repeat: repeat;
	background-size: cover;
    
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 12px;
}

ul
{
    list-style: none;
    display: inline-block;
    padding: 0;
    margin: 0;
}

li
{
    float: left;
}

nav
{
    text-align: center;
}

nav.homePageNav {
    margin-top: 50px;
}

#logo
{
    width: 100%;
    background-color: rgba(0, 0, 0, .4);

    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    position: absolute;
    bottom: 50%;
    margin-bottom: -200px;
}

#machines
{
    width: 100%;
    background-color: rgba(0, 0, 0, .4);

    padding-top: 30px;
    padding-bottom: 30px;
	
	margin-top: 20px;
    margin-bottom: 20px;
}

nav ul
{
    height: 30px;
}

nav ul li
{
    height: 30px;
    line-height: 30px;

    border-right: 1px solid white;
    padding-left: 15px;
    padding-right: 15px;
    letter-spacing: 1.4px;
}

nav ul li:last-child
{
    border-right: none;
}

#headerLogo
{
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

#machines .photoswipe-wrapper
{
    width: 1000px;
    margin: auto;
	display: inline-block;
}

#machines .photoswipe-wrapper figure
{
    float: left;
    margin: 10px;

}

footer
{
    height: 80px;
    width: 100%;
}

footer.homePageFooter
{
	position: absolute;
    bottom: 0;
}

footer ul
{
    display: block;
}

footer ul li
{
    width: 60%;
}

footer ul li:first-child, footer ul li:last-child
{
    width: 17%;
}

footer ul li:first-child
{
    text-align: left;
    padding-left: 3%;
    line-height: 80px;
}

footer ul li:last-child
{
    text-align: right;
    padding-right: 3%;
}

#copyright
{
    text-align: center;
    line-height: 57px;
    display: table-cell;
}

.machinesContainer
{
	width: 1000px;
	margin: auto;
}


a:link { color: white; text-decoration: none; }
a:visited { color: white; text-decoration: none; }
a:hover { color: white; text-decoration: underline !important; } 
a:active { color: white; text-decoration: none; }

 /* The Overlay (background) */
.overlay {
  /* Height & width depends on how you want to reveal the overlay (see JS below) */   
  height: 100%;
  width: 0;
  position: fixed; /* Stay in place */
  z-index: 99; /* Sit on top */
  left: 0;
  top: 0;
  background-color: rgb(0,0,0); /* Black fallback color */
  background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
  overflow-x: hidden; /* Disable horizontal scroll */
  transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

/* Position the content inside the overlay */
.overlay-content {
  position: relative;
  top: 25%; /* 25% from the top */
  width: 100%; /* 100% width */
  text-align: center; /* Centered text/links */
  margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
  padding: 8px;
  text-decoration: none;
  font-size: 36px;
  color: #818181;
  display: block; /* Display block instead of inline */
  transition: 0.3s; /* Transition effects on hover (color) */
}

/* When you mouse over the navigation links, change their color */
.overlay a:hover, .overlay a:focus {
  color: #f1f1f1;
}

/* Position the close button (top right corner) */
.overlay .closebtn {
  position: absolute;
  top: 20px;
  right: 45px;
  font-size: 60px;
}

/* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
  .overlay a {font-size: 20px}
  .overlay .closebtn {
    font-size: 40px;
    top: 15px;
    right: 35px;
  }
} 

.hamburger-icon-1 {
  position: absolute;
  left: 15px;
  top: 25px;
  display: none;
  width: 1.625em;
  height: .313em;
  background: #fff;
}

.hamburger-icon-1::before,
.hamburger-icon-1::after {
  content: "";
  position: absolute;
}

.hamburger-icon-1::before,
.hamburger-icon-1::after {
  width: 1.625em;
  height: .313em;
  background: #fff;
}

.hamburger-icon-1::before {
  top: -.625em;
}

.hamburger-icon-1::after {
  bottom: -.625em;
}

/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) {
  .homePageNav
  {
	  display: none;
  }
  
  #logo img
  {
	  width : 80%;
  }
  
  footer li img
  {
	  display: none;
  }
  
  #copyright
  {
	  display: none;
  }
  
  .hideOnDesktop
  {
	  display: initial;
  }
}

/* Extra Small Devices, Phones */ 
@media only screen and (min-width : 480px) {
  .homePageNav
  {
	  display: none;
  }
  
  #logo img
  {
	  width : 80%;
  }
  
  footer li img
  {
	  display: none;
  }
  
  #copyright
  {
	  display: none;
  }
  
  .hideOnDesktop
  {
	  display: initial;
  }
}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {
  .homePageNav
  {
	  display: none;
  }
  
  #logo img
  {
	  width: 80%;
  }
  
  footer li img
  {
	  display: none;
  }
  
  #copyright
  {
	  display: none;
  }
  
  .hideOnDesktop
  {
	  display: initial;
  }
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
  .homePageNav
  {
	  display: block;
  }
  
  #logo img
  {
	  width: initial;
  }
  
  footer li img
  {
	  display: inline-block;
  }
  
  #copyright
  {
	  display: block;
  }
  
  .hideOnDesktop
  {
	  display: none;
  }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {
  .homePageNav
  {
	  display: block;
  }
  
  #logo img
  {
	  width: initial;
  }
  
  footer li img
  {
	  display: inline-block;
  }
  
  #copyright
  {
	  display: block;
  }
  
  .hideOnDesktop
  {
	  display: none;
  }
}
