/*! 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 {
  background: #000;
  color: #fff;
  font-size: 1em;
  line-height: 1.4;
}

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

html {
  font-family: 'EB Garamond', serif;
  color: #fff;
  margin: 0 !important;
  padding: 0;
}

html.history {
  margin: 0 !important;
}

body {
  background-image: url('img/collage_2_site.jpg');
  background-position: 0 200px;
  background-repeat: repeat-y;
  background-size: 100vw auto;
  min-height: 100vh;
  z-index: 1000;
  position: relative;
}

body.single {
  background-image: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "CervoNeueCon-Black";
  font-weight: normal;
}

a {
  color: #e3c106;
  text-decoration: none;
  transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

a:hover {
  color: #eed446;
}

.main-header {
  padding-top: 12px;
  padding-bottom: 22px;
  background: #000;
}

.main-header h1 {
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  text-align: center;
  font-size: 60px;
  color: #fff;
}

.main-header h1 a {
  color: #fff;
  transition: all 0.2s ease-in-out;
  display: block;
}

.main-header h1 a:hover {
  transform: scale(1.02);
}

.main-header span {
  font-family: "CervoNeueCon-Black";
  text-align: center;
  display: block;
  font-size: 34px;
}

.main-navigation-menu {
  display: block;
  width: 100vw;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.main-navigation-menu ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 46%;
}

.main-navigation-menu li {
  font-family: "CervoNeueCon-Black";
  display: block;
  text-transform: uppercase;
  font-size: 24px;
  margin: 0;
  padding: 0;
  position: relative;
}

.main-navigation-menu li a {
  color: #000;
  padding: 8px;
  display: block;
}

.main-navigation-menu li a:hover {
  color: #625611;
}

.main-navigation-menu ul.sub-menu {
  display: none;
  position: absolute;
  top: 50px;
  left: 0;
  background: #fff;
  z-index: 5000;
  min-width: 300px;
  border: 1px solid #000;
}

.main-navigation-menu ul.sub-menu.opened-sub-menu {
  display: block;
}

.main-navigation-menu ul.sub-menu li {
  text-transform: capitalize;
  font-size: 20px;
}

.main-container {
  width: 100vw;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 80vh;
  padding-bottom: 140px;
}

.main-container > article,
.main-container > div {
  width: 68%;
  background: #fff;
  color: #000;
}

.main-container > article {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.main-container > article figure {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
}

.main-container > article figure img {
  width: 100%;
  height: auto;
  display: block;
}

.main-container > article figcaption {
  padding: 12px 20px;
  font-style: italic;
}

.main-container > article a {
  color: #625611;
  font-weight: bold;
  text-decoration: underline;
}

.main-container > article a:hover {
  color: #625611;
  opacity: 0.8;
}

.main-container > article h1 {
  text-align: center;
  font-size: 42px;
}

.main-container > article h1 a {
  color: #000;
  text-decoration: none;
  font-weight: normal;
}

.main-container > article h1 a:hover {
  color: #625611;
}

.main-container > article header {
  width: 80%;
  text-transform: uppercase;
  display: block;
}

.no-featured-image {
  margin-top: 20px;
  padding-top: 26px;
}

div.entry {
  padding: 0 120px 80px;
  margin: 0;
  font-size: 22px;
  line-height: 1.6;
}

.wp-block-quote {
  font-style: italic;
  border-left: 6px solid #ccc;
  padding-left: 16px;
  margin: 38px 34px 38px 18px;
  box-sizing: border-box;
}

div.entry p:first-child {
  margin-top: 0;
}

.main-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100vw;
  box-sizing: border-box;
}

.main-footer span {
  display: block;
}

.four-oh-four-not-found {
  text-align: center;
  margin-top: 20px;
}

.four-oh-four-not-found p {
  font-size: 22px;
  line-height: 1.6;
}

.main-content-groups-container {
    width: 100vw;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    padding-bottom: 160px;
}

.main-content-groups {
  width: 68%;
}

.main-content-groups section {
  margin-bottom: 40px;
}

.main-content-groups h1 {
  text-transform: uppercase;
  font-size: 46px;
  position: relative;
  margin: 0;
  transition: all 0.2s ease-in-out;
  transform-origin: left;
}

.main-content-groups h1 span {
  position: absolute;
  left: -40px;
  top: 0;
  transition: left 0.2s ease-in-out;
}

.main-content-groups h1:hover {
  cursor: pointer;
  transform: scale(1.02);
  color: #eed446;
}

.main-content-groups h1:hover span {
  left: -44px;
}

.main-content-groups h1 i {
  transition: all 0.2s ease-in-out;
}

.main-content-groups h1 i.rotate-caret {
  transform: rotate(90deg);
}

.group-section {
  height: 0;
  overflow: hidden;
  background: #fff;
  color: #000;
  margin-top: 18px;
  box-sizing: border-box;
}

.group-section-contents {
  opacity: 0;
  padding: 30px;
  transition: opacity 0.6s ease-in-out;
}

.group-section.opened-group-section {
  height: auto;
}

.group-section.opened-group-section .group-section-contents {
  opacity: 1;
}

.group-section-contents a {
  color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.group-section-contents a:hover {
  color: #625611;
  text-decoration: underline;
}

.group-section-contents h2 {
  font-family: 'EB Garamond', serif;
  text-align: center;
  margin: 60px 0 30px;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  padding-bottom: 20px;
  padding-top: 18px;
}

.group-section-contents h2:first-child {
  margin-top: 6px;
}

.group-section-contents h3 {
  font-size: 28px;
  margin: 0 0 18px;
}

.group-section-contents h3 span {

}

.group-section-contents h3 span:first-child {
  padding-right: 12px;
  display: flex;
  max-width: 70px;
  max-height: 70px;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
}

.group-section-contents h3 span img {
  width: 100%;
  height: auto;
}

.main-content-groups h1 ~ span {
  font-size: 22px;
  font-style: italic;
  display: block;
}

.mobile-menu {
  display: none;
}

#searchform {
  padding: 60px;
  display: flex;
  width: 50vw;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
}

#searchform > div {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 100;
}

#searchform > .screen-reader-text {
  z-index: 10;
  position: relative;
}

#s {
  padding: 14px;
  background: #fff;
  border: 0;
  position: relative;
  z-index: 100;
  font-size: 26px;
  margin-right: 8px;
  font-family: monospace;
}

#searchsubmit {
  position: relative;
  z-index: 100;
  margin-left: 8px;
  display: block;
  height: 56px;
  min-width: 80px;
  padding: 6px 26px;
  font-size: 22px;
  transition: all 0.2s ease-in-out;
  border-radius: 6px;
  border: 0;
  text-transform: uppercase;
  font-family: monospace;
}

#searchsubmit:hover {
  cursor: pointer;
  background-color: #eed446;
  border-radius: 6px;
}

.results-of-the-search {
  margin-top: 20px;
  padding: 30px;
  box-sizing: border-box;
}

.results-of-the-search h2 {
  font-weight: bolder;
  font-family: 'EB Garamond', serif;
  text-align: center;
  text-align: center;
  margin: 0 0 30px;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ccc;
  padding-bottom: 20px;
  padding-top: 18px;
}

.results-of-the-search span {
  display: block;
  margin-bottom: 10px;
}

.results-of-the-search span:first-child {
  padding-right: 10px;
}

.results-of-the-search span a {
  font-size: 28px;
  font-family: "CervoNeueCon-Black";
  font-weight: normal;
  color: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.results-of-the-search span a:hover {
  color: #625611;
  text-decoration: underline;
}

/* ==========================================================================
   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 (max-width: 680px) {

  .main-header h1 {
    font-size: 26px;
  }

  .main-header span {
    font-size: 18px;
  }

  .main-content-groups h1 {
    font-size: 22px;
  }

  .main-content-groups h1 ~ span {
    font-size: 18px;
  }

  .main-content-groups h1 span {
    left: -16px;
  }

  .main-footer span {
    text-align: center;
  }

  .main-footer {
    padding: 60px 30px;
  }

  .main-content-groups {
    width: 84%;
  }

  .group-section-contents h2 {
    font-size: 18px;
  }

  .group-section-contents h3 {
    font-size: 20px;
  }

  .main-navigation-menu {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu {
    display: block;
    color: #000;
    border: 0;
    background: none;
    font-size: 20px;
    padding: 8px;
  }

  .mobile-menu:hover {
    cursor: pointer;
  }

  .mobile-menu span {
    font-family: "CervoNeueCon-Black";
    text-transform: uppercase;
    padding-left: 10px;
  }

  .main-navigation-menu ul {
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100vw;
    flex-direction: column;
  }

  .main-navigation-menu ul.opened-mobile-menu {
    display: flex;
  }

  .main-navigation-menu ul.sub-menu {
    position: relative;
    top: 0;
    border: 0;
  }

  .main-navigation-menu > ul > li {
    margin-top: 12px;
  }

  .main-navigation-menu > ul > li:first-child {
    margin-top: 0;
  }

  .main-container > article, .main-container > div {
    width: 94%;
  }

  .main-container > article h1 {
    font-size: 32px;
  }

  div.entry {
    padding: 0 22px 80px;
    font-size: 18px;
  }

  div.entry ol,
  div.entry ul {
    padding-left: 20px;
    padding-right: 24px;
  }

  #s {
    font-size: 18px;
  }

  #searchsubmit {
    font-size: 16px;
    padding: 6px 8px;
  }

}

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