/* Variables for easy theming */
:root {
  --font-family: system-ui, sans-serif;
  --body-bg: #ff00ff;
  --text-color: #333333;

  --nav-bg: #333333;
  --nav-text: #ffffff;
  --nav-shadow: rgba(0, 0, 0, 0.3);
  --nav-height: 60px;
  
  --dropdown-bg: #444444;
  --dropdown-text: #ffffff;
  --dropdown-hover: #555555;

  --translator-bg: #f9f9f9;
  --translator-border: #cccccc;
  --output-bg: #eeeeee;
}


/* Reset & Base */
html {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  color: var(--text-color);
  text-align: center;
}

body {
  margin: 0;
  margin-bottom: 20px;
  padding-top: var(--nav-height);
}


/*Home Page Styles*/
html.index-page, 
body.index-page {
  background: url('/images/backgrounds/Home-Village.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}

/* Homepage intro container */
.intro-container {
  max-width: 700px;
  margin: 80px auto;
  padding: 40px;
  background-color: rgba(20, 20, 20, 0.85); /* dark overlay for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  border: 1px solid #444;
  font-family: 'Open Sans', sans-serif;
  color: #e0e0e0;
}

/* Headline */
.intro-container h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Paragraphs */
.intro-container p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #ccc;
}

/* Oracle link */
.intro-container a {
  color: #a88bff;
  text-decoration: none;
  font-weight: bold;
}

.intro-container a:hover {
  text-decoration: underline;
}

html.game-index-page, 
body.game-index-page {
  background: url('/images/backgrounds/game-index-page.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}

.game-index-page h1,
.game-index-page h2 {
  display: inline-block; 
  margin: 20px auto;
  padding: 1px 5px;

 background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)),
              url('/images/textures/stone2.png') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: rgba(50, 50, 50, 0.8);
  text-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  
    box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

html.resources-page, 
body.resources-page {
  background: url('/images/backgrounds/armory-page.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}
html.contact-page, 
body.contact-page {
  background: url('/images/backgrounds/oracle-page.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}

/* Navigation */
html:not(.game-page) .main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: fixed;
  z-index: 1000;   
  padding: 0px;
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 60px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}

/* Optional: icon container for better control */
.nav-icon {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(var(--icon-scale, 1));
  transform-origin: center;
}

/* If using background-image icons */
.nav-icon.bg-icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-link:hover {
  text-decoration: underline;
}

.nav-link:hover .nav-icon {
  opacity: 0.3;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 85px;  
  height: 85px; 
  background: url('/images/textures/Nav Sign Post.png') center/contain no-repeat;
  transform: translate(-50%, -50%);
  z-index: 0; /* behind the icon */
  pointer-events: none; /* so clicks go through to the link */
}

.nav-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-link:hover::after {
  opacity: 1;
}

.nav-dropdown {
  display: inline-block;
  position: relative;
  height: auto; 
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: transparent;
  z-index: 2000; 
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */

}

.dropdown-menu a {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 58px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
}

.dropdown-menu a:hover {
  background: none;
}

.dropdown-menu .game-icon {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
  position: relative;
  z-index: 1
}

.dropdown-menu .game-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.dropdown-menu a:hover .game-icon {
  opacity: 0.6;
}

.dropdown-menu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;   /* bigger than the link */
  height: 100px;
  background: url('/images/textures/Nav Sign Post.png') center/100% 100% no-repeat;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.dropdown-menu a::after {
  content: attr(title);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dropdown-menu a:hover::after {
  opacity: 1;
}
.dropdown-menu::-webkit-scrollbar {
  display: none;
}

#gameMenuButton {
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* horizontal centering if needed */
  width: 60px;           /* match .nav-link width */
  height: 60px;          /* match .nav-link height */
  padding: 0;            /* remove extra padding */
  background: transparent;
  border: none;
  cursor: pointer;
}

#gameMenuButton .nav-icon {
  width: 100%;
  height: 100%;
}
html.game-page .main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 4px;
  pointer-events: auto;
}

html.game-page .collapsible-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

html.game-page .nav-tab {
  height: 30px;
  line-height: 30px;
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 6px 12px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  z-index: 1001;
}


html.game-page .nav-content {
  display: none;
  flex-direction: row;
  justify-content: center;
  gap: 30px;
  margin-top: 4px;
  pointer-events: auto;
}

/* Game Page Layout */
html.game-page, 
body.game-page {
  --nav-height: 0px;
  height: 100vh;
  margin: 0;
  background: url('/images/backgrounds/game-page.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100%;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.game-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.game-container iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.game-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* ===== Divider / Resizer (dark granite) ===== */
.resizer {
  width: 8px;
  cursor: col-resize;
  background: url('/images/textures/dark-granite.png') repeat-y center;
  background-size: cover;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.8);
}

/* ===== Translator panel (old writing slate) ===== */
.translator {
  position: relative;
  height: 100vh;
  padding: 12px;
  overflow-y: auto;

  background: url('/images/textures/slate.png') repeat;
  background-size: 256px auto;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.7);

  color: #e0e0e0; /* chalk-like text */
  font-family: 'Noto Sans SC', sans-serif;
}

/* ===== Fixed toggle button (top-right, always visible) ===== */
.translator-toggle {
  position: fixed;
  top: 10px;     /* top instead of bottom */
  right: 10px;   /* aligned to the right */
  z-index: 2000;

  background: rgba(0,0,0,0.85);
  color: #ffffff;
  border: 1px solid #444;
  border-radius: 0; /* flat edges to match slate */
  padding: 6px 12px;
  cursor: pointer;
}
.translator-toggle:hover {
  background: rgba(0,0,0,0.92);
  border-color: #666;
}

/* ===== Controls layout ===== */
.translator-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

/* ===== Etched slate inputs/buttons ===== */
.translator textarea {
  display: block;
  width: 100%;          /* fill available width */
  max-width: 500px;     /* cap size so they don’t stretch too far */
  box-sizing: border-box;
  margin-top: 40px;
  background: rgba(20,20,20,0.85); /* dark slate surface */
  border: 1px solid #444;          /* etched edge */
  color: #f5f5f5;                  /* chalk text */
  border-radius: 0;                 /* no corners */
  padding: 6px;
}

#virtualKeyboard {
  display: flex;
  flex-wrap: wrap;
  max-width: 500px;
  gap: 2px;
  align-items: center;
}

.translator select,
.translator button,
.translator label {
  display: block;
  width: 100%;          /* fill available width */
  max-width: 220px;     /* cap size so they don’t stretch too far */
  box-sizing: border-box;
  margin-top: 8px;
  align-items: center;
  background: rgba(20,20,20,0.85); /* dark slate surface */
  border: 1px solid #444;          /* etched edge */
  color: #f5f5f5;                  /* chalk text */
  border-radius: 0;                 /* no corners */
  padding: 6px;
}


/* Buttons: subtle iron plate feel */
.translator button {
  background: linear-gradient(#2a2a2a, #1a1a1a);
  border: 1px solid #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.translator button.translate {
   max-width: 100px;
}

.translator button.keyboard{
   max-width: 30px;
}
.translator button:hover {
  background: linear-gradient(#333, #222);
  border-color: #888;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255,255,255,0.5);
}

/* ===== Translation output & history ===== */
#translatedOutput {
  margin-top: 10px;
  background: rgba(30,30,30,0.85); /* slate inset panel */
  border: 1px solid #444;
  color: #000000;
  padding: 10px;
  border-radius: 0;
}
.translator translationHistory {
  margin-top: 15px;
    color: #000000;
}
.translator historyList {
  padding-left: 20px;
}

/* ===== Script toggle container ===== */
#scriptToggleContainer select {
  margin-bottom: 8px;
  padding: 6px;
  font-size: 1em;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
}


#iframeBlocker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999; /* below nav (z-index: 1000), above iframe */
  background: transparent;
  pointer-events: auto;
  display: none;
  cursor: col-resize;
}

/* Game Thumbnail List*/
/* Container for all tiles */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 0px;
}

/* Individual game tile */
.game-tile {
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.game-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Thumbnail image */
.game-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Title below image */
.game-tile h3 {
  font-size: 1rem;
  margin: 8px;
  color: #fff;
}
/* Floating hover box */
.hover-box {
  position: fixed;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #444;
  max-width: 240px;
  pointer-events: none; /* don’t block mouse */
  z-index: 9999;
  display: none;
}

 /*Filter Bar*/
.filter-bar {
  background: #111;
  padding: 2px 6px;
  margin: 4px auto;
  border-radius: 6px;
  font-size: 0.7rem;
  color: white;
  max-width: 700px;
  width: 100%;
  box-sizing: border-box;
  display: block;
  opacity: .95; 
  }

.filter-bar strong {
  display: inline-block;
  margin: 0 10px 0 0;
  font-size: 0.85rem;
  color: #ccc;
  padding: 0;
}

.filter-bar label {
  margin-right: 8px;
  display: inline-block;
  cursor: pointer;
  font-size: 0.85rem;
}

.filter-bar input[type="checkbox"] {
  margin-right: 4px;
  accent-color: #4af;
}

.filter-bar > div {
  display: block;
  margin: 0;
  padding: 0;
}

/* Base styles for filter toggles */
.filter-toggle {
  display: inline-block;
  padding: 3px 6px;
  margin: 2px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  border: 1px solid #555;
  user-select: none;
  line-height: 1.2;
  vertical-align: middle;
}

.filter-toggle.neutral {
  background-color: #222;
  color: #aaa;
  border-color: #444;
}

.filter-toggle.include {
  background-color: #2962ff;
  color: #fff;
  border-color: #4af;
}

.filter-toggle.exclude {
  background-color: #ff5252;
  color: #fff;
  border-color: #f44;
}

.filter-toggle:hover {
  box-shadow: 0 0 6px rgba(255,255,255,0.2);
}

.filter-category {
  display: block;
  margin-bottom: 0; 
  padding: 0;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1px 0; /* minimal vertical padding */
  margin: 0;
  user-select: none;
  width: 100%
}

.filter-header h3 {
  margin: 0;
  padding: 0;
  font-size: 0.8rem; /* slightly smaller if needed */
  line-height: 1;
  color: #eee;
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

.filter-header .toggle-icon {
  font-size: 0.5rem;
  margin-left: 4px;
  color: #aaa;
  transition: transform 0.2s ease;
  user-select: none;
  vertical-align: middle;
}

.filter-category.collapsed .toggle-icon {
  transform: rotate(-90deg);
  color: #666;
  user-select: none;
}

.filter-header:hover h3 {
  color: #4af;
}

.filter-content {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 0 6px 0;
  transition: max-height 0.15s ease-out;
  overflow: hidden;
}
.filter-category.collapsed .filter-content {
  max-height: 0;
  padding: 0;
}

/*Dictionary Styles*/
html.dictionary-page, 
body.dictionary-page {
  background: url('/images/backgrounds/arena-page.png') center/cover no-repeat;
  background-attachment: fixed;
  image-rendering: auto;
}

.dictionary-page h1,
.dictionary-page h2 {
  display: block; 
  margin: 20px auto;
  padding: 1px 2px;

 background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)),
              url('/images/textures/stone2.png') center/cover no-repeat;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: rgba(50, 50, 50, 0.8);
  text-shadow: 0 1px 0px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  max-width: 500px;
  
    box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -2px 4px rgba(255, 255, 255, 0.1),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Table Styling */
.TableStyles { 
  width: 90%; 
  max-width: 1000px; 
  margin: 30px auto; 
  border-collapse: collapse; 
  background-color: #111; 
  color: #eee; 
  box-shadow: 0 0 10px rgba(0,0,0,0.3); 
  font-family: var(--font-family); 
  border-radius: 6px; 
  overflow: hidden; 
}

.TableStyles thead {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)),
              url('/images/textures/stone3.png') center/cover no-repeat;
  color: #fff;
}

