/* === BASE STYLES === */
body {
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  color: #e0e0e0;
  line-height: 1.6;
  background-color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.95)),
      url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAEklEQVQImWNgYGD4z0AswK4SAFXuAf8EPy+xAAAAAElFTkSuQmCC');
    z-index: -1;
    opacity: 0.75;
  }
  
  /* === HEADER & NAV === */
  .full-width-header {
    width: 100%;
    background: #000;
    border-bottom: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    padding: 5px 0;
    position: relative;
  }
  
  .phoneholm-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    position: relative;
    padding: 2px 0;
  }
  
  .phoneholm-header:before,
  .phoneholm-header:after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #ff00ff, #ffff00);
  }
  
  .phoneholm-header h1 {
    background: #000;
    padding: 0 20px;
    font-size: 22px;
    margin: 0;
    background: linear-gradient(to right, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
  }
  
  .nav {
    text-align: center;
    margin: -5px 0 25px 0;
  }
  
  .nav a {
    display: inline-block;
    padding: 5px 15px;
    background: #000;
    border: 2px solid #ffff00;
    color: #ffff00;
    text-decoration: none;
    transition: all 0.3s;
  }
  
  .nav a:hover {
    background: #ffff00;
    color: #000;
  }
  
  /* Sparkles */
  .sparkle {
    position: absolute;
    font-size: 10px;
    color: #ffff00;
    animation: sparkle 2s infinite;
    opacity: 0;
    pointer-events: none;
  }
  
  @keyframes sparkle {
    0% { opacity: 0; transform: scale(0.3) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(20deg); }
    100% { opacity: 0; transform: scale(0.3) rotate(40deg); }
  }
  
  /* Sparkle positions */
  .sparkle-1 { top: -10px; left: 10%; animation-delay: 0.1s; }
  .sparkle-2 { top: 3px; left: 15%; animation-delay: 0.3s; }
  .sparkle-3 { top: 15px; left: 8%; animation-delay: 0.5s; }
  .sparkle-4 { top: -8px; right: 12%; animation-delay: 0.2s; }
  .sparkle-5 { top: 7px; right: 18%; animation-delay: 0.4s; }
  .sparkle-6 { top: 20px; right: 10%; animation-delay: 0.6s; }
  .sparkle-7 { top: -3px; left: 50%; transform: translateX(-50%); animation-delay: 0.7s; }
  .sparkle-8 { bottom: -10px; left: 20%; animation-delay: 0.8s; }
  .sparkle-9 { bottom: -8px; right: 25%; animation-delay: 0.9s; }
  .sparkle-10 { top: 50%; left: 30%; animation-delay: 1s; }
  .sparkle-11 { top: 50%; right: 30%; animation-delay: 1.1s; }
  
  /* === PAGE TITLE === */
  .page-title {
    text-align: center;
    margin: 0 0 5px 0;
    margin-top: -10px; /* Pulls upward */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
  }
  
  .page-title:before,
  .page-title:after {
    content: "";
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, #ff00ff, #ffff00);
  }
  
  .page-title h1 {
    background: #000;
    padding: 0 25px;
    font-size: 32px;
    margin: 0;
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    position: relative;
    letter-spacing: 1px;
  }

.tagline {
  font-size: 20px;
  text-align: center;
  color: #ff00ff; /* Keep existing pink text */
  font-weight: bold;
  margin: 20px 0;
  margin-top: -5px;  /* Pulls the tagline upward */
  margin-bottom: 60px; /* space below tagline */
  padding: 5px 0;     /* Reduces vertical padding */
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(128, 0, 255, 0.5);
  /* New: Transparent purple background */
  background: rgba(255, 121, 255, 0.218); /* Adjust opacity (0.3 = 30%) */
  border-top: 1px dotted #ffff00;
  border-bottom: 1px dotted #ffff00;
  padding: 10px 0;
  width: 100%;
}
  
.main-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
  
  /* === ODDITIES MUSEUM === */

  .museum-wall {
    width: 100%;
    margin: 0;
    border: none;
    box-shadow: none;
    padding: 20px 0 0;
    flex: 1;
    display: flex;
    flex-direction: column;
background:
    /* Dark purple overlay */
    linear-gradient(rgba(35, 0, 80, 0.426), rgba(18, 0, 33, 0.4)),
    /* Dark vignette */
    radial-gradient(ellipse at center, 
        rgba(0,0,0,0) 0%, 
        rgba(0,0,0,0.9) 80%,
        rgba(0,0,0,1) 100%),
    /* Colored spotlight effect */
    radial-gradient(ellipse at 30% 20%, 
        rgba(255, 0, 255, 0.15) 0%, 
        rgba(255, 255, 0, 0.1) 30%,
        rgba(0,0,0,0) 70%),
    /* GIF overlay */
    url('../images/GIF-by-Omer-Studios.gif'),
    /* Base texture */
    url('../images/vicbg.png');
  background-size: cover, cover, cover, cover, cover;
  background-position: center, center, center, center, center;
  background-blend-mode: normal, normal, normal, overlay, normal;
    background-attachment: fixed;
    box-shadow: 
        inset 0 0 50px rgba(255, 0, 255, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
    min-height: 100%;
}
  
  /* CRT Scanlines */
  .museum-wall::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
      to bottom,
      transparent 0%,
      rgba(255, 0, 255, 0.05) 1px,
      transparent 2px
    );
    pointer-events: none;
  }
  
  .museum-wall:before {
    content: "✧･ﾟ:*";
    position: absolute;
    top: -15px;
    left: 20px;
    background: #000;
    color: #ffff00;
    padding: 0 10px;
    font-size: 18px;
    text-shadow: 0 0 5px #ff00ff;
  }


  .gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* between the pix */
    padding: 20px 0;
    max-width: 1400px; /* Added to contain 4 items comfortably */
    margin: 0 auto; /* Center the gallery */
}
  
