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

/* Variables are used like this: var(--text-color) */
:root {
  /* Background Colors: */
  --background-color: #524632;
  --content-background-color: #c3c49e;
  --sidebar-background-color: rgba(140, 173, 148, 0.75);

  /* Text Colors: */
  --text-color: #000000;
  --sidebar-text-color: #f1f1f1;
  --link-color: #243d7b;
  --link-color-hover: #dedbd8;
  --link-color-active: #8A5686;

  /* Text: */
  --font: "rainyhearts", monospace, sans-serif;
  --heading-font: Georgia, serif;
  --font-size: 20px;

  /* Other Settings: */
  --margin: 40px;
  --padding: 24px;
  --border: 2px solid #f1f1f1;
  --round-borders: 6px;
  --sidebar-width: 300px;
}

@font-face {
  font-family: "rainyhearts";
  src:
    url("https://petrapixel.neocities.org/assets/css/fonts/rainyhearts.woff2") format("woff2"),
    url("https://petrapixel.neocities.org/assets/css/fonts/rainyhearts.woff") format("woff"),
    url("https://petrapixel.neocities.org/assets/css/fonts/rainyhearts.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DSnetStamped";
  src: url("./fonts/DSnet Stamped.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

* {
  box-sizing: border-box;
}

html {
  background-color: var(--background-color);
  background-image: url("https://img.freepik.com/foto-gratis/espacio-texto-papel-marron_53876-95444.jpg?semt=ais_rp_progressive&w=740&q=80");
  background-repeat: repeat;
  background-position: top left;
  background-size: auto;
  background-attachment: fixed;
}

body {
  display: flex;
  align-items: flex-start;
  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: transparent;
}

body.font-arial {
  --font: Arial, sans-serif;
}

@media (max-width: 800px) {
  html {
    background-attachment: scroll;
  }
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

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

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: underline;
}

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

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

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

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

.layout {
  width: 100%;
  display: grid;
  grid-gap: var(--margin);
  grid-template: "header header header" auto "leftSidebar main rightSidebar" auto "footer footer footer" auto / var(--sidebar-width) auto var(--sidebar-width);
  /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  text-align: left;
}

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

header {
  grid-area: header;
  font-size: 1.2em;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}

.header-title {
  font-family: "DSnetStamped", var(--heading-font);
  font-size: clamp(4.032rem, 10.752vw, 6.72rem);
  font-weight: bold;
  line-height: 1;
  transform-origin: center;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.28), 0 0 14px rgba(0, 0, 0, 0.22);
  animation:
    titleFloat 3.4s ease-in-out infinite,
    colorShift 2s linear infinite;
}

@keyframes colorShift {
  0% { color: #243d7b; }
  25% { color: #ffb83d; }
  50% { color: #2e2b27; }
  75% { color: #0f3f2a; }
  100% { color: #243d7b; }
}

.header-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-home-link {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.header-home-link:visited,
.header-home-link:hover,
.header-home-link:focus {
  color: inherit;
  text-decoration: none;
}

.header-home-link:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 4px;
}

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

@keyframes titleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-title {
    animation: none;
  }
}

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

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  background: var(--sidebar-background-color);
  padding: var(--padding);
  color: var(--sidebar-text-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

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

.right-sidebar {
  grid-area: rightSidebar;
}

.left-sidebar details {
  margin-top: 8px;
}

.left-sidebar summary {
  cursor: pointer;
  font-weight: bold;
}

.left-sidebar ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.left-main-nav {
  margin: 0;
}

.left-main-nav .sidebar-title {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.left-main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.left-main-nav > ul > li {
  margin-bottom: 10px;
}

.left-main-nav a,
.left-main-nav summary {
  display: block;
  font-size: 1.06em;
  padding: 8px 10px;
  border: 2px solid var(--link-color);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  border-radius: var(--round-borders);
  transform: rotate(0deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.font-toggle {
  display: block;
  width: 88%;
  max-width: 220px;
  margin: 0;
  padding: 6px 10px;
  border: 2px solid var(--link-color);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-family: var(--font);
  font-size: 0.92em;
  text-align: center;
  cursor: pointer;
  border-radius: var(--round-borders);
  transform: rotate(0deg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.font-toggle:hover,
.font-toggle:focus {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px) rotate(0.9deg);
}

.font-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.font-toggle:focus-visible {
  outline: 2px dashed var(--link-color-hover);
  outline-offset: 3px;
}

.left-main-nav summary {
  font-weight: bold;
  cursor: pointer;
}

.left-main-nav a:hover,
.left-main-nav a:focus,
.left-main-nav summary:hover,
.left-main-nav summary:focus {
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px) rotate(-0.9deg);
}

.left-main-nav a.active {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.left-main-nav a:focus-visible,
.left-main-nav summary:focus-visible {
  outline: 2px dashed var(--link-color-hover);
  outline-offset: 3px;
}

.left-main-nav details ul {
  margin-top: 8px;
}

.left-main-nav details ul a {
  font-size: 0.95em;
}

.sidebar-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.left-sidebar-gif {
  display: block;
  width: 88%;
  max-width: 220px;
  height: auto;
  border: 0;
  border-radius: var(--round-borders);
  object-fit: contain;
}

.sidebar-window {
  position: relative;
  margin: 50px 0 15px;
  border: 2px solid var(--link-color);
  padding: 14px;
  background: var(--content-background-color);
  border-radius: var(--round-borders);
  transform: rotate(0deg);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.sidebar-window:hover,
.sidebar-window:focus-within {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px) rotate(0.5deg);
}

.sidebar-window::before {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: -2px;
  right: -2px;
  height: 28px;
  border: 2px solid var(--link-color);
  border-bottom: 0;
  background: var(--link-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-weight: bold;
  line-height: 1;
  border-radius: var(--round-borders) var(--round-borders) 0 0;
  font-family: var(--font);
}

@media (prefers-reduced-motion: reduce) {
  .left-main-nav a,
  .left-main-nav summary,
  .font-toggle,
  .sidebar-window {
    transition: none;
    transform: none;
  }

  .left-main-nav a:hover,
  .left-main-nav a:focus,
  .left-main-nav summary:hover,
  .left-main-nav summary:focus,
  .font-toggle:hover,
  .font-toggle:focus,
  .sidebar-window:hover,
  .sidebar-window:focus-within {
    transform: none;
  }
}

.sidebar-window ul {
  margin: 0;
  padding-left: 18px;
}

.sidebar-window li {
  margin-bottom: 4px;
}

.sidebar-window a,
.sidebar-window a:link,
.sidebar-window a:hover,
.sidebar-window a:focus {
  background: transparent;
  background-image: none;
}

.sidebar-title {
  font-weight: bold;
  font-size: 1.2em;
  font-family: var(--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: flex;
  flex-direction: column;
  align-items: center;
}

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

.sidebar-buttons {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.sidebar-button img {
  display: block;
  max-width: 150px;
  height: auto;
  image-rendering: auto;
}

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

footer {
  grid-area: footer;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  font-size: 0.75em;
  padding: 15px;
  background: var(--content-background-color);
  display: flex;
  justify-content: center;
}

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

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

/* -------------------------------------------------------- */
/* NAVIGATION */
/* -------------------------------------------------------- */

nav {
  margin-bottom: 3em;
}

nav .sidebar-title {
  margin-bottom: 0.5em;
}

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  user-select: none;
}

nav ul li {
  margin-bottom: 0;
}

nav > ul li > a,
nav > ul li > strong {
  display: inline-block;
}

nav > ul li > a,
nav > ul li > details summary,
nav > ul li > strong {
  padding: 5px 10px;
}

nav > ul li > a.active,
nav > ul li > details.active summary {
  font-weight: bold;
}

nav ul summary {
  cursor: pointer;
}

nav ul ul li > a {
  padding-left: 30px;
}



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

main {
  line-height: 1.5;
}

/* Utility text styles */

.uv-small {
  display: block;
  font-size: calc(1em - 3px);
  line-height: 1.35;
  margin: 0.25em 0 0.75em;
}

.uv-callout {
  text-align: center;
  font-size: calc(1em + 2px);
  margin: 1.25em 0 0;
}

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

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

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 {
  font-family: "DSnetStamped", var(--heading-font);
}

main h2 {
  font-family: var(--font);
  font-weight: bold;
}

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: calc(1em + 3px);
}

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: flex;
}

.two-columns > * {
  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: flex;
  width: calc(100% + 5px + 5px);
  margin-left: -5px;
  margin-right: -5px;
}

.images img {
  width: 100%;
  height: auto;
  padding: 5px;
  margin: 0;
  overflow: hidden;
}

/* -------------------------------------------------------- */
/* GALLERIES + LIGHTBOX (MAIN + RIGHT SIDEBAR) */
/* -------------------------------------------------------- */

.index-lightbox-image {
  display: block;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
}

.index-lightbox-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  filter: brightness(1.05) contrast(1.05);
  transition: filter 0.3s ease, transform 0.5s ease;
}

.index-lightbox-image img.full-width-image {
  width: 100%;
}

.index-lightbox-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--link-color);
  opacity: 0.12;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.index-lightbox-image:hover img,
.index-lightbox-image:focus img,
.index-lightbox-image:focus-visible img {
  filter: none;
  transform: skew(-2deg, -2deg) rotate(0deg);
}

.index-lightbox-image:hover::after,
.index-lightbox-image:focus::after,
.index-lightbox-image:focus-visible::after {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .index-lightbox-image img {
    transition: filter 0.3s ease;
  }

  .index-lightbox-image:hover img,
  .index-lightbox-image:focus img,
  .index-lightbox-image:focus-visible img {
    transform: none;
  }
}

.sidebar-lightbox,
.index-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.sidebar-lightbox.is-open,
.index-lightbox.is-open {
  display: flex;
}

.sidebar-lightbox__image,
.index-lightbox__image {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.sidebar-lightbox__close,
.sidebar-lightbox__prev,
.sidebar-lightbox__next,
.index-lightbox__close,
.index-lightbox__prev,
.index-lightbox__next {
  position: absolute;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-family: var(--font);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-lightbox__close,
.index-lightbox__close {
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.sidebar-lightbox__prev,
.sidebar-lightbox__next,
.index-lightbox__prev,
.index-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
}

.sidebar-lightbox__prev,
.index-lightbox__prev {
  left: 18px;
}

.sidebar-lightbox__next,
.index-lightbox__next {
  right: 18px;
}

@media (max-width: 800px) {
  .sidebar-lightbox__prev,
  .sidebar-lightbox__next,
  .index-lightbox__prev,
  .index-lightbox__next {
    width: 40px;
    height: 56px;
  }

  .sidebar-lightbox__prev,
  .index-lightbox__prev {
    left: 8px;
  }

  .sidebar-lightbox__next,
  .index-lightbox__next {
    right: 8px;
  }

  .sidebar-lightbox__close,
  .index-lightbox__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}

.right-sidebar .sidebar-tng-gallery {
  --thumb-size: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--thumb-size), 1fr));
  gap: 6px;
  max-height: 360px;
  overflow: auto;
  padding: 2px;
}

.right-sidebar .sidebar-tng-gallery .image {
  display: block;
  position: relative;
  cursor: zoom-in;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  padding: 6px 6px 10px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  border-radius: 3px;
}

.right-sidebar .sidebar-tng-gallery .image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(1.04) contrast(1.04);
  transition: filter 0.25s ease, transform 0.35s ease;
  border-radius: 1px;
}

.right-sidebar .sidebar-tng-gallery .image::after {
  content: "";
  position: absolute;
  inset: 6px 6px 10px;
  background: var(--link-color);
  opacity: 0.10;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.right-sidebar .sidebar-tng-gallery .image:hover img,
.right-sidebar .sidebar-tng-gallery .image:focus img,
.right-sidebar .sidebar-tng-gallery .image:focus-visible img {
  filter: none;
  transform: scale(1.03);
}

.right-sidebar .sidebar-tng-gallery .image:hover::after,
.right-sidebar .sidebar-tng-gallery .image:focus::after,
.right-sidebar .sidebar-tng-gallery .image:focus-visible::after {
  opacity: 0;
}

/* -------------------------------------------------------- */
/* 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);
  transform: translateY(-3rem);
  transition: transform 0.1s ease-in;
  z-index: 99999999999;
}

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

/* -------------------------------------------------------- */
/* MOBILE RESPONSIVE */
/* -------------------------------------------------------- */

/* CSS Code for devices < 800px */
@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .layout {
    width: 100%;
    grid-template: "header" auto  "rightSidebar" auto "main" auto "leftSidebar" auto "footer" auto / 1fr;
    /* Confused by the grid? Check out my tutorial: https://petrapixel.neocities.org/coding/positioning-tutorial#grid */
  }

  header {
    justify-content: center;
    text-align: center;
  }

  .header-floating {
    width: 100%;
    justify-content: center;
  }

  .header-home-link {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .header-title {
    font-size: clamp(2.64rem, 13.2vw, 4.56rem);
  }

  
  

  aside {
    border-bottom: 1px solid;
    padding: 9px;
    font-size: 0.9em;
  }

  
  nav {
    padding: 0;
  }

  nav > ul {
    padding-top: 0.5em;
  }

  nav > ul li > a,
  nav > ul li > details summary,
  nav > ul li > strong {
    padding: 0.5em;
  }

  main {
    max-height: none;
    padding: 15px;
  }

  .images {
    flex-wrap: wrap;
  }

  .images img {
    width: 100%;
  }

  #skip-to-content-link {
    font-size: 1rem;
  }
}
