@font-face {
  font-family: "Merriweather";
  src: url("Merriweather-LightItalic-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Oswald";
  src: url("Oswald-Regular-latin.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Orbitron";
  src: url("Orbitron-Bold-latin.woff2") format("woff2");
  font-display: swap;
}

/* ===================================================== */

/*
  Modified from Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html,
body {
  height: 100%;
}
body {
  line-height: 1.5;
  /* -webkit-font-smoothing: antialiased; */
}
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
input,
button,
textarea,
select {
  font: inherit;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ===================================================== */

body {
  background: url("bg.png");
  background-attachment: fixed;
  color: #cdcdcd;
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui,
    helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,
    sans-serif;
}

body::before {
  content: "";
  z-index: -1;
  position: fixed;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(140, 179, 217, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

.page-flash {
  pointer-events: none;
  position: absolute;
  background: #000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
}

.show {
  opacity: 1;
}

.hide {
  opacity: 0;
}

.fade-text.hide,
.new-age-image.hide {
  transform: translateY(3rem);
}

.fade-text.show,
.page-flash.hide {
  transition: opacity 2s linear, transform 1s ease-out;
}

.new-age-image.show {
  transition: opacity 2s cubic-bezier(0.53, 0, 1, 1), transform 1s ease-out;
  transition-delay: 1s;
}

.content {
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  flex-basis: 4.75rem;
  justify-content: center;
  align-items: center;
  background-color: #0005;
}

.reionize {
  border: 3px solid #476685;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  background: #0d1a26;
  color: #a3ccf5;
  font: 1rem "Oswald";
  text-transform: uppercase;
  box-shadow: 0px 5px 15px #0007;
  cursor: pointer;
  transition: transform 0.1s, color 0.2s, border-color 0.2s, box-shadow 0.5s;
}

.glowjump {
  animation: glow-jump 0.4s ease 3s 2 alternate;
}

.panels-container {
  display: flex;
  flex-direction: column;
}

.panel {
  padding-left: 2rem;
  padding-right: 2rem;
}

.panel > *:first-child {
  margin-top: 0;
}

.panel > *:last-child {
  margin-bottom: 0;
}

/* Bullshit panel */

.bullshit {
  padding-top: 2rem;
  padding-bottom: 5rem;
  background-color: #0009;
}

h1,
h2,
h3,
h4 {
  color: white;
  margin: 1.5rem 0;
}

h1 {
  font: 2.125rem/1.35 "Orbitron";
}

h2 {
  font: 1.375rem/1.75 "Merriweather", serif;
}

h3 {
  font: 1.625rem/1.5 "Oswald";
}

p {
  margin: 1.5rem 0;
}

a {
  text-decoration: none;
  color: #76a6d6;
}

a:hover {
  text-decoration: underline;
}

.bs-paragraph {
  font-size: 1.3rem;
}

.quote {
  font-size: 1.5rem;
  font-family: "Merriweather";
  color: white;
  text-align: center;
}

.new-age-image {
  width: 100%;
  max-width: 424px;
  height: 11.25rem;
  object-fit: cover;
  margin: 2rem auto;
}

/* Comments panel */

.comments {
  padding-top: 4rem;
  padding-bottom: 3rem;
  font-family: Verdana;
  background: #10181d;
}

.comment-picks {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
  gap: 2rem;
}

.comments figure {
  max-width: 35rem;
  color: #fff;
}

.comments blockquote {
  font-style: italic;
}

.comments figcaption {
  margin-top: 0.5rem;
  color: #aaa;
}

.comments figcaption::before {
  content: "— ";
}

.comments button {
  background-color: transparent;
  border: 2px solid white;
  padding: 0.75rem 1rem;
  color: white;
  border-radius: 8px;
  font-family: "Oswald";
  cursor: pointer;
}

.comments button:hover {
  border-color: #ccc;
}

.updated-date {
  color: #888;
}

.scroll-button {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media screen and (min-width: 768px) {
  body::before {
    background: linear-gradient(
      rgba(140, 179, 217, 0.6) 0%,
      rgba(0, 0, 0, 0.5) 100%
    );
  }

  .reionize:hover {
    transform: scale(1.2);
    color: white;
    border-color: #ccc;
    animation: pulse 0.3s linear 0s infinite alternate;
    box-shadow: 0px 0px 55px 5px white;
  }

  .reionize:active {
    transition: transform 0s, border-color 0s, background 0s, box-shadow 0.5s;
    animation: 0;
    transform: scale(1.1);
  }

  .panels-container {
    padding: 2rem;
    gap: 2rem;
    align-items: center;
  }

  .comments figure {
    padding: 0 2rem 0 1rem;
    border-left: 4px solid #333;
  }

  .panel {
    max-width: 768px;
    padding: 4rem 3rem;
    border-radius: 2rem;
    box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.3);
  }

  .comments {
    margin-bottom: 2rem;
  }

  .new-age-image {
    width: 20rem;
    float: right;
    margin: 0 0 1rem 2rem;
    transform: translateY(0.5rem);
  }
}

@keyframes glow-jump {
  from {
    transform: scale(1);
    box-shadow: 0px 0px 55px 5px rgba(158, 204, 250, 0.9);
  }
  to {
    transform: scale(1.3);
    box-shadow: 0px 0px 55px 10px white;
    color: white;
    border-color: rgb(206, 177, 177);
  }
}

@keyframes pulse {
  0% {
    background: rgba(15, 38, 61, 0.5);
    border-color: rgba(222, 230, 237, 0.9);
  }
  100% {
    background: rgba(38, 77, 115, 0.5);
    border-color: rgba(122, 153, 184, 0.9);
  }
}
