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


@font-face {
  font-family: "BodyPixel";
  src: url("/assets/fonts/VT323-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "WhimsyPixel"; /* credit: Hewett Tsoi */
  src:
    url("/assets/fonts/alagard.woff2") format("woff2"),
    url("/assets/fonts/alagard.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}


html {
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

/* Variables are used like this: var(--text-color) */
:root {
  
  /* Background Colors: */
  --background-color: #000000;
  --content-background-color: #000000;
  --sidebar-background-color: #000000;
  
  --sidebar-panel-bg: #1a1713; /* Both sidebar colors */
  --main-panel-bg: #8f8573; /* Main Content page background color */

  /* Text Colors: */
  --text-color: #ffffff;
  --sidebar-text-color: #ffffff;
  --link-color: #cce9ba;
  --link-color-hover: #31372e;
  --link-hover-bg: rgba(204, 233, 186, 1); /* highlight color */


  /* Text: */
  --font: "Lucida Console", monospace;
  --font-body: "BodyPixel", monospace;
  --font-heading: "WhimsyPixel", serif;

  /* Other Settings: */
  --margin: 40px;
  --padding: 24px;
  --border: 2px dotted #ffffff;
  --round-borders: 24px;
  --sidebar-width: 220px;
  --main-max-width: 800px; /* so that main content never gets bigger than this */
}

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

* {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  font-size: 18px;              
  margin: 0;
  padding: 16px var(--margin) 32px;
  color: var(--text-color);
  font-family: var(--font-body); 
  line-height: 1;              
  background: var(--background-color);
  background-attachment: fixed;
  background-image: url("img/bg/TEST/museum-bkg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

::selection {
  /* (Text highlighted by the user) */
  background: rgba(28, 74, 6, .5);
}

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 {
  text-decoration: underline;
  padding: 0.05em 0.15em;
  transition: background-color 120ms ease, color 120ms ease;
}

/* Highlighter-style hover ONLY for text links */
main a:not(.desk-item):not(.room-item):hover,
main a:not(.desk-item):not(.room-item):focus {
  background-color: var(--link-hover-bg);
  color: var(--link-color-hover);
  text-decoration: none;
  border-radius: 2px;
}

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

.page-shell {
  width: 100%;
  max-width: calc(var(--sidebar-width) + var(--main-max-width) + var(--sidebar-width));
  margin: 0 auto;
}

.layout {
  position: relative;
  max-width: 100%;           
  margin: 0;
  display: grid;
  gap: 0px;

grid-template-areas:
  "leftSidebar main rightSidebar"
  "footer footer footer";

  grid-template-columns:
    var(--sidebar-width)
    minmax(0, var(--main-max-width))
    var(--sidebar-width);

  border: var(--border);
  border-radius: var(--round-borders);
  padding: 0;
  background: transparent; /* BACKGROUND COLOR OF WHOLE FRAME */
  justify-content: center; 
}

/* This is for the leaf sitting on TOP of the overall frame */
.layout::before{
  content: "";
  position: absolute;
  top: -90px;      /* hanging out of the frame */
  left: -30px;
  width: 150px; 
  height: 150px;
  background: url("img/photos/leafie.png") no-repeat;
  background-size: contain;
  transform: rotate(-8deg);
  z-index: 999;    /* above everything in the layout */
  pointer-events: none; /* doesn't block clicks */
}

main {
  grid-area: main;
  overflow-y: auto;
  padding: 0;
  background: transparent; /* move padding to inner boxes */
  border: none;
  border-radius: 0;
}

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

header {
  font-size: 1.5em;
  border: none;
  border-radius: 0;
  background: transparent;
}

.site-header {
  width: 100%;
  margin: 0 0 5px 0;  /* distance from frame */
  display: block;
}

/* Below is the actual desk image styling & responsiveness */

.desk-stage {
  position: relative;   /* items will be positioned relative to this */
  width: 100%;
  /* padding-top: 230px; -- not working on mobile */
  height: clamp(140px, 22vw, 300px);
  overflow: visible;
}

.desk-surface{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;     /* key */
  width: 100%;
  z-index: 1;
}

.desk-img{
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}


/* This is the stuff on top of the desk */

/* GENERIC DESK ITEM STUFF - links and decor */
.desk-item{
  position: absolute;
  display: block;
  text-decoration: none;
  container-type: inline-size;

  /* placement defaults */
  bottom: 0;
  left: var(--x, auto);
  right: var(--r, auto);
  width: var(--w, 10%);
  transform: translate(var(--tx, -50%), var(--ty, -20%));
  z-index: var(--z, 4);
}


.desk-item img{
  display: block;
  width: 100%;
  height: auto;
  transition: transform 160ms ease;
  transform-origin: 50% 80%;
}

.desk-item:hover img{
  transform: rotate(2deg) scale(1.03);
}

.desk-item.no-tilt:hover img{ transform: none; }

/* Label overlay (hidden until hover) */
.desk-item .item-text{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -30%);
  width: 90%;
  text-align: center;

  font-family: var(--font-heading);
  font-weight: normal;
  line-height: 1.05;
  letter-spacing: 1px;

  color: transparent;   /* hide real text */
  text-shadow: 0 0 6px rgba(152,141,243,.35);
  pointer-events: none;
  user-select: none;
}

.desk-item .item-text::before{
  content: attr(data-default);
  display: inline-block;

  /* SIZE */
  font-size: 35cqw;          /* font size for label */
  line-height: 1;
  letter-spacing: 2px;

  /* COLOR */
  color: #ffffff;            /* warm readable yellow */

  /* OUTLINE (pixel clean) */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0   0   6px rgba(0,0,0,.45);

  /* ANIMATION */
  opacity: 0;
  transform: translateY(10%);
  transition: opacity 140ms ease, transform 140ms ease;
}


.desk-item:hover .item-text::before{
  opacity: 1;
  transform: translateY(0);
}

/* CRT MONITOR WITH TEXT */
.desk-crt {
  position: absolute;
  text-decoration: none;
  left: 50%;
  bottom: 0;
  top: auto;              /* for adjusting where it sits on the desk */
  width: 25%;   /* use this to adjust the size of the CRT */        
  transform: translate(-50%, -12%) scale(1); /* anchor bottom center */
  transform-origin: 50% 100%;
  transition: transform 160ms cubic-bezier(.2,1.4,.4,1), filter 160ms ease;
  will-change: transform;
  container-type: inline-size;
  z-index: 3;
}

.desk-crt img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;   /* clicks go through text */
}

.crt-text{
  position: absolute;
  left: 50%;
  top: 43%;                  /* tweak for text placement */
  transform: translate(-50%, -50%);
  width: 70%;

  text-align: center;
  font-family: var(--font-heading); 
  font-weight: normal;
  font-size: 20cqw;
  line-height: 1.05;
  letter-spacing: 1px;

  color: transparent;
  text-shadow: 0 0 6px rgba(152,141,243,.35);
  
  pointer-events: none;
  user-select: none;
}

.desk-crt:hover,
.desk-crt:focus-visible{
  transform: translate(-50%, -12%) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.20));
}

/* for if i want text on the CRT at rest */
.crt-text::before{
  content: "";
  /* content: attr(data-default); -- NO TEXT FOR NOW */
  display: block;

  /* SIZE */
  font-size: 18cqw;      /* tweak per taste */
  line-height: 1;
  letter-spacing: 2px;

  /* COLOR */
  color: #ffffff;

  /* OUTLINE (pixel-clean, same as camcorder) */
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0   0   6px rgba(0,0,0,.45);
}


.desk-crt:hover .crt-text::before,
.desk-crt:focus-visible .crt-text::before{
  content: attr(data-hover);
}

/* Camcorder */
.desk-cam{
  --x: 32.25%;
  --w: 10%;
  --tx: -50%;
  --ty: -30%;
  --z: 5;
}


/* Videos label on camcorder */
.desk-cam .item-text{
  top: 35%;
}

/* CAROUSEL */
.desk-horse{
  --x: 24%;
  --w: 9%;
  --tx: -50%;
  --ty: -40%;
  --z: 4;
  pointer-events: none;
}


/* CD floppy stack - DECORATION */
.desk-cdstack{
  --x: 66%;
  --w: 12%;
  --tx: -50%;
  --ty: -14%;
  --z: 2;

  pointer-events: none;
}


/* CD PLAYER (music link) */
.desk-cdplayer{
  --r: 24%;
  --w: 11%;
  --tx: 50%;
  --ty: -28%;
  --z: 6;
}


/* rotate + grow ONLY the CD player image */
.desk-cdplayer img{
  transition: transform 160ms ease;
  transform-origin: 50% 80%;
}

.desk-cdplayer:hover img{
  transform: rotate(-2deg) scale(1.03);
}

/* Label placement */
.desk-cdplayer .item-text{
  top: 25%;                /* here is the text placement for "music" */
}


/* end desk image stuff */

.header-content {
  padding: var(--padding);
}

.header-title {
  font-family: var(--font-heading);
  font-size: 1.5em;
  font-weight: normal;
}

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

.header-logo {
  max-width: 400px; /* max size of logo */
  height: auto;
  transition: transform 350ms cubic-bezier(.2, 1.4, .4, 1);
}


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

aside {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  padding: 0; /* moving padding to inner boxes */
  color: var(--sidebar-text-color);
}

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

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

.left-sidebar, .right-sidebar, main { min-width: 0; } /* stop stretching!!!! */

.left-sidebar,
.right-sidebar{
  background: var(--sidebar-panel-bg);
  padding: var(--padding);
  border-radius: 0; /* all the way to the border */
}

/* fix the frame's rounded corners so they don't go past the dotted outline*/
.left-sidebar {
  border-top-left-radius: var(--round-borders);
  overflow: hidden; /* clips the background */
}

.right-sidebar {
  border-top-right-radius: var(--round-borders);
  overflow: hidden;
}


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

.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 Images */
.sidebar-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


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

footer {
  grid-area: footer;
  border: none;
  border-radius: 0;
  overflow: hidden;
  font-size: 0.75em;
  padding: 0;
  background: transparent;
  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: normal;
}

nav ul summary {
  cursor: pointer;
}

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

/* NAVIGATION IN HEADER */

header nav {
  margin-bottom: 0;
}

header nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}

header nav ul li {
  position: relative;
}

header nav ul li:first-child > a {
  padding-left: 0;
}

header nav ul li:last-child > a {
  padding-right: 0;
}

/* Subnavigation (Drop-Down): */

header nav ul ul {
  background: var(--content-background-color);
  display: none;
  position: absolute;
  top: 100%;
  left: 10px;
  padding: 0.5em;
  z-index: 1;
  border: var(--border);
  min-width: 100%;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.2);
}

