/* general stuff */
:root {
  --body-bg-image: url("");

  --sidebar-background: #030303;
  --main-background: #030303;
  --box-bg: #000000;
  --box-border: #ab947e;
  --headers: #bd3838;
  --text-strong: #c3bb95;
  --links: #c3a995;
  --text: #aba17e;
  --main: #030303;
}

.disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.disabled > a {
  color: currentColor;
  display: inline-block;
  pointer-events: none;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--headers);
}

h1 {
  font-size: 25px;
}

a {
  color: var(--links);
}

a:has(> h1),
a:has(> h2),
a:has(> h3),
a:has(> h4),
a:has(> h5) {
  color: var(--headers);
  text-decoration-color: var(--headers);
}

strong {
  color: var(--text-strong);
}

hr {
  color: #3b2e29;
}

body {
  font-family: "PT Serif", serif;
  font-size: 16px;
  margin: 0;
  background-color: #030303;
  background-image: var(--body-bg-image);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.2;
}

* {
  box-sizing: border-box;
  cursor: url("/images/cursor.png"), auto;
}

/* big elements */
main {
  background-color: var(--main);
  padding: 25px;
  width: 100%;
}

#container {
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  background-color: #030303;
  padding: 0 20px;
  left: -50px;
}

#leftSidebar {
  position: relative;
  display: flex;
  flex-direction: column;
}

#content {
  min-width: 0;
}

#rightSidebar {
  text-align: center;
}

aside {
  padding: 10px;
  padding-top: 0px;
  font-size: smaller;
}

#header {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: var(--header-image, url("/images/header.jpg"));
  background-size: cover;
  background-position: center;
}
.header-avatar {
  position: absolute;
  right: 5%;
  bottom: -60px;
  border: 8px solid black;
  border-radius: 100px;
}
.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: block;
  filter: sepia(60%);
  margin: 0 auto;
}

@media (max-width: 768px) {
  #header {
    height: 180px;
  }

  #leftSidebar,
  #rightSidebar {
    width: 100%;
  }

  #leftSidebar {
    order: 1;
  }

  #container {
    overflow-x: hidden;
    left: 0%;
  }
  #content {
    order: 2;
    width: 100%;
  }

  #rightSidebar {
    order: 3;
  }

  #layout {
    grid-template-columns: 1fr;
  }

  main {
    padding: 15px;
  }

  textarea {
    max-width: 90vw;
  }
}
@media (min-width: 768px) {
  #container {
    left: 0;
  }
}

@media (min-width: 1024px) {
  #container {
    left: 0;
  }
}
@media (max-width: 1024px) {
  #header {
    height: 300px;
  }

  .header-avatar {
    bottom: -50px;
  }

  .avatar {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  #header {
    height: 180px;
  }

  .header-avatar {
    right: 5%;
    bottom: -20px;
    transform: none;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }
}

footer {
  background-color: var(--main);
  width: 100%;
  height: 40px;
  padding: 10px;
  text-align: center;
}

/* base layout elements */
.ribbon-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ribbon-img {
  display: block;
  filter: brightness(70%);
}

.box {
  background-color: var(--box-bg);
  border: 1px solid var(--box-border);
  padding-left: 20px;
  padding-right: 20px;
  overflow: auto;
  height: 200px;
  text-align: justify;
}

#lastFm {
  position: sticky;
  bottom: 1rem;
  margin-top: 2rem;
}

#lastFM-album-cover {
  filter: sepia(30%);
  transition: 0.7s;
}

#lastFM-album-cover:hover {
  filter: sepia(0%);
  transition: 0.3s;
}

textarea {
  width: 100%;
  height: 70px;
  background-color: var(--box-bg);
  border: 1px solid var(--box-border);
  color: var(--text);
  margin-top: 10px;
  padding-left: 20px;
  padding-right: 20px;
}

.updates {
  left: 870px;
}

#updateList ul {
  margin-top: 10px;
  list-style: none;
}

#updateList ul li:not(:last-child) {
  margin-bottom: 14px;
}

/* navigation */
#navigationImages {
  position: relative;
  height: 300px;
  margin: 0 auto;
  padding: 0;
}

