/*! HTML5 Boilerplate v9.0.0-RC1 | 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: #222;
    font-size: 1em;
    line-height: 1.4;
    /* iPhone background cover fix */
    height: 100vh;
    min-height: 100%;
  }
  
  /*
   * 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;
  }

  .roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  
  .roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
  }
  
  .roboto-regular-italic {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: italic;
  }

  /* ==========================================================================
     Behapomoc Style
     ========================================================================== */
  body {
    --main-bg-color: #0076ce;
    --main-bg-color-dark: #005a9e;
    --main-fg-color: #ffb81c;
    --section-color: #6ba2d7;

    margin: 0;
    padding: 0;
    background: var(--section-color);
    color: #000;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
  }
  h1,h2,h3,h4,h5,h6 {
    color: var(--main-fg-color);
  }
  h2 { font-size: 36px; }

  .site-header {
    background: var(--main-bg-color);
    color: #fff;
    padding: 0;
    width: 100%;
    overflow: hidden;
  }

  .site-header .logo {
    display: flex;
    border-bottom: 2px solid var(--main-fg-color);
    justify-content: space-between;
    height: 100px;
  }

  .banner-image {
    background: var(--main-bg-color) url('/img/glass-banner.jpg') top center no-repeat;
    background-size: cover;
    width: 100%;
    height: 450px;
  }

  #sticky-header {
    position: fixed;
    width: 100%;
    background: var(--main-bg-color);
    height: 100px;
    box-shadow: 2px 2px 2px #5555;
    display: none;
    z-index: 100;
    border-bottom: 2px solid var(--main-fg-color);
  }
  #sticky-header.sticky-header-visible {
    display: flex;
    justify-content: space-between;
  }
  #sticky-header > div,
  .logo > div {
    flex: 1 0 80%;
    display: flex;
    align-items: center;
  }
  #sticky-header > div > img,
  .logo > div > img {
    height: auto;
    width: auto;
    max-width: 100%;
  }
  #sticky-header > nav,
  .logo > nav {
    flex: 1 0 20%;
  }

  section {
    padding: 2em 0;
  }

  section:nth-of-type(2n+1) {
    background: #fff;
  }

  .section-wrapper {
    max-width: 1100px;
    margin: auto;
    padding: 0 2em;
  }
  section p,
  section li {
    line-height: 32px;
  }

  div.break {
    background:url('/img/break-tools.jpg') no-repeat fixed top center;
    background-size: cover;
    -webkit-background-size: cover; /* for safari */
    height: 400px;
    min-height: 400px;
    max-height: 100vh;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
  }

  .logo p {
    text-align: right;
    color: var(--main-fg-color);
    font-variant: small-caps;
    font-weight: bold;
    font-size: 48px;
    line-height: 16px;
    padding-right: 10px;
  }

  .menu p {
    color: #fff;
    font-size: 40px;
    line-height: 22px;
    padding-left: 15px;
  }
  .main-menu {
    display: flex;
    justify-content: flex-end;
    padding: 25px 25px 0 0;
  }
  .main-menu a {
    padding: 10px 20px;
    height: 30px;
  }
  .main-menu a:link,
  .main-menu a:visited {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 18px;
  }
  .main-menu a:hover {
    color: var(--main-fg-color);
    box-shadow: #ffb81c 1px 1px 10px;
  }

  .gdzie-dzialam {
    display: block;
  }
  .gdzie-dzialam img {
    max-width: 100%;
  }

  .site-footer {
    background: transparent;
    position: relative;
  }
  .site-footer .flex {
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-end;
  }
  .footer-logo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 1 0 90%;
  }
  .footer-logo .logo-container {
    background: var(--main-bg-color);
    height: 150px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0;
  }
  .footer-logo .logo-container img {
    max-width: 100%;
  }
  .contact-info {
    background: var(--main-fg-color);
    color: #222;
    height: 200px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 150%;
    font-weight: bold;
    position: relative;
    bottom: 0;
    right: 0;
    width: 100%;
  }
  .contact-info p {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 20px;
  }
  .contact-info p .icon {
    margin-right: 10px;
  }
  .contact-info a:link,
  .contact-info a:visited {
    color: #222;
    text-decoration: none;
  }

  .flex {
    display: flex;
  }
  .flex.v-center {
    align-items: center;
  }

  .text-center {
    text-align: center;
  }
  .text-justify {
    text-align: justify;
  }

  .wordcloud {
    background: transparent url(/img/wordcloud.webp) center center no-repeat;
    width: 300px;
    height: 430px;
    flex: 1 0 50%;
    background-size: cover;
    border-left: 1px solid var(--main-bg-color);
  }

  .grid {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin: 30px auto;
    padding: 0;
  }
  .grid > li {
    display: block;
    text-align: center;
    flex: 1 0 30%;
    padding: 0 10px 20px;
  }
  .grid img {
    display: block;
    margin: auto;
  }

  @supports (-webkit-touch-callout: none) {
    /* Iphone fix */
    div.break {
      background-attachment: scroll;
      background-size: auto 100vh;
      background-position: top center;
    }
  }

