@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=UnifrakturMaguntia&display=swap');

/* Global Color Variables & Night Base */
:root {
  --bg-top: #0d1b2a;        /* Deep Midnight Navy */
  --bg-bottom: #1b263b;     /* Twilight Indigo */
  --moon-glow: #e0e1dd;     /* Soft Lunar White */
  --card-bg: rgba(23, 32, 54, 0.75);
  --card-border: rgba(144, 172, 209, 0.3);
  --text-main: #e0e1dd;
  --wii-blue: #00a3e0;
  --night-cyan: #38bdf8;
  --radius-lg: 24px;
  --radius-sm: 16px;
}



body {
    cursor: url('/writerz.png') 0 0, auto !important;

  font-family: 'MedievalSharp', cursive, serif;
  color: var(--text-main);

  /* Background Image Settings */
  background-image: url("stauz.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--bg-top); /* Fallback color while image loads */

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
  position: relative;
}

/* Cozy Moonlit Atmosphere */
.cloud-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  animation: bg-float 14s ease-in-out infinite alternate;
}

.cloud-1 {
  width: 350px;
  height: 350px;
  top: -60px;
  left: -40px;
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 0 90px rgba(56, 189, 248, 0.25);
}

.cloud-2 {
  width: 450px;
  height: 450px;
  bottom: -100px;
  right: -60px;
  background: rgba(30, 58, 138, 0.35);
  animation-delay: -7s;
}

@keyframes bg-float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(25px) scale(1.05); }
}

/* Navigation Layout */
/* Navigation Layout */
/* Navigation Layout */
nav {
display: flex;
  gap: 42px; /* Reduced gap between items */
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes cloud-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}
nav a {
  /* Smaller text size so words don't overflow */
  font-size: 22px; 
  
  /* Lighter color so dark text doesn't blend into the dark navy background */
  color: #ffffff; 
  
  /* Dimensions for the clover container */
  width: 172px;
  height: 145px;

  /* Centers text inside the top clover leaves */
  padding-bottom: 29px; 

  /* Keep your existing properties below */
  z-index: 7;
  position: relative;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("svclover.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: cloud-float 4s ease-in-out infinite;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

nav a:nth-child(1) { animation-delay: 0s; }
nav a:nth-child(2) { animation-delay: -1.2s; }
nav a:nth-child(3) { animation-delay: -2.4s; }
nav a:nth-child(4) { animation-delay: -3.6s; }

nav a:hover {
  animation-play-state: paused;
  color: #0b290e;
  transform: translateY(-8px) scale(1.08);
  /* Glowing emerald drop-shadow on hover */
  filter: drop-shadow(0 0 16px rgba(134, 239, 172, 0.8));
}

nav a:active {
  transform: translateY(-2px) scale(1.02);
}

/* Header Headings */
header h1 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-shadow: 0 2px 10px rgba(56, 189, 248, 0.25);
}

header p {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

/* Absolute Positioned Images */
.nanamig {
  position: absolute;
  left: 150px;
  top: 17px;
  width: 121px;
  height: 100px;
}

.towed {
  position: absolute;
  right: 1px;
  width: 425px;
  height: 295px;
  bottom: 0px;
  z-index: 0;
}

.mitsukig {
  width: 90px;
  height: 100px;
  position: absolute;
  left: 50px;
  top: 22px;
  z-index: 10;
}

.ggoblin {
  width: 100px;
  height: 117px;
  position: absolute;
  right: 25px;
  top: 10px;
}

.egoblin {
  width: 100px;
  height: 107px;
  position: absolute;
  right: 105px;
  top: 10px;
}

/* Quests Scroll Container - keeps image at original full size */
.quests-container {
  width: 401px;
  height: 471px;
  position: absolute;
  left: 10px;
  bottom: 25px;
}

.quests-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}
/* Updates Overlay Section */
.updates-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 129px 75px 55px 85px; 
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2b1d0c;
}

.updates-title {
  text-align: center;
  font-size: 24px;
  letter-spacing: 2px;
  margin-bottom: 10px; 
  border-bottom: 2px solid #5a4028;
  padding-bottom: 2px;
  width: 100%;
  flex-shrink: 0; /* Prevents title from shrinking when list grows */
}

/* Scrollable Container Box */
.updates-list {
  width: 100%;
  max-height: 142px; /* Cuts off content inside the scroll frame */
  overflow-y: auto;  /* Adds vertical scrollbar when items exceed height */
  overflow-x: hidden; /* Prevents side-scrolling */
  padding-right: 8px;
  list-style-type: none;
}

/* Custom Scrollbar to Match Parchment Aesthetic */
.updates-list::-webkit-scrollbar {
  width: 6px;
}

.updates-list::-webkit-scrollbar-track {
  background: rgba(90, 64, 40, 0.15);
  border-radius: 4px;
}

.updates-list::-webkit-scrollbar-thumb {
  background: #7c5222;
  border-radius: 4px;
}

.updates-list::-webkit-scrollbar-thumb:hover {
  background: #5a4028;
}

/* Quest Item List Elements */
.quest-item {
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid #7c5222;
}

.quest-date {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #6b4423;
}

.quest-item-title {
  font-size: 15px;
  color: #1a0f05;
}

.quest-desc {
  font-size: 13px;
  margin-top: 2px;
  line-height: 1.3;
  color: #3b2a18;
}

.update-empty {
  font-size: 14px;
  color: #5a4028;
  text-align: center;
  margin-top: 20px;
}



/* Keep pixel art crisp without browser blurring */
.web-button {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  display: block;
}

/* Flexbox container for button collections/blinkies */
.button-grid {
  position:absolute;
  display:grid;
grid-template-columns: repeat(5, 88px);
  grid-template-rows: repeat(2, 31px); 
  bottom:25px;
  left:500px;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
}