header nav ul li:hover ul,
header nav ul li:focus-within ul {
  display: block;
}

header nav ul li strong {
  color: var(--link-color);
  text-decoration: underline;
  font-weight: normal;
}

header nav ul ul li a {
  display: block;
  padding-left: 0;
  padding-right: 0;
}

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

main {
  line-height: 1.25;
  background: var(--main-panel-bg);
  padding: var(--padding);
}

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

.box {
  border: 1px dotted var(--text-color);
  border-radius: 6px;
  padding: 16px;
  background: rgba(0,0,0,0.35);
}

/* Main content boxes get bigger horizontal padding, same vertical padding */

main .box {
  padding: 16px 32px;   /* top/bottom | left/right */
}

.box + .box {
  margin-top: 18px;
}

/* HEADINGS: */

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-family: var(--font-heading);
  margin-bottom: 0;
  line-height: 1.2;
  letter-spacing: 0.1em;
  font-weight: normal;
}

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: 2.3em;
}

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

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

/* MOBILE NAV (details/summary dropdown) */

.mobile-nav { 
  display: none; 
}

.mobile-nav-details {
  border: var(--border);
  border-radius: var(--round-borders);
  background: rgba(0,0,0,0.35);
}

.mobile-nav-toggle {
  cursor: pointer;
  list-style: none; /* helps some browsers */
  padding: 12px;
  font-family: var(--font-heading);
}

