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

:root {
  /* Background Colors: */
  --background-color: #000000;
  --content-background-color: #e8e3fd1e;
  --sidebar-background-color: #e8e3fd1e;

  /* Text Colors: */
  --text-color: #e8e3fd;
  --sidebar-text-color: #e8e3fd;
  --link-color: #988df3;
  --link-color-hover: #b18fff;

  /* Text: */
  --font: Verdana, sans-serif;
  --heading-font: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, メイリオ, Meiryo, 'ＭＳ Ｐゴシック', 'MS PGothic', 'ＭＳ ゴシック' , 'MS Gothic', 'Noto Sans CJK JP', TakaoPGothic, sans-serif;
  --font-size: 12px;

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

/* ========================================================================== */
/*        REGISTRO DE PROPIEDADES (Animación CSS).                            */
/* ========================================================================== */
@property --radial-0-posX { syntax: "<percentage>"; initial-value: 16%; inherits: false; }
@property --radial-0-posY { syntax: "<percentage>"; initial-value: 55%; inherits: false; }
@property --gradient-r0-c0 { syntax: "<color>"; initial-value: #9861dbFF; inherits: false; }
@property --gradient-r0-p0 { syntax: "<percentage>"; initial-value: 0%; inherits: false; }
@property --gradient-r0-c1 { syntax: "<color>"; initial-value: #C27AFF; inherits: false; }
@property --gradient-r0-p1 { syntax: "<percentage>"; initial-value: 100%; inherits: false; }
@property --linear-1-angle { syntax: "<angle>"; initial-value: 68deg; inherits: false; }
@property --gradient-l1-c0 { syntax: "<color>"; initial-value: #3F16A8ff; inherits: false; }
@property --gradient-l1-p0 { syntax: "<percentage>"; initial-value: 0%; inherits: false; }
@property --gradient-l1-c1 { syntax: "<color>"; initial-value: #683aa1ff; inherits: false; }
@property --gradient-l1-p1 { syntax: "<percentage>"; initial-value: 34% ; inherits: false; }
@property --gradient-l1-c2 { syntax: "<color>"; initial-value: #C27AFF; inherits: false; }
@property --gradient-l1-p2 { syntax: "<percentage>"; initial-value: 100%; inherits: false; }

/* ========================================================================== */
/*                          KEYFRAMES DE LA ANIMACIÓN                         */
/* ========================================================================== */

@keyframes gradient-animation {
0.12919896640826875% { --radial-0-posX: 16%; --radial-0-posY: 55%; --gradient-r0-c0: #9861dbFF; --gradient-r0-p0: 0%; --gradient-r0-c1: #C27AFF; --gradient-r0-p1: 100%; --linear-1-angle: 68deg; --gradient-l1-c0: #3F16A8ff; --gradient-l1-p0: 0%; --gradient-l1-c1: #683aa1ff; --gradient-l1-p1: 34%; --gradient-l1-c2: #C27AFF; --gradient-l1-p2: 100%; }
33.2687338501292% { --radial-0-posX: 90%; --radial-0-posY: 70%; --gradient-r0-c0: #9861DBFF; --gradient-r0-p0: 0%; --gradient-r0-c1: #f07ad5ff; --gradient-r0-p1: 100%; --linear-1-angle: 174deg; --gradient-l1-c0: #C27AFF; --gradient-l1-p0: 0%; --gradient-l1-c1: #fff5b8ff; --gradient-l1-p1: 55%; --gradient-l1-c2: #E9D4FF; --gradient-l1-p2: 100%; }
70.21963824289405% { --radial-0-posX: 16%; --radial-0-posY: 55%; --gradient-r0-c0: #9861DBFF; --gradient-r0-p0: 0%; --gradient-r0-c1: #E9D4FF; --gradient-r0-p1: 100%; --linear-1-angle: 104deg; --gradient-l1-c0: #E9D4FF; --gradient-l1-p0: 0%; --gradient-l1-c1: #d579e2FF; --gradient-l1-p1: 31%; --gradient-l1-c2: #3F16A8FF; --gradient-l1-p2: 100%; }
99.74160206718346% { --radial-0-posX: 90%; --radial-0-posY: 70%; --gradient-r0-c0: #9861DBFF; --gradient-r0-p0: 0%; --gradient-r0-c1: #C27AFF; --gradient-r0-p1: 100%; --linear-1-angle: 68deg; --gradient-l1-c0: #3F16A8ff; --gradient-l1-p0: 0%; --gradient-l1-c1: #683aa1ff; --gradient-l1-p1: 34%; --gradient-l1-c2: #C27AFF; --gradient-l1-p2: 100%; }
}

/* ========================================================================== */
/*                            ESTILO DE GRADIENTES                            */
/* ========================================================================== */
/* Hacemos que los contenedores permitan capas absolutas dentro de ellos */
header, aside, footer {
  position: relative;
}

/* Creamos la capa del fondo animado por DETRÁS del contenido */
header::after,
aside::after,
footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Lo manda al fondo */
  pointer-events: none; /* Evita que bloquee clics */

  /* Aquí va el gradiente animado original: */
  background: radial-gradient(circle at var(--radial-0-posX, 16%) var(--radial-0-posY, 55%), var(--gradient-r0-c0, #683AA180) var(--gradient-r0-p0, 0%), var(--gradient-r0-c1, #C27AFF80) var(--gradient-r0-p1, 100%)),
              linear-gradient(var(--linear-1-angle, 68deg), var(--gradient-l1-c0, #3F16A880) var(--gradient-l1-p0, 0%), var(--gradient-l1-c1, #683aa180) var(--gradient-l1-p1, 34%), var(--gradient-l1-c2, #C27AFF80) var(--gradient-l1-p2, 100%)) !important;

  --radial-0-posX: 16%;
  --radial-0-posY: 55%;
  --gradient-r0-c0: #683AA133;
  --gradient-r0-p0: 0%;
  --gradient-r0-c1: #C27AFF33;
  --gradient-r0-p1: 100%;
  --linear-1-angle: 68deg;
  --gradient-l1-c0: #3F16A833;
  --gradient-l1-p0: 0%;
  --gradient-l1-c1: #683aa133;
  --gradient-l1-p1: 34%;
  --gradient-l1-c2: #C27AFF33;
  --gradient-l1-p2: 100%;
  opacity: 38%;

  animation: gradient-animation 15000ms ease-in-out infinite;
}
header::before,
.header-content,
nav,
.sidebar-section,
footer div {
  position: relative;
  z-index: 2;
}

/* ========================================================================== */
/*                   ANIMACIÓN DEL SHARPIE VOLADOR                            */
/* ========================================================================== */
@keyframes flyingSharpieFloat {
  0%, 100% {
    transform: translate(-55%, -20%) rotate(-4deg);
  }
  50% {
    transform: translate(-45%, calc(-20% + 20px)) rotate(3deg);
  }
}
/* -------------------------------------------------------- */
/* BASICS */
/* -------------------------------------------------------- */

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

body {
  display: flex;
  flex-direction: column;   /* Alinea el contenido y el footer de arriba hacia abajo */
  align-items: center;      /* Centra el layout de 1200px en la pantalla */
  height: 100vh;
  font-size: var(--font-size);
  margin: 0;
  padding: 10px 0 0 0;
  color: var(--text-color);
  font-family: var(--font);
  line-height: 1.2;
  background: var(--background-color);
  background-image: url('fondos/background_stars.png');
  background-attachment: fixed;
  background-repeat: repeat;
  overflow: hidden;
}


::-moz-selection {
  background: rgba(233, 212, 255, 0.2);
}

::selection {
  background: rgba(233, 212, 255, 0.2);
}

mark {
  text-shadow: 1px 1px 4px var(--link-color);
  background-color: inherit;
  color: var(--text-color);
}

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

a,
a:visited {
  color: #ffffff;
}

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

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

.layout {
  width: 1200px;
  max-width: calc(100% - (var(--margin) * 2)); /* Deja margen lateral en pantallas medianas */
  height: calc(100vh - 60px);
  flex: 1; /* Empuja el footer hacia abajo para que siempre toque el suelo */
  display: grid;
  grid-column-gap: var(--margin);
  grid-row-gap: 5px;
  grid-template: 
    "header header" auto
    "marquee marquee" 37px
    "leftSidebar main" 1fr
    "bottomDivider bottomDivider" auto / var(--sidebar-width) 1fr;
  margin-bottom: 5px;
}

.marquee-buttons {
  grid-area: marquee;
  width: 100%;
  height: 37px;
  padding-top: 3px;
  border: none;
  margin: 0px;
  margin-bottom: calc(var(--margin) * -1);
  line-height: 0;
  background: transparent;
  text-align: center;
  overflow: hidden;
}
.marquee-buttons marquee {
  height: 31px;
  display: block;
  line-height: normal;
}
.marquee-buttons marquee img {
  height: 31px;
  vertical-align: middle;
}

.main-wrapper {
  grid-area: main;       /* Ocupa el área del Grid destinada a 'main' */
  position: relative;
  overflow: visible;
  height: 100%;
}

main#content {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto; 
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
}

/* Lado izquierdo */

#kirby-main {
  position: absolute;
  top: 28px;
  left: -20px;
  width: 45px;
  height: 45px;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#mtv-main {
  position: absolute;
  top: 110px;
  left: -13px;
  width: 35px;
  height: 35px;
  rotate: 5deg;
  z-index: 10;
  filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.85));
}

#saxo-main {
  position: absolute;
  top: 180px;
  left: -15px;
  width: 35px;
  height: auto;
  rotate: 15deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#tambor-main {
  position: absolute;
  top: 270px;
  left: -15px;
  width: 35px;
  height: auto;
  rotate: 5deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#cd-main {
  position: absolute;
  top: 350px;
  left: -15px;
  width: 35px;
  height: auto;
  rotate: 15deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#violin-main {
  position: absolute;
  top: 430px;
  left: -12px;
  width: 30px;
  height: auto;
  rotate: 10deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#chaos-main {
  position: absolute;
  top: 500px;
  left: -25px;
  width: 55px;
  height: 55px;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

/* Lado derecho */

#realrocola-main {
  position: absolute;
  top: -25px;
  right: -10px;
  height: 45px;
  width: auto;
  rotate: 10deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#rocola-main {
  position: absolute;
  top: 315px;
  right: -20px;
  width: 45px;
  height: 45px;
  rotate: -5deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#auris-main {
  position: absolute;
  top: 55px;
  right: -25px;
  width: 55px;
  height: 55px;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#radio-main {
  position: absolute;
  top: 135px;
  right: -19px;
  width: 45px;
  height: 45px;
  rotate: -5deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#cat-main {
  position: absolute;
  top: 215px;
  right: -25px;
  width: 55px;
  height: 55px;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#mesa-main {
  position: absolute;
  top: 395px;
  right: -25px;
  width: 55px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

#casete-main {
  position: absolute;
  top: 495px;
  right: -25px;
  width: 55px;
  height: auto;
  rotate: 5deg;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

/* Centro */

#parlante-main {
  position: absolute;
  align-items: center;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 50%);
  width: 70px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.95));
}

main {
  grid-row: 3;
  grid-column: 2;
  grid-area: main;
  min-height: 0;
  overflow-y: auto;
  padding: var(--padding);
  background: var(--content-background-color);
  border: var(--border);
  border-radius: var(--round-borders);
  height: 100%;
  position: relative;
  overflow-x: hidden; /* Oculta la imagen mientras espera afuera del marco */
}

/* LÍNEAS <HR> */

hr.degradado {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffff, transparent);
  margin: 2em 0;
}

/* Personalización de la barra de scroll para el contenido principal */
main::-webkit-scrollbar {
  width: 6px;
  opacity: 0.8;
}

main::-webkit-scrollbar-track {
  background: rgba(232, 227, 253, 0.1);
  border-radius: 2px;
  opacity: 0.8;
}

main::-webkit-scrollbar-thumb {
  background: #988df3;
  border-radius: 2px;
  opacity: 0.8;
}

main::-webkit-scrollbar-thumb:hover {
  background: #b69af9;
}

.rocola-lista {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px; /* Espacio vertical entre cada renglón/álbum */
  margin: 20px 0;
}

.rocola-item {
  display: flex;
  align-items: center; /* Centra alineando bandera, imagen y texto en la misma línea */
  gap: 12px; /* Espacio horizontal entre la bandera, la tapa y el texto */
}

.album-cover {
  display: flex;
  text-decoration: none;
  line-height: 0;
  width: 60px;  /* Tamaño predeterminado ideal para ver la portada sin agrandar de más */
  height: 60px;
  object-fit: cover;
  border: 0.5px solid transparent;
  border-radius: 2px; /* Esquinas ligeramente redondeadas (opcional) */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4); /* Sombra suave retro */
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  position: relative; /* Permite activar el z-index */
  z-index: 1; /* Nivel base normal */
}
.album-cover:hover {
  border-color: #f4a8ff;
  box-shadow: 0 0 8px #f4a8ff, 0 0 14px rgba(244, 168, 255, 0.4);
  transform: scale(2.5);
  z-index: 5;
}

.album-text {
  font-size: 15px;
}

.album-genre {
  font-size: 8px;
  font-style: italic;
  color: #ccb7ff;
  margin-left: 6px;
  opacity: 0.75;
}
/* -------------------------------------------------------- */
/* HEADER */
/* -------------------------------------------------------- */

header {
  grid-row: 1;
  grid-column: 1;
  -ms-grid-column-span: 3;
  grid-area: header;
  font-size: 1.2em;
  border: none;
  border-top: var(--border);
  border-bottom: var(--border);
  border-radius: 8px;
  height: 170px;                   
  width: 100%;                     
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  position: relative;
  background-color: #000000;
}
.flying-sharpie {
  position: absolute;
  top: -220px;       /* Sobresale por arriba */
  left: 50%;
  transform: translate(-50%, -20%) rotate(-5deg); /* Centrado horizontal */
  
  width: 120%;
  max-width: 1000px;  
  height: auto;     
  
  z-index: 1;       /* Por encima del fondo animado */
  pointer-events: none; 
  filter: drop-shadow(0px 12px 18px rgba(0, 0, 0, 0.75));
  animation: flyingSharpieFloat 6000ms ease-in-out infinite;
}

/* Contenedor del texto:*/
.header-content {
  padding: var(--padding);
  position: relative;
  z-index: 2;
  height: 100%;            /* Ocupa todo el alto del header */
  display: flex;          /* Activa flexbox */
  align-items: flex-start;     /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
}

.header-title {
  font-family: var(--heading-font);
  font-size: 1.5em;
  font-weight: bold;
  text-align: center;
  transform: translateY(-9px);
}

#rainbow {
  /* Parámetros: x-desplazamiento, y-desplazamiento, difuminado, color-sombra */
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
}

/* Contenedor de la palabra cambiante */
.word-changer {
  display: inline-block;
  vertical-align: middle;
  width: 150px;
  transition: opacity 0.5s ease, filter 0.5s ease;
  transform: translateY(-2px);
  white-space: nowrap;
  overflow: hidden;
}

/* Estado de salida: se difumina y pierde opacidad */
.word-changer.exiting {
  opacity: 0;
  filter: blur(8px);
}

/* Estado de entrada: aparece suavemente desde el desenfoque */
.word-changer.entering {
  opacity: 1;
  filter: blur(0px);
}

@keyframes fadeInBlur {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
  }
}

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

aside {
  grid-area: aside;
  border: var(--border);
  border-radius: var(--round-borders);
  overflow: hidden;
  padding: var(--padding);
  color: var(--sidebar-text-color);
  text-align: center;
  height: 100%;
}

.left-sidebar {
  grid-row: 3;
  grid-column: 1;
  grid-area: leftSidebar;
  position: relative;
  overflow: visible !important;

}

/* Ícono Ledyba */
.sidebar-icon-floating {
  position: absolute;
  top: -30px;         /* Posición vertical deseada */
  left: -27px;       /* Posición horizontal deseada */
  width: 45px;        /* Ancho del ícono */
  height: 45px;       /* Alto explícito necesario para posicionar las imágenes dentro */
  z-index: 10;
  cursor: pointer;
}

.sidebar-icon-floating img {
  position: absolute;
  top: 0;             /* ALINEADO AL DE ARRIBA */
  left: 0;            /* ALINEADO AL DE ARRIBA */
  width: 100%;        /* Ocupa el 100% del contenedor padre (45px) */
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.9));
  transition: opacity 0.2s ease;
}