.TableStyles th,
.TableStyles td {
  padding: 12px 16px;
  border: 1px solid #333;
  text-align: left;
}

.TableStyles th {
  font-weight: bold;
  font-size: 0.95rem;
  position: relative;
}

/* Default icon for sortable headers */
.TableStyles th::after {
  content: "⇅"; /* Or use "▲▼" if preferred */
  position: absolute;
  right: 8px;
  font-size: 0.75rem;
  color: #666; /* Dim to suggest inactive */
}

/* Highlight active ascending */
.TableStyles th.sorted-asc::after {
  content: "▲";
  color: #4af;
}

/* Highlight active descending */
.TableStyles th.sorted-desc::after {
  content: "▼";
  color: #ff5252;
}


.TableStyles tbody tr:nth-child(even) {
  background-color: #1c1c1c;
}

.TableStyles tbody tr:hover {
  background-color: #333;
}

.table-scroll-wrapper {
  max-height: 400px; /* adjust as needed */
  overflow-y: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: inset 0 0 0px rgba(0,0,0,0.2);
}

#clearHistory {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)), 
              url('/images/textures/stone4.png') center/cover no-repeat;
  color: rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); /* subtle inner shadow for depth */
  border: none;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;

  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),   /* top inner shadow */
    inset 0 -2px 4px rgba(255, 255, 255, 0.1), /* bottom light edge */
    0 2px 6px rgba(0, 0, 0, 0.3);         /* outer drop shadow */
  transition: background 0.2s, transform 0.2s;
}

