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

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

:root {
  --color1: #0000dc;
  --color2: #dcdcf5;
}

.page {
  width: 100%;
  margin: auto;
}

.section {
  width: auto;
  margin: 10px;
  padding: 10px;
  border: 2px solid var(--color1);
  border-radius: 10px;
  display: flex;
  flex-direction: row;
}
.section-content {
  width: 100%;
  margin: auto;
}
.section-spacer { height: 50px; }
.section-spacer-2 { height: 30px; }
.section-spacer-2 { height: 20px; }
.section-title {
  font-size: large;
  white-space: nowrap;
  position: sticky;
  top: 1em;
  padding: 4px;
  writing-mode: vertical-rl;
  background-color: white;
  -webkit-transform: translatex(-1.5em);
  -moz-transform: translatex(-1.5em);
  -o-transform: translatex(-1.5em);
  -ms-transform: translatex(-1.5em);
  transform: translatex(-1.5em);
}
.section-title-container { width: 0; }

.item-row {
  display: flex;
  flex-direction: column;
}
.item-row-rs {
  display: flex;
  flex-direction: column-reverse;
}
.item-col {
  display: flex;
  flex-direction: column;
}
.item-col-rs {
  display: flex;
  flex-direction: column-reverse;
}
.item-row-col {
  display: flex;
  flex-direction: column;
}
.item-row, .item-row-rs, .item-col, .item-col-rs {
  border: 2px solid var(--color2);
  border-radius: 4px;
}
.item-image-half {
  background-color: white;
  width: 100%;
  max-width: 512px;
  margin: auto;
}

