/* ======================================================== */
/* FONT IMPORTS */
/* ======================================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: KiwiSoda;
  src: url("assets/fonts/KiwiSoda.ttf");
}

@font-face {
  font-family: GrapeSoda;
  src: url("assets/fonts/GrapeSoda.ttf");
}

@font-face {
  font-family: PerfectDOS;
  src: url("assets/fonts/PerfectDos.ttf");
}

@font-face {
  font-family: Emoji;
  src: url("assets/fonts/EmojiFont.ttf");
}


/* ======================================================== */
/* ANIMATION */
/* ======================================================== */

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* ======================================================== */
/* VARIABLES */
/* ======================================================== */
:root {
  --main-background-image: url("assets/img/trip-tunnel.gif");
  --background-color: #000000;
  --content-background-color: #18141b;
  --sidebar-background-color: #18141b;

  --title-text-color: #f09114;
  --text-color: #ffffff;
  --sidebar-text-color: #ffffff;
  --link-color: #969696;
  --link-color-hover: #fdac41;

  --font: PerfectDOS, "Open Sans", sans-serif;
  --title-font: KiwiSoda, cursive;
  --heading-font: GrapeSoda, cursive;
  --tagline-font: GrapeSoda, cursive;
  --font-size: 18px;

  --page-padding-block: 10px;
  --page-padding-inline: 40px;
  --padding: 20px;
  --border: 2px solid #242424;
  --round-borders: 20px;
  --sidebar-width: 250px;
  --grid-gap: 20px;
}

/* ======================================================== */
/* GLOBAL */
/* ======================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

::selection {
  background: rgba(109, 109, 109, 0.2);
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: var(--page-padding-block) var(--page-padding-inline);
  color: var(--text-color);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: 1.2;
  background-color: var(--background-color);
  background-image: var(--main-background-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  overflow-x: hidden;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:visited {
  color: var(--link-color);
}

a:hover,
a:focus {
  color: var(--link-color-hover);
  text-decoration: none;
}

mark {
  color: var(--text-color);
  background-color: inherit;
  text-shadow: 1px 1px 4px var(--link-color);
}

/* ======================================================== */
/* LAYOUT */
/* ======================================================== */
.layout {
  width: 100%;
  min-height: calc(100vh - (var(--page-padding-block) * 2));
  display: grid;
  gap: var(--grid-gap);
  grid-template:
    "header header" auto
    "leftSidebar main" 1fr
    "footer footer" auto
    / var(--sidebar-width) minmax(0, 1fr);
}

header,
main,
aside {
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
}

header {
  grid-area: header;
  margin-top: 20px;
  font-size: 1.2em;
  text-align: center;
}

main {
  grid-area: main;
  min-width: 0;
  padding: var(--padding);
  line-height: 1.5;
}

aside {
  grid-area: leftSidebar;
  padding: 0 20px;
  overflow: hidden;
  background: var(--sidebar-background-color);
  color: var(--sidebar-text-color);
}

footer {
  grid-area: footer;
  display: flex;
  flex-direction: column;
  border: var(--border);
  border-radius: var(--round-borders);
  background: var(--content-background-color);
  justify-content: center;
  align-items: center;
  padding: 15px;
  overflow: hidden;
  font-size: 0.75em;
}

/* ======================================================== */
/* HEADER */
/* ======================================================== */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 10rem;
  gap: 1rem;
}

.header-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--padding);
}

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

.header-content-side a {
  font-family: var(--heading-font);
  font-size: 1.75em;
}

.title-tagline {
  margin: 0 0 -30px 0;
  font-family: var(--tagline-font);
  font-size: 1.3em;
}

.main-title {
  margin: 0.175em 0 -0.175em 0;
  padding-left: 0.2em;
  color: var(--title-text-color);
  font-family: var(--title-font);
  font-size: 7em;
  line-height: 1;
}

.web-button-banner {
  display: flex;
  gap: 5px;
}

/* ======================================================== */
/* NAV */
/* ======================================================== */
nav {
  width: 100%;
  margin-bottom: 0;
}

nav ul {
  margin: 0;
  padding: 0;
  gap: 20px;
  list-style: none;
  user-select: none;
}

nav li {
  margin: 0;
}

header nav ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

header nav li {
  width: 100%;
}

header nav a {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
}

