/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - fonts */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

@font-face {
  font-family: "glamourgirl";
  src: url(./GLAMOURGIRL.TTF);
}

/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - variables */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

:root {
  /* FIXME - add font to assets */
  --font-body: "Courier New", Courier, monospace;
  --font-alt: "glamourgirl", monospace;

  --cursor-default: url("./assets/cursor/cursor1.png"), auto;
  --cursor-hover: url("./assets/cursor/cursor2.png"), auto;

  --color-text-primary: #fceac5;
  --color-text-link: #90f1ef;
  --color-text-active: #c1fba4;

  --color-background: #dd7396;

  --color-accent: #dda0dd;
  --color-accent-background: #dda0dd;

  --border-decorative: 3px dotted var(--color-accent);
}

/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - base */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

/* custom cursor for everything except hovers */
html {
  cursor: var(--cursor-default);

  scrollbar-color: var(--color-accent) var(--color-text-primary);
  scrollbar-width: thin;
}

body {
  background-image: url("./assets/mushroombow.gif");
  font-family: var(--font-body);
  color: var(--color-text-primary);
}

p,
ul,
i {
  font-weight: bold;
}

ul {
  list-style-image: url(./assets/heart.png);
}

a {
  color: var(--color-text-link);
  font-style: normal;
  text-decoration-color: var(--color-text-active);
  text-decoration-style: wavy;
}

img {
  max-width: 100%;
}

textarea {
  font-family: var(--font-body);
  border: 0;
  background-color: var(--color-accent-background);
  color: var(--color-text-primary);
}

/* NOTE - sidebar */
nav {
  list-style-type: none;
  padding-left: 15px;
}

/* NOTE - highlighting */
mark {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  padding: 2px 4px;
  border-radius: 4px;
}

i {
  color: var(--color-text-link);
  font-style: normal;
}

em {
  color: var(--color-text-active);
  font-style: normal;
}

footer {
  margin: auto;
  border: #fceac5 outset 4px;
  max-width: 980px;
  background-color: var(--color-accent-background);
  padding: 5px;

  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal center */
  justify-content: center; /* vertical center */
  text-align: center;
}

/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - layout */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

.flex-parent-element {
  display: flex;
  max-width: 1000px;
  margin: auto;
}

.flex-child-element {
  flex: 1;
  min-width: 0;
  border: var(--border-decorative);
  background-color: var(--color-background);
  margin: 5px;
}

/* NOTE - sidebar settings */
.flex-child-element:first-child {
  flex: 0.22;
  max-height: 500px;
}

.flex-child-element:nth-child(2) {
  padding: 15px;
}

/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - components */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

/* NOTE - sidebar */
.nav-list {
  list-style-image: none;
  padding-left: 0;
  margin: 0;
  font-weight: normal;
}

.nav-list li {
  list-style-type: none;
  margin: 5px;
}

.nav-list a {
  text-decoration: none;
}

.nav-header {
  font-family: var(--font-alt);
  margin-top: 10px;
  margin-left: -15px;
  margin-bottom: 0;
  text-align: center;
  padding: 5px;
}

.activetab {
  color: var(--color-text-active);
}

.icon {
  width: 15px;
  height: 15px;
  margin-bottom: -2px;
}

/* NOTE - decorations */
.divider {
  text-align: center;
  margin-top: 1em;
}

.imgborder {
  border: var(--border-decorative);
}

.albumrow {
  text-align: center;
  margin-bottom: 15px;
}

/* NOTE - changelog */
.changelog {
  height: 200px;
  overflow-x: hidden;
  overflow-y: scroll;
  border: var(--border-decorative);
}

.changelog p,
ul {
  margin: 2px;
}

.changelog div {
  margin: 8px;
}

/* NOTE - footer */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-row p {
  font-size: smaller;
  margin: 0;
  padding: 0;
}

/*NOTE - this is the styling of the title/tooltip */
.tooltip {
  position: fixed;
  background: var(--color-accent-background);
  color: var(--color-text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: bold;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 200;
}

.tooltip.visible {
  opacity: 1;
}

/* NOTE - highlight to show tooltip */
.info {
  color: var(--color-text-active);
  font-style: normal;
  text-decoration: underline wavy var(--color-text-link);
}

/* NOTE - word count */
#total-word-count {
  text-align: center;
  font-size: 0.75rem;
}

.wordcount-wrapper {
  text-align: center;
  font-size: 0.9rem;
}

/* <><><><><><><><><><><><><><><><><><><><><><><><><> */
/* NOTE - interactive */
/* <><><><><><><><><><><><><><><><><><><><><><><><><> */

/* NOTE - custom cursor for hovers  */
a:hover,
button:hover {
  cursor: var(--cursor-hover);
  color: #4f83f3;
}

/* NOTE - for the headers in the eras page */
summary {
  cursor: var(--cursor-hover);
  list-style: none;
  position: relative;
  padding-left: 30px; /* leave space for heart */
}

summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 20px;
  height: 20px;
  background: url("./assets/heart-big.png") no-repeat center center;
  background-size: contain;
  transform: rotate(-90deg);
  transition: transform 0.3s ease;
}

details[open] summary::before {
  transform: rotate(0deg);
}

summary h2 {
  display: inline;
  margin: 0;
}

details {
  margin-bottom: 1em;
  margin-top: 1em;
}

/*NOTE - makes the marquee work */
.marquee {
  overflow: hidden;
  width: 100%;
}

.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee 18s linear infinite;
}

.marquee-track {
  display: flex;
}

.marquee-track img {
  flex-shrink: 0;
  margin: 0.25em;
}

/* pause on hover */
.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
