/* ==========================================================================
   GLOBAL STYLES & RESET
   ========================================================================== */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body { 
  font-family: Arial, sans-serif; 
  line-height: 1.6; 
  background: #00BFFF; 
  background-image: url("../backgrounds/light_blue_paper.jpg"); 
  color: #333; 
  scroll-behavior: smooth; 
}

h1 {
  color: blue;
  text-shadow: 2px 2px 4px #000000;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header { 
  background: linear-gradient(135deg, #222, #555); 
  color: white; 
  padding: 4rem 2rem; 
  text-align: center; 
  opacity: 0; 
  transform: translateY(-40px); 
  transition: all 1s ease-out; 
}

header.show { 
  opacity: 1; 
  transform: translateY(0); 
}

header h1 { 
  font-size: 2.5rem; 
}

nav { 
  position: sticky; 
  top: 0; 
  background: #444; 
  display: flex; 
  justify-content: center; 
  gap: 2rem; 
  padding: 1rem; 
  z-index: 100; 
  transition: all 0.3s ease; 
}

nav.shrink { 
  padding: 0.5rem; 
  background: #222; 
}

nav a { 
  color: white; 
  text-decoration: none; 
  font-weight: bold; 
  transition: color 0.3s; 
  position: relative; 
}

nav a:hover { 
  color: #00bcd4; 
}

nav a.active { 
  color: #00bcd4; 
}

nav a.active::after { 
  content: ""; 
  position: absolute; 
  bottom: -6px; 
  left: 0; 
  right: 0; 
  height: 3px; 
  background: #00bcd4; 
  border-radius: 2px; 
}

/* Hamburger Menu (Mobile) */
.menu-toggle { 
  display: none; 
  cursor: pointer; 
  font-size: 24px; 
  color: white; 
}

@media (max-width: 768px) {
  nav { 
    flex-direction: column; 
    align-items: center; 
    gap: 1rem; 
    display: none; 
  }
  nav.active { 
    display: flex; 
  }
  .menu-toggle { 
    display: block; 
    background: #444; 
    text-align: right; 
    padding: 1rem; 
  }
}

/* ==========================================================================
   LAYOUT GRID & CARDS
   ========================================================================== */
.grid-container {
  display: grid;
  grid-template-columns: 1fr 5fr;
  gap: 5px; /* Space between columns */
  padding: 20px;
}

@media (max-width: 800px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  margin-bottom: 1rem;
  color: #222;
  text-shadow: 2px 2px 4px #000000;
}

/* ==========================================================================
   SIDEBAR NAVIGATION BUTTONS
   ========================================================================== */
.tta-nav-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 250px;
  font-family: sans-serif;
}

.tta-btn {
  display: block;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  border-radius: 5px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.tta-btn:active {
  transform: scale(0.98);
}

/* Color Coding Themes */
.btn-gold { background-color: #D4AF37; }
.btn-gold:hover { background-color: #B8972E; }

.btn-red { background-color: #D9534F; }
.btn-red:hover { background-color: #C9302C; }

.btn-richblue { background-color: #1F4E79; }
.btn-richblue:hover { background-color: #163654; }

.btn-blue { background-color: #0275D8; }
.btn-blue:hover { background-color: #025AA5; }

.btn-green { background-color: #5CB85C; }
.btn-green:hover { background-color: #4CAE4C; }

/* ==========================================================================
   IMAGES & MULTIMEDIA
   ========================================================================== */
p img {
  margin: 10px;
}

p img:hover {
  border-style: solid;
}

img.rounded {
  border-radius: 8px;
  margin: 10px;
}

img.circle {
  border-radius: 50%;
  margin: 10px;
}	

img.screenshots {
  border-radius: 8px;
  padding: 5px;
}

/* ==========================================================================
   OTHER ELEMENTS & UTILITIES
   ========================================================================== */
p.quote {
  margin-left: 5px; 
  margin-right: 5px;
  border: 2px solid;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 5px 10px #888888;
}

p.quote:hover {
  background-color: #D3D3D3;
  transform: translateY(-5px);
}

.button {
  border: none;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px;
  background-color: #e7e7e7; 
  color: black;
}

.links-list { 
  list-style: none; 
  padding: 0; 
}

.links-list li { 
  margin: 0.5rem 0; 
}

.links-list a {
  color: #00bcd4;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s;
}

.links-list a:hover { 
  color: #007c91; 
}

footer { 
  text-align: center; 
  padding: 2rem; 
  background: #222; 
  color: #bbb; 
  margin-top: 2rem; 
}

#backToTop { 
  position: fixed; 
  bottom: 30px; 
  right: 30px; 
  background: #00bcd4; 
  color: white; 
  border: none; 
  padding: 12px 16px; 
  border-radius: 50%; 
  font-size: 18px; 
  cursor: pointer; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); 
  opacity: 0; 
  visibility: hidden; 
  transition: opacity 0.4s, visibility 0.4s; 
}

#backToTop.show { 
  opacity: 1; 
  visibility: visible; 
}

#backToTop:hover { 
  background: #0097a7; 
}

.trivia-badge-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 25px;
}

.trivia-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trivia-item p {
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Base Badge Styling */
.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
}

/* Custom Badge Colors to jazz it up */
.badge.production { background-color: #e2e8f0; color: #475569; }
.badge.cameo { background-color: #dbeafe; color: #1e40af; }
.badge.pop-culture { background-color: #fef3c7; color: #92400e; }

/* Container to hold all the character cards side-by-side */
.character-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

/* Individual Card Styling */
.character-card {
  background-color: #ffffff; 
  border: 1px solid #dddddd;
  border-radius: 8px;
  overflow: hidden;
  width: 210px; /* Perfect size for a screenshot + text */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

/* Ensures screenshots aren't stretched or squished */
.character-thumb img {
  width: 100%;
  height: 140px; 
  object-fit: cover; /* Crops the image neatly to fit the box dimensions */
  display: block;
}

/* Text formatting inside the card */
.character-info {
  padding: 12px;
  text-align: center;
}

.character-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #222222;
}

.character-info .voice-actor {
  margin: 0;
  font-size: 0.9rem;
  color: #666666;
}

.character-info .voice-actor span {
  font-weight: bold;
  color: #111111;
}

.mini-card-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.synopsis-mini-card {
  background: rgba(0,0,0,0.02); 
  border: 1px solid #eee; 
  padding: 12px 15px; 
  border-radius: 6px;
}

.synopsis-mini-card h5 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
}

.synopsis-mini-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}