.cover {
  margin: auto;
  width: min-content;
  height: min-content;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.cover-title {
  font-size: xx-large;
  white-space: nowrap;
  margin-top: 0;
  margin-bottom: 0;
}
.cover-title-sub {
  font-size: medium;
  white-space: nowrap
}
.cover-panel, .cover-panel-title {
  border: 2px solid var(--color2);
  border-radius: 6px;
  margin: 4px;
  padding: 10px;
}
.cover-panel-title {
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  padding: 20px;
}
.cover-email-button {
  padding: 0;
  margin: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
.cover-email-button .cover-email-button-popup {
  visibility: hidden;
  position: absolute;
  background-color: white;
  border: 2px solid var(--color1);
  border-radius: 6px;
  padding: 8px;
  margin: -10px 0 0 10px;
  opacity: 0;
  transition: 0.2s;
}
.cover-email-button .cover-email-button-popup::before {
  content: "";
  position: absolute;
  border: 8px solid transparent;
  top: -webkit-calc(50% - 8px);
  top: -moz-calc(50% - 8px);
  top: calc(50% - 8px);
  left: -18px;
  border-right-color: var(--color1);
  background-color: transparent;
}
.cover-email-button .cover-email-button-popup::after {
  content: "";
  position: absolute;
  border: 8px solid transparent;
  top: -webkit-calc(50% - 8px);
  top: -moz-calc(50% - 8px);
  top: calc(50% - 8px);
  left: -16px;
  border-right-color: white;
  background-color: transparent;
}
.cover-email-button:hover .cover-email-button-popup {
  visibility: visible;
  opacity: 1;
}
.cover-symbol-social {
  font-size: 70px;
  color: var(--color1);
  background-color: white;
  border-radius: 10px;
  margin: 5px 15px 5px 15px;
}

.palette {
  display: flex;
  flex-direction: column;
  margin: 20px;
  border: 2px solid transparent;
  border-radius: 10px 10px 10px 10px;
  overflow: hidden;
}
.palette-buttons {
  flex: 0 0 64px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.palette-button, .palette-button-w {
  width: 60px;
  height: 60px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  border-radius: 6px;
  transition: 0.1s ease;
  margin: 2px;
}
.palette-button:hover { box-shadow: inset 0 0 0 50vw rgba(0,0,0,0.3); }
.palette-button-w:hover { box-shadow: inset 0 0 0 50vw rgba(255,255,255,0.3); }
.palette-button-video-symbol {
  font-size: 40px !important;
  margin: 4px 0 0 0 !important;
}
.palette-view-container {
  flex: 100%;
  display: flex;
  align-content: center;
  overflow: auto;
}
.palette-view {
  display: none;
  flex: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  position: relative;
}
.palette-image {
  width: 100%;
  height: 100%;
  border: none;
}
.palette-caption-0, .palette-caption-1, .palette-caption-2, .palette-caption-3 {
  font-size: small;
  position: absolute;
  white-space: pre-line;
  color: white;
  background-color: rgba(0,0,0,0.5);
  padding-left: 6px;
  padding-right: 6px;
  left: 0;
  bottom: 0;
}

.palette-caption-0 {
  bottom: -webkit-calc(3em + 18px);
  bottom: -moz-calc(3em + 18px);
  bottom: calc(3em + 18px);
}
.palette-caption-1 {
  bottom: -webkit-calc(2em + 12px);
  bottom: -moz-calc(2em + 12px);
  bottom: calc(2em + 12px);
}
.palette-caption-2 {
  bottom: -webkit-calc(1em + 6px);
  bottom: -moz-calc(1em + 6px);
  bottom: calc(1em + 6px);
}
.palette-caption-3 { bottom: 0; }

h1 {
  color: var(--color1);
  font-family: Tahoma, sans-serif;
}

h2 {
  color: var(--color1);
  font-family: Tahoma, sans-serif;
  margin-bottom: 0;
  width: 100%;
}

h3 {
  color: var(--color1);
  text-underline: transparent;
  font-family: Tahoma, sans-serif;
  margin-top: 4px;
  margin-bottom: 0;
  width: 100%;
}

a {
  text-decoration: none;
}

.subtext-l {
  font-family: Tahoma, sans-serif;
  font-size: smaller;
  color: black;
}
.subtext-r {
  font-family: Tahoma, sans-serif;
  font-size: smaller;
  float: right;
  color: black;
}

.link-symbol {
  color: var(--color1);
  float: right;
}
.link-symbol-b {
  color: lightgray;
  float: right;
}

.label-tech, .label-tech2 {
  display: inline;
  color: white;
  font-size: small;
  font-family: Tahoma, sans-serif;
  background-color: var(--color1);
  border-radius: 12px;
  padding: 5px 8px;
}
.label-tech2 { background-color: #8C8CFF }

.description {
  margin: 20px;
  border: none;
}
.description-decor {
  border: 2px solid var(--color2);
  border-radius: 4px;
  padding: 10px;
}
.description-tech {
  margin-top: 12px;
  line-height: 2;
}
.description-verbose {
  font-family: Tahoma, sans-serif;
  text-align: justify;
  text-justify: auto;
}
.description-symbol-star {
  color: black;
  margin: 2px;
  float: none;
  font-size: medium;
}
.description-emphasis {
  font-family: Tahoma, sans-serif;
  font-weight: bold;
  text-align: justify;
  text-justify: auto;
}

.jams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  padding: 20px 10px 60px 10px;
  column-gap: 20px;
  row-gap: 60px;
}
.jam {
  margin: 0 auto auto auto;
  min-width: 300px;
  max-width: 300px;
  border: 2px solid var(--color2);
  border-radius: 6px;
  padding: 10px;
}
.jam-image {
  object-fit: cover;
  width: 100%;
  height: 210px;
  border-radius: 4px;
  margin: 8px 0;
}
.jam-verbose {
  font-family: Tahoma, sans-serif;
  text-align: justify;
  text-justify: auto;
}
.jam-stats {
  font-family: Tahoma, sans-serif;
  font-size: small;
  text-align: justify;
  text-justify: auto;
  margin: auto;
  border-spacing: 10px 0;
  color: black;
}
.jam-symbol-award {
  color: black;
  margin: 2px;
  float: none;
  font-size: small;
}

@media (min-width: 900px) {

  .section {
    margin: 20px;
    padding: 20px;
  }
  .section-title {
    font-size: xx-large;
    -webkit-transform: translatex(-1.5em);
    -moz-transform: translatex(-1.5em);
    -o-transform: translatex(-1.5em);
    -ms-transform: translatex(-1.5em);
    transform: translatex(-1.5em);
  }

  .cover { grid-template-columns: repeat(2, 1fr); }
  .cover-panel { margin: 10px; padding: 30px; }
  #cover-panel-email { grid-row: 1; grid-column: 2; }
  .cover-panel-title { padding: 58px; }
  .cover-title { font-size: xxx-large; }
  .cover-title-sub { font-size: large; }

  .palette { flex-direction: row; }
  .palette-buttons {
    flex: 0 0 74px;
    flex-direction: column;
  }
  .palette-button, .palette-button-w {
    width: 70px;
    height: 70px;
    border-radius: 0 10px 10px 0;
  }
  .palette-button-video-symbol {
    font-size: 40px !important;
    margin: 4px 0 0 -2px !important;
  }
  .palette-caption-0, .palette-caption-1, .palette-caption-2, .palette-caption-3 {
    font-size: medium;
  }

  .jams { padding: 60px 20px; column-gap: 20px; }

}

@media (min-width: 1200px) {

  .page { width: 100%; }

  .section { margin: 80px 20px; }
  .section-spacer { height: 80px; }
  .section-spacer-2 { height: 50px; }
  .section-spacer-3 { height: 30px; }

  .item-row, .item-row-rs { flex-direction: row; }
  .item-col, .item-col-rs { flex-direction: column; }
  .item-row-col { flex-direction: row; }
  .item-image-half { width: 50%; }

  .description { flex: 30%; }
  .palette { flex: 70%; }

  .jams { padding: 60px 20px; column-gap: 40px; }

}

@media (min-width: 1700px) {

  .page { width: 85%; }

  .description { flex: 30%; }
  .palette { flex: 70%; }

}

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

