/* ============================================
   DRUITHINE — "neon gothic" alternate palette

   Colors are defined once as CSS custom properties (--variable-name)
   in :root, then referenced everywhere else with var(--name).
   Change a value here and it updates the whole file.
   ============================================ */

:root {
  --bg-void:        #0b0614;   /* near-black background */
  --bg-panel:       #170a24;   /* slightly lighter panel background */
  --bg-panel-edge:  #1f0f30;   /* edge/border shade between void and panel */

  --accent-magenta: #e026ff;   /* primary neon — headers, glow, key UI */
  --accent-purple:  #8a2be2;   /* secondary purple — deeper accents */
  --accent-lime:    #ccff00;   /* punctuation color — sparing use */

  --neutral-border: #4b2e63;   /* muted purple-gray for panel borders */
  --neutral-border2: #ccff00;   /* muted purple-gray for panel borders */
  --text-main:      #e8d9f5;   /* soft lavender-white body text */
  --text-muted:     #a58fc0;   /* dimmer secondary text */
}

@font-face {
  font-family: "Boecklins Universe";
  src: url('../fonts/Boecklins-Universe.ttf') format('truetype');
}


* { box-sizing: border-box; }

/* html = full-viewport backdrop, body = centered content column */

html, body {
  overflow-x: hidden;
}

html {
  background-color: var(--bg-void);
  background-image: 
    url('../images/banner.png'),
    url('../images/starrysky.gif');
  background-repeat: 
    no-repeat,
    repeat;
  background-position: 
    top center,
    top left;
  background-size: 
    100% auto,
    auto;   /* or: no-repeat; background-size: cover; */
}


/*Alternatve version of the background that creates stripes*/
/* 
html {
  background-color: var(--bg-void);
  background-image: 
  url('../images/banner.png'),
    repeating-linear-gradient(
      45deg,
      var(--bg-void) 0px, var(--bg-void) 20px,
      #1f0f30 30px, /*#11ff00 #1f0f30 40px,
  )
  ;
}
*/

body {
  margin: 0 auto;
  max-width: 1000px;
  border-left: 3px solid var(--neutral-border2);
  border-right: 3px solid var(--neutral-border2);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(var(--accent-purple) 1px, transparent 1px),
    radial-gradient(var(--accent-magenta) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 0, 30px 30px;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: "Courier New", monospace;
}

a { color: var(--accent-lime); }
a:visited { color: var(--accent-purple); }
img { 
  max-width: 100%;
  image-rendering: pixelated; 
}

/* ---- SPLASH ---- */
#splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-image:
    linear-gradient(rgba(11,6,20,0.6), rgba(11,6,20,0.85)),
    url('../images/painting.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.6s ease;
  opacity: 1;
}

#splash.splash-fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash img.banner {
  width: min(90vw, 468px);
  border: 3px solid var(--accent-magenta);
  margin-bottom: 24px;
}
#splash h1 {
  font-family: "Boecklins Universe", "Yeseva One", serif;
  font-size: clamp(34px, 7.5vw, 68px);
  letter-spacing: 3px;
  color: var(--accent-magenta);
  text-shadow:
    0 0 10px var(--accent-magenta),
    0 0 24px var(--accent-magenta),
    0 0 46px var(--accent-purple),
    0 0 4px var(--accent-lime);
  margin: 0 0 8px;
}
#splash p.tagline {
  color: var(--accent-lime);
  font-size: 14px;
  letter-spacing: 3px;
  margin: 0 0 32px;
  text-shadow: 0 0 6px var(--accent-lime);
}
#splash .enter {
  border: 2px solid var(--accent-lime);
  padding: 10px 28px;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--accent-lime);
  text-shadow: 0 0 8px var(--accent-lime);
  animation: blink 1.4s step-start infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }

/* ---- MAIN SITE ---- */
#site {
  opacity: 0;
  transition: opacity 0.6s ease;
}
#site.site-fade-in {
  opacity: 1;
}