/* adjusted for 4 per row */
.oddity {
  width: 290px; /* Explicit width matching your frame size */
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  transform: rotate(calc(-3deg + (6deg * var(--rotation))));
  position: relative;
  margin-bottom: 40px;
}
  
/* Image styling */
.oddity-image {
  max-width: calc(100% - 30px);
  max-height: calc(100% - 30px);
  object-fit: cover;
  background: #000;
  z-index: 2;
}

.oddity:hover {
  transform: rotate(0deg) translateY(-10px) scale(1.05); /* Move up slightly */
  z-index: 10;
  animation: float-updown 1.5s ease-in-out infinite alternate;
}

  .oddity:hover .frame-container {
    filter: contrast(1.1) brightness(1) saturate(1.3);
  }

  /* Effects on Thumbnails */
  .oddity-frame {
    position: relative;
    width: 100%;
    height: 220px;
    box-sizing: border-box;
    transition: filter 0.3s;
    filter: contrast(1) brightness(1) saturate(1);
    background-color: transparent;
    position: relative;
    overflow: hidden;
  }

/* The actual frame image */
.oddity-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/frame.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
  pointer-events: none; /* Allows clicks through to image */
}

/* The matting effect */
.oddity-frame::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background-color: #f5f5f5; /* Matte color */
  z-index: 1;
}

/* Image styling */
/* Adjust image size to account for larger matte */
.oddity-frame img {
  position: absolute;
  top: 15px;  /* Adjusted from 10px */
  left: 15px;  /* Adjusted from 10px */
  width: calc(100% - 50px);  /* Adjusted from 40px */
  height: calc(100% - 50px);  /* Adjusted from 40px */
  object-fit: cover;
  z-index: 2;
  background: #000;
}
  
