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

/*
 * 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;
  height: 100%;
}

/*
 * 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 {
  color: #fff;
  background-color: #41125d;
  text-shadow: none;
}

::selection {
  color: #fff;
  background-color: #41125d;
  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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

@font-face {
  font-family: "Trebuchet";
  src: url(https://rasmussenco.netlify.app/css/fonts/trebuchet-ms.ttf)
    format("truetype");
}

* {
  box-sizing: border-box;
}

.body {
  min-height: 100%;
}

.wrapper {
  display: grid;
  grid-template-areas: "h h h h h h h h h h h h" ". . . c c c c c c . . ." ". . . c c c c c c . . ." "f f f f f f f f f f f f";
  grid-template-rows: 166.7px auto auto 166.7px;
  height: 100vh;
  overflow: auto;
  grid-template-columns: repeat(12, 1fr);
}

.wrapper > a:nth-child(1) {
  grid-area: h;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background-color: #41125d;
}

.responsive {
  max-width: 100%;
  height: auto;
  max-height: 166.7px;
}

.header {
  text-align: center;
  background-color: #41125d;
}

.header > h1 {
  color: #fff;
  background-color: #41125d;
  font-family: "Trebuchet MS", "Trebuchet" !important;
  font-size: 36px;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 5px;
  margin-right: 5px;
  font-weight: normal;
}

.header > hr {
  border-top: 4px solid #61aa72;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0;
}

.header > h2 {
  color: #fff;
  background-color: #41125d;
  font-family: "Trebuchet MS", "Trebuchet", sans-serif;
  margin-top: 0px;
  margin-bottom: 0px;
  margin-left: 3%;
  margin-right: 3%;
  font-weight: normal;
}

.menu {
  grid-area: m;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  align-items: center;
  background: #41125d;
  display: none;
}

.menu > a {
  text-decoration: none;
  color: #ffffff;
  font-size: 24px;
  font-family: "Arial", "Roboto Mono", monospace;
  padding: 0px 15px 0px 15px;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.menu > a:hover {
  text-decoration: none;
  color: #61aa72;
  font-size: 24px;
}

.menu > a:active {
  text-decoration: none;
  color: #61aa72;
  font-size: 24px;
}

#active_page {
  color: #c78283;
}

#active_page:hover {
  color: #61aa72;
}

.content {
  grid-area: c;
  font-size: 16px;
  /*display: flex;*/
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  font-family: "Arial", "Roboto", sans-serif;
  border-top: 0px solid #61aa72;
  padding: 0px 20px 50px 20px;
}

.content > p {
  text-align: left;
  text-justify: auto;
  margin-left: auto;
  margin-right: auto;
}

.content > p:nth-child(2) {
  margin-top: 30px;
}

.content > p#letterhead {
  text-align: left;
}

#letterhead > a,
#letterhead > a:visited {
  text-decoration: none;
  color: #222;
}

.content > p#areas {
  text-align: left;
}

#people {
  text-align: center;
}

.content > p#people > a:hover {
  border-bottom: #41125d solid 3px;
}

.content > img {
  height: auto;
  width: 61.8vmin;
  display: block;
  margin-left: 20px;
  margin-right: 5px;
  border: 1px solid #41125d;
  float: right;
  min-width: 280px;
}

.content > h1 {
  font-family: "Arial", "Roboto Slab", serif;
  font-size: 32px;
}

.description {
  font-family: "Arial", "Roboto", sans-serif;
  text-indent: 2em;
  color: #222;
  text-align: left;
}

.footer {
  grid-area: f;
  color: #fff;
  font-family: "Trebuchet MS", "Trebuchet", Arial, "Roboto Mono", monospace;
  font-size: 16px;
  background-color: #41125d;
  border-top: 7px solid #61aa72;
  text-transform: uppercase;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-evenly;
  min-width: 0;
  white-space: nowrap;
  font-weight: bold;
}

.footer > p > a {
  color: #fff;
  text-decoration: none;
}

.wrapper > div {
  text-align: left;
}

.content>p:nth-child(2) {
  margin-top:30px;
  text-align: center;
 }

@media screen and (max-width: 1115px) {
  .wrapper {
    grid-template-areas: "h h h h h h h h h h h h" "c c c c c c c c c c c c" "c c c c c c c c c c c c" "f f f f f f f f f f f f";
    grid-template-rows: 166.7px auto auto auto;
    grid-template-columns: repeat(12, 1fr);
  }

  .wrapper > a:nth-child(1) {
    border-bottom: 0px solid #61aa72;
  }
  .header {
    border-bottom: none;
  }

  .header > h1 {
    font-size: 2em;
  }

  .menu {
    position: sticky;
    top: 0;
    border-bottom: 5px solid #61aa72;
  }

  .menu > a {
    padding: 0px 0px 0px 0px;
  }

  .content {
    border-top: 0px solid #61aa72;
    padding-left: 5px;
    padding-right: 5px;
  }

  #index_content {
    flex-direction: column;
    text-align: left;
  }

  .content > img {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  .content > p {
    margin-left: 5px;
    margin-right: 5px;
  }

  .footer {
    flex-direction: column;
    white-space: normal;
    border-top: 3px solid #61aa72;
  }
}

.descriptions {
  font-family:'EB Garamond', serif;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

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

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
  /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  -webkit-clip-path: none;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
 * 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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

@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:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *:before,
  *:after {
    background: transparent !important;
    color: #000 !important;
    /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
    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:
     * 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;
  }
}