#clearHistory:hover {
  transform: translateY(-2px);
}


#clearQuizStats {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)), 
              url('/images/textures/stone4.png') center/cover no-repeat;
  color: rgba(0, 0, 0, 0.7);

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1); /* subtle inner shadow for depth */

  border: none;
  padding: 8px 15px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),   /* top inner shadow */
    inset 0 -2px 4px rgba(255, 255, 255, 0.1), /* bottom light edge */
    0 2px 6px rgba(0, 0, 0, 0.3);         /* outer drop shadow */
  transition: background 0.2s, transform 0.2s;
}

#clearQuizStats:hover {
  transform: translateY(-2px);
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
}

/* Tooltip bubble (reusing your hover-box style) */
.tooltip .tooltip-text {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #444;
  max-width: 240px;
  white-space: normal;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

/* Arrow */
.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: rgba(0,0,0,0.85) transparent transparent transparent;
}

/* Show on hover */
.tooltip:hover .tooltip-text {
  display: block;
}
/* Modal backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Modal window */
.modal {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.2)),
              url('/images/textures/stone4.png') center/cover no-repeat;
  padding: 20px 25px;
  border-radius: 6px;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(255,255,255,0.1),
    0 4px 10px rgba(0,0,0,0.4);
  color: rgba(0,0,0,0.8);
  max-width: 320px;
  text-align: center;
}

