/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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
 *
 * 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;
}

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

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

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

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

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

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  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: " ";
  display: table;
}

.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: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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:
   * https://web.archive.org/web/20180815150934/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;
  }
}

/**normalize**/
body {
  margin: 0;
}


/**header and navigation**/

#index header {
  background: rgba(226, 228, 233,.97);
  height: 50px;
  margin-bottom: 100px;
}

header {
  position: relative;
  top: 0;
  width: 100%;
}

header nav {
  position: relative;
  display: inline;
  z-index: 998;
}

header  a#logo {
  margin: 12px 12px 0 12px;
  padding: 0;
  float: left;
  border-radius: 20px;
}

header nav div#menu {
  font-family: 'Lato', sans-serif;
  font-size: 1em;
  position: inherit;
  float: right;
  margin-top: 14px;
  display: inline;
  width: auto;
}

header nav a {
  text-decoration: none;
  font-size: 18px;
  margin: 0px 20px;
  padding: 0 0 8px 0;
  color: black;
}

header nav a:hover {
  color: white;
}

  #hamburger {
    display: none;
}




/* The hero image */
/*.hero-image {*/
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
/*  background-image: url("/img/headerMain.jpg");*/

  /* Set a specific height */
/*  height: 700px;*/

  /* Position and center the image to scale nicely on all screens */
/*  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -999;
}*/


/**begin main content **/

/*
.hero_logo {
  position: relative;
  margin: 0 auto 0 auto;
  max-width: 1000px;
}*/

#personalLogo {
  text-align: right;
  margin: 0px 0px 0px 40px;
  max-width: 30%;
  height: 500px;
  padding: 0;
  display: flex;
  float: right;

}

#personalLogo img {
  width: 300px;

}

/*
#personalLogo  h1 {
font-family: 'Tangerine', cursive;
  font-size: 6em;
  text-align: center;
  line-height: .8em;
  color: #6a8a7b;
  margin: 0px !important;
  padding: 0px !important;

}
#personalLogo  h2 {
  font-family: 'Simonetta', cursive;
  font-weight: normal;
  font-size: 2em;
  text-align: center;
  color: #6a8a7b;
  margin: 0px !important;
  padding: 0px !important;
}



#frontNav {
  text-decoration: none;
  font-size: 18px;
  margin: 40px 20px 60px 20px;
  padding: 0 0 8px 0;
  color: black;
}



/*
#frontNav a:hover {
  color:  #9EBDB1;
}
*/

#frontMenu {
  width: 244px;
  margin: auto;
}

#frontMenu a {
font-family: 'Open Sans Condensed', sans-serif;
  font-size: 1.1em;
  margin: 0 12px 0 0;
  color: #6a8a7b;
  text-decoration: none;
}

#frontMenu a:visited {
font-family: 'Open Sans Condensed', sans-serif;
  font-size: 1.1em;
  margin: 0 12px 0 0;
}

#container {
    margin: auto;
    max-width: 1000px;
}


#galleryBox {
  display: inline;
  max-width: 60%;
}

#homeGallery {
  float: left;
  display: flex;
  flex-flow: wrap;
  max-width: 65%;
  margin: 0px auto;

}

#homeGallery img {
  display: block;
  flex: 1;
  max-width: 46%;
  margin: 8px 8px;
}

/**footer**/

footer {
  padding: 14px 0 14px 0 ;
  margin: 40px 0 0 0;
  background: rgba(226, 228, 233,.97);
  width: 100%;

}

#footerInfo {
  width: 350px;
  margin: auto;
}

#footerInfo > * {
  text-align: center;
}

#footerInfo h2 {
  font-family: 'Lato', sans-serif;
  color: #74BA3D;
  font-size: 1.2em;
  margin: 0;
  font-weight: normal;
}

#footerInfo img {
  display: inline-block;
  text-align: center;
  margin: 14px 0 ;
}

#footerInfo img#footerLogo {
  display: block;
  position: relative;
  margin: 14px auto 20px auto;
}

#footerInfo p#icons {
  font-size: .8em;
  margin: 14px 0 40px 0;
}

#footerInfo p#icons img {
  padding: 0 7px;
  margin: 0;
}

#footerInfo p {
  font-family: 'Lato', sans-serif;
  font-size: .8em;
  margin: 0px;
}


/**mobile versions */

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

  header nav div#menu {
    width: 100%;
    position: relative;
    top: 0;
    left:-9999px;
    background: rgba(255,255,255,0.99);
    z-index: 997;
    padding: 0;
    margin: 0;
    margin-left:40px;
  }


  header nav #menu a {
    display: block;
    background-color: rgb(255, 255, 255);
    margin: 0 0 0 0;
    padding: 12px;
  }

  header nav #menu a:hover {
      background-color: rgb(201,232,178);
  }

  nav #menu.showMenu {
      left: 0;
  }

  #hamburger {
    display: inline-block;
    cursor: pointer;
    z-index: 999;
    position: relative;
    float: right;
    width: 40px;
    height: 50px;
    top: 5px;
    right: 5px;
    margin-left: 30px;
    padding-left: 40px;
  }

  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 14px;
  }

  .change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
  }
  .change .bar2 {opacity: 0;}
  .change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
  }
 /* Hamburger transform feature */


  #container {
    display: flex;
    flex-flow: row wrap;
    padding: 10px;
    margin: auto;
    max-width: 100%;
  }

  #brand {
    position: absolute;
    max-width: 100%;
    padding-top: 0;
    display: block;
  }

  .highlight {
    flex-flow: row wrap;
  }

  .highlight h3 {
    font-family: 'Lato', sans-serif;
    flex: 1;
    margin: 20px 20px 0 0;
  }

  .highlight img {
    border-radius: 15px;
    flex: 1;
    margin: 0 0 0 0;
    max-width: 403px;
  }

  .highlight  p,
  .highlight h3 {
    max-width: 95vw;
  }
}








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

  .hero-image {
    height: 620px;
  }


  #hamburger {
    padding-left: 0px;
  }

  #logo_box {
    top: 440px;
  }


  #about {
    margin: 20px 20px 0 20px;
  }


  #about img {
    max-width: 280px;
  }

  #container {
    display: flex;
    flex-flow: row wrap;
    padding: 10px;
    margin: auto;
    max-width: 100%;
  }

  #brand {
    max-width: 290px;
    bottom: 5px;
    height: 198px;
  }

  #about h1 {
    font-size: 1.65em;
    margin: 0 0 0 0;
    line-height: 1.2em;
  }

  .highlight img {
    max-width: 280px;
    height: auto;
  }

  #contact {
    margin: 40px auto 0 auto;
    padding: 14px 20px 20px 20px;
    max-width: 100%;
    }
}
