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

/* main.css 3.0.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: #000;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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
 */

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

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

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



/*My stuff*/


@font-face { 
  font-family: Mattone; 
  font-weight: normal;
  src:  url('fonts/mattone/Mattone-Regular.otf') format('opentype'),
        url('fonts/mattone/Mattone-Regular.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/mattone/Mattone-Regular.woff') format('woff'), /* Pretty Modern Browsers */; 
} 
@font-face { 
  font-family: Mattone; 
  font-weight: bold; 
  src:  url('fonts/mattone/Mattone-Bold.otf') format('opentype'),
        url('fonts/mattone/Mattone-Bold.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/mattone/Mattone-Bold.woff') format('woff'), /* Pretty Modern Browsers */; 
}
@font-face { 
  font-family: Mattone; 
  font-weight: bolder; 
  src:  url('fonts/mattone/Mattone-Black.otf') format('opentype'),
        url('fonts/mattone/Mattone-Black.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/mattone/Mattone-Black.woff') format('woff'), /* Pretty Modern Browsers */; 
}

@font-face { 
  font-family: ApfelGrotezk; 
  font-weight: 400;
  src:  url('fonts/apfel/ApfelGrotezk-Regular.otf') format('opentype'),
        url('fonts/apfel/ApfelGrotezk-Regular.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/apfel/ApfelGrotezk-Regular.woff') format('woff'), /* Pretty Modern Browsers */; 
} 
@font-face { 
  font-family: ApfelGrotezk; 
  font-weight: 700; 
  src:  url('fonts/apfel/ApfelGrotezk-Fett.otf') format('opentype'),
        url('fonts/apfel/ApfelGrotezk-Fett.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/apfel/ApfelGrotezk-Fett.woff') format('woff'), /* Pretty Modern Browsers */; 
}
@font-face { 
  font-family: ApfelGrotezk; 
  font-weight: 900; 
  src:  url('fonts/apfel/ApfelGrotezk-Satt.otf') format('opentype'),
        url('fonts/apfel/ApfelGrotezk-Satt.woff2') format('woff2'), /* Super Modern Browsers */
        url('fonts/apfel/ApfelGrotezk-Satt.woff') format('woff'), /* Pretty Modern Browsers */; 
}

/* Text Flipper */
.container {
    padding: 0.1rem;
    padding-left: 2rem;
}

.sentence {
    font-size: 3rem;
    font-family: ApfelGrotezk, Fallback, sans-serif;
    font-weight: 900;
}

h1{
  font-family: ApfelGrotezk, Fallback, sans-serif;
  font-weight: 900;
}

.word-flipper {
    display: inline-block;
    position: relative;
    min-width: 800px;
    height: 60px;
    vertical-align: bottom;
    overflow: hidden;
}

.word {
    position: absolute;
    left: 0;
    top: 0.8rem;
    animation: flip 12s infinite;
    font-weight: 400;
    font-size: 1.4rem;
    opacity: 0;
}

.word:nth-child(1) { animation-delay: 0s; }
.word:nth-child(2) { animation-delay: 3s; }
.word:nth-child(3) { animation-delay: 6s; }
.word:nth-child(4) { animation-delay: 9s; }

@keyframes flip {
  0% {
      opacity: 0;
      transform: translateY(30px);
  }
  5% {
      opacity: 1;
      transform: translateY(0);
  }
  18% {
      opacity: 1;
      transform: translateY(0);
  }
  23% {
      opacity: 0;
      transform: translateY(-30px);
  }
  100% {
      opacity: 0;
      transform: translateY(-60px);
  }
}

/* HAMBURGER */

label .menu {
  position: absolute;
  right: -100px;
  top: -100px;
  z-index: 100;
  width: 200px;
  height: 200px;
  background: #fff;
  border-radius: 50% 50% 50% 50%;
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  box-shadow: 0 0 0 0 #FFF, 0 0 0 0 #FFF;
  cursor: pointer;
  
}

label .hamburger {
  position: absolute;
  top: 135px;
  left: 50px;
  width: 30px;
  height: 2px;
  background: #69D2e7;
  display: block;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

label .hamburger:after, label .hamburger:before {
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  background: #69d2e7;
}

label .hamburger:before { top: -10px; }

label .hamburger:after { bottom: -10px; }

label input { display: none; }

label input:checked + .menu {
  box-shadow: 0 0 0 100vw #FFF, 0 0 0 100vh #FFF;
  border-radius: 0;
  
}

label input:checked + .menu .hamburger {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  
}

label input:checked + .menu .hamburger:after {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  bottom: 0;
  
}

label input:checked + .menu .hamburger:before {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  top: 0;
  
}

label input:checked + .menu + ul { opacity: 1; }

label ul {
  z-index: 200;
  position: absolute;
  top: 6rem;
  right: 2rem;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  -webkit-transition: .25s 0s ease-in-out;
  transition: .25s 0s ease-in-out;
  list-style-type: none;
}

label a {
  margin-bottom: 1em;
  display: block;
  color: #f38630;
  text-decoration: none;
  
}


/*photogrid*/

#photos {
   /* Prevent vertical gaps */
   line-height: 0;
   width: 100%;
   margin: 0 auto;
   
   -webkit-column-count: 4;
   -webkit-column-gap:   0px;
   -moz-column-count:    4;
   -moz-column-gap:      0px;
   column-count:         4;
   column-gap:           0px;
}

#photos img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
}


@media (max-width: 1000px) {
  #photos {
  -moz-column-count:    3;
  -webkit-column-count: 3;
  column-count:         3;
  }
}
@media (max-width: 800px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  }
}
@media (max-width: 400px) {
  #photos {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }
}

.photogrid {
  max-width: 1200px;
  margin: 0 auto;
}

.photo-link {
  height:3rem;
  /*background-color: #f38630;*/
  align-content: center;
  color: #fff;
  font-family: ApfelGrotezk; 
  font-weight: 400;
  font-style: normal;
  padding: 1rem;
}

main {
  width: 100%;
  box-sizing: border-box;
}

header {
  font-family: ApfelGrotezk, Fallback, sans-serif;
  font-weight: 900;
  background-color: #69d2e7;
}

body {
  background-color: #f38630;
  margin: 0;
  padding: 0;
}

footer {
  background-color: #f38630;
}

/*Pop-Up Pages*/
.box {
    width: 50%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 35px;
    border: 2px solid #fff;
    border-radius: 20px/50px;
    background-clip: padding-box;
    text-align: center;
}

.button {
    transition: all 0.3s ease-out;
}

.popup {
    margin: 70px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    width: 70%;
    position: relative;
    transition: all 5s ease-in-out;
}

.popup h2 {
    margin-top: 0;
    color: #333;
    font-family: Tahoma, Arial, sans-serif;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.popup .close:hover {
    color: orange;
}

.popup .content {
    max-height: 30%;
    overflow: auto;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* These are the rules you are looking for. */
.overlay {
    transition: opacity 500ms;
    opacity: 1;
    pointer-events: all;
}
.overlay:target {
    opacity: 0;
    pointer-events: none;
}