.navItem {
  background-size: contain;
  background-repeat: no-repeat;
  filter: brightness(80%) sepia(30%);
  position: absolute;
}

.navItem a {
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -999999px;
}

.navItem:not(.ignore-tooltip):hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 3;
}

.navItem.nav-bg {
  width: 100%;
  height: 100%;
  position: absolute;
}

.navItem.nav-bg span.empty-block {
  display: block;
  height: 100%;
}

.navItem.skull {
  background-image: url("/images/navigation/skull.png");
  height: 150px;
  width: 140px;
  left: 40px;
  bottom: 0;
}

.navItem.bottleText {
  background-image: url("/images/navigation/bottle2.png");
  height: 200px;
  width: 120px;
  left: 180px;
  bottom: 0;
  z-index: 1;
}

.navItem.bottleText:hover::after {
  left: 50px;
  transform: translateX(-50%);
}

.navItem.bottleSmall {
  background-image: url("/images/navigation/bottle3.png");
  height: 150px;
  width: 120px;
  left: 150px;
  bottom: 0;
}

.navItem.bottleSmall:hover::after {
  left: 20px;
  transform: translateX(-50%);
}

.navItem.thickBottle {
  background-image: url("/images/navigation/bottle.png");
  height: 150px;
  width: 110px;
  left: -35px;
  bottom: 20px;
}

.navItem.sparkles {
  background-image: url("/images/navigation/stars.png");
  height: 150px;
  width: 250px;
  left: -10px;
  bottom: 160px;
}

#navigationImages:hover > .navItem:hover {
  transform: translateY(-3px);
  transition: all 0.2s ease-out;
}

#navigationImages:hover > .navItem:not(:hover) {
  filter: brightness(30%);
  transition: all 0.2s ease-out;
}

#updateList ul {
  padding: 0;
  list-style: none;
}

.eye {
  position: absolute;
  width: 30px;
  height: 30px;
  background-size: contain;
  filter: sepia(80%);
}

.pupil {
  position: absolute;
  width: 30px;
  height: 30px;
  background: url("/images/pupil.png") center/contain no-repeat;
  display: none;
  filter: sepia(10%);
}

#eye-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.has-tooltip {
  position: relative;
  display: inline-block;
}

.tooltiptext {
  position: absolute;
  width: 300px;
  top: -5px;
  left: 120%;

  padding: 6px 8px;

  opacity: 0;
  transition: opacity 0.7s;
}

.has-tooltip:hover .tooltiptext {
  opacity: 1;
}

.sticky {
  position: sticky;
  top: 0;
}

.background-fill {
  background-color: var(--main-background);
}

blockquote {
  border-left: 5px solid #3b2e29;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C" "\201D" "\2018" "\2019";
  font-style: italic;
}

blockquote p {
  display: inline;
}

blockquote .source {
  display: block;
  margin-top: 0.5em;
  margin-left: 20px;
}

@media (max-width: 1100px) {
  #layout {
    grid-template-columns: 200px 1fr;
  }

  #rightSidebar {
    grid-column: 1 / -1;
    position: relative;
    height: auto;
  }

  #leftSidebar {
    height: auto;
    position: relative;
  }
}

/* bootstrap customs */
.btn-primary {
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--main);
  --bs-btn-border-color: var(--box-border);
  --bs-btn-hover-color: var(--links);
  --bs-btn-hover-bg: #{shade-color($links, 10%)};
  --bs-btn-hover-border-color: #{shade-color($link, 10%)};
}

.text-muted {
  color: #57504d !important;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 60px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
}

.hamburger-btn {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  z-index: 1003;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100vw;
  height: 100%;
  background-color: #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 60px;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 20px 0;
  text-align: center;
}

.mobile-menu.show {
  transform: translateX(0);
}

.menu-btn {
  width: 100%;
  font-size: 18px;
  text-align: center;
  background-color: #00000000;
  color: var(--links);
  border: none;
  outline: none;
  cursor: pointer;
}

.menu-btn:hover {
  background-color: #333;
}

.submenu-btn {
  font-size: 16px;
}
