* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('../IMAGES/blueinkbackground.png') repeat;
    min-height: 100vh;
    overflow: hidden;
    font-family: "Orbitron", "Courier New", monospace;
    position: relative;
}

a[href^='http']::after {
    content: url('IMAGES/external.png');
    margin-left: 0.25em; /* Adjust spacing */
}

/* ============================================ */
/* PAGE TITLE */
/* ============================================ */

.page-title {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #89bee7;
    border: 3px solid #000000;
    padding: 1px 25px;
    font-family: "audiowide", monospace;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    letter-spacing: 3px;
    box-shadow: 4px 4px 0 #000000;
    text-align: center;
}

.page-title .titletext {
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    height: 97px;
    width: 625px;
}

/* High contrast mode for page title */
body.high-contrast .page-title {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 4px 4px 0 #ffffff !important;
}

/* nav arrows */
.nav-controls {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 100;
}

.nav-left,
.nav-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* nav arrow button stuff */
.nav-btn {
    background: #89bee7;
    border: 3px solid #000000;
    color: #000000;
    font-family: "audiowide", monospace;
    font-size: 29px;
    font-weight: bold;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 4px 4px 0 #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #ffffff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #000000;
}

.nav-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 #000000;
}

.nav-btn span {
    display: block;
    line-height: 1;
}

/* photo counter */
.photo-counter {
    background: #89bee7;
    color: #000000;
    padding: 15px 30px;
    border: 3px solid #000000;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 3px;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
    min-width: 140px;
    text-align: center;
}

/* HIGH CONTRAST STUFF */
body.high-contrast .photo-counter {
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 4px 0 rgba(255, 255, 255, 0.3);
}

body.high-contrast .nav-btn {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 4px 4px 0 #ffffff !important;
}

body.high-contrast .nav-btn:hover {
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: 2px 2px 0 #ffffff !important;
}

body.high-contrast .nav-btn:active {
    box-shadow: 0 0 0 #ffffff !important;
}

/* rollodex */
.rollodex-container {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    height: 550px;
    transform: translateY(calc(-50% - 40px)); /* Shift up by 40px */
    overflow: hidden; /* Hide photos beyond 4 on each side */
}

