/*! 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;
  font-family: monospace;
}

/*
 * 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;
  }
}

/*
 * Custom styles
 */

body{
  margin: 0;
  padding: 0;
  width: 100%;
}
h1 {
  font-weight:normal;
  font-size: 50px;
  text-align: center;
  /*color: #F5F0E6;*/
  margin: 0;
  padding: 0;
}
h2 {
  font-weight: normal;
  font-size: 36px;
  text-align: center;
  /*color: #F5F0E6;*/
  margin: 0;
  padding: 0;
}
h3 {
  font-weight: normal;
  font-size: 14px;
  text-align: center;
  margin: 5px 0;
  padding: 0;
  position: relative;
}
p {
  font-weight: normal;
  font-size: 18px;
  text-align: center;
  margin: 5px 0;
  padding: 0;
  position: relative;
}

/* Base responsive styles */
.center { width: fit-content; margin: 0 auto; }
.icons img { 
  max-height: 75px; 
  height: auto;
  width: auto;
  max-width: 100%;
}
.content { 
  padding: 20px 15px; 
  margin: 0 auto; 
  width: 100%; 
  max-width: 960px;
  box-sizing: border-box;
  position: relative;
}
.image-overlay-dark { background-color: rgba(26,26,26,0.7); }
.image-overlay-light { background-color: rgba(245,240,230,0.9); }
.text-align-left { text-align: left }
.indent { padding: 0 25px }

#header {
  width: 100%;
  max-width: 100%;
  background: #1A1A1A;
  color: #F5F0E6;
  height: 80px;
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  overflow-x: hidden;
}
/* Navigation */
#nav { 
  width: auto; 
  float: right; 
  margin-top: 20px; 
}

#logo a { 
  color: #F5F0E6; 
  text-decoration: none; 
  float: left; 
  font-size: 20px; 
  line-height: 80px; 
  font-weight: bold; 
  padding: 0 15px;
}

#nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#nav li {
  margin: 9px 0 9px 15px;
  padding: 0;
}

#nav li a { 
  color: #F5F0E6; 
  opacity: 0.6; 
  font-size: 14px; 
  text-decoration: none;
  padding: 5px 10px;
  display: block;
  -webkit-tap-highlight-color: transparent;
}
#nav li a.active { color: #F5F0E6; opacity:1; border-bottom: 2px solid #F5F0E6; }
#nav li a:hover { color: #F5F0E6; opacity:1; }

#slide1, #slide2, #slide3, #slide4, #slide5 {
  width: 100%;
  max-width: 100%;
  scroll-margin-top: 80px;
  box-sizing: border-box;
  overflow-x: hidden;
  position: relative;
  left: 0;
  right: 0;
}

#slide2, #slide3 {
  min-height: 100vh;
  padding: 120px 0 60px;
}

#slide1, #slide4, #slide5 {
  min-height: 50vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
}
#slide1 {
  background: url('../img/code.png') 25% 0 no-repeat fixed;
  color: #F5F0E6;
  margin: 0;
  padding: 100px 0 60px;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}
#slide2 {
  background-color: #F5F0E6;
  color: #1A1A1A;
  margin: 0 auto;
  overflow: hidden;
  padding: 120px 15px 60px;
}
#slide3 {
  background: url('../img/broadcasting_house.png') 25% 0 no-repeat fixed;
  color: #1A1A1A;
  padding: 120px 15px 60px;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}
#slide4 {
  background-color: #1A1A1A;
  color: #F5F0E6;
  padding: 100px 15px;
}
#slide5 {
  background: url('../img/trillium.png') 50% 0 no-repeat fixed;
  margin: 0 auto;
  padding: 100px 15px;
  color: #F5F0E6;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

/* Typography adjustments for better mobile readability */
h1 { font-size: 2em; line-height: 1.2; }
h2 { font-size: 1.6em; line-height: 1.3; }
h3 { font-size: 1.2em; line-height: 1.4; }

/* Responsive adjustments */
@media screen and (max-width: 1024px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }
  
  .content {
    padding: 20px 15px;
    width: 100%;
    max-width: 100%;
  }
  
  #header {
    height: auto;
    padding: 10px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
  }
  
  #logo a {
    float: none;
    display: block;
    text-align: center;
    line-height: 1.4;
    margin: 10px 0;
  }
  
  #nav {
    float: none;
    width: 100%;
    margin: 10px 0 0;
  }
  
  #nav ul {
    justify-content: center;
  }
  
  #nav li {
    margin: 5px;
  }
  
  #slide1, #slide2, #slide3, #slide4, #slide5 {
    scroll-margin-top: 0;
  }
  
  #slide2, #slide3 {
    min-height: auto;
  }
  
  .icons img {
    max-height: 50px;
    margin: 5px;
  }
}

@media screen and (max-width: 480px) {
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  h3 { font-size: 1.1em; }
  
  #nav li {
    margin: 3px;
  }
  
  #nav li a {
    font-size: 12px;
    padding: 3px 6px;
  }
  
  .icons img {
    max-height: 40px;
  }
}