/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/* 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;
}

/* -------------------------------------------------------- */
/* TOOLTIP CONFIGS*/
/* -------------------------------------------------------- */

.tooltip {
  display: inline-block;
  position: relative;
  border-bottom: 1px dotted var(--link-color)(0, 129, 112); /* Optional: for visual cue */
  cursor: zoom-in;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: var(--tooltip-color);
  color: var(--tooltip-text-color);
  font-size: small;
  text-align: center;
  padding: 10px 5px 10px 5px;
  position: absolute;
  z-index: 1;
  font-size: small;
  bottom: 180%; /* Position above the element */
  left: 50%;
  margin-left: -60px; /* Center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 100%;
}

/* Optional: Add an arrow to the tooltip */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--tooltip-color) transparent transparent transparent;
}

/* -------------------------------------------------------- */
/* 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% {
    /* Start position: slightly down and to the left */
    transform: translate(-3px, 0);
  }
  50% {
    /* Midpoint: slightly up and to the right */
    transform: translate(3px, -5px);
  }
  100% {
    /* End position: back to the start (or close to it) */
    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;
}

/* -------------------------------------------------------- */
/* BUTTON TOOLTIP */
/* -------------------------------------------------------- */

.button-tooltip {
  position: relative;
  display: inline-block;
}

.button-tooltiptext {
  visibility: hidden;
  width: auto;
  padding: 8px;
  font-family: sans-serif;
  background-color: var(--tooltip-color);
  color: var(--tooltip-text-color);
  font-size: small;
  text-align: center;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position above the element */
  left: 50%;
  margin-left: -60px; /* Center the tooltip */
  opacity: 100;
  transition: opacity 0.3s;
}

.button-tooltip:hover .button-tooltiptext {
  visibility: visible;
  opacity: 100;
}

/* Optional: Add an arrow to the tooltip */
.button-tooltip .button-tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--tooltip-color) transparent transparent transparent;
}

/* -------------------------------------------------------- */
/* 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 {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  -ms-grid-column-span: 5;
  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-title-alt {
  font-family: var(--heading-lacquer);
  font-size: 1.5em;
  font-weight: bold;
}

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

.header-image img {
  width: 100%;
  height: auto;
}

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

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

.left-sidebar {
  -ms-grid-row: 4;
  -ms-grid-column: 1;
  grid-area: leftSidebar;
}

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

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

.sidebar-section ul,
.sidebar-section ol {
  padding-left: 1.5em;
}

.sidebar-section > *:not(p):not(ul):not(ol):not(blockquote) {
  margin-top: 10px;
}

/* Sidebar Blockquote: */

.sidebar-section blockquote {
  background: rgba(0, 0, 0, 0.1);
  padding: 15px;
  margin: 1em 0;
  border-radius: 10px;
  overflow: hidden;
}

.sidebar-section blockquote > *:first-child {
  margin-top: 0;
}

.sidebar-section blockquote > *:last-child {
  margin-bottom: 0;
}

/* Site Button: */

.site-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

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

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

footer {
  -ms-grid-row: 5;
  -ms-grid-column: 1;
  -ms-grid-column-span: 5;
  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;
}

/* NAVIGATION IN HEADER */

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

/* -------------------------------------------------------- */
/* 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);
  -webkit-text-decoration-style: none;
          text-decoration-style: none;
}

main p,
main .image,
main .full-width-image,
main .two-columns {
  margin: 0.75em 0;
}

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

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

main ol {
  padding-left: 2em;
}

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

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

main code {
  text-transform: none;
}

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

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

/* 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;
}

/* COLUMNS: */

.two-columns {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.two-columns > * {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  margin: 0;
}

.two-columns > *:first-child {
  padding-right: 0.75em;
}

.two-columns > *:last-child {
  padding-left: 0.75em;
}


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

.image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.full-width-image {
  display: block;
  width: 100%;
  height: auto;
}

.images {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

/* BOOKSHELF */

.bookshelf-title {
  font-family: sans-serif;
  font-size: 11px;
  font-weight: normal;
  justify-items: center;
  filter: grayscale(100%);
  
}
.cover {
  display: block;
  width: 127px;
  height: 190px;
  align-content: center;
  max-width: 100%;
  border-radius: 1px;
  margin-top: -5px;
  border: 1px solid var(--button-background-color);
  filter: grayscale(100%);
}

.cover:hover{
  filter: none;
}

.bookshelf-title:hover {
  -webkit-box-shadow: 0 4px 8px rgba(13, 13, 13, 0.5);
          box-shadow: 0 4px 8px rgba(13, 13, 13, 0.5);
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
  transition: all 0.3s ease;
  cursor: pointer;
  filter: none;
}

.bookshelf {
  display: flex;
  width: max-content;
  justify-items: center;
  columns: 4;
  rows: 2;
  column-gap: 16px;
  padding: 10px;
  margin-left: -4px;
}

.bookshelf-tags {
  font-family: var(--heading-font);
  font-size: 16px;
  font-style: bold;
  background-color: var(--button-background-color);
  width: 127px;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 4px;
}

/* -------------------------------------------------------- */
/* FLOATING IMAGES */
/* -------------------------------------------------------- */

.image-yoshiki {
  width: 30%;
  align-self: center, left;
  margin-left: 95%;
  margin-top: -30%;
  position: sticky;
  filter: grayscale(100%), contrast(50%);
}

/* -------------------------------------------------------- */
/* YOSHIKI ANIMATED */
/* -------------------------------------------------------- */

.image-yoshiki:hover{
  cursor: help;
  animation: shake 0.2s infinite;
  filter: none;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(0.8deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-0.8deg); }
  100% { transform: rotate(0deg); }
}

.parent-container {
  position: relative;
  width: auto;
  height: 0.5px;
  overflow: visible;
}



/* -------------------------------------------------------- */
/* ACCESSIBILITY */
/* -------------------------------------------------------- */

/* please do not remove this. */

#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);
}

/* -------------------------------------------------------- */
/* CONTAINER BOXES */
/* -------------------------------------------------------- */
.container-box {
    display: flex;
    width: 150px;
    height: fit-content;
    padding: 4px;
    align-items: center;
    gap: 20px;
    }
.container-box-content {
    display: flex;
    padding: 24px 4px 4px 4px;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 0 0;
    align-self: stretch;

    border-radius: 8px;
    background: (var(--container-box-color));
}