.rollodex-track {
    position: absolute;
    height: 100%;
    display: flex;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* photos default to hidden until they are in a tier */
.photo-frame {
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease-out;
    cursor: pointer;
    transform-origin: center center;
    transform: rotate(0deg);
    opacity: 0;
    margin-right: -100px;
    z-index: 0;
    background-image: url(../IMAGES/offwhitebackground.png);
    /* Hidden state: scale 0.3 - tiny frame */
    padding: 2px 2px 6px 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

/* fire gif defaults to hidden */
.fire-icon {
    position: absolute;
    top: 1px;
    left: 6px;
    z-index: 5;
    pointer-events: none;
    width: 35px;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-frame.tier-0 .fire-icon {
    opacity: 1;
}

.photo-frame .photo-img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* photo frame sizing for different tiers */
.photo-frame.tier-0 {
    z-index: 10;
    opacity: 1;
    margin-right: -80px;
    padding: 20px 20px 80px 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.photo-frame.tier-0 .photo-img {
    width: 320px;
    height: 450px;
}

.photo-frame.tier-1 {
    z-index: 9;
    opacity: 1;
    margin-right: -85px;
    padding: 15px 15px 62px 15px; 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.photo-frame.tier-1 .photo-img {
    width: 246px; /* 320 * 0.77 */
    height: 347px; /* 450 * 0.77 */
}

.photo-frame.tier-2 {
    z-index: 8;
    opacity: 1;
    margin-right: -90px;
    padding: 12px 12px 50px 12px; 
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.photo-frame.tier-2 .photo-img {
    width: 198px; /* 320 * 0.62 */
    height: 279px; /* 450 * 0.62 */
}

.photo-frame.tier-3 {
    z-index: 7;
    opacity: 1;
    margin-right: -120px; 
    padding: 10px 10px 40px 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.photo-frame.tier-3 .photo-img {
    width: 160px; /* 320 * 0.5 */
    height: 225px; /* 450 * 0.5 */
}

.photo-frame.tier-4 {
    z-index: 6;
    opacity: 1;
    margin-right: -110px; 
    padding: 8px 8px 30px 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.photo-frame.tier-4 .photo-img {
    width: 122px; /* 320 * 0.38 */
    height: 171px; /* 450 * 0.38 */
}

/* hidden pics */
.photo-frame.tier-hidden {
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    padding: 2px 2px 6px 2px;
}

.photo-frame.tier-hidden .photo-img {
    width: 74px; /* 320 * 0.23 */
    height: 104px; /* 450 * 0.23 */
}

.photo-img {
    display: block;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* enlarged photo on click */
.photo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-overlay.active {
    display: flex;
    opacity: 1;
}

.enlarged-photo-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: popIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#enlarged-photo {
    display: block;
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
}

/* ACCESSIBILITY - REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
    .rollodex-track,
    .photo-frame,
    .photo-overlay,
    .enlarged-photo-container {
        transition: none;
        animation: none;
    }
}

/* ============================================ */
/* HIGH CONTRAST MODE */
/* ============================================ */

body.high-contrast {
    background: #000000 !important;
}

body.high-contrast .photo-overlay {
    background: rgba(0, 0, 0, 0.98) !important;
}

/* ============================================ */
/* PHOTO PAGE NAVIGATION PANEL */
/* ============================================ */

.photo-nav-panel {
  position: fixed;
  top: 350px; /* Default position when accessibility panel is expanded */
  left: 20px;
  z-index: 9999;
  background: #89bee7;
  border: 3px solid #000000;
  padding: 10px;
  font-family: "audiowide", monospace;
  font-size: 13px;
  line-height: 1.4;
  color: #000000;
  width: 220px;
  max-width: 220px;
  transition: top 0.3s ease; /* Smooth transition when moving */
  box-shadow: 4px 4px 0 #000000;
}

/* Adjust position when accessibility panel is collapsed */
body.accessibility-collapsed .photo-nav-panel {
  top: 90px; /* Move up to be right under the collapsed accessibility panel */
}

.photo-nav-panel-header {
  font-weight: bold;
  margin-bottom: 8px;
  text-align: center;
  border-bottom: 2px solid #000000;
  padding-bottom: 5px;
  font-size: 14px;
  letter-spacing: 2px;
}

.photo-nav-link {
  cursor: pointer;
  user-select: none;
  padding: 8px;
  margin: 5px 0;
  display: block;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #000000;
  position: relative;
  background: #89bee7;
  border: 2px solid #000000;
  font-weight: bold;
  box-shadow: 2px 2px 0 #000000;
}

.photo-nav-link .carat-left,
.photo-nav-link .carat-right {
  display: inline-block;
  transition: transform 0.2s ease;
}

.photo-nav-link:hover .carat-left {
  transform: translateX(3px);
}

.photo-nav-link:hover .carat-right {
  transform: translateX(-3px);
}

.photo-nav-link:hover {
  background: #ffffff;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.photo-nav-link:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000000;
}

.photo-nav-collapse-btn {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #89bee7;
  border: 3px solid #000000;
  color: #000000;
  cursor: pointer;
  padding: 4px 10px;
  font-family: "audiowide", monospace;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  user-select: none;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000000;
}

.photo-nav-collapse-btn:hover {
  background: #ffffff;
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000000;
}

.photo-nav-collapse-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000000;
}

/* Collapsed state */
.photo-nav-panel.collapsed .photo-nav-link {
  display: none;
}

/* High contrast mode styling */
body.high-contrast .photo-nav-panel {
  background: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 4px 4px 0 #ffffff !important;
}

body.high-contrast .photo-nav-panel-header {
  border-bottom-color: #ffffff !important;
  color: #ffffff !important;
}

body.high-contrast .photo-nav-link {
  color: #ffffff !important;
  background: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 2px 2px 0 #ffffff !important;
}

body.high-contrast .photo-nav-link:hover {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 1px 1px 0 #ffffff !important;
}

body.high-contrast .photo-nav-link:active {
  box-shadow: 0 0 0 #ffffff !important;
}

body.high-contrast .photo-nav-collapse-btn {
  border-color: #ffffff !important;
  color: #ffffff !important;
  background: #000000 !important;
  box-shadow: 2px 2px 0 #ffffff !important;
}

body.high-contrast .photo-nav-collapse-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 1px 1px 0 #ffffff !important;
}

body.high-contrast .photo-nav-collapse-btn:active {
  box-shadow: 0 0 0 #ffffff !important;
}

/* ============================================ */
/* PHOTO PAGE ACCESSIBILITY PANEL RESKIN */
/* ============================================ */

/* Override global.css styles for accessibility panel on photo pages */
.accessibility-panel {
  background: #89bee7 !important;
  border: 3px solid #000000 !important;
  box-shadow: 4px 4px 0 #000000 !important;
  color: #000000 !important;
  font-family: 'Fixedsys Excelsior', 'Courier New', monospace !important;
}

.accessibility-panel-header {
  border-bottom: 2px solid #000000 !important;
  color: #000000 !important;
  font-family: 'Fixedsys Excelsior', 'Courier New', monospace !important;
  letter-spacing: 1px !important;
}

.accessibility-option {
  background: transparent !important;
  color: #000000 !important;
  padding: 5px !important;
  margin: 3px 0 !important;
  border: 2px solid transparent !important;
  transition: all 0.2s ease !important;
  font-family: 'Fixedsys Excelsior', 'Courier New', monospace !important;
}

.accessibility-option:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  transform: translate(1px, 1px) !important;
}

.accessibility-checkbox {
  color: #000000 !important;
  font-weight: normal !important;
  font-family: 'Fixedsys Excelsior', 'Courier New', monospace !important;
}

.accessibility-label {
  color: #000000 !important;
  font-size: 13px !important;
  font-family: 'Fixedsys Excelsior', 'Courier New', monospace !important;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.accessibility-collapse-btn {
  background: #89bee7 !important;
  border: 3px solid #000000 !important;
  color: #000000 !important;
  font-family: "audiowide", monospace !important;
  font-size: 14px !important;
  font-weight: bold !important;
  box-shadow: 2px 2px 0 #000000 !important;
  padding: 4px 10px !important;
  transition: all 0.2s ease !important;
}

.accessibility-collapse-btn:hover {
  background: #ffffff !important;
  transform: translate(1px, 1px) !important;
  box-shadow: 1px 1px 0 #000000 !important;
}

.accessibility-collapse-btn:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 0 0 0 #000000 !important;
}

/* High contrast overrides for accessibility panel */
body.high-contrast .accessibility-panel {
  background: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 4px 4px 0 #ffffff !important;
}

body.high-contrast .accessibility-panel-header {
  border-bottom-color: #ffffff !important;
  color: #ffffff !important;
}

body.high-contrast .accessibility-option {
  color: #ffffff !important;
}

body.high-contrast .accessibility-option:hover {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

body.high-contrast .accessibility-option:hover .accessibility-checkbox,
body.high-contrast .accessibility-option:hover .accessibility-label {
  color: #000000 !important;
}

body.high-contrast .accessibility-checkbox,
body.high-contrast .accessibility-label {
  color: #ffffff !important;
}

body.high-contrast .accessibility-collapse-btn {
  background: #000000 !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  box-shadow: 2px 2px 0 #ffffff !important;
}

body.high-contrast .accessibility-collapse-btn:hover {
  background: #ffffff !important;
  color: #000000 !important;
  box-shadow: 1px 1px 0 #ffffff !important;
}

body.high-contrast .accessibility-collapse-btn:active {
  box-shadow: 0 0 0 #ffffff !important;
}

/* STICKER STYLES */
.sticker {
    position: absolute;
    pointer-events: none; /* So they don't interfere with clicking */
}

.sticker img {
    display: block;
}

/* snowflakes */
.sticker-snowflake1 {
    top: 712px;
    left: 668px;
    z-index: 5;
}

.sticker-snowflake1 img {
    width: 93px;
    height: auto;
}

.sticker-snowflake2 {
    top: 661px;
    left: 630px;
    z-index: 5;
}

.sticker-snowflake2 img {
    width: 63px;
    height: auto;
}

.sticker-snowflake3 {
    top: 29px;
    left: 1264px;
    z-index: 5;
}

.sticker-snowflake3 img {
    width: 63px;
    height: auto;
}

.sticker-snowflake4 {
    top: 112px;
    left: 1490px;
    z-index: 5;
}

.sticker-snowflake4 img {
    width: 94px;
    height: auto;
}

.sticker-snowflake5 {
    top: 21px;
    left: 263px;
    z-index: 5;
}

.sticker-snowflake5 img {
    width: 50px;
    height: auto;
}

/* nutcracker */
.sticker-nutcracker {
    top: 632px;
    left: 109px;
    z-index: 5;
    transform: rotate(-40deg);
}

.sticker-nutcracker img {
    width: 159px;
    height: auto;
}

/* train */
.sticker-train {
    top: 570px;
    left: 1456px;
    z-index: 5;
    transform: rotate(13deg);
}

.sticker-train img {
    width: 358px;
    height: auto;
}

/* ornaments */
.sticker-ornament1 {
    top: 690px;
    left: 1153px;
    z-index: 5;
    transform: rotate(-13deg);
}

.sticker-ornament1 img {
    width: 129px;
    height: auto;
}

.sticker-ornament2 {
    top: 54px;
    left: 1671px;
    z-index: 5;
    transform: rotate(26deg);
}

.sticker-ornament2 img {
    width: 174px;
    height: auto;
}

/* candycane */
.sticker-candycane {
    top: 19px;
    left: 359px;
    z-index: 5;
    transform: rotate(16deg);
}

.sticker-candycane img {
    width: 138px;
    height: auto;
}