header.topbar {
  background: var(--bg-panel);
  border-bottom: 3px solid var(--accent-purple);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.topbar .brand {
  font-family: "Boecklins Universe", "Cinzel Decorative", serif;
  font-size: clamp(28px, 9vw, 75px);
  letter-spacing: 2px;
  color: #e026ff;
  text-shadow: 0 0 8px #ccff00;
}

.hero-banner {
  width: 100%;
  display: block;
  border-bottom: 3px double var(--neutral-border);
}

.prophecy-text {
  width: 100%;
  text-align: center;
  padding: 14px 0;
  font-family: "Yeseva One", "Cinzel Decorative", serif;
  font-size: clamp(14px, 2.8vw, 24px);
  letter-spacing: 3px;
  animation: prophecy-glow 3s linear infinite;
}

@keyframes prophecy-glow {
  0%   { color: #ffee00; }  /* yellow */
  33%  { color: #39ff14; }  /* green */
  66%  { color: #b026ff; }  /* purple */
  100% { color: #ffee00; }  /* back to yellow */
}

.sword-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 18px auto;
}

.sword-flourish {
  display: block;
  margin: 18px auto;
  max-width: 40px;
  height: auto;
}

.skull-flourish {
  display: block;
  margin: 18px auto;
  max-width: 40px;
  height: auto;
}

.flourish-side {
  max-width: 70px;   /* bump this up/down to taste */
}

.marquee-wrap {
  background: var(--bg-panel);
  border-top: 2px solid var(--accent-purple);
  border-bottom: 2px solid var(--accent-purple);
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-block;
  color: var(--accent-lime);
  font-size: 13px;
  letter-spacing: 1px;
  padding-left: 100%;
  animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/*
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; padding-left: 0; }
}
  */

/* each content block is a "frame": a bordered panel */
.frame-row {
  max-width: 1100px;
  margin: 20px auto;
  padding: 20px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.torch { flex: 0 0 auto; width: 40px; }

section.block {
  flex: 1;
  max-width: 900px;
  min-width: 0;
  border: 4px ridge var(--neutral-border);
  background: var(--bg-panel);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}
section.block.reverse { flex-direction: row-reverse; }
section.block .art {
  flex: 0 0 220px;
  height: 220px;
  border: 3px solid var(--accent-purple);
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}

section.block .art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section.block .text { 
  flex: 1;
  min-width: 0; }
section.block h2 {
  font-family: "Yeseva One", "Cinzel Decorative", serif;
  color: var(--accent-magenta);
  text-shadow: 0 0 10px var(--accent-magenta), 1px 1px #000;
  font-size: 28px;
  letter-spacing: 1px;
  margin-top: 0;
}
section.block p {
  line-height: 1.7;
  font-size: 14px;
  color: var(--text-main);
  overflow-wrap: break-word;
  word-break: break-word;
}

.gif-divider {
  display: block;
  margin: 10px auto;
  max-width: 90%;
}

.links-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 24px 50px;
  text-align: center;
}
.links-grid h2 {
  font-family: "Yeseva One", "Cinzel Decorative", serif;
  color: var(--accent-magenta);
  text-shadow: 0 0 10px var(--accent-magenta);
  font-size: 28px;
  letter-spacing: 1px;
}
.links-grid .grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 20px;
}
.links-grid a {
  border: 2px solid var(--accent-lime);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent-lime);
}
.links-grid a:hover {
  background: var(--accent-lime);
  color: var(--bg-void);
  text-shadow: none;
}

footer {
  text-align: center;
  padding: 10px 20px 30px;
  font-size: 15px;
  color: var(--text-muted);
  border-top: 2px solid var(--neutral-border);
}
.counter-box {
  background: #000;
  border: 3px inset var(--neutral-border);
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  margin: 10px 0;
}
.counter-digit {
  background: #170022;
  color: var(--accent-magenta);
  font-weight: bold;
  font-size: 18px;
  width: 16px;
  text-align: center;
}
.guestbook-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  margin-top: 10px;
}
.guestbook-link span {
  color: var(--accent-lime);
  font-size: 20px;
  letter-spacing: 1px;
  margin-top: 4px;
}
.construction-tag {
  display: inline-block;
  background: repeating-linear-gradient(45deg, var(--accent-purple) 0 10px, var(--bg-void) 10px 20px);
  color: var(#ffffff);
  font-weight: bold;
  font-size: 15px;
  padding: 3px 8px;
  letter-spacing: 1px;
  margin-top: 10px;
}

::selection { background: var(--accent-purple); color: var(--accent-lime); }


/* ---- EYE WIDGET ---- */
.eye-wrap {
  display: flex;
  justify-content: center;
  margin: 10px auto;
}
.eye {
  position: relative;
  width: 200px;   /* match this to whatever size looks right for your globe image */
  height: 200px;
}
.eye-globe {
  width: 100%;
  height: 100%;
  display: block;
}
.iris {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;   /* size the iris image itself — adjust to taste */
  transform: translate(-50%, -50%);
}


/* ---- GUESTBOOK ENTRIES ---- */
.guestbook-entry {
  border-bottom: 1px dashed var(--neutral-border);
  padding: 16px 0;
}
.guestbook-entry:last-child { border-bottom: none; }
.guestbook-entry-name {
  font-family: "Yeseva One", "Cinzel Decorative", serif;
  color: var(--accent-magenta);
  font-size: 16px;
}
.guestbook-entry-date {
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

/* ---- GUESTBOOK FORM ---- */
.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
  margin: 20px auto 0;
}
.guestbook-form label {
  color: var(--accent-lime);
  font-size: 13px;
  letter-spacing: 1px;
}
.guestbook-form input,
.guestbook-form textarea {
  background: var(--bg-void);
  border: 2px solid var(--neutral-border);
  color: var(--text-main);
  font-family: "Courier New", monospace;
  padding: 8px;
}
.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--accent-magenta);
}
.guestbook-form button {
  background: transparent;
  border: 2px solid var(--accent-lime);
  color: var(--accent-lime);
  padding: 10px;
  font-family: "Courier New", monospace;
  letter-spacing: 2px;
  cursor: pointer;
}
.guestbook-form button:hover {
  background: var(--accent-lime);
  color: var(--bg-void);
}


/* ---- Media Rules ---- */
@media (max-width: 720px) {
  .torch { display: none; }
  section.block,
  section.block.reverse {
    flex-direction: column;
    padding: 20px;
  }

  section.block .art {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
  }
}
