/* FONT IMPORT */
@import url("https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lacquer&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Kings&display=swap");

/* -------------------------------------------------------- */
/* VARIABLES */
/* -------------------------------------------------------- */

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #1b1b1b;
  --content-background-color: #1f1f1f;
  --sidebar-background-color: #1f1f1f;

  /* Text Colors: */
  --text-color: #e0e0e0;
  --text-highlight-color: #004547;
  --sidebar-text-color: #e0e0e0;
  --link-color: #e0e0e0;
  --link-color-hover: #00afb5;

  /* Tooltip Colors */
  --tooltip-color: #0f0f0f;
  --tooltip-text-color: #e0e0e0;

  /* Button Colors */
  /*Default Colors*/
  --button-border-color: #575757;
  --button-background-color: #292929;
  --button-text-color: #e0e0e0;

  /*Hover Colors*/
  --button-hover-border-color: #2f2f2f;
  --button-hover-color: #1d1d1d;
  --button-hover-text-color: #e0e0e0;

  /*Other Colors*/
  --container-box-color: #d1d3dd;

  /* Text: */
  --font: Georgia, serif;
  --heading-font: "UnifrakturMaguntia", sans-serif;
  --heading-lacquer: "Lacquer", sans-serif;
  --heading-king: "Kings", serif;
  --font-size: 13px;

  /* Other Settings: */
  --margin: 8px;
  --padding: 16px;
  --border: 1px solid #434343;
  --round-borders: 8px;
  --borders: 2px;
  --sidebar-width: auto;
}

/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  width: auto;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: var(--margin);
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url("");
}

::-moz-selection {
  /* (Text highlighted by the user) */
  background: var(--text-highlight-color);
}

::selection {
  /* (Text highlighted by the user) */
  background: var(--text-highlight-color);
}

