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

/* main.css 3.0.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
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  color: black;
  background: #8b8680;
  text-shadow: none;
}

::selection {
  color: black;
  background: #8b8680;
  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
   ========================================================================== */

@font-face {
  font-family: "Mona Sans VF";
  src:
    url("../fonts/MonaSansVF[wdth,wght,opsz].woff2") format("woff2 supports variations"),
    url("../fonts/MonaSansVF[wdth,wght,opsz].woff2") format("woff2-variations");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-optical-sizing: auto;
}

html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#canvas { position: fixed; top: 0; left: 0; right:0; bottom: 0; display: block; }
#container { position: relative; color: white; overflow: auto; max-width: 80rem; margin: 0 auto; padding-bottom: 10em; font-family: "Mona Sans VF"; font-variation-settings: "wght" 400, "wdth" 100; font-size: 1.2em; }
#intro { padding: 1em; margin: 0 auto; text-align: center; }
#box {
/*   padding: 0 1rem; */
  margin: 0 1rem;
  border-width: 1px;
  border-style: dotted;
  border-color: #8b8680;
  border-radius: 12px;
  min-width: 18rem;
}
@media screen and (min-width: 30rem) {
  #container {
    font-size: 1.3em;
  }
  #intro {
    padding: 2em 3rem 1em 3rem;
  }
  #box {
    margin: 0 3rem;
  }
  #box .column {
    min-width: 20rem;
  }
}
@media screen and (min-width: 46rem) {
  #box .row {
    flex-wrap: nowrap;
  }
  #box .column-1 {
    background:
    linear-gradient(
      to right,
      rgba(255,255,255,.75),
      85%,
      rgb(139, 134, 128,.75)
    );
    border-radius: 12px 0 0 12px;
  }
  #box .column-2 {
    padding-top: 0;
    background:
    linear-gradient(
      to left,
      rgba(0,0,0,.75),
      85%,
      rgb(139, 134, 128,.75)
    );
    border-radius: 0 12px 12px 0;
  }
  #intro {
    font-size: 1.5em;
  }
}
@media screen and (min-width: 60rem) {
  #container {
    font-size: 1.6em;
  }
  #box .why-text {
    padding: 2em 2rem 2.5em 2rem;
  }
}
h1 {
  font-variation-settings: "wght" 800;
}
.bold {
  font-variation-settings: "wght" 800;
}
.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
  min-width: 18rem;
}
.row {
  display: flex;
  flex-direction: row;
  width: 100%;
  flex-wrap: wrap;
}
.column-1 {
  color: black;
  border-radius: 12px 12px 0 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,.75),
      95%,
      rgb(139, 134, 128,.75)
    );
}
.column-2 {
  padding-top: 2em;
  border-radius: 0 0 12px 12px;
  background:
    linear-gradient(
      to top,
      rgba(0,0,0,.75),
      95%,
      rgb(139, 134, 128,.75)
    );
}
.social-logos {
  padding-top: 1em;
  padding-right: 1em;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.social-logos figure {
  margin: 0;
  width: 25%;
  min-width: 5em;
  text-align: center;
  padding-top: 2em;
}
.social-logos img {
  height: 1.6em;
}
.social-logos-link:hover {
  filter: invert(1);
}
.social-logos-link {
  transition: filter 0.2s;
  filter: invert(0);
}
.fed-social-logos-link:hover {
  transform: scale(1.2);
}
.fed-social-logos-link {
  transition: transform 0.2s;
  transform: scale(1);
}
figcaption {
  font-size: 0.75em;
  padding-top: 0.5em;
}
.peertube-logo img {
  background-color: white;
  padding: 0 0.5em;
  width: 3.75em;
}
.why-text {
  padding: 1em 1em 2.5em 1em;
  text-align: left;
}
.why-text .heading {
  font-variation-settings: "wght" 700, "wdth" 90, "opsz" 72;
  margin-bottom: 0;
}
.button-container {
  padding-top: 3em;
  text-align: center;
}
.button {
  font-size: 1.5em;
  margin: 0 auto;
  background: linear-gradient(to right top, orange, yellow, green, cyan, blue, violet);
  padding: 0.5em 1em;
  border-radius: 1.5em;
  font-weight: 900;
  border-width: 1px;
  border-style: dotted;
  border-color: #8b8680;
  color: white;
  font-variation-settings: "wght" 800;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.2s, transform 0.2s;
  filter: saturate(0);
  transform: scale(1);
  text-shadow: rgba(0,0,0,1) 0 0 10px;
}
.button:hover {
  filter: saturate(1);
  transform: scale(1.2);
}
.text-link {
  color: black;
  text-decoration: underline dotted rgba(0,0,0,0.25);
  transition: filter 0.2s;
  filter: invert(0);
}
.text-link:hover {
  filter: invert(1);
  text-decoration: none;
}
.rainbow-text {
  background: linear-gradient(to right, orange, yellow, green, cyan, blue, violet);
  background-clip: text;
  color: rgba(255,255,255,0.5);
  display: inline-block;
}
#box div.column-1 .why-text {
  font-variation-settings: "wght" 450;
}

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

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