/* Modal buttons */
.modal button {
  margin: 10px 8px 0;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(255,255,255,0.1),
    0 2px 6px rgba(0,0,0,0.3);
}

.modal .confirm {
  background:
    linear-gradient(rgba(200, 50, 50, 0.55), rgba(200, 50, 50, 0.55)),
    url('/images/textures/stone4.png') center/cover no-repeat;
  background-blend-mode: multiply;
  color: #000;
}

.modal .cancel {
  background:
    linear-gradient(rgba(50, 100, 200, 0.45), rgba(50, 100, 200, 0.45)),
    url('/images/textures/stone4.png') center/cover no-repeat;
  background-blend-mode: multiply;
  color: #000;
}

/* Makes all button class objects follow system font*/
button {
  font-family: var(--font-family);
}

/* Quiz Start Buttons Container */
#controls {
  text-align: center;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Quiz Start Buttons Styling */
#controls button {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)), 
              url('/images/textures/stone4.png') center/cover no-repeat;
  color: rgba(0, 0, 0, 0.7);

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1); /* subtle inner shadow for depth */

  border: none;
  padding: 8px 15px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),   /* top inner shadow */
    inset 0 -2px 4px rgba(255, 255, 255, 0.1), /* bottom light edge */
    0 2px 6px rgba(0, 0, 0, 0.3);         /* outer drop shadow */
  transition: background 0.2s, transform 0.2s;
}