mark {
  /* Text highlighted by using the <mark> element */
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

/* Links: */
a {
  text-decoration: none;
}

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

a:hover,
a:focus {
  text-decoration: none;
}

/* -------------------------------------------------------- */
/* NAV BUTTONS */
/* -------------------------------------------------------- */

/* Base style for nav buttons */
button.nav {
  background-color: var(--button-background-color);
  color: var(--button-text-color);
  border: 1px solid var(--button-border-color);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 0.9em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

/* Hover effect */

button.nav:hover {
  background-color: var(--button-hover-color);
  color: var(--button-hover-text-color);
  border-color: var(--button-hover-border-color);
  text-decoration: none;
}

button.limbo {
  background-color: var(--button-background-color);
  color: var(--button-text-color);
  border: 1px solid var(--button-border-color);
  padding: 6px 12px;
  font-family: var(--font);
  font-size: 0.9em;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

@keyframes softFloat {
  0% {
    transform: translate(-3px, 0);
  }
  50% {
    transform: translate(3px, -5px);
  }
  100% {
    transform: translate(-3px, 0);
  }
}

button.limbo:hover {
  background-color: var(--tooltip-color);
  color: var(--button-hover-text-color);
  border-color: var(--button-hover-border-color);
  text-decoration: wavy;
  animation-name: softFloat;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

/* -------------------------------------------------------- */
/* LAYOUT */
/* -------------------------------------------------------- */

.layout {
  max-width: 800px;
  display: grid;
  grid-gap: var(--margin);
  grid-template:
    "header header" auto
    "leftSidebar main" auto
    "footer footer" auto
    / var(--sidebar-width) 1fr;
}

main {
  max-width: 600px;
  padding: var(--padding);
  border: var(--border);
}

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

header {
  grid-area: header;
  font-size: 1.2em;
  border: var(--border);
  background: var(--content-background-color);
}

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
}

.header-subtitle {
  font-family: var(--font);
  font-size: 1em;
}

/* NAVIGATION IN HEADER */

header nav {
  display: flex;
  column-gap: var(--margin);
  margin-bottom: var(--margin);
  padding-left: 8px;
  margin-left: var(--margin);
}

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

aside {
  grid-area: aside;
  border: var(--border);
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
}

.left-sidebar {
  grid-area: leftSidebar;
}

/* Site Button: */

.site-button {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-button textarea {
  font-family: monospace;
  font-size: 0.7em;
}

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

footer {
  grid-area: footer;
  font-size: 0.75em;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

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

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

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

main {
  line-height: 1.5;
}

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

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

main p,
main ol,
main ul,
main blockquote,
main pre,
main code,
main center,
main hr {
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--heading-font);
  margin-bottom: 0;
  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;
}

/* -------------------------------------------------------- */
/* BACKPACK STUFF */
/* -------------------------------------------------------- */

.daily-objects-container {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: visible;
  margin-top: 0;
  margin-left: 0;
  pointer-events: none;
  overflow: visible;
}

.backpack-container {
  position: relative;
  width: auto;
  height: 0auto;
  overflow: visible;
}

.blocking-container {
  /* I need to keep this to make sure the backpack stays clickable. */
  pointer-events: none;
}

.backpack {
  width: 50%;
  margin-left: 130px;
  align-self: center;
  position: center;
}

.backpack:hover {
  cursor: pointer;
  animation: pulse 0.5s infinite;
}

/* @keyframes pulse is kept above, as it's used by .backpack:hover */

/* ------------------------------- */
/* Draggable elements */
/* ------------------------------- */

.object2,
.object3,
.object4,
.object5 {
  /* This setup is essential for the drag to work, don't remove! */
  position: absolute;
  z-index: 10;
  pointer-events: auto;

  /*Initial position*/
  top: 30%;
  left: 5%;
}

/* I wanted to tweak this one's initial position!!
Also wanted to tweak all of their sizes, so this one had to go here. */

.object {
  position: absolute;
  z-index: 10;
  pointer-events: auto;

  /*Initial position*/
  top: 15%;
  left: 0%;

  /*Sizing*/
  width: 30%;
  z-index: 10;
}

/* They each have different sizes to work with different images. Ajust when needed. */

.object2 {
  width: 10%;
  z-index: 20;
}

.object3 {
  width: 25%;
  z-index: 12;
}

.object4 {
  width: 15%;
  z-index: 14;
}

.object5 {
  width: 10%;
  z-index: 13;
}

.object:hover,
.object2:hover,
.object3:hover,
.object4:hover,
.object5:hover,
.floating-note {
  cursor: move; /* Indicates the element is draggable */
  animation: pulse 0.5s infinite;
}

/* ------------------------------- */
/* Backpack menu */
/* ------------------------------- */

.backpack-menu {
  /* Menu is hidden by default. JavaScript will toggle this to 'block' */
  display: none;
  position: absolute;
  list-style: none;
  padding: 10px;
  margin: 0;

  background-color: var(--button-background-color);
  border: 1px solid var(--button-border-color);
  color: var(--button-text-color);

  border-radius: var(--round-borders);
  min-width: 150px;
  z-index: 20;

  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);

  opacity: 0;
  transition: opacity 0.3s ease-out;
}

/* --------- */
/* Menu List */
/* --------- */

.backpack-menu li {
  margin: 5px 0;
}

.backpack-menu li a {
  color: var(--link-color);
  text-decoration: none;
  padding: 5px 8px;
  display: block;
  font-size: var(--font-size);
  border-radius: 4px;
}

.backpack-menu li a:hover {
  color: var(--link-color-hover);
  background-color: rgba(0, 0, 0, 0.2);
}

/* CLASS TO BE TOGGLED BY JAVASCRIPT do not remove this!! */
.backpack-menu.open {
  /* When the 'open' class is added, display the menu and make it visible */
  display: block;
  opacity: 1;
}

/* -------------------------------------------------------- */
/* ACCESSIBILITY - Please do not remove this. */
/* -------------------------------------------------------- */

/* Credits: petrapixel @ https://petrapixel.neocities.org/ */

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

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