@font-face {
  font-family: 'Comic Sans MS Web';
  src: url('/fonts/comic-sans.woff') format('woff');
       
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: 'Comic Sans MS Web', serif;
  text-shadow: rgba(0, 0, 0, .01) 0 0 1px;
  color: #fffff3;
  background-color: #030301;
  background-image: url('bg.gif');
  margin: 0;
  padding: 0;
  animation: fadeIn 0.5s ease-in-out;
  animation-fill-mode: forwards; /* Added to hold the final state */
}

.body-wrapper {
  max-width: 1100px;
  margin: 20px auto;
  padding: 10px;
  /* background-color: rgba(10, 10, 10, 0.5); */
  overflow: hidden;
}

.page-header, .page-footer {
  text-align: center;
  padding: 10px 0;
}

.picheader {
  height: 250px;
  overflow: hidden;
}

header nav {
  background: #000;
  color: #fff;
  overflow: hidden;
  padding: 10px;
}

header nav ul {
  list-style: none;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

header nav ul li {
  float: left;
  margin-left: 4px;
  margin-right: 4px;
}

header nav ul li a {
  color: #fff;
  font-size: 1.2em;
}

.title {
  background: #000;
  color: #fff;
  padding: 5px;
  padding-left: 10px;
  overflow: hidden;
  margin: 0;
  font-weight: bolder;
}

.content-area {
  overflow: hidden;
  padding-top: 15px;
  padding-bottom: 15px;
}

.left-nav {
  float: left;
  width: 20%;
  padding: 15px;
  box-sizing: border-box;
  background-color: rgba(60, 60, 60, 0.5);
  color: #fffff3;
}

.left-nav h2 {
  margin-top: 0;
}

.left-nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.left-nav ul li {
  margin-bottom: 8px;
}

.left-nav ul li a {
  text-decoration: none;
  display: block;
  padding: 5px 0;
}
.left-nav ul li a:hover {
  text-decoration: underline;
}

main {
  float: left;
  width: 58%;
  padding: 15px;
  margin-left: 1%;
  margin-right: 1%;
  box-sizing: border-box;
  background-color: rgba(50, 50, 50, 0.5);
  color: #fffff3;
}

main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.right-sidebar {
  float: right;
  width: 20%;
  box-sizing: border-box;
  background-color: rgba(70, 70, 70, 0.5);
  padding: 15px;
  color: #fffff3;
}

.sidebar-top-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.button-grid a {
  line-height: 0;
}

.page-footer {
  clear: both;
  width: 100%;
  padding-top: 20px;
  text-align: center;
}

a {
    color: #abe0ff;
}
a:hover {
    color: #ffffff;
}

main p, main ul,
.left-nav p, .left-nav ul,
.right-sidebar p,
.right-sidebar ul {
    margin-bottom: 10px;
}

main ul {
    list-style-position: inside;
    padding-left: 20px;
}

.left-nav ul li.dropdown {
  position: relative;
}

.left-nav .dropdown-toggle {
    cursor: pointer;
    position: relative;
}

.left-nav .dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.8em;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease-in-out;
}

.left-nav .dropdown.open > .dropdown-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.left-nav .dropdown-menu {
  padding: 0;
  list-style-type: none;
  z-index: 100;
  border-radius: 0 0 3px 3px;
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0.4s, margin-top 0.4s ease-in-out;
}

.left-nav .dropdown.open > .dropdown-menu {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  margin-top: 5px;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, visibility 0s 0s, margin-top 0.4s ease-in-out;
}

.left-nav .dropdown-menu li {
  margin-bottom: 0;
}

.left-nav .dropdown-menu li a,
.left-nav .dropdown-menu li > .dropdown-toggle {
  display: block;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 15px;
  color: #ddeeff;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
}

.left-nav .dropdown-menu li a:hover,
.left-nav .dropdown-menu li > .dropdown-toggle:hover {
  color: #ffffff;
  text-decoration: none;
}

.left-nav > ul > li.dropdown > ul.dropdown-menu > li > .dropdown-toggle,
.left-nav > ul > li.dropdown > ul.dropdown-menu > li > a {
    padding-left: 15px;
}

.left-nav > ul > li.dropdown > ul.dropdown-menu > li.dropdown > ul.dropdown-menu > li > a {
    padding-left: 30px;
}

/* Page Transition Styles */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Albums rotation styles */
.albums-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.album {
  text-align: center;
  max-width: 160px;
}
.albums-list img {
  display: block;
  margin: 0 auto 0.5rem;
  width: 140px;
  height: 140px;
  object-fit: cover;
}

@media (max-width: 480px) {
  .album { max-width: 120px; }
  .albums-list img { width: 120px; height: 120px; }
}

body.fade-out {
  animation: fadeOut 0.5s ease-in-out;
  animation-fill-mode: forwards; /* Added to hold the final state */
}

/* --- REF SHEET STYLES --- */

/* Centers the main ref image specifically */
.ref-image-container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* The Color Palette Container */
.palette-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    justify-content: center;
    margin-bottom: 15px;
}

/* Individual Color Circles */
.swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Makes them circles */
    border: 2px solid #fff;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Character Stats Table */
.char-stats {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.char-stats td {
    padding: 8px;
    border-bottom: 1px dashed #555;
}

.char-stats tr:last-child td {
    border-bottom: none;
}

.char-stats td:first-child {
    width: 30%;
    color: #abe0ff; /* Uses your link color for labels */
}

/* --- GALLERY STYLES --- */

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* Centers the grid */
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.2); /* Slight dark background behind art */
    border-radius: 5px;
}

.gallery-grid a {
    line-height: 0; /* Removes weird gaps below images */
}

.gallery-grid img {
    width: 130px;      /* Fixed thumbnail width */
    height: 130px;     /* Fixed thumbnail height */
    object-fit: cover; /* Crops image to fill the square without squishing */
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.gallery-grid img:hover {
    border-color: #abe0ff; /* Highlights border on hover */
    transform: scale(1.05); /* Slight pop-out effect */
    z-index: 10;
}