/* ==== Reset & Basics ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica', 'Arial', sans-serif;
  background-color: #f5f8fa;
  color: #333;
  line-height: 1.5;
}

/* ==== Layout ==== */
#container {
  display: grid;
  grid-template-areas:
    "header header header"
    "nav content sidebar"
    "footer footer footer";
  grid-template-columns: 1fr 3fr 1fr;
  min-height: 100vh;
}

header {
  grid-area: header;
  background: rgba(163, 215, 240, 0.85);
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

/* ==== Left nav background ==== */
nav {
  grid-area: nav;
  padding: 1rem;
  border-right: 1px solid #ccc;
  background-image: url('whiskerton/images/npcs/illust1.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Left nav content overlay for readability */
nav ul {
  background: rgba(255, 255, 255, 0.85);
  padding: 0.5rem;
  border-radius: 6px;
  list-style-type: none;
}

main {
  grid-area: content;
  padding: 1rem 2rem;
}

aside {
  grid-area: sidebar;
  padding: 1rem;
  border-left: 1px solid #ccc;
  background-image: url('whiskerton/images/npcs/illust2.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* Right sidebar overlay */
aside .box {
  background: rgba(255, 255, 255, 0.85);
  padding: 0.75rem;
  border-radius: 6px;
}

footer {
  grid-area: footer;
  background: rgba(163, 215, 240, 0.85);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ==== Typography & Links ==== */
h1, h2, h3 {
  color: #0b4a72;
  margin-bottom: 0.5em;
}

a {
  color: #0e6cb0;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

/* ==== Boxes / Containers ==== */
.box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #b0cfd9;
  border-radius: 4px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}

/* ==== Responsive ==== */
@media (max-width: 800px) {
  #container {
    grid-template-areas:
      "header"
      "nav"
      "content"
      "sidebar"
      "footer";
    grid-template-columns: 1fr;
  }
  nav, aside {
    border: none;
  }
  nav ul, aside .box {
    background: rgba(255, 255, 255, 0.95);
  }
}
