@font-face {
	font-family: 'VCR';
	src: url('../_fonts/VCR_OSD_MONO_1.001.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}
body {
    font-family: 'VCR';}

    #ui-root {
  position: fixed;
  inset: 0;             /* covers whole viewport */
  pointer-events: none; /* so it doesn’t block clicks on artwork */
  z-index: 9000;
}

/* all UI children can still receive events */
#ui-root * {
  pointer-events: auto;
}
/* === Animated help video instead of ? === */
.helpaccess {
  position: fixed;
  top: 0;
  right: 0;
  width: 100px;          /* adjust to your video size */
  height: 100px;
  overflow: hidden;
  z-index: 10000;

  cursor: pointer;
  transition: transform 0.6s ease;
  transform: translateX(50%); /* half-hidden to the right */
}

.helpaccess:hover {
  transform: translateX(0); /* fully visible when hovered */
}

.helpaccess video {
  width: 100%;
  height: 100%;

  object-fit: cover;
  pointer-events: none; /* so only container handles hover */
}

/* optional soft shadow to make it more visible */
.helpaccess::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: -6px 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
/* === Collapsible Header with "MENU" tab === */
.top-header {
  position: fixed;
  top: 0;
  right: 0;
 height: 49px;
  width: 100%;
  max-width: 100vw;                 /* expanded width */
  background: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.5s ease;
  transform: translateX(calc(95% - 28px)); /* only the MENU tab peeks out */
  z-index: 9500;
  border-left: 1px solid rgba(0,0,0,0.2);
}

/* When expanded */
.top-header.expanded {
  transform: translateX(0);
  width: 100vw;    
}

/* Vertical MENU tab */
.menu-tab {
  writing-mode: horizontal-lr;
  text-orientation: mixed;
  background: black;
  color: white;
  font-size: 0.95rem;
  cursor: pointer;
  height: inherit;
 width:49px;
  position: relative;

  display: flex;
  transform: rotate(-90deg) ;
  user-select: none;
}

/* Menu content */
.menu-content {
  flex: 1;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
}

.menu-content a {
  color: black;
  text-decoration: none;
  margin: 0 4px;
}
.menu-content a:hover {
  text-decoration: underline;
}
a:top-header{
    cursor: pointer;
}
.top-header span {
  font-size: 1.1em; /* Adjust the font size as needed */
  text-align: left;
    align-content: left;
    align-items: left;
}
.sawtooth-underline {
  display: inline-block;
  border-bottom: 4px solid;
  border-image: 
    repeating-linear-gradient(
      45deg,      /* angle of zigzag */
      black 0 2px,
      transparent 2px 4px
    ) 1;
}
.letter {
	position: relative;
	cursor: pointer;
	transition: opacity 0.3s ease;
	width: 1ch;
	text-align: center;
}
/* Existing overlay frame, unchanged except small improvement */
.overlay-frame {
    cursor: pointer;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 580px;
    height: 58vh;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 0);
    border: 2px solid rgb(0, 0, 0);
    display: none;
    z-index: 10001;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    font-size: 0.95em;
    backdrop-filter: blur(6px); /* <-- adds internal blur if you like glassy look */
}

.overlay-content {
	cursor: pointer;
    text-align: center;
    font-size: 0.95em;
    z-index: 999998;
}

.overlay-frame .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.0em;
    color: rgb(255, 255, 0);
    z-index: 999999;
}


/* Overlay content text */
.overlay-content {
    cursor: pointer;
    text-align: center;
    font-size: 0.95em;
    z-index: 999998;
}

/* === NEW: Blur the rest of the page when overlay is shown === */
/* Blur everything except overlay and top-header */
body.blurred > *:not(.overlay-frame):not(.top-header) {
  filter: blur(8px);
  transition: filter 0.3s ease;
  pointer-events: none;
}


/* Keep menu interactive and above overlay */
.top-header {
  z-index: 10002;
}

.overlay-frame {
  z-index: 10001; /* slightly below header now */
}

/* Optional: subtle fade-in for overlay */
.overlay-frame.show {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
#htext-container{
	color: rgb(255, 255, 0);
	pointer-events: auto;
}

.helpaccess {
  position: fixed;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  text-align: right;
  z-index: 9500;          /* sits above header */
  display: flex;
  justify-content: flex-end;
  margin-right: 30px;
}

.art-title {
  position: fixed;
  top: 20px;
  right: 80px;  
  font-family: 'VCR', monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: rgb(255, 230, 120); /* warm yellowish */
  cursor: pointer;
  transition: opacity 0.25s ease;
  z-index: 10500;          /* above question mark and header */
  display: none;
}

/* Tooltip */
.art-tooltip {
  position: fixed;
  top: 80px;              /* ~60px below title */
  right: 80px;
  width: 540px;
  height:auto;
  background: rgba(255, 255, 255, 0.79);
  border: 1px solid rgba(255, 255, 150, 0.79);

  border-radius: 2px;
  padding: 14px;
  font-size: 0.8rem;
  line-height: 1.4;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
  opacity: 0;
 pointer-events: auto;
  transition: opacity 0.25s ease;
  z-index: 10000;          /* topmost, above header/title */
}
.art-tooltip.visible {
  opacity: 1;
}