/* Hide the default triangle marker (Safari/iOS) */
.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.mobile-nav-menu {
  margin: 0;
  padding: 10px 12px 12px;
  list-style: none;
  border-top: var(--border);
}

.mobile-nav-menu li a {
  display: block;
  padding: 10px 6px;
  text-decoration: none;
}
.mobile-nav-menu li a:hover {
  text-decoration: underline;
}


/* Mobile portrait */
@media (max-width: 1100px) and (orientation: portrait) {
  .mobile-nav { display: block; }
  .desk-stage {height: clamp(100px, 22vw, 300px); }
}


/* PHONE PORTRAIT */
@media (max-width: 1100px) and (orientation: portrait) {
  .layout {
    grid-template:
      "leftSidebar" auto
      "main" auto
      "footer" auto
      / 1fr;

    overflow: hidden; /* clip sidebar/footer to rounded border */
    border-radius: var(--round-borders);
  }

  .right-sidebar { 
    display: none; 
  }

  /* Hide the leaf on mobile portrait */
  .layout::before {
    display: none;
  }

  footer {
    margin: 0;
  }
}

/* PHONE LANDSCAPE */
@media (max-width: 1100px) and (orientation: landscape) {
  
  .desk-stage {
    height: clamp(160px, 22vw, 260px); /* adjust if needed */ }
  
  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;
  }


  .right-sidebar { display: block; }

  .layout {
    grid-template:
      "leftSidebar main rightSidebar" auto
      "footer footer footer" auto
      / 160px minmax(0, 1fr) 160px; /* tweak widths */
      
  
  }
}

  