/*! 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 {
    min-width: 440px;
    max-width: 1920px;
    box-sizing: border-box;
    font-size: 62.5%;
    font-family: 'Source Sans Pro', sans-serif;
}

*, *:before, *:after {
    box-sizing: inherit;
}                                                                              

body {
    font: 1.6rem/1.5 'Source Sans Pro', sans-serif;
    background-color: rgb(248, 250, 250);
    margin: 0 auto;
}  

header, footer {
    background-color: rgba(10, 10, 10, 0.5);  
    padding: 2rem ; 
    border-bottom: 2px solid black;
    border-top: 2px solid black;
    width: 100%;
}

main {
    width: 90%;
    margin: 0 auto;
}

img {
    width: 90%;
}

span {
    font-weight: bold;
}

footer .social-media {
    width: 25%;
} 
  
  
  /*
   * 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
     ========================================================================== */

/* header */

header {
    position: relative;
}

header h1 {
    margin: 0;
    font-size: 5rem;
    line-height: 1;
}

header .flex {
    display: flex;
    justify-content: space-between;
    margin: 0;
}

.fun {
    width: 80%;
    font-size: 2rem;
    line-height: 1;
    font-style: italic;
    color: rgba(10, 10, 10, 0.75);
}

header .logo img {
    padding: 0;
    text-align: right;
    position: absolute;
    bottom: 10%;
    right: 2%;
    width: 50%;
}

/* nav  */

.toggle-icon {
    position: absolute;
    top: 3rem;
    right: 2rem;
}
.toggle-icon span {
    width: 3.5rem;
    height: 4px;
    margin-bottom: 6px;
    border-radius: 100px;
    background-color: black;
    display: block;    
  }  

 .menu-links {
     padding-left: 0;     
 } 
  
  .menu-links li {
    line-height: 50px;
    text-align: center;
    list-style: none; 
    background-color: rgb(248, 250, 250); 
    border: 1px solid black;

    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#ffffff+37,707070+99&0.33+0,0.5+100 */
    /* background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(255,255,255,.76) 37%, rgba(112,112,112,0.5) 99%, rgba(112,112,112,0.5) 100%); FF3.6-15 */
    /* background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.76) 37%,rgba(112,112,112,0.5) 99%,rgba(112,112,112,0.5) 100%); Chrome10-25,Safari5.1-6 */
    /* background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(255,255,255,0.76) 37%,rgba(112,112,112,0.5) 99%,rgba(112,112,112,0.5) 100%); W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    /* filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#54ffffff', endColorstr='#80707070',GradientType=0 ); IE6-9 */
  }
  
  .menu-links a {
    display: block;
    color: black;
    text-decoration: none;       
  }
  
  /* this is how you hide the menu nav */
  header nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height .7s ease-in-out;
    /* The code below will have the nav dropdown over the content */
    position: absolute;
    background-color: rgba(10, 10, 10, .25);
    text-align: center;
    left: 0;
    bottom: 0; /* this makes the menu transition UP from the bottom of the header */
    width: 100%;
  }
  
  .show-nav {
    max-height: 24rem;
  }


/* main */

main {    
    display: flex;
    flex-direction: column;  
}

section {
  background-color: rgba(10, 10, 10, 0.05);

}


/* banner */

.banner .top img {
    width: 100%;
    padding: 10px 0;
}

/* .banner .aside img {
    max-width: 50%;
} */

/* .banner .aside {
    text-align: right;
} */

/* toggleLink */
.toggleLink {
  color:purple;
  text-decoration:underline;
  padding-left: 5rem;
}

.toggleLink:hover {
  cursor:pointer
}

.elaboration {
  display:none
}

/* .main-faq img {
  width: 20%;
} */

