/* basic scaffold */
:root{
  --pink: #7cfca2;
  --pink-deep: #4a9654;
  --muted-dark: rgba(0,0,0,0.45);
  --glass: rgba(255, 255, 255, 0.02);
}
/* Make the body a flex container */
html, body {
  height: 100%;
}


/* Let main grow to fill available space */


/* page text baseline (does not change layout) */
body {
      margin: 0;
      padding: 0;
      min-height: 100vh;
      font-family: 'VT323', monospace;

  display: flex;
  flex-direction: column;
      /* Multiple layers: animated dark overlay, animated gradient, mountain image */
      background:
        linear-gradient(#21204928, #f0a5f02f), /* Dark overlay (top) */
        linear-gradient(-45deg, 
          #465a2f26, 
          #85863e23, 
          #24011f1e, 
          #ffee0026
        ), /* moving gradient */
        url('images/archiveBG.png'); /* base image layer */

      /* per-layer sizes/attachments/positions (same order as layers above) */
      background-size: cover, 400% 400%, cover; 
      background-attachment: fixed, fixed, fixed;
      background-position: center, 0% 25%, center;
      
      /* Two animations: gradient shift + breathing overlay */
      animation: gradientShift 10s ease infinite, breathingOverlay 10s ease-in-out infinite;
      color: #4eb157;
}
@keyframes gradientShift {
  0% {
    background-position: center, 0% 50%, center;
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: left, 100% 50%, center;
    filter: hue-rotate(180deg);
  }
  100% {
    background-position: right, 0% 50%, center;
    filter: hue-rotate(360deg);
  }
}

.nav-gshift{ 
  color: linear-gradient(90deg, #fffb00, #ffffff);
  text-shadow: 0 0 5px #b8e2a088;
  animation: gradienText 5s ease infinite breathingOverlay 5s ease-in-out infinite;
}

@keyframes gradienText {
  0% { color: #fffb00; background-position: center, 0% 50%, center; filter: hue-rotate(0deg); }
  50% { color: #000000; background-position: left, 100% 50%, center; filter: hue-rotate(90deg);}
  100% { color: #00d9ff; background-position: right, 0% 50%, center; filter: hue-rotate(180deg);}
}



main { padding-bottom: 2rem;  flex: 1;}

/* header & top controls */
.top-controls { gap:.5rem; display:flex; align-items:center; flex-wrap:wrap; }
.thin-look { color:#fff; font-size:1.05rem; }

/* Archive cards */
.archive-card { min-height: 120px; display:flex; flex-direction:column; justify-content:space-between; background: rgba(0,0,0,0.45); border-radius:8px; }
.archive-content { white-space: pre-wrap; word-break: break-word; margin-bottom:.5rem; color: #f8f8f8; }
.archive-meta { font-size:.85rem; color:#cfcfcf; }

/* Time Travel button */
.time-travel-wrapper { position: relative; max-width: 820px; }
#timeTravelBtn { --tt-bg: rgba(255,255,255,0.04); background:var(--tt-bg); border:1px solid rgba(255,255,255,0.06); padding:.45rem .7rem; border-radius:8px; color:#fff; }
#timeTravelBtn[aria-expanded="true"] .tt-chevron { transform: rotate(180deg); transition: transform 240ms ease; }

/* Panel base (collapsed by default) */
.time-panel {
  margin-top:.6rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55));
  border-radius:10px;
  padding:.75rem;
  width:100%;
  max-width:820px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  overflow:hidden;
  height:0;
  opacity:0;
  transform:scaleY(0.96);
  transition: height 360ms cubic-bezier(.2,.9,.2,1), opacity 260ms ease, transform 260ms ease;
  display:block; /* keep it in flow; JS controls height and opacity */
}

/* open state handled by JS: time-panel.open (opacity/transform changed by JS) */
.time-panel.open { opacity:1; transform:scaleY(1); }

/* decade/year buttons */
#decadeRow .decade-btn,
#yearGrid .year-btn,
#yearGrid button {
  padding:.35rem .6rem;
  border-radius:6px;
  background: rgba(255,255,255,0.03);
  color:#f8f8f8;
  border:1px solid rgba(255,255,255,0.04);
  cursor:pointer;
  transition: transform .12s ease, background .12s ease;
}
#decadeRow .decade-btn:hover,
#yearGrid .year-btn:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }
.year-btn.active, .decade-btn.active { background: linear-gradient(90deg,#ffd59a,#f3c06b); color:#111; }

/* yearGrid visibility via aria attribute */
#yearGrid[aria-hidden="true"] { display:none; }
#yearGrid[aria-hidden="false"] { display:flex; flex-wrap:wrap; gap:.5rem; }

/* responsive */
@media (max-width:720px) {
  #timeTravelBtn { width:100%; justify-content:center; }
}
/* Time Travel (Decade / Year Dropdown) */
#timeTravel {
  margin: 1rem 0;
}

.decade {
  margin-bottom: 0.5rem;
}

.decade-toggle {
  background: #222;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: background 0.2s ease;
}

.decade-toggle:hover {
  background: #444;
}

.year-list {
  list-style: none;
  margin: 0.5rem 0 0 1rem;
  padding: 0;
  display: none; /* hidden until toggle */
}

.year-list.visible {
  display: block;
}

.year-list li {
  margin: 0.25rem 0;
}

.year-list li button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.year-list li button:hover {
  background: #ddd;
}

/* Results */
#results {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.result-item {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.result-item h4 {
  margin: 0.3rem 0;
  font-size: 1rem;
  color: #333;
}

.result-item img {
  max-width: 100%;
  border-radius: 4px;
}



 

.digital-border {
    position:absolute;
    border: 2px solid #fffb00;
    width: 700px;
    height:300px;
    border-radius:20%;
    display:flex; 
    top:25%;
    left:20%;
    background-color:#5A5A5A;
    box-shadow: 5px, 5px, 10px, (0, 0, 0, 0.5);
}

.inner-border { 
    border: 2px solid #FFFB00;
    width: 170px;
    height:70px;
    border-radius:20%;
    display:flex;   
    background-color:#000;
    opacity: 0.5;
    float: right;
  }

.time-number{
  position: relative;
    text-align: center;
    top: 28%;
    left: 20%;
    font-size:25px; 
    color:#FFFB00; 
}