header nav .nav-divider {
  display: none;
}

.nav-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}

.nav-with-icon img {
  display: block;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
}

.nav-with-icon:hover {
  transform: scale(1.3);
}

/* ======================================================== */
/* SIDEBAR */
/* ======================================================== */

aside {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

aside p {
  margin: 0;
  line-height: 1em;
  margin-bottom: 1em;
}

.sidebar-title {
  color: var(--title-text-color);
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
  padding-bottom: 10px;
}

.sidebar-section:not(:last-child) {
  margin-bottom: 1em;
}

.sidebar-centered {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.sidebar-headspinner {
  display: flex;
  justify-content: center;
  margin-top: auto;
  margin-bottom: -20px;  
}

.sidebar-centered a:hover,
.sidebar-centered a:focus {
  transform: scale(1.1);
}

/* ======================================================== */
/* MAIN CONTENT */
/* ======================================================== */
main a,
main a:visited {
  color: var(--link-color);
}

main a:hover,
main a:focus {
  color: var(--link-color-hover);
  text-decoration-style: wavy;
}

main p {
  margin: 0.75em 0;
  line-height: 1.2em;
}

main ol,
main ul {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

main ol {
  padding-left: 2em;
}

main li {
  margin-bottom: 0.2em;
  line-height: 1.3;
}

main blockquote {
  margin: 1em 0;
  padding: 15px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.1);
}

main pre {
  margin: 1em 0 1.5em;
}

main code {
  text-transform: none;
}

main center {
  margin: 1em 0;
  padding: 0 1em;
}

main hr {
  margin: 1.5em 0;
  border: 0;
  border-top: var(--border);
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  margin-bottom: 0;
  color: var(--title-text-color);
  font-family: var(--heading-font);
  line-height: 1.5;
}

main h1:first-child,
main h2:first-child,
main h3:first-child,
main h4:first-child,
main h5:first-child,
main h6:first-child {
  margin-top: 0;
}

main h1 { font-size: 1.5em; }
main h2 { font-size: 1.4em; }
main h3 { font-size: 1.3em; }
main h4 { font-size: 1.2em; }
main h5 { font-size: 1.1em; }
main h6 { font-size: 1em; }

.silence-brand {
  display: flex;
  padding: 10px;
  justify-content: center;
  animation: shake 0.5s;
  animation-iteration-count: infinite;
}

/* ======================================================== */
/* UPDATES */
/* ======================================================== */
.updates {
  margin: 1.5em 0;
}

.updates-title {
  margin-bottom: 0.5em;
  color: var(--title-text-color);
  font-family: var(--heading-font);
  font-size: 1.5em;
}

.updates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.update-item {
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.update-item time {
  font-size: 1.1em;
  display: inline-block;
  min-width: 8ch;
  margin-right: 0.5em;
  color: var(--link-color);
}

.update-item span {
  color: var(--text-color);
}

.dream-item {
  margin-bottom: 2em;
  line-height: 1.3;
}

.dream-item time {
  font-size: 1.1em;
  display: inline-block;
  min-width: 8ch;
  margin-right: 0.5em;
  color: var(--link-color);
}

.dream-item span {
  color: var(--text-color);
}

main a.dreams-link {
  display: inline-block;
  color: rgb(173, 173, 255);
  transition: transform 0.2s ease, color 0.2s ease;
}

main a.dreams-link:hover,
main a.dreams-link:focus {
  color: rgb(82, 82, 139);
  transform: scale(1.05);
}

/* ======================================================== */
/* ACCESSIBILITY */
/* ======================================================== */
#skip-to-content-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999999999;
  display: inline-block;
  padding: 0.375rem 0.75rem;
  color: var(--text-color);
  font-size: 1.25rem;
  line-height: 1;
  background-color: var(--content-background-color);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
}

#skip-to-content-link:focus,
#skip-to-content-link:focus-within {
  transform: translateY(0);
}

/* ======================================================== */
/* MOBILE */
/* ======================================================== */
@media (max-width: 800px) {
  body {
    padding: 10px 15px;
    font-size: 14px;
  }

  .layout {
    grid-template:
      "header" auto
      "main" auto
      "footer" auto
      / 1fr;
  }

  .left-sidebar {
    display: none;
  }

  .header-content {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .main-title {
    font-size: 4.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}