.main-faq .images {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.question span p {
  font-weight: 400;
}
.question a {
  text-decoration: none;
  color: purple;
}


/* footer */
footer {
    position: relative;    
}

footer .flex {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

footer .flex div {
    width: 50%;
}

footer .flex div:nth-child(2) {
    text-align: right;
}

footer .flex-2 {
    display: flex;
    justify-content: space-between;
}

footer .flex-2 .fun {
    width: 75%;
}

footer .flex .social-media {
    position: absolute;
    bottom: 2rem;
    right: 2.5%;  
    text-align: right;   
}

footer .flex .social-media img {
    width: 50%;
}

    
    
  
    
  
    
  
  /* ==========================================================================
     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: 711px) {
      /* Style adjustments for viewports that meet the condition */
   
    /* header */

    header {
        height: 25rem;
    }
    header .flex {
        width: 95%;
        font-size: 2.4rem;
    }

    header h1 {
        font-size: 7.5rem;
        line-height: 2;
    }

    header .logo img {
        padding: 0;
        text-align: right;
        position: absolute;
        top: 7rem;
        right: 2rem;
        max-width: 20%;
    } 

    header .fun {
        display: flex;
        justify-content: space-between;  
        align-content: flex-end;      
        width: 95%;
        position: absolute;
        top: 0;
    }

    /* nav */

    .toggle-icon {
        display: none;
    }

        
    header nav {
        max-height: 80px;
        width: auto;  
        right: 0;
        bottom: 0;
        left: 0;              
    }
    
    .menu-links,
    header {
        display: flex;
        justify-content: center;
        align-content: center;
    }
    
    .menu-links li {
        padding: 0 3rem;
        margin: 0 2rem 3rem 2rem;    
    }
    
    .menu-links li:hover {
        background-color: rgb(145, 152, 153);
        border-radius: 8px;
    }
      
          
    /* main */
    
    .main {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;        
    }   
    
    .main section {
        width: 45%;
        margin: 0 2.5% 5% 2.5%;
        padding-left: 2.5%;
    }

    .main-faq img {
        width: 40%;
    } 


    /* banner */

    .banner {
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
        width: 95%;
        margin: 2.5%;
    }
    
    .banner .top img {
        width: 100%;
        padding: 10px 0;
    }
    
    .banner .aside {
        text-align: left;
    }

    .banner .aside img {
        max-width: 100%;
        padding: 3% 0 0 5%;
    }

    /* footer */

    footer {
        display: flex;
        flex-direction: column;
        position: unset;
    }

    footer .flex {
        display: flex;
        justify-content: space-between;
        /* text-align: center;   */
        width: 100%;      
    }

    footer .flex div {
        width: 33%;
    }

    footer .flex div:nth-child(2) h4 {
        text-align: center;
    }
    
    footer .flex .social-media {
        position: unset;        
        text-align: right;   
    }
    
    footer .flex .social-media img {        
        max-width: 100px;
    }  

    footer .flex-2 .fun {
        width: 100%;
    }

    footer .fun {
        display: flex;
        justify-content: space-between;
        text-align: center;
        width: 100%;
    }  
    
    footer .fun p {
        padding: 0 1rem;
    }
   
  
  }
  
  
  @media only screen and (min-width: 1070px) {
    /* Style adjustments for viewports that meet the condition */

    
    header h1 {
        font-size: 8.5rem;
        line-height: 2;
    }    

    header .flex .logo {        
        text-align: right;
        width: 25%;
    }

    
    /* main */

    main {
        position: relative;
        width: 80%;
        margin: 0 auto;
    }

    .banner {
        margin: 0 auto;
    }

    .banner-text {
      padding-left: 5%;
      padding-right: 5%;
    }

    .intro, .final {
      padding-left: 10%;
      padding-right: 5%;
    }

    /* .aside {
        width: 20%;
        position: absolute;
        right: 0;
        top: 150px;
    } */
   
    

    .main-faq {
      font-size: 2.0rem;
    }

    .main-faq img {
        width: 20%;
    }

    .main-faq .images {
      display: flex;
      justify-content: center;
    }

    .main-faq h2 {
      text-align: center;
      text-decoration: underline;
      margin-bottom: 5rem;
    }
    
    .main-faq h3{
      text-align: center;
    }

    .main section {        
        width: 95%;
        margin: 0 2.5% 2.5% 2.5%;
        border-right: 2px dotted black;
        border-left:  2px dotted black;
        padding: 0 2.5% 0 2.5%;
        font-size: 2.0rem;
    }

    .main section h2 {
      padding-left: 2rem;
    }
    
    .main section h3 {
      padding-left: 1%;
    }

    .main section p {
      padding: 0 1% 0 1%;
    }

    /* .main section img {
      max-width: 50rem;
      padding-top: 2.5rem;
    } */
    .main section img {
      max-width: 100%;
      padding-bottom: 5%;
    }

    /* .main section .flex div img {
      width: 100rem;
    } */

    .main .text {
        width: 45%;
    }

    .main .index {
      padding: 0 10% 0 10%;
      font-size: 2.0rem;
    }

    .main .train {
      padding: 0 5% 0 5%;
      font-size: 2.0rem;
    }

    main .banner-text {
      padding: 0 5% 5% 5%;
      font-size: 2.0rem;
    }

    .training {
      line-height: 3.0;
    }

    .recipe {
      width: 100%;      
      
    }

    section .flex,
    section .flex-reverse {
        display: flex;
        justify-content: space-between;
        padding-right: 2rem;
        padding-left: 2rem;
    }

    section .flex-reverse {
        flex-direction: row-reverse;
    }

    section .flex-reverse .image {
        text-align: right;
    }

    section div div {
        width: 50%;
    }

    

    

    /* footer */

    
  }

  @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;
    }
  }
  
  