/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: 'Lora', serif;
  font-size: 16px;
  background-color: #181818;
  color: #d8d8d8;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Headings */
h1, h2, h3, .nav-menu a {
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  font-weight: bold;
  word-break: break-word;
  overflow-wrap: break-word;
}

h1, .main-heading {
  font-size: clamp(1.3rem, 6vw, 2.5rem);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
  max-width: 90%;
  margin: 0 auto;
}

.container h1 {
  font-size: clamp(1.4rem, 7vw, 3rem);
}

/* Layout */
.container {
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding: 2rem;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem;
}

header {
  background: #181818;
  padding: 1rem;
}

.center-text {
  text-align: center;
}

.center-image {
  display: block;
  margin: 0 auto;
}

.image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.main-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Menu */
.menu-toggle {
  width: 30px;
  height: 25px;
  position: fixed;
  top: 15px;
  left: 15px;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #111;
  width: 250px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 1000;
  padding-top: 60px;
}

.nav-menu.active {
  transform: translateX(0);
}

.nav-menu li {
  border-bottom: 1px solid #444;
}

.nav-menu li a {
  display: block;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
}

.nav-menu li a:hover {
  background-color: #333;
}

.nav-menu li .submenu {
  padding-left: 20px;
}

.submenu {
    display: none;
    background-color: #111;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.nav-menu li:hover .submenu {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

.has-submenu.open > .submenu {
  display: block;
}

.has-submenu > .submenu {
  display: none;
}

/* Forms */
.form-container {
  text-align: center;
  padding: 1rem;
}

form input[type="text"],
form input[type="email"],
form textarea {
  width: 80%;
  max-width: 500px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  margin-top: 5px;
}

form textarea {
  resize: vertical;
}

.arcane-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  overflow-x: auto;
}

.arcane-table-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  overflow-x: auto;
}

.arcane-table {
  width: 100%;
  border-collapse: collapse;
  background: #111;
  color: #d8d8d8;
  border: 2px solid #888;
  table-layout: auto;
}

.arcane-table th,
.arcane-table td {
  border: 1px solid #444;
  padding: 10px 15px;
  text-align: center;
  font-size: 1rem;
}

.corner {
  position: absolute;
  display: block;
  width: 60px;  /* fixed size for consistent alignment */
  height: auto;
  z-index: 2;
  pointer-events: none;
}

/* Alignments without translate() */
.top-left {
  top: -3px;
  left: -3px;
}

.top-right {
  top: -3px;
  right: -3px;
}

.bottom-right {
  bottom: -3px;
  right: -3px;
}

.bottom-left {
  bottom: -3px;
  left: -3px;
}

.arcane-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Layout wrapper */
.arcane-filters-wrapper {
  position: sticky;
  top: 100px;
  flex-shrink: 0;
}

/* Filter icons container for desktop */
.arcane-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* Filter icons themselves */
.filter-icon {
  width: clamp(40px, 6vw, 80px);
  height: auto;
  cursor: pointer;
  opacity: 0.75;
  transition: transform 0.2s, opacity 0.2s;
}

.filter-icon.active {
  border: 2px solid #f0c040;
  opacity: 1;
  border-radius: 6px;
}

.filter-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.portraits-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.portrait-block {
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.portrait-block img {
  width: 60%;
  height: auto;
  display: block;
}

.portrait-info {
  padding: 1rem;
  width: 100%;
}

.portrait-info table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  color: #ddd;
}

.portrait-info td {
  padding: 0.4rem 1rem;
  border: none;
  font-size: 1rem;
}

.character-name {
  font-family: 'Uncial Antiqua', 'Cinzel', serif;
  font-size: 1.5rem;
  color: #f0c040;
  text-align: center;
  margin: 1rem 0 0.5rem;
}

.art-page {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.art-block {
  border-radius: 8px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 3rem;
}

.art-block img {
  width: 80%;
  height: auto;
  display: block;
}

.art-info {
  padding: 1rem;
  width: 100%;
}

.art-info table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  color: #ddd;
}

.art-info td {
  padding: 0.4rem 1rem;
  border: none;
  font-size: 1rem;
}

