:root {
  /* Background Colors: */
  --background-color: #42bc7f;
  --header-background-color: #22896e;
  --content-background-color: #42bc7f;
  --sidebar-header-background-color: #988f64;
  --sidebar-background-color: #3b768f;
  --footer-background-color: #721c2f;
  --box-shadow-color: #12173d;

  /* Text Colors: */
  --text-color: #ffffff;
  --sidebar-text-color: #ffffff;
  --link-color: #854cbf;
  --link-color-hover: #5d2f8c;

  /* Text: */
  --font: "PixelMPlus12Reg";
  --header-font: "RomanceA";
  --header-font-two: "Yoster";
  --font-size: 18px;

  /* Other Settings: */
  --margin: 0 auto;
  --padding: 20px;
  --border: 2px solid #000000;
  --round-borders: 0px;
  --sidebar-width: 180px;
  --border-image: url("/images/dinocleanup/flora/bigbush.png");
}

@font-face {
  font-family: "PixelMPlus12Reg";
  src: url("/fonts/PixelMplus10-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PixelMPlus12Bold";
  src: url("/fonts/PixelMplus10-Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* From https://www.asterism-m.com/font/ */
@font-face {
  font-family: "RomanceA";
  src: url("/fonts/RomanceA.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* From https://www.1001fonts.com/users/codeman38/ */
@font-face {
  font-family: "Yoster";
  src: url("/fonts/Yoster.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

* {
  cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor1.png"), auto;
  -webkit-animation: cursor 600ms infinite;
  animation: cursor 600ms infinite;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  /* Firefox support */
  image-rendering: crisp-edges;
  scrollbar-color: var(--sidebar-header-background-color) var(--header-background-color);
}

@-webkit-keyframes cursor {
  0% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor1.png"), auto;
  }
  25% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor2.png"), auto;
  }
  50% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor3.png"), auto;
  }
  75% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor4.png"), auto;
  }
}

@keyframes cursor {
  0% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor1.png"), auto;
  }
  25% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor2.png"), auto;
  }
  50% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor3.png"), auto;
  }
  75% {
    cursor: url("/images/dinocleanup/cursor/DinoPlayerCursor4.png"), auto;
  }
}

html {
  background-color: var(--background-color);
  background-image: url("/images/dinocleanup/ItchioBG.png");
  background-repeat: no-repeat;
  background-size:cover;
  background-attachment: fixed;
}

#container {
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--font-size);
  color: var(--text-color);
  padding: var(--padding);
  margin: var(--margin);
  max-width: 1200px;
}

#middle-container {
  display: flex;
  flex-direction: row;
  position: relative;
}

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

.flex-row {
  display: flex;
  flex-direction: row;
}

.align-center {
  text-align: center;
}

.relative {
  position: relative;
}
.overflow {
  overflow: visible;
}

.fill-space {
  justify-content: space-evenly;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

a:hover,
a:active {
  color: var(--link-color-hover);
}

ul {
  list-style: none;
  position: relative;
  width: 90%;
}

ul li:before {
  content: "⟡";
  position: absolute;
  left: -25px;
}

ul li {
  position: relative;
  left: -15px;
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(0, 0, 0, 0.2);
}

.hidden {
  display: none;
}

.social-media-logo>a>img {
  margin-top: 20px;
  height: 25px;
}

.text-overlay {
  position: absolute;
  top: 35%;
  left: 35%;
}

/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

#header-container {
  height: fit-content !important;
  justify-content: center;
  margin: auto;
}

#header-container>img {
  object-fit: cover;
  margin-top: auto;
  margin-bottom: auto;
  height: 360px;
}

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

h1 {
  text-align: center;
  font-size: 4em;
  font-family: var(--header-font);
  padding: 0px;
  margin: 10px;
}

h2 {
  font-family: var(--header-font-two);
}

/* -------------------------------------------------------- */
/* SIDEBARS */
/* -------------------------------------------------------- */

.sidebar {
  background: var(--content-background-color);
  background-clip: padding-box;
  padding: var(--padding);
  color: var(--sidebar-text-color);
  width: var(--sidebar-width);
  margin-top: 10px;
  border: 20px solid transparent;
  border-image: var(--border-image) 10 round;
  max-height: 500px;
  overflow: auto;
}

.sidebar>.sidebar-heading {
  border: 2px solid #5c5d41;
  text-align: center;
  padding: 10px;
  margin: 0px;
  font-size: 1.5em;
  background-color: var(--sidebar-header-background-color);
  color: #ffffff;
  font-family: var(--header-font-two);
}

.badge {
  border: 2px solid #000000;
  margin: 10px;
}

/* -------------------------------------------------------- */
/* CONTENT */
/* -------------------------------------------------------- */

.main-content {
  flex-grow: 1;
  max-height: 700px;
  padding: var(--padding);
  background: var(--content-background-color);
  background-clip: padding-box;
  margin-top: 10px;
  margin-left: 10px;
  margin-right: 10px;
  border: 20px solid transparent;
  border-radius: var(--round-borders);
  border-image: var(--border-image) 10 round;
  overflow: auto;
}

.extra-long {
    max-height: 1200px;
}

#sleeping-knight {
  text-align: center;
  display: block;
  margin: 0 auto;
  padding-top: 30px;
  width: 100%;
}

.content-spacer {
  padding-top: 30px;
  text-align: center;
  width: 100%;
}

.content-spacer-double {
  padding-top: 30px;
  width: 50%;
}

.goop:hover {
  transform: scale(1.2);
  overflow: visible;
}

#goop-1 {
  height: 128px;
  position: absolute;
  top: -2em;
  left: 75%;
}

#goop-2 {
  height: 128px;
  position: absolute;
  top: -2em;
  left: 0;
}

#goop-3 {
  height: 128px;
  position: absolute;
  top: -2em;
  left: 75%;
}

#goop-4 {
  height: 128px;
  position: absolute;
  top: -2em;
  left: 0;
}

/* -------------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------------- */

footer {
  display: flex;
  justify-content: center;
  background: var(--content-background-color);
  background-clip: padding-box;
  border-radius: var(--round-borders);
  border: 20px solid transparent;
  border-image: var(--border-image) 10 round;
  padding: var(--padding);
  margin-top: 10px;
  overflow: hidden;
  font-size: 0.9em;
}

/* Trying to get mobile working */
@media only screen and (max-width: 800px) {
  .flex {
    margin-top: 0px;
  }
}

@media only screen and (max-width: 800px) {

  .sidebar,
  body,
  #container {
    width: auto;
    padding: 10px;
  }

  #middle-container {
    flex-direction: column;
  }

  .main-content {
    margin-left: 0;
    margin-right: 0;
  }

  #dragon-knight {
    top: -2em;
    left: 64%;
  }

  #primary-nav ul {
    font-size: 1.1em;
  }
}

@media only screen and (max-width: 500px) {

  .grid-container-right,
  .grid-container-left {
    grid-template-columns: auto !important;
    width: 100% !important;
  }

  .grid-container-right {
    display: flex !important;
    flex-direction: column-reverse !important;
  }

  h1 {
    font-size: 2em;
    height: auto;
  }

  h2 > img {
    height: 70px;
  }

  #header-container {
    height: fit-content !important;
    justify-content: center;
  }

  #header-container>img {
    height: 60px;
  }

  #dragon-knight {
    height: 80px;
    top: -1em;
    left: auto;
    right: -10px;
  }

  iframe {
    width: 200px;
    height: 112px;
  }

  .shrink-mobile {
    height: 150px;
  }
}