/* Keep the hover effects */
.oddity:hover .oddity-frame {
  filter: contrast(1.1) brightness(1.1) saturate(1.3);
  animation: vhs-glitch 0.5s infinite alternate;
}
  
  @keyframes vhs-glitch {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateY(-1px); }
    80% { transform: translateY(1px); }
    100% { transform: translate(0); }
  }
  
  .hover-title {
    margin-top: 0px;
    padding: 6px 10px;
    background: #f2f2e9; /* off-white museum label */
    color: #000;
    border: 1px solid #ccc;
    font-family: 'Georgia', serif;
    font-size: 16px;
    max-width: 70%;
    margin-left: 50px;
    margin-right: auto;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .oddity:hover .hover-title {
    opacity: 1;
  }
  
  
  /* Frame container styles */
  .frame-container {
    position: relative;
    width: 330px; /* Increased from 270px */
    height: 330px; /* Increased from 270px */
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    transition: filter 0.3s;
    background-color: transparent;
    overflow: hidden;
    background-image: url('../images/frame.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Matte styling */
.matte {
  position: absolute;
  top: 50px; /* Increased from 30px */
  left: 50px; /* Increased from 30px */
  right: 50px; /* Increased from 30px */
  bottom: 50px; /* Increased from 30px */
  background-color: hsl(64, 40%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
  
  /* Glitchy "ADOPT" Button */
  .adopt-btn {
    display: block;
    background: #ff00ff;
    color: #000;
    text-align: center;
    padding: 3px;
    font-weight: bold;
    margin-top: 5px;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
    position: relative;
  }
  
  .adopt-btn:hover {
    background: #ffff00;
    animation: text-glitch 0.3s infinite;
  }
  
  @keyframes text-glitch {
    0%, 70%, 100% { transform: translate(0); } /* Long pauses */
    5% { transform: translate(-1px, 1px); }    /* Tiny movements */
    25% { transform: translate(1px, -1px); }   /* Slower intervals */
    50% { transform: translate(-1px, -1px); }  /* Minimal offset */
  }
  
  /* === TAGLINE BOUNCE EFFECT (REPLACES GLITCH) === */
.glitched-text {
  position: relative;
  display: inline-block;
  color: #ffffff; 
  background: transparent !important;
  transition: transform 0.3s ease; /* Smooth base transition */
}

/* Simple bounce animation */
@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); } /* Small upward movement */
}

.glitched-text:hover {
  animation: gentle-bounce 1.8s ease infinite; /* Slow, smooth bounce */
  text-shadow: 0 0 8px rgba(255, 0, 255, 0.7); /* Subtle glow */
}

/* Remove all glitch clone elements */
.glitched-text:hover::before,
.glitched-text:hover::after {
  content: none !important; /* Disables glitch clones completely */
}
  
  /* === MODAL POPUP STYLES === */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  
  .modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-content {
    background: #000;
    border: 4px solid #ff00ff;
    box-shadow: 
      0 0 0 2px #ffff00,
      0 0 30px rgba(255, 0, 255, 0.7);
    max-width: 85%;
    width: 600px;
    padding: 0;
    position: relative;
    overflow: hidden;
    animation: modalGlow 3s infinite alternate;
  }
  
  @keyframes modalGlow {
    0% { box-shadow: 0 0 0 2px #ffff00, 0 0 30px rgba(255, 0, 255, 0.7); }
    100% { box-shadow: 0 0 0 2px #ffff00, 0 0 50px rgba(255, 0, 255, 0.9); }
  }
  
  .modal-header {
    background: #ff00ff;
    color: #000;
    padding: 15px;
    font-weight: bold;
    font-size: 22px;
    text-align: center;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #000;
    color: #ff00ff;
    border: 2px solid #ffff00;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
  }
  
  .modal-close:hover {
    background: #ffff00;
    color: #000;
    transform: rotate(90deg);
  }
  
  .modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .modal-image-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .modal-image {
    max-width: 100%;
    max-height: 300px;
    border: 8px solid #ffff00;
    box-shadow: 0 0 0 2px #ff00ff;
  }
  
  .modal-metadata {
    font-size: 14px;
    color: #ff00ff;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
    border-bottom: 1px dashed #ff00ff;
    padding-bottom: 10px;
    width: 100%;
  }
  
  .modal-story {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px dotted #ffff00;
    background: rgba(255, 0, 255, 0.1);
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }
  
  .modal-footer {
    text-align: center;
    padding: 15px;
    border-top: 2px solid #ff00ff;
  }
  
  .modal-adopt-btn {
    display: inline-block;
    background: #ff00ff;
    color: #000;
    font-weight: bold;
    padding: 10px 25px;
    text-decoration: none;
    border: 2px solid #ffff00;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .modal-adopt-btn:hover {
    background: #ffff00;
    color: #000;
    transform: scale(1.05);
  }
  
  .modal-archived {
    display: inline-block;
    background: #222;
    color: #ff00ff;
    font-weight: bold;
    padding: 10px 25px;
    border: 2px solid #ff00ff;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  footer {
    text-align: center;
    border-top: 1px dotted #ff00ff;
    color: #ff00ff;
    font-size: 0.9em;
    padding: 10px 0 10px;
    position: relative;
    z-index: 10;
    margin-top: auto; /* footer to bottom of content */
    background-color: #000; 
}
  
  