.art-name {
  font-family: 'Uncial Antiqua', 'Cinzel', serif;
  font-size: 1.5rem;
  color: #f0c040;
  text-align: center;
  margin: 1rem 0 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin: 5% auto;
  display: block;
  transition: transform 0.3s ease;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  cursor: zoom-in;
  user-select: none;
  position: relative;
  touch-action: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-content.zoomed {
  transform: scale(2);
  cursor: grab;
}

.zoomed {
  cursor: grab;
  transform: scale(2);
  transition: transform 0.3s ease;
}

/* 1) Container sizing & padding */
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedContainer {
  max-width: 360px;
  width: 90%;
  margin: 2rem auto 1rem;
  padding: 1rem;              /* reduce from 2rem to 1rem */
  box-sizing: border-box;
  background-color: #181818 !important;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-embedContent h4 {
  margin: 0 0 0.5rem;         /* space below heading */
  font-size: 1.4rem;
  text-align: center !important;
  font-family: 'Cinzel', serif !important;
  color: white !important;  
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-embedContent p {
  margin: 0 0 1rem;           /* space below subtext */
  font-size: 1rem;
  text-align: center !important;
  font-family: 'Lora', serif !important;
  color: white !important;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow {
  display: flex;
  gap: 0.5rem;                /* 8px gap between input & button */
  align-items: center;
}

/* 4) Email input flexes, no bottom margin */
.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow input[type="email"] {
  flex: 1 1 0;                    /* fill remaining space */
  margin: 0;                  /* remove extra margins */
  width:auto !important;
  min-width: 0;
  padding: 0.6rem;            /* adjust height */
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Cinzel', serif !important;
}

/* 5) Button stays its own size */
.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary {
  width: auto !important;
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 6px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: 'Cinzel', serif !important;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary:hover,
.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary:focus {
  background-color: #181818 !important;  /* your button hover color */
  color:          #fff !important;    /* ensure text stays white */
  box-shadow:     none !important;    /* kill any shadow */
  outline:        none !important;    /* kill the focus ring */
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow:hover,
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedWrapper:hover {
  background-color: transparent !important;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary:focus {
  outline: none !important;
  box-shadow: none !important;
  background-color: #181818 !important;
  color: #fff !important;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary:hover {
  background-color: #181818;
}

/* 5. Success message */
.ml-embedded[data-form="ZcGNSN"] .ml-form-successBody {
  background: #e6ffed;
  border: 1px solid #a3f7bb;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}
.ml-embedded[data-form="ZcGNSN"] .ml-form-successBody h4,
.ml-embedded[data-form="ZcGNSN"] .ml-form-successBody p {
  color: #2f7a40;
  margin: 0.5rem 0;
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-successBody h4 {
  font-family: 'Cinzel', serif !important; 
}

.ml-embedded[data-form="ZcGNSN"] .ml-form-successBody p {
  font-family: 'Cinzel', serif !important; 
}

/* Force the container to keep its dark color at all times */
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedContainer,
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedContainer:hover {
  background-color: #222 !important;
}

/* Also kill any hover-background on the inner wrapper */
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedWrapper,
.ml-embedded[data-form="ZcGNSN"] .ml-form-embedWrapper:hover {
  background-color: transparent !important;
}

.ml-embedded[data-form="ZcGNSN"] {
  min-height: 200px;  /* temporary space reservation until form loads */
}

.prologue-text {
  background-color: rgba(255, 255, 255, 0.03); /* optional parchment tone */
  padding: 2rem;
  border-radius: 12px;
  font-family: 'Lora', serif;
  line-height: 1.8;
  color: #e0e0e0;
  max-width: 800px;
  margin: 3rem auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.prologue-text p {
  margin-bottom: 1.2rem;
}

.buy-now-container {
  text-align: center;
  margin-top: 2.5rem;
}

.buy-now-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: linear-gradient(145deg, #4a2e1e, #7d4e2d);
  color: #fff8e1;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  text-decoration: none;
  border: 2px solid #c49b66;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(196, 155, 102, 0.6);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.buy-now-button:hover {
  background: #c49b66;
  color: #1a0e07;
  box-shadow: 0 0 20px #f5deb3;
  transform: scale(1.05);
}

.icon-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    text-decoration: none;
    color: inherit; /* Optional: keeps your text color consistent */
}

.icon-row a {
    text-decoration: none;
}

.icon-row a p {
    text-decoration: none !important;
    margin-top: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #333;
}

.icon-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* soft glow effect */
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.icon-label {
    margin-top: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: white;
    text-decoration: none; /* double-safety */
}

.icon-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.magic-icon {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.magic-icon:hover {
    transform: scale(1.05);
}

.icon-label {
    margin-top: 0.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: white;
}

.back-button {
    position: fixed;
    top: 50px;
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.back-icon {
    width: 42px;
    height: auto;
    cursor: pointer;
    display: block;
    color: white !important;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.about-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Lora', serif;
    line-height: 1.8;
    color: #333;
}

.about-image {
    display: block;
    margin: 4rem auto 2rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1.6rem;
}

.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #111;
    color: #ccc;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
}

.social-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a img {
    width: 60px;
    height: 60px;
    filter: brightness(100%) contrast(100%);
    transition: transform 0.2s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}

.social-icon-list {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif; /* Or use 'Lora' if preferred */
}

.social-icon-list a img {
    width: 200px;
    height: 200px;
    filter: brightness(100%) contrast(100%);
    transition: transform 0.2s ease;
}

.social-icon-list a img:hover {
    transform: scale(1.2);
}

.social-links-caption {
    text-align: center;
    margin-top: 1rem;
    font-family: 'Cinzel', serif; /* or 'Lora', serif if you prefer */
    font-size: 1rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .arcane-wrapper {
    padding: 1rem;
  }

  .arcane-table-container {
    position: relative;
    max-width: 100%;
    padding: 1rem;
  }

  .arcane-table th,
  .arcane-table td {
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  
  .arcane-layout {
    flex-direction: column;
    align-items: center;
  }
  
  .arcane-filters-wrapper {
    width: 100%;
    position: relative;
    top: auto;
    margin-bottom: 1rem;
    overflow-x: auto;
  }

  .arcane-filters {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 1rem;
    gap: 0.8rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .boxes {
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }

  .box {
    width: 90%;
  }

  .menu-toggle {
    top: 10px;
    left: 10px;
  }
  
  .corner {
    width: 40px !important;
    height: auto !important;
  }

  .top-left {
    top: 15px !important;
    left: 15px !important;
  }

  .top-right {
    top: 15px !important;
    right: 15px !important;
  }

  .bottom-left {
    bottom: 15px !important;
    left: 15px !important;
  }

  .bottom-right {
    bottom: 15px !important;
    right: 15px !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .main-heading {
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    letter-spacing: 0.1em;
    text-align: center;
    word-break: break-word;
  }

  .image-wrapper {
    padding: 0 !important;
    margin-top: 1rem !important;
  }

  .main-image {
    width: 100% !important;
    max-width: 90% !important;
    height: auto !important;
  }
  
  .portrait-block {
    flex-direction: column;
    align-items: center;
  }

  .portrait-block img {
    width: 80%;
    max-width: 280px;
  }

  .portrait-info {
    width: 100%;
    padding: 0.5rem 1rem;
  }
  
  .portrait-info table {
    width: 100%;
  }  
  
  .portrait-info td {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }  
  
  .character-name {
    font-size: 1.4rem;
    text-align: center;
    margin: 0.5rem 0;
    white-space: normal;
  }
  
  .art-block {
    flex-direction: column;
    align-items: center;
  }

  .art-block img {
    width: 80%;
    max-width: 280px;
  }

  .art-info {
    width: 100%;
    padding: 0.5rem 1rem;
  }
  
  .art-info table {
    width: 100%;
  }  
  
  .art-info td {
    font-size: 0.95rem;
    padding: 0.3rem 0.5rem;
  }  
  
  .art-name {
    font-family: 'Uncial Antiqua', 'Cinzel', serif;
    color: #f0c040;
    font-size: 1.4rem;
    text-align: center;
    margin: 0.5rem 0;
    white-space: normal;
  }
  
  .ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow {
    flex-direction: column;
  }
  .ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow input,
  .ml-embedded[data-form="ZcGNSN"] .ml-form-horizontalRow .primary {
    width: 100%;               /* full width when stacked */
  }

}