.sidebar-icon-floating .icon-default {
  opacity: 1;
}

.sidebar-icon-floating .icon-hover {
  opacity: 0;
}

.sidebar-icon-floating:hover .icon-default {
  opacity: 0;
}

.sidebar-icon-floating:hover .icon-hover {
  opacity: 1;
}

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

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

/* Sombra en las imágenes de recursos y botones de la sidebar */
.left-sidebar .sidebar-section a img, 
.left-sidebar .sidebar-section marquee img {
  /* Parámetros: [desplazamiento X] [desplazamiento Y] [desenfoque] [color] */
  filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.4));
  
  /* Transición suave para el efecto hover */
  transition: filter 0.2s ease;
}

/* Efecto al pasar el ratón por encima */
.left-sidebar .sidebar-section a img:hover,
.left-sidebar .sidebar-section marquee img:hover {
  filter: drop-shadow(0px 0px 8px rgba(186, 85, 211, 0.8));
  }

/* EFECTO BLANCO Y NEGRO ESPECÍFICO */
img.bw-effect {
  filter: grayscale(100%) drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.85)) !important;
  transition: filter 0.2s ease !important;
  }

/* EFECTO HOVER: Recobra su color original */
img.bw-effect:hover {
  filter: grayscale(0%) drop-shadow(0px 0px 8px rgba(186, 85, 211, 0.8)) !important;
  }

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

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