#controls button:hover {
  transform: translateY(-2px);
}

/* Quiz Container */
#quiz-container {
  display: none;
  text-align: center;
}

/* No Data Return Button */
#quiz-container p {
  font-size: 1rem;
  color: #666;
  text-align: center;
  margin: 20px 0;
  font-style: italic;
}



/* Quiz Answer Buttons */
.quiz-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.quiz-buttons button {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)), 
              url('/images/textures/stone4.png') center/cover no-repeat;
  color: rgba(0, 0, 0, 0.7);

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1); /* subtle inner shadow for depth */

  border: none;
  padding: 8px 15px;
  font-size: 1.3rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),   /* top inner shadow */
    inset 0 -2px 4px rgba(255, 255, 255, 0.1), /* bottom light edge */
    0 2px 6px rgba(0, 0, 0, 0.3);         /* outer drop shadow */
  transition: background 0.2s, transform 0.2s;
}

.quiz-buttons button:hover {
  transform: translateY(-2px);
}


.end-button-row {
  text-align: center;
  margin-top: 16px;
}

.end-button-row button {
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(0,0,0,0.15)), 
              url('/images/textures/stone4.png') center/cover no-repeat;
  color: rgba(0, 0, 0, 0.7);

  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.1); /* subtle inner shadow for depth */

  border: none;
  padding: 8px 15px;
  font-size: 1.3rem;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),   /* top inner shadow */
    inset 0 -2px 4px rgba(255, 255, 255, 0.1), /* bottom light edge */
    0 2px 6px rgba(0, 0, 0, 0.3);         /* outer drop shadow */
  transition: background 0.2s, transform 0.2s;
}

.end-button-row button:hover {
  transform: translateY(-2px);
}


/* Resources container reused from contact-container */
.resources-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 30px;
  color: #6A422C;
  background-color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  text-align: center;
    font-weight: bold;
}

/* Resource Section Style */
.resource-section {
  border: none;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.resource-section h2 {
  font-family: 'Cinzel', serif; /* or a fantasy serif */
  font-size: 1.5em;
  color: #4A2E1F;
  border-bottom: 2px solid #8B5E3C;
  padding-bottom: 8px;
  margin-bottom: 16px;
}


.resource-section ul {
  list-style-type: none;
  padding-left: 0;
}

.resource-section li {
  margin-bottom: 8px;
}

.resource-section a {
  color: #2962ff;
  text-decoration: none;
}

.resource-section a:hover {
  text-decoration: underline;
}

/* Resource thumbnails using game grid styles */
.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.thumb {
  background: #222;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.thumb p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #fff;
}

/* Contact Styling */
.contact-container {
  max-width: 600px;
  margin: 15px auto;
  padding: 15px 20px;
  background-image: url("../images/textures/oraclestone.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  color: #e0e0e0;
  font-family: 'Open Sans', sans-serif;

  /* Optional: overlay for readability */
  background-blend-mode: overlay;
  background-color: rgba(30, 30, 30, 0.85);
}

/* Headings and intro text */
.contact-container h1 {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  margin-bottom: 10px;
  color: #f0f0f0;
  text-align: center;
}

.contact-container p {
  font-size: 1rem;
  color: #bbb;
  text-align: center;
  margin-bottom: 20px;
}

/* Form labels */
form label {
  display: block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #ccc;
}

/* Inputs and textarea */
form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background-color: #2c2c2c;
  border: 1px solid #666;
  border-radius: 6px;
  color: #f0f0f0;
  font-size: 0.95rem;
  box-sizing: border-box;
  resize: vertical;
  transition: border
}

form button[type="submit"] {
  margin-top: 30px;
  padding: 12px 20px;
  background-image: url("../images/textures/oraclemessage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: #fff;
  font-weight: bold;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;

  /* Depth via shadow only */
  box-shadow:
    0 4px 6px rgba(0,0,0,0.4),
    0 1px 0 rgba(0,0,0,0.2);

  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

/* Hover effect: lift and glow */
form button[type="submit"]:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 6px 10px rgba(0,0,0,0.5),
    0 0 12px rgba(138, 109, 223, 0.6);
}