/*! 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;
  /* background-color: rgba(51, 51, 51, .75); */
  font-size: 62.5%;  
  font-family: 'Source Sans Pro', sans-serif;
  /* color: rgb(255, 255, 255);  */
  color: #000;
}

body {
  font: 1.6rem/1.5 'Source Sans Pro', sans-serif;
  background-color: whitesmoke;
}


header {
  background-color: rgba(51, 51, 51, .75);
  /* padding: 2rem ;  */
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  width: 100%;
} 

footer {
  background-color: rgba(51, 51, 51, .75);
  padding: 1rem ; 
  border-bottom: 2px solid black;
  border-top: 2px solid black;
  width: 100%;
}

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

img {
  width: 100%;
}

h1, h2, h3, h4 {
  color: rgb(0, 66, 128);  
  text-shadow: white 0 0 10px;
}

ul {
  padding-bottom: 2rem;
}

li {
  list-style: none;
}

a {  
  color: rgb(0, 66, 128);  
  /* font-weight: bold; */
}

a:hover {
  color: green;
  background-color: rgba(0, 66, 128, .25);
  padding: .5rem;
}

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

   /* ************ MOBILE VIEWPORT************** */
   
/* HEADER */

header {
  position: relative; 
  margin: 0 auto;   
}

header .hdr-banner {
  background-image: url(../img/header-banner.jpeg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;  
  margin-top: 2.5%;
  padding: 30% 0;    
  border-top: 2px solid black;
}

header h1 {  
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.5;  
}

header .flex {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;  
  padding: 2rem;
} 

header .fb {
  width: 10%;  
  position: absolute;
  right: 8rem;  
}

/* NAV */

.toggle-icon {
  position: absolute;
  right: 2.5rem;
  top: 3rem;
}

.toggle-icon span {
  width: 3.5rem;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 100px;
  background-color: rgb(0, 66, 128); 
  display: block;     
}  

.menu-links {
   padding-left: 0;     
} 

.menu-links li {
  width: 100%;
  line-height: 70px;
  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,.5) 0%, rgba(255,255,255,.86) 47%, 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,.5) 0%,rgba(255,255,255,0.86) 47%,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,.5) 0%,rgba(255,255,255,0.86) 47%,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 */
}

/* To hide the Menu */

.menu-links a {
  width: 100%;
  display: block;
  color: rgb(0, 66, 128);
  font-size: 2rem;
  font-weight: bold;
  text-decoration: none;       
}

.menu-links li a:hover {  
  color: green;
  padding: 0;
}

/* this is how you hide the menu nav */
.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;
  top: 7.5rem; /* this makes the menu transition UP from the bottom of the header */
  width: 100%;
}

.show-nav {
  max-height: 25rem;
}

main .container {
  padding: 1rem;
}

section {
  min-height: auto;
  /* background-color: rgba(0, 66, 128,.25); */
  /* margin: 5% auto; */
  /* text-shadow: rgb(4, 79, 109) 5px 0 15px; */
  padding: 5%;  
  border-bottom: 2px solid #000; 
  font-size: 1.2rem; 
}

.s-one-info, .s-contact {
  background-color: rgba(51, 51, 51, .25);  
}

.one, .three, .five {
  background-color: rgba(51, 51, 51, .25);
}

p span {
  font-weight: bold;
  text-decoration-line: underline;
  padding-bottom: 1rem;
}

.support p {
  padding: 1rem;
}

.supporters li {
  padding-bottom: 1rem;
}

.supporters p span {
  padding-left: 1rem;
}

.s-contact h3 {
  text-align: center;
}

.back {
  text-align: center;
  padding: 1rem;
  font-weight: bold;
}

footer {
  position: relative; 
  margin: 0 auto;  
}

footer a {  
  color: black;  
}

footer .fb {
  position: absolute;
  width: 15%;
  top: 3rem;
  right: 2.5rem;  
}

footer span {
  padding-left: 2rem;
  color: rgba(0, 0, 0, .5);
  font-style: italic;  
}

footer .ref {
  text-align: center;  
}

.ref a {
  color: rgba(0, 0, 0, .5);
}




/* ==========================================================================
   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 .flex {
    width: 95%;  
    height: 12rem;    
  }

  header h1 {
    font-size: 5rem;
    line-height: 1.5;
  }

  header .fb {
    right: 2rem;  
  }

  .toggle-icon {
    display: none;
  }  

  .nav {
    max-height: 10rem;
    margin: 1rem 0;    
    right: 0;
    bottom: 0;
    left: 0;           
  }    

  .nav ul {
    display: flex;
    justify-content: center;
    align-content: center;    
    margin: 0 auto;
  }

  /* .menu-links li {
      padding: 0 1rem;
      margin: 0.5rem 2rem;    
  } */
  
  .nav li {
    height: 5rem;
    width: 20rem;
    line-height: 2;
    padding-top: 1rem; 
    margin: 2rem;       
  }

  footer .fb {    
    width: 10%;
    top: 3rem;
    right: 3rem;  
  }

}

/* ******************************************* */

@media only screen and (min-width: 1070px) {
  /* Style adjustments for viewports that meet the condition */

  /* header .flex {
    display: flex;    
    justify-content: space-between; 
    align-content: center;     
    height: 12rem;       
  }

  header .flex div:first-of-type {
    max-width: 50%;
  }
  
  header .nav {
    margin: 0;
    width: 46%;
  } */

  header .flex .fb {
    width: 7.5%;
  }

  /* header ul {    
    text-align: center;   
    align-items: center;  
  }  

  .nav li {
    line-height: 1;
  }

  .nav li span {
    display: block;
  }

  .nav .home {    
    margin: auto;
    padding-top: 2rem;
  } */

  main .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

  }

  .s-one, .s-two {
    width: 50%;
    border: none;
    font-size: 1.6rem;
  }

  .s-one-info, .s-contact {
    width: 20%;
    margin: 5rem 10rem 5rem 0;
    border: none;
    padding: 2rem 5rem;   
    font-size: 1.6rem; 
  }

  .article {
    width: 20%; 
  }
  

  footer .fb {
    top: 1.5rem;
    width: 7%;
  } 

  


}



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