.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 {
  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;
}

.hug-icon {
  position: absolute;
  top: 226px;
  left: 107px;
  width: 30px;
  height: auto;
  z-index: 15;
}

/* Contenedor estático para la cuadrícula 2x2 de feeling */
.feeling-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  min-height: 70px; /* Evita saltos de altura mientras cambia */
}

/* Grilla en formato 2x2 */
.feeling-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
  gap: 6px; /* Espacio entre botones */
  justify-items: center;
  align-items: center;
  transition: opacity 0.5s ease-in-out; /* Transición suave de difuminado */
  opacity: 1;
}

/* Estado cuando se desvanece (fade-out) */
.feeling-grid.fade-out {
  opacity: 0;
}

.feeling-grid img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

footer {
  height: 35px;
  width: 100%;
  border-top: 4px double #ffffff;  /* Mantiene el borde de 5px arriba */
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  
  font-size: 0.75em;
  padding: 0 15px;
  color: #000000;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* gothicDivisor */
.footer-divider-container {
  grid-area: bottomDivider;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  height: 20px;
}

.footer-divider-image {
  max-width: 100%;           /* No se sale del ancho del sitio */
  height: 28px;              /* Mantiene la proporción de la imagen */
  opacity: 0.6;              /* Opacidad configurable */
  position: relative;
  top: 0px;      /* Cambia a negativo para subir, positivo para bajar */
}

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

nav {
  margin-bottom: 3em;
}

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

nav ul {
  margin: 0 -5px;
  padding: 0;
  list-style: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: 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;
  text-align: center;
}

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;
  text-align:center
}

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

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

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

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