/* =========================================

   MenuToggle
   https://codepen.io/erikterwan/pen/EVzeRP

   ========================================= */

  .menuToggle
  {
    display: block;
    position: relative;
    top: 15px;
    right: 15px;
    
    z-index: 1;
    
    -webkit-user-select: none;
    user-select: none;
  }

  .menuToggle a
  {
    text-decoration: none;
    
    transition: color 0.3s ease;
  }

  .menuToggle input
  {
    display: block;
    width: 40px;
    height: 32px;
    position: absolute;
    top: -7px;
    left: -5px;
    
    cursor: pointer;
    
    opacity: 0; /* hide this */
    z-index: 2; /* and place it over the hamburger */
    
    -webkit-touch-callout: none;
  }

  /*
  * Just a quick hamburger
  */
  .menuToggle span
  {
    display: block;
    width: 33px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    
    background: #cdcdcd;
    border-radius: 3px;
    
    z-index: 1;
    
    transform-origin: 4px 0px;
    
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
  }

  .menuToggle span:first-child
  {
    transform-origin: 0% 0%;
  }

  .menuToggle span:nth-last-child(2)
  {
    transform-origin: 0% 100%;
  }

  /* 
  * Transform all the slices of hamburger
  * into a crossmark.
  */
  .menuToggle input:checked ~ span
  {
    opacity: 1;
    transform: rotate(45deg) translate(-2px, -1px);
    background: #232323;
  }

  /*
  * But let's hide the middle one.
  */
  .menuToggle input:checked ~ span:nth-last-child(3)
  {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  /*
  * Ohyeah and the last one should go the other direction
  */
  .menuToggle input:checked ~ span:nth-last-child(2)
  {
    transform: rotate(-45deg) translate(0, -1px);
  }

  /*
  * Make this absolute positioned
  * at the top left of the screen
  */
  .menu
  {
    position: absolute;
    width: 300px;
    margin: -100px 0 0 -300px;
    padding: 50px;
    padding-top: 125px;
    
    background: var(--main-bg-color);
    list-style-type: none;
    -webkit-font-smoothing: antialiased;
    /* to stop flickering of text in safari */
    
    transform-origin: 0% 0%;
    transform: translate(100%, 0);
    
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
  }

  .menu li
  {
    padding: 10px 0;
    font-size: 22px;
  }

  /*
  * And let's slide it in from the left
  */
  .menuToggle input:checked ~ ul
  {
    transform: none;
  }

  /* ==========================================================================
     EXAMPLE Media Queries for Responsive Design.
     These examples override the primary ('mobile first') styles.
     Modify as content requires.
     ========================================================================== */
  
  @media only screen and (min-width: 1200px) {
    /* Style adjustments for viewports that meet the condition */
    * {
      
    }
    .menu {
      display: flex;
      margin: 0;
      transform: none;
      position: relative;
      top: 0;
      right: 0;
      width: 100%;
      padding: 0;
    }
    .menuToggle {
      top:0;
      right: 0;
    }
    .menuToggle > span,
    .menuToggle > input {
      display: none;
    }
    #sticky-header > div,
    .logo > div {
      flex: 1 1 500px;
    }
    #sticky-header > nav,
    .logo > nav {
      flex: 1 0 auto;
    }
    .gdzie-dzialam {
      display: flex;
    }
    .contact-info {
      position: absolute;
      background: transparent url('/img/footer.png');
      width: 60%;
    }
    .footer-logo .logo-container {
      justify-content: flex-start;
      padding-left: 50px;
    }
  }
  
  @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;
    }
  }