@import url(foundation.min.css);

@import url(jquery.fancybox.css);

@import url(slick.css);

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary,
h1,
h2,
h3,
h4,
h5,
h6,
html,
body,
audio,
canvas,
video,
a,
small,
label,
legend,
button,
input,
textarea,
time {
  font-family: "Ysabeau Office", sans-serif;

  font-weight: normal;
}

.top-bar-section ul li > a {
  font-family: "Caudex", serif;
}

figure {
  text-align: center;
}

h3,
h1,
h2 {
  font-family: "Caudex", serif;
}

.main__image img {
  width: 100%;
  object-fit: cover;
}

.img-wrapper-books img {
  max-width: 50rem;
}

.error > label > small {
  text-transform: none;
}

.search-page .left {
  width: 100%;

  max-width: 85rem;

  margin: auto;

  float: none !important;

  margin-top: -10rem;
}

.search-page .left {
  background-color: var(--secondary);

  padding: var(--space);
}

.row-404.main__image h2 {
  background: transparent;

  font-size: var(--font30);

  -webkit-text-fill-color: var(--secondary);
}

.button,
button {
  background-color: #257696;
}

.button:hover,
button:hover {
  background-color: #113644;
}

a.race-btn {
  display: block;
  border: 1px solid black;
  width: fit-content;
  padding: 1rem 3rem;
  text-transform: uppercase;
  color: black;
}

.top-bar-section li:last-child:not(.has-form) a.events:not(.button) {
  text-decoration: none !important;

  color: #ffffff !important;

  background-color: #333333 !important;
}

.top-bar-section li:last-child:not(.has-form) a:hover.events:not(.button) {
  background-color: #999999 !important;
}

.st_fblike_hcount {
  margin-right: 25px;
}

.st_pinterest_hcount {
  margin-left: 20px;
}

.contain-to-grid,
.top-bar,
.top-bar-section ul {
  font-size: 1rem;

  color: #666666 !important;

  background-color: transparent !important;
}

.img-wrapper img {
  width: 100%;

  object-fit: cover;
}

.top-bar-section {
  margin-top: 10px;
}

.row-classes-5e .diamond-date,
.row-races-dnd-5e .diamond-date {
  font-size: 0;
}

.diamond-sub {
  font-size: var(--font20);
  color: white;
  line-height: 1.2;
}

.diamond-sub {
  font-size: var(--font20);

  line-height: 1.3;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  margin-top: 1rem;

  text-align: center;

  padding-left: 1rem;

  padding-right: 1rem;
}

.static-page__content {
  max-width: var(--max-width-sm);

  margin: auto;

  padding: 1rem;
}

summary {
  font-size: var(--font30);

  color: var(--secondary);

  margin: 2rem 0 1rem;

  border-bottom: 2px solid var(--primary);

  padding-bottom: 0.5rem;
  padding: 1rem 1rem;

  position: relative;
}

h3 {
  font-size: var(--font40);

  color: var(--secondary);
}

.top-bar-section .has-dropdown > a:after {
  border-color: #666666 transparent transparent transparent;
}

/* ul.dropdown {

  background-color: #cccccc !important;

} */

.slider,
.slider img {
  width: 100%;
}

.slideshow-library {
  position: relative;
}

.slideshow-library .slick-slider {
  padding-bottom: 5rem;
}
.slideshow-library {
  position: relative;
  margin-top: 5rem;
}
.slideshow-library .sliderCaption {
  height: 100%;
  bottom: 0;
  align-items: center;
  justify-content: center;
  text-shadow: 3px 3px 3px rgba(0, 0, 0, 0.9);
}

.slideshow-library .slick-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.slider img,
.slick-slider img,
.slideshow img {
  animation: goblinsZoom 8s ease-in-out infinite;

  transform-origin: center center;

  transition: transform 0.5s ease;

  cursor: pointer;
}

.slider img:hover,
.slick-slider img:hover,
.slideshow img:hover {
  /* animation-play-state: paused; */

  transform: scale(1.12);
}

.slideshow {
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);

  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);

  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

@keyframes goblinsZoom {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

/* Pagination Styles */

.pagination {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  margin: 3rem 0;

  padding: 0;

  list-style: none;
}

.pagination li {
  margin: 0;
}

.pagination li a {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 4.5rem;

  height: 4.5rem;

  padding: 1rem 1.5rem;

  text-decoration: none;

  font-family: "Caudex", serif;

  font-size: var(--font20);

  font-weight: 600;

  color: var(--primary);

  background: linear-gradient(
    to bottom,

    #2a1a0a 0%,

    #3e2611 20%,

    #4a2f18 80%,

    #2a1a0a 100%
  );

  border: 2px solid var(--primary);

  border-radius: 0.5rem;

  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(200, 160, 90, 0.2);

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

  transition: all 0.3s ease;
}

.pagination li a::before {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  width: calc(100% - 6px);

  height: calc(100% - 6px);

  background: radial-gradient(
    ellipse at center,

    rgba(200, 160, 90, 0.1) 0%,

    transparent 70%
  );

  border-radius: 0.3rem;

  transform: translate(-50%, -50%);

  z-index: -1;

  transition: opacity 0.3s ease;

  opacity: 0;
}

.pagination li a:hover {
  color: var(--accent);

  border-color: var(--accent);

  background: linear-gradient(
    to bottom,

    #3e2611 0%,

    #5d3a1a 20%,

    #6b4221 80%,

    #3e2611 100%
  );

  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(243, 225, 184, 0.3);

  transform: translateY(-1px);
}

.pagination li a:hover::before {
  opacity: 1;
}

/* .row-agapi-mou-surriknosa-to-parti .tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 0;
  flex-direction: column;
  align-items: baseline;
} */

.row-agapi-mou-surriknosa-to-parti .download-link {
  margin-top: 2rem;
}

.pagination li.current a {
  color: #2a1a0a;

  background: linear-gradient(
    to bottom,

    var(--accent) 0%,

    var(--primary) 20%,

    var(--primary) 80%,

    #c8a05a 100%
  ) !important;

  border-color: var(--accent);

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.pagination li a {
  display: flex !important;
}

.pagination li.current a::before {
  opacity: 0;
}

.pagination li a:active {
  transform: translateY(1px);

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.prev-next-category-container a:hover {
  color: white;
}

.article-space {
  position: relative;
}

.categories .diamond.tall {
  width: 40rem;

  height: 70rem;

  clip-path: polygon(50% 8%, 100% 8%, 100% 85%, 50% 100%, 0% 85%, 0% 8%);

  position: relative;

  /* Allow space for rod-right element */

  margin-right: 2rem;

  margin-left: 2rem;

  display: block;
}

.editor-articles {
  color: var(--accent);
}

.homepage .diamond.tall {
  clip-path: polygon(50% 10%, 100% 10%, 100% 85%, 50% 100%, 0% 85%, 0% 10%);
}

/* horizontal golden rod */

.rod::before {
  content: "";

  position: absolute;

  top: 55px;

  left: 50%;

  right: 0;

  height: 1.2rem;

  background: linear-gradient(to bottom, #e8c96a, #b88a2c);

  border-radius: 1rem;

  z-index: 1;

  width: 110%;

  transform: translateX(-50%);

  box-shadow:
    rgba(0, 0, 0, 0.4) 0px 2px 4px,
    rgba(0, 0, 0, 0.3) 0px 7px 13px -3px,
    rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

/* left golden circle */

.rod::after {
  content: "";

  position: absolute;

  top: calc(8% - 0.9rem);

  left: -3rem;

  width: 3rem;

  height: 3rem;

  background: radial-gradient(circle, #f6da8a, #b88a2c);

  border-radius: 43%;

  z-index: 2;
}

.rod {
}

.rod-right {
  position: absolute;

  top: calc(8% - 0.9rem);

  right: -3rem;

  width: 3rem;

  z-index: 2;

  height: 3rem;

  background: radial-gradient(circle, #f6da8a, #b88a2c);

  border-radius: 43%;
}

.row {
  max-width: 1200px;
}

[data-magellan-expedition="fixed"] {
  width: 1200px;

  max-width: 1200px;

  min-width: 1200px;

  margin: 0 auto;
}

.breadcrumbs {
  border: none;

  background: none;

  box-shadow: none;

  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 0;

  margin: 0;
}

.breadcrumbs a:not(.current):hover,
.breadcrumbs a:hover i {
  color: var(--primary);

  transform: translateY(-1px);
}

/* Enhanced Breadcrumb Design */

div.breadcrumb {
  max-width: 1200px;

  margin: 0 auto 25px;

  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);

  border-radius: 12px;

  padding: 1.5rem 2rem;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  border-left: 4px solid var(--primary);

  border: 1px solid rgba(200, 160, 90, 0.2);

  position: relative;

  overflow: hidden;
}

/* Background texture */

div.breadcrumb::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  /* background-image: url("/assets/img/old-paper-seamless.png"); */

  background-size: 200px 200px;

  opacity: 0.03;

  pointer-events: none;
}

.breadcrumbs * {
  color: var(--secondary);

  position: relative;

  z-index: 2;
}

.breadcrumbs a {
  font-family: "Caudex", serif;

  font-size: var(--font16);

  text-decoration: none;

  color: var(--secondary);

  padding: 0.8rem 1.2rem;

  border-radius: 8px;

  transition: all 0.3s ease;

  position: relative;

  display: inline-flex;

  align-items: center;

  background: rgba(255, 255, 255, 0.3);

  margin-right: 0.5rem;

  border: 1px solid rgba(200, 160, 90, 0.1);
}

.breadcrumbs a:hover {
  background: rgba(200, 160, 90, 0.15);

  color: var(--primary);

  transform: translateY(-2px);

  box-shadow: 0 4px 15px rgba(200, 160, 90, 0.2);
}

blockquote,
blockquote p {
  font-size: var(--font20);
}

/* Breadcrumb separators - chevron style */

.breadcrumbs a:not(.current):not(:last-child)::after {
  content: "›";

  position: absolute;

  right: -3rem;

  top: 50%;

  transform: translateY(-50%);

  font-size: var(--font22);

  color: var(--primary);

  font-weight: bold;

  z-index: 3;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Current page styling */

.breadcrumbs .current {
  font-family: "Caudex", serif;

  font-size: var(--font18);

  font-weight: 600;

  color: var(--primary) !important;

  background: rgba(200, 160, 90, 0.1);

  padding: 0.8rem 1.2rem;

  border-radius: 8px;

  border: 1px solid var(--primary);

  position: relative;

  margin-left: 1rem;

  box-shadow: inset 0 2px 4px rgba(200, 160, 90, 0.1);
}

.breadcrumbs .current::before {
  content: "";

  margin-right: 0.5rem;
}

/* Home icon for first breadcrumb */

.breadcrumbs a:first-child::before {
  content: "";

  margin-right: 0.5rem;

  font-size: var(--font16);
}

.breadcrumbs *,
.breadcrumbs > .current {
  line-height: 28px;

  text-transform: none;

  font-size: var(--font18);
}

.captcha input {
  margin-top: 8px;
}

body {
  opacity: 1;
}

.site-header {
  position: fixed;

  top: 0;

  left: 0;

  z-index: 100;

  width: 100%;

  padding: 0;

  /* background-color: #ffffff;

  box-shadow: 0 1px 1px 0 rgba(208, 206, 206, 0.7); */
}

.top-bar .toggle-topbar.menu-icon a::after {
  top: -3px;

  left: 5px;
}

.top-bar {
  height: 100%;

  display: flex;

  align-items: center;

  flex-direction: column;

  align-items: baseline;
}

.top-bar-section {
  margin-top: 0;
}

.top-bar .toggle-topbar.menu-icon {
  top: 17px;

  left: 15px;

  right: auto;

  margin-top: 0;

  padding: 0;

  position: unset;
}

.top-bar .toggle-topbar.menu-icon a {
  height: 25px;

  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;

  margin-bottom: 40px;
}

p {
  margin-bottom: 20px;
}

.homepage main {
  padding-top: 00px;
}

.innerpage main {
  padding-top: 0px;

  font-size: var(--font16);
}

.img-wrapper {
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);

  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.row--padding,
.columns,
.column {
  padding-left: 12px;

  padding-right: 12px;
}

.row--lg {
  max-width: 1744px;
}

.form-validation input {
  margin-top: 8px;
}

#submitform {
  margin-top: 10px;

  font-family: "Caudex", serif;

  font-weight: 600 !important;

  background-color: var(--secondary);

  border-radius: 3px;

  font-size: var(--font20);

  width: fit-content;
}

.home-active li:first-of-type a {
  text-decoration: none;
}

ul.title-area #logo {
  display: inline-block;
}

.top-bar .name {
  height: initial;
}

/* Plain header links */

.top-bar-section li:not(.has-form) a:not(.button) {
  font-size: var(--font16);

  color: #fff;

  background-color: transparent;

  position: relative;

  display: inline-block;
}

/* Links with after element */

.top-bar-section li:not(.has-form) a:not(.button)::after,
li.has-dropdown.not-click:not(:last-of-type)::after {
  position: absolute;

  top: 50%;

  right: 0;

  content: "";

  width: 6px;

  height: 6px;

  border-radius: 50%;

  margin-top: -3px;

  background-color: #fff;
}

.top-bar-section li:not(.has-form) ul.dropdown a:not(.button)::after {
  display: none;
}

/* No Dropdown Arrow */

.top-bar-section .has-dropdown > a:after {
  display: none;
}

.top-bar-section ul li:hover:not(.has-form) > a,
.top-bar-section .dropdown li:not(.has-form) a:not(.button),
.top-bar-section li:not(.has-form) a:not(.button):hover,
.top-bar-section li.active:not(.has-form) a:not(.button),
.top-bar-section li.active:not(.has-form) a:not(.button):hover {
  color: #fff;

  background-color: transparent;
}

/* Hover effects for menu items without dropdowns */

.top-bar-section li:not(.has-dropdown):not(.has-form) a:not(.button) {
  transition: all 0.3s ease;
}

.top-bar-section li:not(.has-dropdown):not(.has-form) a:not(.button):hover {
  color: #f58220 !important;

  background-color: rgba(245, 130, 32, 0.1) !important;

  border-radius: 4px;

  transform: translateY(-1px);

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-section .dropdown li:not(.has-form):hover > a:not(.button) {
  /* color: #f58220;

  background-color: #fff; */
}

/* ------- HERO ------- */

.slick-slider {
  margin-bottom: 0;

  overflow: hidden;

  position: relative;
}

.slick-slider .slick-slide {
  overflow: hidden;
}

/* ------- ABOUT ------- */

/* ------- STATIC PAGE ------- */

.static-page__title {
  text-align: center;

  font-size: var(--font32);
}

.static-page__content li,
.static-page__content p {
  line-height: 28px;

  font-size: var(--font25);
}

ul,
ol,
dl,
li,
p {
  font-size: var(--font25);
}

/* ------- ARTICLE DESIGN ------- */

.article__container {
  max-width: var(--max-width);

  margin: 0 auto;

  background: #ffffff4d;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  border-radius: 12px;

  overflow: hidden;

  margin-bottom: 3rem;
}

.article__container {
}

/* Article Top Section */

.article-top {
  display: grid;

  grid-template-columns: 1fr 300px;

  gap: 2rem;

  padding: 2rem;
}

/* Article Description */

.description-article {
  background: linear-gradient(135deg, #f3e1b866 0%, #ffffff 100%);

  border-radius: 8px;

  padding: 1.5rem;

  border-left: 4px solid var(--primary);
}

.categories.diamond-nav.tall.row-races-dnd-5e,
.categories.diamond-nav.tall.row-classes-5e {
  display: none !important;
}

.tags {
  margin-bottom: 2rem;
}

p.desc,
.sub-label,
.tags .tag {
  font-size: var(--font20);
}

th {
  font-size: var(--font20) !important;
}

details img,
img.sum-img {
  float: left;
  margin-right: 2rem !important;
  max-width: 100% !important;
}

.row-delta-green-basic-rules .img-wrapper,
.row-dnd-5e-basic-rules .img-wrapper,
.row-coc-7e-basic-rules .img-wrapper {
  position: fixed;
  top: 0rem;
  left: 0;
  height: 100vh;
  width: 100vw;
  z-index: -1;
}
.character5e-wrapper .character-guide.row-10-steps-5e-character .guide-title {
  display: block !important;
}

.row-delta-green-basic-rules .img-wrapper.categories-image img,
.row-dnd-5e-basic-rules .img-wrapper.categories-image img,
.row-coc-7e-basic-rules .img-wrapper.categories-image img {
  max-height: 100%;
  height: 100vh;
}

.row-delta-green-basic-rules.main__image h2,
.row-dnd-5e-basic-rules.main__image h2,
.row-coc-7e-basic-rules.main__image h2 {
  padding-top: 21rem;
}

details p,
#vis-container p.desc {
  height: 360px;
  line-height: 2 !important;
  font-size: var(--font20) !important;
}

.staticpages-faqs details p {
  height: auto;
  margin-bottom: 0px;
}

.text-guide .text-guide-table th,
.text-guide .text-guide-table td {
  line-height: 1.1;
}

.prev-next-category-container + img,
.character5e-wrapper .prev-next-category-container img {
  margin-left: 70rem;
  display: block;
  max-width: 80rem;
  margin: auto;
  left: 13rem;
  margin-top: 8rem;
  position: relative;
}

.library-intro .book-keywords {
  text-shadow: none;
}

.description-article p {
  font-family: "Ysabeau Office", sans-serif;
  font-size: var(--font26);
  line-height: 37px;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.description-article p:first-child {
  font-weight: 600;
  color: var(--primary);
  font-size: var(--font25);
  line-height: 41px;
  background: linear-gradient(
    135deg,
    var(--secondary) 0%,
    rgba(34, 26, 20, 1) 100%
  );
  padding: 2rem;
}

.flex {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 24px 20px;
}

/* Article Content Typography */

.description-article h3 {
  font-family: "Caudex", serif;
  font-size: var(--font30);
  color: var(--secondary);
  margin: 2rem 0 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  position: relative;
}

.description-article h3::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.description-article h4 {
  font-family: "Caudex", serif;

  font-size: var(--font25);

  color: var(--secondary);

  margin: 1.5rem 0 0.8rem;

  font-weight: 600;
}

.row.articlelistingrow h4 {
  margin-bottom: 0;

  font-size: var(--font30);
}

.row.articlelistingrow p {
  font-size: var(--font20);
}

.description-article strong {
  color: var(--primary);

  font-weight: 600;
}

.description-article a {
  color: var(--primary);

  text-decoration: none;

  border-bottom: 1px dotted var(--primary);

  transition: all 0.3s ease;
}

.description-article a:hover {
  color: var(--secondary);

  border-bottom: 1px solid var(--secondary);
}

/* Article Images */

.description-article img {
  max-width: 100%;

  height: auto;

  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

  margin: 1.5rem 0;

  transition: transform 0.3s ease;
}

.description-article img:hover {
  transform: scale(1.02);
}

/* Lists */

.description-article ul,
.description-article ol {
  padding-left: 1.5rem;

  margin: 1rem 0;

  font-family: "Ysabeau Office", sans-serif;

  margin-left: 2rem;
}

.description-article ul li,
.description-article ol li {
  margin-bottom: 0.5rem;

  line-height: 33px;

  color: var(--secondary);

  font-size: var(--font26);
}

ul.pagination {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 1rem;

  margin: 3rem 0;

  padding: 0;

  list-style: none;
}

.description-article ul li::marker {
  color: var(--primary);
}

.description-article ol li::marker {
  color: var(--primary);

  font-weight: 600;
}

.main__image h2 {
  font-size: var(--font50);

  color: var(--secondary);

  text-align: center;

  margin-bottom: 0;

  font-weight: 300;

  line-height: 1.2;

  text-shadow: 0px 0px black;

  letter-spacing: 3px;

  max-width: 30rem;

  max-width: var(--max-width);

  margin: 2rem auto;

  padding: 2rem;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main__image h2 {
}

#contact select {
  height: 4rem !important;

  padding: 0rem !important;

  padding-left: 1rem !important;

  font-family: "Ysabeau Office", sans-serif;
}

.description-article table {
  width: 100%;

  border-collapse: collapse;

  margin: 2rem 0;

  background: #ffffff;

  border-radius: 8px;

  overflow: hidden;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.description-article table tbody tr {
  transition: background-color 0.2s ease;
}

.description-article table tbody tr:nth-child(even) {
  background-color: #f8f9fa;
}

.description-article table tbody tr:hover {
  background-color: rgba(200, 160, 90, 0.1);
}

.description-article table td {
  padding: 1rem;

  border-bottom: 1px solid var(--accent);

  vertical-align: top;

  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font20);

  line-height: 37px;

  color: var(--secondary);
}

.description-article table td:first-child {
  font-weight: 600;

  color: var(--primary);

  background-color: rgba(200, 160, 90, 0.05);

  min-width: 100px;
}

/* Sticky Navigation Menu */

.sticky-nav-menu {
  position: sticky;

  top: 20rem;

  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);

  border-radius: 12px;

  padding: 1.5rem;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);

  border: 1px solid var(--primary);

  z-index: 90;

  align-self: flex-start;
}

.sticky-nav-menu a {
  display: block;

  margin-bottom: 1rem;

  transition: transform 0.3s ease;

  border-radius: 8px;

  overflow: hidden;
}

.sticky-nav-menu a:hover {
  transform: translateY(-2px);
}

.sticky-nav-menu img {
  width: 100%;

  height: auto;

  border-radius: 8px;

  transition: transform 0.3s ease;
}

.sticky-nav-menu a:hover img {
  transform: scale(1.05);
}

/* Article Bottom Section */

.article-bottom {
  padding: 2rem;

  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);

  border-top: 1px solid #e0e0e0;
}

.article-bottom h2 {
  font-family: "Caudex", serif;

  font-size: var(--font30);

  color: var(--secondary);

  margin-bottom: 1.5rem;

  text-align: center;

  position: relative;
}

.article-bottom h2::after {
  content: "";

  position: absolute;

  bottom: -8px;

  left: 50%;

  transform: translateX(-50%);

  width: 80px;

  height: 3px;

  background: linear-gradient(90deg, var(--primary), var(--secondary));

  border-radius: 2px;
}

/* Related Articles Grid */

.relevant-articles {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 1.5rem;

  margin-top: 2rem;
}

/* ------- CATEGORY PAGE ------- */

.categories .diamond.tall:hover {
  transform: none;
}

.slideshow-library img {
  object-fit: cover;
  min-height: 60rem;
}

/* ------- FOOTER ------- */

.site-footer {
  background: linear-gradient(121deg, var(--secondary), rgb(56 45 27));

  color: var(--accent);

  padding: 0;

  z-index: 2;

  margin-top: 4rem;

  position: relative;
}

/* Footer Top */

.footer-top {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 2rem 2rem;

  border-bottom: 1px solid rgba(200, 160, 90, 0.2);

  max-width: var(--max-width);

  margin: 0 auto;
}

.footer-top #logo img {
  max-height: 6rem;

  transition: transform 0.3s ease;
}

.footer-top #logo img:hover {
  transform: scale(1.05);
}

.footer-socials {
  display: flex;

  gap: 1.5rem;
}

.footer-socials a {
  display: inline-block;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.footer-socials a:hover {
  transform: translateY(-2px);

  filter: brightness(1.2);
}

.footer-socials img {
  width: 5rem;

  height: 5rem;

  border-radius: 50%;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-middle {
  display: flex;

  gap: 2rem;

  padding: 2rem 2rem;

  max-width: var(--max-width);

  margin: 0 auto;

  justify-content: space-between;

  align-items: center;
}

.footer-links h3 {
  color: var(--primary);

  font-size: var(--font28);

  margin-bottom: 1.5rem;

  font-weight: bold;

  text-transform: uppercase;

  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;

  margin: 0;

  padding: 0;

  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 0.8rem;

  white-space: nowrap;
}

.footer-links a {
  color: var(--accent);

  text-decoration: none;

  font-size: var(--font26);

  line-height: 32px;

  transition: all 0.3s ease;

  display: inline-block;

  position: relative;
}

.footer-links a:hover {
  color: var(--primary);

  padding-left: 0.5rem;
}

.footer-links a::before {
  content: "";

  position: absolute;

  left: -1rem;

  top: 50%;

  transform: translateY(-50%);

  width: 0;

  height: 1px;

  background-color: var(--primary);

  transition: width 0.3s ease;
}

.footer-links a:hover::before {
  width: 0.5rem;
}

.newsletter {
  background-color: rgb(255 255 255 / 0%);

  padding: 3rem;

  border-radius: 12px;

  border: 1px solid rgb(200 160 90 / 0%);

  background-position: center;

  position: relative;

  background-repeat: no-repeat;

  background-size: cover;

  width: 60rem;

  height: 35rem;
}

.newsletter::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: rgb(34 26 20 / 51%);

  border-radius: 12px;

  z-index: 1;
}

h4 a {
  font-size: var(--font30);

  color: var(--secondary);
}

#searchOnList {
  padding-top: 20rem;

  font-size: var(--font25);
}

#searchOnList + p {
  text-align: center;

  font-size: var(--font30);

  color: var(--secondary);

  margin-top: 1rem;

  font-weight: 300;

  line-height: 1.2;

  text-shadow: 0px 0px black;

  letter-spacing: 3px;

  max-width: 30rem;

  max-width: var(--max-width);

  margin: auto;
}

.newsletter * {
  position: relative;

  z-index: 2;
}

.newsletter label {
  color: var(--accent);

  font-size: 1.4rem;

  font-weight: bold;

  margin-bottom: 0.5rem;

  display: block;
}

[data-abide] .error small.error,
[data-abide] span.error,
[data-abide] small.error {
  font-size: 1.3rem;
}

.newsletter input[type="text"] {
  background-color: rgba(255, 255, 255, 0.1);

  border: 1px solid rgba(200, 160, 90, 0.5);

  color: var(--accent);

  padding: 1rem;

  border-radius: 6px;

  width: 100%;

  font-size: var(--font20);

  margin-bottom: 0rem;

  transition: all 0.3s ease;

  height: 3.8rem;
}

.newsletter form {
  padding: 0 6rem;
}

.newsletter input[type="text"]:focus {
  border-color: var(--primary);

  background-color: rgba(255, 255, 255, 0.15);

  outline: none;

  box-shadow: 0 0 0 2px rgba(200, 160, 90, 0.3);
}

.newsletter input[type="text"]::placeholder {
  color: rgba(243, 225, 184, 0.7);
}

.newsletter .button {
  background: linear-gradient(135deg, var(--primary) 0%, #b8942d 100%);

  border: 1px solid var(--primary);

  color: var(--secondary);

  font-weight: bold;

  padding: 1.2rem 3rem;

  border-radius: 6px;

  transition: all 0.3s ease;

  letter-spacing: 1px;

  width: 100%;
}

.newsletter .button:hover {
  background: linear-gradient(135deg, #b8942d 0%, var(--primary) 100%);

  transform: translateY(-2px);

  box-shadow: 0 4px 12px rgba(200, 160, 90, 0.4);
}

/* Footer Bottom */

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);

  padding: 2rem;

  border-top: 1px solid rgba(200, 160, 90, 0.2);
}

.site-footer_copyrights,
.site-footer_copyrights a {
  color: rgba(243, 225, 184, 0.8);

  font-size: var(--font20);

  text-decoration: none;

  transition: color 0.3s ease;
}

.footer-links {
  display: flex;

  gap: var(--space);

  width: 60%;
}

.footer-links > div {
  width: 25%;
}

.footer-bottom > div {
  max-width: var(--max-width);

  margin: auto;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

.site-footer_copyrights a:hover {
  color: var(--primary);
}

.site-footer_logo img {
  opacity: 0.8;

  transition: opacity 0.3s ease;

  max-width: 11rem;
}

.site-footer_logo img:hover {
  opacity: 1;
}

.moduledata {
  background: var(--secondary);

  border-radius: 12px;

  box-shadow: 0 4px 20px rgba(37, 118, 150, 0.08);

  overflow: hidden;

  transition: all 0.3s ease;

  position: relative;

  margin: 1rem;

  margin-bottom: 20px;

  height: 65rem !important;
}

.moduledata:hover {
  transform: translateY(-5px);

  box-shadow: 0 8px 30px rgba(37, 118, 150, 0.15);
}

.moduledata figure {
  margin: 0;

  position: relative;

  overflow: hidden;

  border-radius: 12px 12px 0 0;
}

.moduledata figure::after {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(
    to bottom,

    transparent 0%,

    transparent 60%,

    rgba(17, 54, 68, 0.7) 100%
  );

  opacity: 0;

  transition: opacity 0.3s ease;
}

.moduledata:hover a.article-img::after {
  opacity: 1;
}

.moduledata a img {
  width: 100%;

  height: auto;

  max-height: 300px;

  object-fit: cover;

  transition: transform 0.3s ease;
}

.books-popular img {
  max-width: 8rem;
}

.moduledata:hover img {
  transform: scale(1.05);
}

.delta-system-guide .guide-title,
.delta-guide .guide-title,
.delta-welcome-guide .guide-title {
  display: block !important;
  padding-top: 20rem;
}
.books-popular {
  margin-bottom: 1rem;
  border-top: 1px solid var(--primary);
  padding-top: 1rem;
}
.book-filter-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 4rem;
}

.editors-image {
  max-width: 50rem;
}

.sliderCaption {
  position: absolute;
  left: 50%;
  bottom: 20rem;
  transform: translateX(-50%);
  gap: 5rem;
  display: flex;
  flex-direction: column;
  color: white;
  align-items: center;
  font-size: 6rem;
  font-family: "Caudex";
  z-index: 2;
  text-align: center;
}

.moduledata > .article-title {
  display: block;

  padding: 20px 24px 10px;

  text-decoration: none;

  color: var(--accent);

  font-family: "Caudex", serif;

  font-size: var(--font25);

  font-weight: 600;

  line-height: 1.4;

  transition: color 0.3s ease;

  border-bottom: 2px solid transparent;

  margin-bottom: 12px;

  min-height: 14rem;

  display: flex;

  align-items: anchor-center;
}

.rpg-button.modules-btn {
  font-size: var(--font18);

  margin: 4rem auto;

  display: block;

  width: fit-content;

  padding: 8px 3px;
}

.moduledata .rpg-button.modules-btn {
  margin-top: 5px;
}

.moduledata > .article-title:hover {
  color: white;

  text-decoration: none;
}

.moduledata > article {
  padding: 0 24px 8px;

  color: white;

  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font20);

  line-height: 1;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  margin-bottom: 16px;

  line-height: 33px;
}

.library-intro h2 {
  font-family: "Caudex", serif;

  font-size: var(--font32);

  font-weight: 600;

  color: var(--secondary);

  letter-spacing: 0.03em;

  margin-bottom: 10px;
}

.library-intro p {
  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font20);

  color: var(--secondary);

  display: -webkit-box;

  line-clamp: 10;

  -webkit-line-clamp: 10;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  margin-bottom: 16px;

  line-height: 1.6;
}

.library-top {
  max-width: 860px;
  align-items: normal;
  margin: 40px auto 0;

  padding: 0 24px;
}

.article__gallery-library {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-height: 650px;
  overflow-y: clip;
}

.tab-wrapper {
  max-width: 860px;
  margin: 32px auto 0;
  padding: 0 24px 48px;
}

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--primary);
  margin-bottom: 0;
}

.tab-btn {
  font-family: "Caudex", serif;
  font-size: var(--font16);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(243, 225, 184, 0.75);

  border: 2px solid var(--primary);

  border-bottom: none;

  padding: 10px 28px;

  cursor: pointer;
  margin-bottom: 0 !important;
  position: relative;

  bottom: -2px;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;

  outline: none;
}

.tab-btn:first-child {
  border-radius: 6px 0 0 0;
}

.tab-btn:last-child {
  border-radius: 0 6px 0 0;
}

.tab-btn:hover {
  color: var(--secondary);

  background: rgba(243, 225, 184, 0.95);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.9);

  color: var(--primary);

  border-color: var(--primary);

  border-bottom-color: rgba(255, 255, 255, 0.9);

  z-index: 1;
}

.tab-panel {
  display: none;

  background: rgba(255, 255, 255, 0.9);

  border: 2px solid var(--primary);

  border-top: none;

  border-radius: 0 6px 6px 6px;

  padding: 32px 36px;

  animation: libraryTabFadeIn 0.22s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes libraryTabFadeIn {
  from {
    opacity: 0;

    transform: translateY(6px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.tab-panel h3 {
  font-family: "Caudex", serif;

  font-size: var(--font25);

  color: var(--secondary);

  letter-spacing: 0.05em;

  margin-bottom: 14px;

  padding-bottom: 8px;

  border-bottom: 1px solid var(--primary);
}

.tab-panel p {
  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font20);

  margin-bottom: 14px;

  color: var(--secondary);

  line-height: 1.6;
}

.meta-block {
  background: rgba(243, 225, 184, 0.55);

  border-left: 3px solid var(--primary);

  padding: 14px 18px;

  border-radius: 0 4px 4px 0;

  margin-top: 18px;

  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font18);

  color: var(--secondary);

  line-height: 1.8;
}

.download-area {
  display: flex;

  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

.download-icon {
  width: 52px;

  height: 52px;

  background: var(--secondary);

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;
}

.download-icon svg {
  width: 24px;

  height: 24px;

  fill: none;

  stroke: var(--accent);

  stroke-width: 2;

  stroke-linecap: round;

  stroke-linejoin: round;
}

.download-link {
  display: inline-flex;

  align-items: center;

  gap: 10px;

  font-family: "Caudex", serif;

  font-size: var(--font18);

  font-weight: 600;

  letter-spacing: 0.06em;

  color: var(--accent);

  background: var(--secondary);

  text-decoration: none;

  padding: 12px 26px;

  border-radius: 4px;

  border: 2px solid var(--secondary);

  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;

  box-shadow: 0 2px 8px rgba(34, 26, 20, 0.18);
}

.download-link:hover {
  background: var(--primary);

  border-color: var(--primary);

  color: var(--secondary);

  transform: translateY(-1px);
}

.download-link svg {
  width: 18px;

  height: 18px;

  fill: none;

  stroke: currentColor;

  stroke-width: 2.2;

  stroke-linecap: round;

  stroke-linejoin: round;

  flex-shrink: 0;
}

.download-note {
  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font16);

  color: var(--secondary);

  font-style: italic;

  margin-top: 18px;
}

@media only screen and (max-width: 640px) {
  .library-top,
  .tab-wrapper {
    padding-left: 16px;

    padding-right: 16px;
  }

  .gt-books__image {
    min-height: 37rem;
  }

  .diamond.tall {
    width: 12rem;
    height: 20rem;
  }

  .book-in-category {
    display: flex;
    width: 100%;
    flex-direction: column;
    border: 2px solid white;
    padding: 2rem;
    margin-top: 3rem;
  }

  .tab-nav {
    flex-wrap: wrap;

    border-bottom: none;

    gap: 8px;
  }

  .tab-btn {
    width: 100%;

    bottom: 0;

    border-bottom: 2px solid var(--primary);

    border-radius: 6px;
  }

  .tab-btn.active {
    border-bottom-color: var(--primary);
  }

  .tab-panel {
    border-top: 2px solid var(--primary);

    border-radius: 6px;

    padding: 24px 20px;
  }
}

.moduledata time {
  display: block;

  color: #999999;

  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font16);

  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.5px;

  position: relative;
}

.moduledata .editor {
  color: #999999;

  font-weight: 500;

  letter-spacing: 0.5px;

  font-size: var(--font16);

  font-style: italic;
}

.moduledata time::before {
  content: "";

  margin-right: 6px;

  opacity: 0.7;
}

.moduledata > span {
  position: absolute;

  top: 16px;

  right: 16px;

  width: 8px;

  height: 8px;

  background-color: var(--secondary);

  border-radius: 50%;

  opacity: 0;

  animation: pulse 2s infinite;
}

.moduledata:hover > span {
  opacity: 1;
}

.character-guide {
  font-family: "Ysabeau Office", sans-serif;

  line-height: 1.6;

  color: var(--secondary);

  margin-left: 300px;

  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);

  min-height: 100vh;

  padding: 0;

  position: relative;
}

.guide-header {
  background: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding: 2rem;
  border-radius: 0 0 2rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-header img {
  max-width: 100%;

  height: auto;

  border-radius: 1rem;

  margin-bottom: 2rem;
}

.guide-title {
  font-size: var(--font25);

  font-weight: 700;

  margin-bottom: 1rem;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-description {
  font-size: 1.1rem;

  margin-bottom: 2rem;

  color: rgba(34, 26, 20, 0.8);

  max-width: 800px;

  margin-left: auto;

  margin-right: auto;
}

.requirements {
  background: linear-gradient(45deg, var(--primary), var(--secondary));

  color: var(--accent);

  padding: 2rem;

  border-radius: 1rem;

  margin: 2rem 0;

  box-shadow: 0 8px 32px rgba(200, 160, 90, 0.3);
}

.requirements ul {
  list-style: none;

  padding: 0;
}

.requirements li {
  padding: 0.5rem 0;

  position: relative;

  padding-left: 2rem;
}

.requirements a {
  color: var(--accent);

  text-decoration: underline;
}

.ready-badge {
  color: var(--secondary);

  padding: 1rem 2rem;

  border-radius: 2rem;

  font-weight: bold;

  display: inline-block;

  margin: 2rem 0;

  transform: scale(1);

  transition: transform 0.2s ease;

  font-size: var(--font20);
}

.credits {
  background: rgba(34, 26, 20, 0.1);

  padding: 1rem;

  border-radius: 0.5rem;

  font-size: var(--font25);

  margin-top: 2rem;

  font-style: italic;

  text-align: right;

  color: rgba(34, 26, 20, 0.7);
}

.description-article .bottom {
  text-align: left;
}

.progress-bar {
  display: flex;

  flex-direction: column;

  padding: 2rem 1rem;

  gap: 1rem;

  height: 100%;
}

.sidebar-title {
  color: var(--primary);

  font-family: "Caudex", serif;

  font-size: var(--font16);

  font-weight: bold;

  text-align: center;

  margin-bottom: 2rem;

  padding-bottom: 1rem;

  border-bottom: 2px solid var(--primary);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-step {
  background: rgba(200, 160, 90, 0.1);

  color: var(--accent);

  padding: 1rem 1.2rem;

  border-radius: 8px;

  font-family: "Caudex", serif;

  font-weight: 600;

  font-size: 1.1rem;

  cursor: pointer;

  transition: all 0.3s ease;

  text-decoration: none;

  border: 2px solid transparent;

  position: relative;

  text-align: left;

  border-left: 4px solid transparent;
}

.progress-step::before {
  content: "";

  position: absolute;

  left: -2px;

  top: 50%;

  transform: translateY(-50%);

  width: 8px;

  height: 8px;

  background: var(--primary);

  border-radius: 50%;

  opacity: 0;

  transition: opacity 0.3s ease;
}

.progress-step:hover {
  background: rgba(200, 160, 90, 0.2);

  color: var(--primary);

  transform: translateX(8px);

  border-left-color: var(--primary);

  box-shadow: 0 4px 15px rgba(200, 160, 90, 0.3);

  text-decoration: none;
}

.progress-step:hover::before {
  opacity: 1;
}

.progress-step.active {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,

    rgba(200, 160, 90, 0.8) 100%
  );

  color: var(--secondary);

  border-left-color: var(--accent);

  font-weight: bold;

  transform: translateX(8px);

  box-shadow: 0 6px 20px rgba(200, 160, 90, 0.4);
}

.progress-step.active::before {
  opacity: 1;

  background: var(--secondary);
}

.category-articles .diamond.tall {
  position: relative;

  width: 46rem;

  height: 70rem;
}

.category-articles .diamond.tall .diamond-title {
  margin-top: 4rem;
}

.category-articles .rpg-button.modules-btn {
  font-size: var(--font18);

  margin: 2rem auto;
}

.step-card {
  background: rgba(255, 255, 255, 0.98);

  margin: 2rem;

  padding: 2.5rem;

  border-radius: 1.5rem;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);

  backdrop-filter: blur(10px);

  border: 1px solid rgba(200, 160, 90, 0.2);

  position: relative;

  overflow: hidden;
}

.step-card:before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 6px;

  background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.step-header {
  display: flex;

  align-items: center;

  margin-bottom: 2rem;
}

.step-number {
  background: linear-gradient(45deg, var(--primary), rgba(200, 160, 90, 0.8));

  color: var(--secondary);

  width: 60px;

  height: 60px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: var(--font16);

  font-weight: bold;

  margin-right: 1rem;

  box-shadow: 0 4px 12px rgba(200, 160, 90, 0.4);

  border: 2px solid rgba(255, 255, 255, 0.8);
}

.step-title {
  font-size: var(--font20);

  font-weight: 700;

  color: var(--secondary);

  margin: 0;

  flex: 1;

  font-family: "Caudex", serif;
}

.step-content img {
  height: auto;

  border-radius: 0.8rem;

  margin: 1rem 0;

  padding: 1rem;
}

.race-class-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));

  gap: 2rem;

  margin: 2rem 0;
}

.grid-section {
  background: linear-gradient(135deg, var(--accent), rgba(243, 225, 184, 0.5));

  padding: 2rem;

  border-radius: 1rem;

  box-shadow: 0 4px 20px rgba(200, 160, 90, 0.2);

  border: 1px solid rgba(200, 160, 90, 0.3);
}

.grid-section h4 {
  color: var(--secondary) !important;

  border-left: 4px solid var(--primary) !important;

  margin-top: 0 !important;

  font-family: "Caudex", serif !important;
}

.race-list,
.class-list,
.background-list {
  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  margin-top: 1rem;
}

.race-list ul,
.class-list ul,
.background-list ul {
  list-style: none;

  padding: 0;

  margin: 0;

  flex: 1;

  min-width: 150px;
}

.race-list li,
.class-list li,
.background-list li {
  margin: 0.5rem 0;

  padding: 0.5rem;

  background: rgba(255, 255, 255, 0.8);

  border-radius: 0.5rem;

  transition: all 0.2s ease;

  cursor: pointer;
}

.race-list a,
.class-list a,
.background-list a {
  color: var(--primary);

  text-decoration: none;

  font-weight: 500;

  font-size: var(--font24);
}

.ability-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));

  gap: 0rem;

  margin: 2rem 0;
}

.ability-card {
  color: var(--accent);

  padding: 1.5rem;

  border-radius: 1rem;

  transition: transform 0.2s ease;
}

.ability-card h5 {
  color: var(--accent);

  margin: 0 0 0.5rem;

  font-size: 1.2rem;

  font-weight: bold;
}

.ability-card p {
  margin: 0;

  font-size: var(--font20);

  opacity: 0.9;

  line-height: 1;

  color: #000000db;
}

.stat-table {
  background: rgba(243, 225, 184, 0.1);

  border-radius: 1rem;

  overflow: hidden;

  margin: 2rem 0;

  box-shadow: 0 4px 20px rgba(200, 160, 90, 0.1);

  border: 2px solid var(--accent);
}

.stat-table table {
  width: 100%;

  border-collapse: collapse;

  margin: 0;
}

.stat-table th {
  background: linear-gradient(45deg, var(--primary), var(--secondary));

  color: var(--accent);

  padding: 3rem;

  font-size: var(--font24);

  text-align: center;

  font-weight: 600;
}

.stat-table td {
  padding: 1rem;

  text-align: center;

  border-bottom: 1px solid rgba(200, 160, 90, 0.2);

  background: rgba(243, 225, 184, 0.05);
}

.stat-table tr:last-child td {
  border-bottom: none;
}

.method-list {
  background: rgba(243, 225, 184, 0.15);

  padding: 2rem;

  border-radius: 1rem;

  margin: 2rem 0;
}

table tr th,
table tr td {
  font-size: var(--font18);
}

.method-list ul {
  margin: 1rem 0;
}

.method-list li {
  padding: 0.5rem 0;

  position: relative;

  padding-left: 2rem;
}

.race-list a,
.class-list a,
.background-list a {
  display: block;

  width: 100%;

  height: 100%;
}

.method-list li,
.article-page li .step-card li {
  margin-left: 3rem;
}

.requirements li {
  margin-left: 0;
}

/* .method-list li:before {

  content: "-";

  position: absolute;

  left: 0;

  color: var(--primary);

  font-weight: bold;

} */

.conclusion-section {
  background: linear-gradient(45deg, var(--secondary), var(--primary));

  color: var(--accent);

  padding: 3rem;

  border-radius: 2rem;

  text-align: center;

  margin: 2rem;

  box-shadow: 0 12px 40px rgba(200, 160, 90, 0.3);
}

.conclusion-section h3 {
  color: var(--accent);

  font-size: var(--font40);

  margin-bottom: 1rem;
}

.conclusion-section p {
  font-size: var(--font25);

  margin-bottom: 2rem;

  opacity: 0.95;
}

.sheet-preview {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  gap: 2rem;

  margin: 2rem 0;
}

.sheet-preview img {
  width: 100%;

  height: auto;

  border-radius: 1rem;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);

  transition: transform 0.3s ease;
}

.sheet-preview img:hover {
  transform: scale(1.02);
}

/* Smooth scrolling */

html {
  scroll-behavior: smooth;
}

/* Highlight active section */

.step-card:target {
  animation: highlightSection 2s;
}

@keyframes highlightSection {
  0% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }

  50% {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);

    transform: scale(1.02);
  }

  100% {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

.character-guide {
  font-family: "Ysabeau Office", sans-serif;

  line-height: 1.6;

  color: var(--secondary);

  margin-left: 30rem;

  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);

  min-height: 100vh;

  padding: 0;

  position: relative;
}

.progress-container {
  position: fixed;

  left: 0;

  top: 0;

  width: 30rem;

  height: 100vh;

  background: linear-gradient(
    180deg,
    var(--secondary) 0%,

    rgba(34, 26, 20, 0.98) 100%
  );

  z-index: 1000;

  overflow-y: auto;

  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);

  border-right: 3px solid var(--primary);

  padding: 0;

  padding-top: 7rem;

  z-index: 1;

  overflow-x: clip;

  transition: left 0.3s ease;
}

.sidebar-toggle-btn {
  display: none;
}

.nav-tabs {
  list-style: none;

  padding: 0;

  margin: 0;

  display: flex;

  flex-direction: column;

  height: 100%;
}

.nav-tabs li {
  border-bottom: 1px solid rgba(200, 160, 90, 0.2);
}

.nav-tabs li:first-child {
  border-top: none;
}

.nav-tabs a {
  display: block;

  padding: 1.2rem 1.5rem;

  color: var(--accent);

  text-decoration: none;

  font-weight: 500;

  font-size: var(--font20);

  line-height: 1.4;

  transition: all 0.3s ease;

  border-left: 4px solid transparent;

  position: relative;

  font-size: 1.7rem;
}

.nav-tabs a:hover {
  background: rgba(200, 160, 90, 0.1);

  border-left-color: var(--primary);

  transform: translateX(5px);

  color: var(--primary);
}

.nav-tabs a:active,
.nav-tabs a.active {
  background: rgba(200, 160, 90, 0.1);

  border-left-color: var(--primary);

  color: var(--primary);

  font-weight: 600;
}

.custom-page-scroll-top {
  position: fixed;
  right: 2.4rem;
  bottom: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.6rem;
  height: 5.6rem;
  padding: 0 1.6rem;
  border: 1px solid rgba(200, 160, 90, 0.35);
  border-radius: 999px;
  background: rgba(34, 26, 20, 0.92);
  color: var(--primary);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
  font-size: var(--font18);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1.2rem);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
  z-index: 40;
}

.custom-page-scroll-top:hover {
  background: rgba(200, 160, 90, 0.14);
  color: var(--primary);
}

.custom-page-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.guide-header {
  background: rgba(255, 255, 255, 0.95);

  margin: 0;

  padding: 2rem;

  border-radius: 0 0 2rem 2rem;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  backdrop-filter: blur(10px);

  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 4rem;
}

.guide-title {
  font-size: var(--font45);

  padding: 4rem;

  font-weight: 700;

  margin-bottom: 1rem;

  background: linear-gradient(45deg, var(--primary), var(--secondary));

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.guide-description {
  font-size: var(--font22);

  margin-bottom: 2rem;

  color: rgba(34, 26, 20, 0.8);

  max-width: 800px;

  margin-left: auto;

  margin-right: auto;
}

.requirements {
  background: linear-gradient(45deg, var(--primary), var(--secondary));

  color: var(--accent);

  padding: 2rem;

  border-radius: 1rem;

  margin: 2rem 0;

  box-shadow: 0 8px 32px rgba(200, 160, 90, 0.3);
}

.requirements h3 {
  color: var(--accent);

  margin-bottom: 1rem;

  font-size: var(--font40);
}

.requirements ul {
  list-style: none;

  padding: 0;

  margin-left: 0;
}

.requirements li {
  padding: 0.5rem 0;

  position: relative;

  padding-left: 2rem;

  font-size: var(--font24);
}

.requirements a {
  color: var(--accent);

  text-decoration: underline;
}

/* Step cards styling */

.step-card {
  background: rgba(255, 255, 255, 0.9);

  margin: 2rem;

  border-radius: 1.5rem;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

  overflow: hidden;

  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.2);
}

.homepage .books-grid > .books.featured .book-sub {
  display: -webkit-box !important;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;
}

.step-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));

  color: var(--accent);

  padding: 2rem;

  display: flex;

  align-items: center;

  gap: 1.5rem;
}

.step-number {
  background: rgba(255, 255, 255, 0.2);

  width: 4rem;

  height: 4rem;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: var(--font18);

  font-weight: bold;

  color: var(--accent);
}

.step-title {
  font-size: var(--font30);

  margin: 0;

  font-weight: 600;
}

.step-content {
  padding: 1rem;

  background: rgba(243, 225, 184, 0.05);
}

.step-content h4 {
  color: var(--secondary);

  margin: 2rem 0 1rem;

  font-weight: 600;

  font-size: var(--font30);
}

.ability-card h5 {
  color: var(--accent);

  margin: 0 0 0.5rem;

  font-size: var(--font28);

  margin: 1rem 0;

  color: rgba(34, 26, 20, 0.8);

  line-height: 1;
}

.character5e-wrapper {
  padding-top: 6rem;
}

/* MY CSS */

:root {
  --primary: rgb(200, 160, 90);

  --secondary: rgba(34, 26, 20, 0.96);

  --accent: #f3e1b8;

  --max-width: 154rem;

  --max-width-sm: 120rem;

  --space: 15rem;

  --font16: 1.6rem;

  --font18: 1.8rem;

  --font19: 1.9rem;

  --font20: 2rem;

  --font22: 2.2rem;

  --font24: 2.4rem;

  --font25: 2.5rem;

  --font26: 2.6rem;

  --font27: 2.7rem;

  --font28: 2.8rem;

  --font30: 3rem;

  --font32: 3.2rem;

  --font40: 4rem;

  --font45: 4.5rem;

  --font50: 5rem;

  --font55: 5.5rem;

  --font67: 6.7rem;
}

.no-articles {
  color: transparent;

  text-align: center;
}

#logo img,
.top-bar-section,
.site-header {
  transition: all 0.3s ease;

  display: block;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.innerpage #logo img,
.scrolled #logo > img {
  max-width: 24rem !important;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.innerpage .top-bar-section,
.scrolled .top-bar-section {
  padding: 2px;
}

.innerpage .site-header,
.site-header.scrolled {
  padding-top: 2px;

  background: var(--secondary);
}

.innerpage .top-bar,
.scrolled .top-bar {
  background: var(--secondary);

  gap: 2px;
}

.innerpage .top-bar {
  flex-direction: row;
}

body,
html {
  font-size: 62.5%;
}

.top-bar:before,
.top-bar:after {
  display: none;
}

.site-header {
  background:
    linear-gradient(to bottom, rgb(20 15 12 / 52%), rgb(12 9 7 / 29%)),
    url(../img/bg.png);

  background-size:
    auto,
    512px 512px;

  background-repeat: repeat;

  border-bottom: 1px solid rgba(180, 140, 80, 0.35);

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);

  padding-top: 1rem;
}

/* =========================

   TOP BAR LAYOUT

   ========================= */

.top-bar {
  background: transparent;

  gap: 1rem;
}

.site-header__row {
  margin: 0 auto;
}

#logo img {
  max-width: 64rem;

  width: auto;

  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

#logo img:hover {
  transform: translateY(-1px);

  filter: brightness(1.25) sepia(0.45) saturate(1.6)
    drop-shadow(0 0 12px rgba(200, 160, 90, 0.6));
}

/* =========================

   MAIN NAV LINKS

   ========================= */

.top-bar-section ul > li > a {
  color: #e6d3a3;

  font-size: 15px;

  letter-spacing: 0.06em;

  padding: 10px 14px;

  transition:
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.top-bar-section ul > li > a:hover {
  color: #f3e1b8;

  text-shadow: 0 0 8px rgba(220, 180, 100, 0.5);
}

/* Active item */

.top-bar-section li.active > a,
.top-bar-section li > a.active {
  color: #f6e6c2;

  text-shadow: 0 0 10px rgba(220, 180, 100, 0.6);
}

/* =========================

   DROPDOWN MENUS

   ========================= */

.top-bar-section .dropdown {
  background: linear-gradient(
    to bottom,

    rgba(26, 20, 15, 0.98),
    rgba(15, 11, 9, 0.98)
  );

  border: 1px solid rgba(180, 140, 80, 0.35);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);

  padding: 8px 5px;
}

.top-bar-section .dropdown li a {
  color: #d9c79a;

  font-size: 14px;

  padding: 8px 20px;

  text-transform: none;
}

.top-bar-section .dropdown li a:hover {
  background: rgba(157, 129, 88, 0.12);

  color: #f2e3bc;
}

.top-bar-section .dropdown li:not(.has-form):hover > a:not(.button) {
  background: var(--primary);
}

.top-bar-section::after {
  content: "";

  position: absolute;

  left: 0;

  right: 0;

  bottom: 0;

  height: 6px;

  background: radial-gradient(
    ellipse at center,

    rgba(200, 160, 90, 0.35),
    transparent 70%
  );

  pointer-events: none;
}

.top-bar-section::before {
  content: "";

  position: absolute;

  left: 0;

  right: 0;

  top: 0;

  height: 6px;

  background: radial-gradient(
    ellipse at center,

    rgba(200, 160, 90, 0.35),
    transparent 70%
  );

  pointer-events: none;
}

.diamond-nav.tall {
  display: flex;

  justify-content: center;

  gap: 120px;

  margin: 90px auto;

  flex-wrap: wrap;
}

.events {
}

/* =========================

   TALL RHOMBUS SHAPE

   ========================= */

.diamond.tall {
  position: relative;

  width: 250px;

  height: 440px;

  background: linear-gradient(
    to bottom,

    rgba(34, 26, 20, 0.96),
    rgba(14, 10, 8, 0.98)
  );

  clip-path: polygon(50% 0%, 100% 17%, 100% 85%, 50% 100%, 0% 85%, 0% 17%);

  border: 1px solid rgba(180, 140, 80, 0.55);

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.75),
    inset 0 0 30px rgba(0, 0, 0, 0.6);

  text-decoration: none;

  overflow: hidden;

  display: block;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.editors-diamond .rod,
.editors-diamond .rod-right {
  display: none;
}

.row-library .article__container .static-page__content,
.row-library .article__container {
  max-width: 95% !important;
}

.row-library .article__container .description-article ul,
.row-library .description-article ol {
  padding-left: 1.5rem;

  margin: 3rem 2rem;
}

.row-library .description-article {
  max-width: 100%;
}

.editor-articles {
  width: fit-content;

  margin-bottom: -3rem;

  margin-right: auto;

  margin-top: 2rem;
}

.description-article {
  max-width: 84rem;
}

.row-library.article-page {
  padding-top: 20rem;
}

.events > a.rpg-button {
  margin: -2rem auto 6rem auto;

  display: block;

  width: fit-content;
}

.row-library .article__container .description-article ul li {
  margin-bottom: 1.5rem;
}

.row-library .article__container .article-bottom,
.row-library .article__container .sticky-nav-menu,
.row-library .article__container .article-sticky {
  display: none;
}

.book-in-category {
  display: flex;
  width: 30%;
  flex-direction: column;
  border: 2px solid white;
  padding: 2rem;
}

.editor-date {
  display: flex;
}

.books-in-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1540px;
  margin: auto;
  background: var(--secondary);
  padding: 2rem;
  width: 100%;
}

.books-in-category-wrapper {
  display: flex;
  max-width: 1520px;
  margin: auto;
}

.row-library .img-wrapper img {
  display: none;
}

.row-library .article__container .article-top {
  display: block;
}

/* =========================

   CONTENT

   ========================= */

.diamond.tall .diamond-content {
  position: absolute;

  inset: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 0 3rem;
}

.portraits .diamond.tall .diamond-content {
  padding: 16px 1rem;
}

.diamond-date {
  font-size: var(--font18);

  text-align: end;

  color: var(--accent);

  margin: 1.5rem;

  width: 100%;
}

.diamond.tall .diamond-title {
  font-family: "Caudex", serif;

  font-size: var(--font19);

  letter-spacing: 0.1em;

  color: #f3e1b8;

  margin-bottom: 12px;

  margin-top: 7rem;
}

.portraits-content .diamond-sub {
  font-family: "Ysabeau Office", sans-serif;

  font-size: 14px;

  color: #d0bf93;

  text-align: left;

  opacity: 0.9;

  font-size: var(--font20);

  line-height: 1.3;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

  overflow: hidden;

  text-overflow: ellipsis;

  margin-top: 1rem;

  text-align: center;

  padding-left: 1rem;

  padding-right: 1rem;
}

.portraits-content:hover .diamond-content::after {
  opacity: 1;
}

span.diamond-content.media-swap {
  box-shadow:
    inset 0 -3em 3em rgb(14 10 8 / 90%),
    0 0 0 2px white,
    0.3em 0.3em 1em rgb(14 10 8 / 60%);
}

.diamond-content::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgb(43 34 28 / 50%); /* το μαύρο που θες */
  opacity: 0;
  transition: opacity 0.3s ease;
  box-shadow: inset 20px 65px 140px rgb(12 11 10);
  pointer-events: none; /* σημαντικό */
}

.portraits-content .diamond-sub {
  font-size: var(--font27);

  color: white;

  opacity: 0.9;

  text-shadow: 0 0 BLACK;
}

.portraits-content:hover {
  transform: translateY(-10px);

  /* box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(200, 160, 90, 0.4); */
}

.diamond.tall:hover .diamond-title {
  text-shadow: 0 0 12px rgba(220, 180, 100, 0.7);
}

.top-bar .title-area {
  float: left;

  width: 100%;

  display: flex;

  max-width: var(--max-width);

  padding: 0 1rem;

  margin: auto;

  justify-content: space-between;

  width: 100%;

  align-items: anchor-center;
}

.innerpage .top-bar .title-area {
  width: auto;
}

.top-bar-section li:not(.has-form) a:not(.button) {
  padding: 0px 30px;

  font-size: var(--font20);
}

.top-bar-section li:not(.has-form) a:not(.button)::after,
li.has-dropdown.not-click:not(:last-of-type)::after {
  display: none;
}

.prev-next-category-container a {
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 25px;
  font-weight: bold;
  transition: 0.3s all;
}

.prev-next-category-container > a:first-child::before {
  content: "\2190";
}

.prev-next-category-container > a:last-child::after {
  content: "\2192";
}

.prev-next-category-container {
  position: absolute;
  top: 10rem;
  height: 2rem;
  color: var(--secondary);
  width: calc(100% - 100rem);
  z-index: 1;
  margin-left: 65rem;
  display: flex;
  gap: 5rem;
  font-size: var(--font22);
  border: 2px solid var(--primary);
  padding: 3rem;
  justify-content: center;
  margin-bottom: 10rem;
  background: linear-gradient(135deg, var(--primary), rgb(193 154 87));
}

.top-bar-section {
  width: 100%;

  border-top: 2px solid var(--primary);

  border-bottom: 2px solid var(--primary);

  margin-top: 0;

  background: var(--secondary);

  padding: 1rem;

  display: flex;

  justify-content: center;

  position: relative;
}

.innerpage .top-bar-section {
  width: 100%;

  margin-top: 3px;

  border-top: 2px solid transparent;

  border-bottom: 2px solid transparent;

  justify-content: end;

  background: transparent;
}

.top-bar-section > div {
  width: 100%;

  display: flex;

  justify-content: space-between;

  max-width: var(--max-width);

  padding: 0 1rem;
}

.search-top-bar {
  display: flex;

  align-items: center;

  justify-content: center;

  background: transparent;

  border-radius: 50px;

  padding: 4px;

  box-shadow: 0 4px 15px rgba(37, 118, 150, 0.15);

  border: 2px solid rgba(37, 118, 150, 0.1);

  transition: all 0.3s ease;

  max-width: 500px;

  width: 100%;

  margin: 0 auto;

  height: 5rem;

  border: 2px solid #c8a05a;
}

.search-top-bar:hover {
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(200, 160, 90, 0.4);

  border-color: var(--secondary);

  transform: translateY(-2px);
}

.newsletter-subtext {
  font-size: var(--font20);

  max-width: 45rem;

  padding-left: 2rem;

  line-height: 1.1;
}

.newsletter-header {
  border-bottom: 5px solid var(--primary);

  font-size: var(--font25);

  padding-left: 2rem;

  margin-bottom: 8px;
}

#homeSearch {
  width: 100%;

  max-width: 600px;

  margin: 0 auto;
}

#homeSearch .input {
  border: none;

  background: transparent;

  font-family: "Caudex", serif;

  font-size: var(--font16);

  color: #333;

  padding: 1px 3px;

  flex: 1;

  outline: none;

  border-radius: 40px;

  transition: all 0.3s ease;

  box-shadow: none;

  height: 100%;

  margin-top: 1rem;
}

#homeSearch .site-header .input {
  background-color: transparent;
}

main .input {
  background-color: white !important;
}

main .input:focus {
  color: var(--secondary) !important;
}

#homeSearch .input::placeholder {
  color: #999;

  font-family: "Ysabeau Office", sans-serif;
}

#homeSearch .input:focus {
  background: transparent;

  color: var(--accent);
}

#homeSearch .button.postfix {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

  border: none;

  border-radius: 50%;

  width: 37px;

  height: 37px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin: 0;

  cursor: pointer;

  transition: all 0.3s ease;

  box-shadow: 0 2px 8px rgba(37, 118, 150, 0.3);
}

#homeSearch .button.postfix:hover {
  transform: scale(1.05);

  box-shadow: 0 4px 15px rgba(37, 118, 150, 0.4);
}

#homeSearch .button.postfix:active {
  transform: scale(0.95);
}

#homeSearch .button.postfix i {
  color: white;

  font-size: var(--font18);

  transition: color 0.3s ease;
}

/* Animation for search interactions */

@keyframes searchPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

.search-top-bar:focus-within {
  animation: searchPulse 0.6s ease-in-out;
}

.top-bar input,
.top-bar .button,
.top-bar button {
  top: 0;
}

.search-top-bar img {
  width: 25px;

  height: 25px;
}

.about p {
  margin-top: 2rem;

  max-width: 115rem;

  margin: 2rem auto;

  font-size: var(--font22);

  text-align: center;

  padding-left: 1rem;

  padding-right: 1rem;
}

.wrapper {
  background-color: var(--secondary);
}

/* .about h3 {

  font-size: 5rem;

  color: var(--secondary);

  text-align: center;

  margin-bottom: 0;

  font-weight: 300;

  line-height: 1.2;

  text-shadow: 0px 0px black;

  letter-spacing: 3px;

} */

p {
  font-size: var(--font20);

  line-height: 1.4;
}

.portraits-content .portrait-video {
  position: absolute;

  inset: 0;

  opacity: 0;

  transition: opacity 0.25s ease;
}

.portraits-content:hover .portrait-video {
  opacity: 1;
}

.portraits-content:hover .portrait-img {
  opacity: 0;
}

.portraits-content .portrait-video {
  position: absolute;

  height: 100%;

  inset: 0;

  width: 100%;

  bottom: 0;

  opacity: 0;

  transition: opacity 0.25s ease;

  object-fit: cover;
}

.portraits-content .portrait-img {
  position: absolute;

  height: 100%;

  object-fit: cover;
}

@media (hover: none) {
  .portraits-content .portrait-video {
    opacity: 1;
  }

  .portraits-content .portrait-img {
    opacity: 0;
  }
}

.portraits.diamond-nav.tall {
  margin: 0;
}

.video-dice {
  width: 100%;

  height: auto;
}

.translates {
  display: flex;

  gap: 20px;

  margin: var(--space) auto;

  justify-content: center;
}

.translates a {
  flex: 1;

  min-width: 300px;

  position: relative;

  text-decoration: none;

  border-radius: 8px;

  overflow: hidden;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.translates a:hover {
  transform: translateY(-5px);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.flex-container {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.editors-description p {
  margin-bottom: 2px;
}

.translates .img-wrapper {
  position: relative;

  width: 100%;

  overflow: hidden;
}

.translates .img-wrapper::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: rgba(0, 0, 0, 0.6);

  z-index: 1;

  transition: background 0.3s ease;
}

.delta.img-wrapper.categories-image
  img
  .translates
  a:hover
  .img-wrapper::before {
  background: rgba(0, 0, 0, 0.4);
}

.img-wrapper img {
  min-height: 33rem;
}

.img-wrapper.categories-image img {
  max-height: 64rem;
}

.translates .img-wrapper img {
  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: transform 0.3s ease;
}

.article-title_inner {
  margin-top: 24rem;

  text-align: center;

  font-size: 5rem;

  max-width: 105rem;

  margin: 26rem auto;

  margin-bottom: 7rem;
}

.article-img-main img {
  object-fit: cover;

  max-width: 1540px;

  height: auto;

  margin: auto;

  display: block;
}

.translates a:hover .img-wrapper img {
  transform: scale(1.05);
}

.translates .translates-content {
  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 30px 20px;

  z-index: 2;

  color: var(--accent);

  font-size: var(--font24);
}

.gt-books {
  position: relative;
}

.books-grid {
  position: absolute;

  top: 0;

  left: 50%;

  transform: translateX(-50%);

  right: 0;

  bottom: 0;

  display: flex;

  flex-wrap: wrap;

  gap: 20px;

  justify-content: left;

  align-items: end;

  max-width: var(--max-width);

  width: 100%;

  padding: 8rem 10rem;

  min-height: 66rem;

  padding-top: 50rem;

  overflow: clip;

  transition: all 0.3s ease-out;
}

/* Swiper CSS Fixes */

/* 1. The Container "Swapping" state */

.books-grid {
  transition: opacity 0.4s ease-in-out;
}

.books-grid.is-swapping .books {
  opacity: 0 !important;

  transform: translateY(10px); /* Small slide effect */
}

.book-keywords {
  color: var(--accent);

  font-size: var(--font20);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  display: flex;

  justify-content: center;

  gap: 1rem;

  align-items: center;

  width: 100%;
}

.races-guide .race-subtitle {
  font-size: 2rem;
}

.world-guide .world-subsection h3 {
  margin-bottom: 15px;

  font-size: 3rem;
}

.about h3,
.section-title {
  font-size: var(--font55);

  color: var(--secondary);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  text-align: center;

  margin: 0rem auto;

  position: relative;

  width: fit-content;
}

.about h3:nth-child(2),
.section-subtitle {
  font-size: var(--font40);

  color: var(--secondary);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  text-align: center;

  margin: 0rem auto;

  position: relative;

  width: fit-content;

  max-width: 76rem;

  height: 12rem;
}

.about h3:nth-child(2) {
  margin-bottom: 0rem;

  height: auto;
}

.section-subtitle::after {
  content: "";

  position: absolute;

  right: -44rem;

  transform: translateY(-50%);

  bottom: -3rem;

  width: 39rem;

  height: 15rem;

  background-image: url(../img/decor.png);

  background-repeat: no-repeat;

  background-size: contain;

  background-position: center;

  z-index: -1;
}

.section-subtitle::before {
  content: "";

  position: absolute;

  left: -44rem;

  transform: translateY(-50%);

  bottom: -3rem;

  width: 39rem;

  height: 15rem;

  background-image: url(../img/decor2.png);

  border-radius: 4rem;

  background-repeat: no-repeat;

  background-size: contain;

  background-position: center;

  z-index: -1;
}

.book-read-more.rpg-button {
  display: none;
}

.reveal-text {
  color: white;

  transition: opacity 0.3s ease;

  position: absolute;

  top: 50%;

  left: 50%;

  width: 100%;

  line-height: 1;

  z-index: 10;

  transform: translate(-50%, -50%);

  padding: 1rem;

  opacity: 0;

  font-size: var(--font18);

  transition: all 0.6s ease;
}

.portraits > a:hover .diamond-content {
  display: block;

  opacity: 1;
}

.portraits.diamond-nav.tall .diamond.tall {
  display: block;
  margin-bottom: 0.9rem;
}

.portraits-content {
  display: flex;
  transition: all 0.3s;
}

/* .goblin-text {
  max-width: 100rem;

  font-size: 2.6rem;

  background: var(--secondary);

  color: var(--primary);

  padding: 50px;

  line-height: 1.3;
  max-height: 300px;
  margin: auto;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
} */

.goblin-text {
  font-size: 2rem;
  line-height: 1.3;
  color: var(--primary);
  background: var(--secondary);
  padding: 50px;
  margin: auto;
  width: 100rem;
  overflow: hidden;
  position: relative;
  height: 300px;
}

.goblin-text-inner {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}
.portraits.diamond-nav.tall > div {
  display: flex;

  align-items: center;

  /* gap: 5rem; */
}

.portraits-content .rpg-button {
  font-size: 16px !important;
  margin-top: 1.2rem;
  justify-content: center;
  width: fit-content;
  display: flex;
  margin-left: auto;
}

.portraits.diamond-nav.tall > div:nth-child(even) .rpg-button {
  margin-left: 0;
  margin-right: auto;
}

section.diamond-nav.tall.editors-diamond {
  max-width: 130rem;

  gap: 7rem;
}

.editors-diamond-group {
  margin: 0 auto 4rem;

  max-width: 130rem;
}

.editors-diamond-heading {
  margin: 0 0 2rem;

  font-size: 2.5rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.editors-diamond .diamond.tall .diamond-content {
  padding: 0rem;
}

.editors-diamond .diamond.tall .diamond-title {
  margin-top: 5rem;
}

.portraits > a:hover .reveal-text {
  opacity: 1;

  display: block;

  line-height: 1.3;
}

.portraits-content:hover .diamond-sub {
  opacity: 0;
}

.books-grid .books.featured .book-read-more.rpg-button {
  display: flex;
}

.books-grid > div.book-read-more:nth-child(2) {
  display: flex;

  position: absolute;

  top: 40rem;

  font-size: var(--font25);
}

.books-grid .books.featured .book-read-more.rpg-button {
  display: flex;

  font-size: var(--font24);

  padding: 1.5rem;

  margin: 5rem 0;
}

.books-grid .books.featured img {
  max-width: 45rem;
}

.gt-books .see-all-books.rpg-button {
  margin: 10rem 8rem;
  position: absolute !important;
  bottom: 0;
  right: 7rem;
}

.delta-green-image .img-wrapper img {
  margin-left: 30rem;
  margin-top: 69px;
}

.main__image.delta-green-image {
  position: absolute;
  top: 0;
  left: 0;
  overflow: clip;
  z-index: 1;
}

.books-grid > .books.featured {
  position: absolute;

  top: 14rem;

  right: 10rem;

  display: flex;

  flex-direction: row-reverse;

  gap: 8rem;

  width: 100%;

  max-width: 100%;

  z-index: -1;

  opacity: 0;

  animation: fadeIn 1s forwards;
  cursor: context-menu;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.books-grid > .books.featured .book-title {
  font-size: var(--font45);

  margin: 5rem 0;
}

.books-grid > .books.featured .book-sub {
  display: block;

  font-size: var(--font28);

  max-width: 75rem;

  margin: 0rem 0;
}

.gt-books__image {
  position: relative;
}

.book-read-more {
  display: flex;
}

.books img {
  max-width: 26rem;
}

.book-sub {
  display: none;
}

.book-content {
  display: flex;

  flex-direction: column;

  width: 100%;

  max-width: 80rem;

  align-items: baseline;

  margin-top: 1rem;
}

.book-sub {
  color: var(--accent);

  font-size: var(--font18);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.books-grid > div:nth-child(1) .book-keywords {
  display: none;
}

/* 2. Standardize the Books */

.books {
  /* Remove any conflicting transitions and use a clean one */

  transition:
    opacity 0.5s ease,
    transform 0.5s ease !important;

  will-change: opacity, transform;
}

/* 3. Fix the "Featured" jump - Updated for Swiper */

.books.featured {
  /* Keep your existing absolute positioning */

  position: absolute !important;

  top: 14rem;

  right: 10rem;

  display: flex !important;

  flex-direction: row-reverse;

  gap: 8rem;

  width: 100% !important;

  max-width: 120rem !important; /* Adjust to fit your design */

  z-index: 10;

  opacity: 1;

  animation: fadeIn 1s forwards;
}

.regular .book-title {
  width: 26rem;
}

/* 4. Fix the "Regular" books - for non-featured slides */

.books:not(.featured) {
  position: relative !important;

  display: flex !important;

  flex-direction: column !important;

  align-items: center;

  width: 100%;

  margin-bottom: 2rem;

  opacity: 0.7;
}

/* 5. Ensure the grid doesn't collapse when the featured book leaves */

.books-grid.swiper {
  min-height: 120rem; /* Keeps the space consistent */

  display: block;
}

/* Swiper Navigation Styles */

.books-grid .swiper-button-next,
.books-grid .swiper-button-prev {
  color: var(--accent);

  background: rgba(0, 0, 0, 0.7);

  width: 44px;

  height: 44px;

  border-radius: 50%;

  margin-top: -22px;
}

.books-grid .swiper-button-next:after,
.books-grid .swiper-button-prev:after {
  font-size: var(--font20);
}

.books-grid .swiper-button-next {
  right: 2rem;
}

.books-grid .swiper-button-prev {
  left: 2rem;
}

/* Swiper Pagination Styles */

.books-grid .swiper-pagination {
  bottom: 2rem;
}

.books-grid .swiper-pagination-bullet {
  background: var(--accent);

  opacity: 0.5;

  width: 12px;

  height: 12px;
}

.books-grid .swiper-pagination-bullet-active {
  opacity: 1;

  background: var(--secondary);
}

/* Swiper Slide Styles */

.books-grid .swiper-slide {
  display: flex;

  justify-content: center;

  align-items: flex-end;

  min-height: 100%;
}

/* Dynamic featured book styles for swapping */

.books.featured {
  position: absolute !important;

  top: 14rem;

  right: 10rem;

  display: flex !important;

  flex-direction: row-reverse;

  gap: 8rem;

  width: 100% !important;

  max-width: 100% !important;

  z-index: 10;

  /* Smoother, longer transition with better easing */

  transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Use transform for smooth positioning */

  transform: translateY(0) scale(1);

  opacity: 1;
}

.books.featured img {
  max-width: 45rem !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  transform: scale(1);
}

.books.featured .book-title {
  font-size: var(--font45) !important;

  margin: 5rem 0 !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  transform: translateY(0);
}

.books.featured .book-sub {
  display: block !important;

  font-size: var(--font28) !important;

  max-width: 75rem !important;

  margin: 0rem 0 !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  opacity: 1;

  transform: translateY(0);
}

.books.featured .book-read-more.rpg-button {
  display: flex !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  opacity: 1;

  transform: translateY(0);
}

.books.featured .book-keywords {
  display: none !important;
}

/* Reset styles for books moving to regular position */

.books.regular {
  position: relative !important;

  top: auto !important;

  right: auto !important;

  display: block !important;

  flex-direction: column !important;

  gap: normal !important;

  width: 33.3% !important;

  max-width: 26rem !important;

  z-index: 1;

  /* Longer, smoother transition back to regular */

  transition: all 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);

  opacity: 1;

  transform: translateY(0) scale(1);

  /* Remove animation, use transition instead */
}

.books.regular img {
  max-width: 26rem !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  transform: scale(1);
}

.books.regular .book-title {
  font-size: var(--font20) !important;

  margin: 1rem auto !important;

  text-align: center !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  white-space: nowrap;
}

.books.regular .book-sub {
  display: none !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  opacity: 0;

  transform: translateY(10px);
}

.books.regular .book-read-more.rpg-button {
  display: none !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  opacity: 0;
}

.books.regular .book-keywords {
  display: flex !important;

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Smooth transitions for all books during swap */

.books-grid .books {
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  cursor: pointer;

  /* Optimize for smooth transitions */

  will-change: transform, width, max-width, position;

  backface-visibility: hidden;
}

.books {
  width: 33.3%;

  max-width: 26rem;

  /* Base transitions for all books */

  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  transform-origin: center;

  will-change: transform, opacity, width;
}

.books-grid .books:hover {
  transform: translateY(-5px);
}

section.diamond-nav.tall.category-articles.rules-articles {
  margin-top: -3rem;
}

.rules-articles .diamond-title {
  font-size: var(--font30) !important;

  margin: 1rem auto;

  text-align: center;
}

/* Additional transition improvements for smoother book swapping */

.books.transitioning-to-featured {
  /* Intermediate state when transitioning to featured */

  z-index: 8;

  opacity: 0.9;

  transform: scale(1.1);

  transition: all 0.4s ease-out;
}

.books.transitioning-to-regular {
  /* Intermediate state when transitioning to regular */

  z-index: 8;

  opacity: 0.9;

  transform: scale(0.9);

  transition: all 0.4s ease-out;
}

/* Ensure smooth book content transitions */

.book-title,
.book-sub,
.book-keywords,
.book-read-more {
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Prevent layout thrashing during transitions */

.books-grid:has(.books.transitioning-to-featured),
.books-grid:has(.books.transitioning-to-regular) {
  overflow: hidden;

  filter: brightness(1.1);
}

.books-grid .books.swapping {
  pointer-events: none;

  opacity: 0.7;
}

.gt-books__image {
  display: block;

  margin: 0rem auto;

  max-width: 152rem;

  width: 100%;

  object-fit: cover;

  height: 100%;

  min-height: 94rem;
}

.official-books {
  margin: var(--space) auto;
}

.book-title {
  color: var(--accent);

  font-size: var(--font20);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  text-align: center;

  margin: 1rem auto;

  line-height: 21px;
}

.book-filters .book-title:hover {
  color: #8b5a2b;

  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.book-title.active-category {
  color: var(--white, #fff);

  font-weight: bold;

  border-bottom: 2px solid var(--accent);

  pointer-events: none;
}

.translates .translate-sub {
  display: block;

  margin-bottom: 8px;

  line-height: 1.4;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  font-size: var(--font24);
}

.translates .translate-sub:first-child {
  font-size: var(--font40);

  font-weight: 600;

  margin-bottom: 15px;

  font-family: "Caudex", serif;
}

.translates .rpg-button {
  font-size: var(--font18);

  margin-top: var(--space);
}

.book-read-more {
  display: none;
}

.guide-title {
  display: none !important;
}

/* Container Layout */

.dnd-menu-container {
  display: grid;

  grid-template-columns: repeat(4, 1fr); /* 4 Columns */

  gap: 30px;

  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  color: #333;

  padding: 20px;

  background-color: #00000095; /* Add a light texture background image here if desired */

  margin: 8rem auto;
}

.dnd-menu-container a {
  color: #e5e5e5;
}

/* Headers */

.main-category {
  font-size: 1.2rem;

  font-weight: bold;
  color: #e5e5e5;
  border-bottom: 2px solid #e5e5e5;

  margin-bottom: 10px;
}

.header-link {
  text-decoration: none;

  color: inherit;
}

h3 {
  font-size: 1rem;

  margin: 10px 0 5px 0;

  font-weight: 700;
}

.library-page .article__container {
  max-width: 120rem;
}

.static-page__content .library-intro {
  font-size: 1.6rem;

  max-width: 60rem;

  padding: 0rem;
}

.static-page__content p {
  font-size: var(--font22);

  /* max-width: 60rem; */

  padding: 0rem;
}

.innerpage .book-title {
  color: var(--secondary);
}

.sub-label {
  font-size: 1.6rem;
  color: #666;
  margin: 0;
  margin-bottom: 7px;
}

.race-title {
  font-size: var(--font30);
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: -10px;
}

.sub-label a {
  color: #e5e5e5;
}

.library-top .article__container {
  margin-bottom: 0;
}

.library-top {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 120rem;
  margin: 20rem auto;
  margin-bottom: 4rem;
  gap: 20px;
  align-items: normal;
}

.library-page .article__container {
  max-width: 50rem;
}

.books-in-category {
  display: flex;
  justify-content: center;
  max-width: 1540px;
  margin: auto;
  padding: 2rem;
  gap: 2rem;
  background: transparent;
}

.book-popular {
  display: flex;
  flex-direction: column;
  width: 33rem;
}
.book-in-category {
  display: flex;
  width: 31%;
  flex-direction: column;

  border: 2px solid white;

  padding: 2rem;
}

.sliderCaption > span {
  text-align: center;
  font-size: 3rem;
  line-height: 5rem;
  font-weight: 300;
}

/* The "Pipe" List (Horizontal) */

.inline-list {
  list-style: none;

  padding: 0;

  margin: 0;

  line-height: 1.6;
}

.tag,
.inline-list li {
  display: inline;
  position: relative;
  font-size: 0.9rem;
}

.tag::after,
.inline-list li:not(:last-child)::after {
  content: " | ";
  color: #999;
  margin: 0 1px;
}

.text-guide .text-guide-subtitle {
  margin-top: 28px;

  margin-bottom: 12px;

  font-size: 2.2rem;

  line-height: 0.5;
}

.library-page > .article__container {
  max-width: 120rem;

  padding: 2rem;
}

.static-page__content .dnd-menu-container li a,
.static-page__content .dnd-menu-container li,
.static-page__content .dnd-menu-container p {
  line-height: 28px;

  font-size: 18px;
}

.static-page__content .dnd-menu-container li a {
  display: inline;
}

.dnd-menu-container h3 {
  font-size: 1.8rem;
  color: white;
}

h3 {
  font-size: var(--font30);
}

.main-category {
  font-size: 2.2rem;
}

/* Standard Vertical List */

.vertical-list {
  list-style: none;

  padding: 0;

  margin: 0;

  font-size: 0.9rem;

  line-height: 1.5;
}

.vertical-list li {
  margin-bottom: 4px;
}

/* Responsive adjustments for mobile */

@media (max-width: 900px) {
  .dnd-menu-container {
    grid-template-columns: 1fr 1fr;
  }
}

.character5e-wrapper div.breadcrumb {
  position: absolute;

  top: 15rem;

  left: 50%;

  transform: translateX(-29%);

  z-index: 1;
}

.static-page__content.staticpages a:not(.breadcrumbs a),
.rpg-button {
  position: relative;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 10px 40px;

  border: none;

  cursor: pointer;

  color: #f1d3a1;

  font-weight: bold;

  letter-spacing: 1px;

  text-shadow: 1px 1px 2px black;

  background: linear-gradient(
    to bottom,

    #5d3a1a 0%,

    #8b5a2b 40%,

    #8b5a2b 60%,

    #3e2611 100%
  );

  border-top: 2px solid #a67c52;

  border-bottom: 2px solid #2a1a0a;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);

  margin: 0 10px;

  font-size: var(--font30);

  font-family: "Caudex", serif;
}

/* The Side Pillars (The "Scroll" look) */

.rpg-button::before,
.rpg-button::after {
  content: "";

  position: absolute;

  top: -2px;

  bottom: -2px;

  width: 8px;

  background: linear-gradient(to right, #3e2611, #a67c52 50%, #3e2611);

  border-radius: 2px;

  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
}

.rpg-button::before {
  left: -8px;
}

.rpg-button::after {
  right: -8px;
}

/* Interaction */

.rpg-button:hover {
  filter: brightness(1.1);

  color: var(--accent);
}

.rpg-button:active {
  transform: translateY(1px);

  filter: brightness(0.9);
}

.sorting {
  max-width: 154rem;
  margin: auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
  flex-direction: row;
  justify-content: end;
}

.sorting form {
  display: inline-flex;

  align-items: center;

  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 1rem;

  text-align: end;
}

.sorting select {
  width: 17rem;

  min-height: 4.6rem;

  padding: 0 4.2rem 0 1.4rem;

  font-size: var(--font18);

  font-family: "Caudex", serif;

  color: #222;

  background: linear-gradient(
    135deg,
    rgba(31, 20, 11, 0.96),
    rgba(69, 46, 21, 0.96)
  );

  border: 1px solid rgba(201, 160, 92, 0.65);

  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.18);

  appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%),
    linear-gradient(135deg, rgb(255 255 255 / 0%), rgb(69 46 21 / 63%));

  background-position:
    calc(100% - 1.9rem) calc(50% - 0.3rem),
    calc(100% - 1.3rem) calc(50% - 0.3rem),
    center;

  background-size:
    0.7rem 0.7rem,
    0.7rem 0.7rem,
    100% 100%;

  background-repeat: no-repeat;
}

.sorting select:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.16),
    0 0 0 0.3rem rgba(201, 160, 92, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.18);
}

.category-editor-filters {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 1rem;
}

.category-editor-filters__label {
  display: inline-flex;

  align-items: center;

  min-height: 4.6rem;

  padding: 0.9rem 1.8rem;

  margin: 0;

  font-family: "Caudex", serif;

  font-size: var(--font18);

  letter-spacing: 0.08em;

  color: var(--accent);

  background: linear-gradient(
    135deg,
    rgba(38, 24, 12, 0.98),
    rgba(84, 56, 27, 0.94)
  );

  border: 1px solid rgba(201, 160, 92, 0.62);

  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.12),
    0 10px 20px rgba(0, 0, 0, 0.16);
}

.article__gallery-library {
  display: flex;
  flex-direction: column;
}

.category-editor-filters__list {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 0.8rem;

  margin: 0;

  padding: 0;

  list-style: none;
}

.category-editor-filters__list li {
  margin: 0;
}

.category-editor-filters__list a {
  display: inline-flex;

  align-items: center;

  min-height: 4.2rem;

  padding: 0.8rem 1.6rem;

  color: var(--secondary);

  text-decoration: none;

  font-size: var(--font18);

  background: rgba(255, 248, 235, 0.92);

  border: 1px solid rgba(201, 160, 92, 0.55);

  border-radius: 999px;

  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.accordion-content {
  margin-top: 3rem;
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 10rem;
  padding: 5rem;
}

.race-card p {
  display: flex;
  flex-direction: column;
  max-width: 40rem;
  align-items: center;
  height: auto;
  line-height: 1.4 !important;
}

.race-card {
  display: flex;
  flex-direction: column;
}

.category-editor-filters__list a:hover,
.category-editor-filters__list a:focus {
  color: var(--secondary);

  background: #fffdf7;

  transform: translateY(-1px);

  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.12);
}

.category-editor-filters__list .active a {
  color: var(--accent);

  background: linear-gradient(135deg, var(--secondary), #61401e);

  border-color: rgba(201, 160, 92, 0.8);

  box-shadow:
    inset 0 1px 0 rgba(255, 240, 214, 0.16),
    0 12px 24px rgba(0, 0, 0, 0.16);
}

@media (max-width: 640px) {
  .sorting {
    align-items: stretch;
  }

  section#intro {
    padding-top: 2rem;
  }

  .sorting form,
  .category-editor-filters,
  .category-editor-filters__list {
    justify-content: flex-start;
  }

  .sorting select {
    width: 100%;
  }

  section.diamond-nav.tall.editors-diamond {
    max-width: 130rem;
    gap: 1.5rem;
  }
}

.categories.diamond-nav.tall {
  margin-top: 0;
}

label {
  font-size: var(--font18);
}

.events .diamond.tall {
  position: relative;

  width: 50rem;

  height: 70rem;

  transform: translateY(-3px);
}

.articles_group {
  padding-bottom: 5rem;
}

.slick-dots {
  position: absolute;

  bottom: -1rem;

  display: block;

  width: 100%;

  padding: 0;

  margin: 0;

  list-style: none;

  text-align: center;

  z-index: 10;
}

.slick-dots li {
  position: relative;

  display: inline-block;

  margin: 0 5px;

  padding: 0;

  cursor: pointer;
}

.slick-dots li button {
  font-size: 0;

  line-height: 0;

  display: block;

  width: 12px;

  height: 12px;

  padding: 0;

  border: none;

  outline: none;

  background: var(--secondary);

  border-radius: 50%;

  cursor: pointer;

  transition: all 0.3s ease;

  position: relative;
}

.slick-dots li button:before {
  content: "";

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  width: 6px;

  height: 6px;
  background: transparent;

  border-radius: 50%;

  transition: all 0.3s ease;
}

.slick-dots li button:hover {
  background: rgba(255, 255, 255, 0.7);

  transform: scale(1.2);
}

.slick-dots li button:hover:before {
  background: rgba(255, 255, 255, 0.8);

  width: 8px;

  height: 8px;
}

.slick-dots li.slick-active button {
  background: var(--primary);

  transform: scale(1.3);

  box-shadow: 0 0 10px rgba(173, 179, 93, 0.6);
}

.slick-dots li.slick-active button:before {
  background: var(--secondary);

  width: 8px;

  height: 8px;
}

.slick-dots li.slick-active button:hover {
  transform: scale(1.4);

  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Dark theme variant */

.slick-dots.dark li button {
  background: rgba(0, 0, 0, 0.4);
}

.slick-dots.dark li button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slick-dots.dark li.slick-active button {
  background: rgba(0, 0, 0, 0.9);

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.slick-dots.dark li.slick-active button:before {
  background: var(--accent, #257696);
}

.articles {
  margin: var(--space) auto;
}

.articles,
.official-books,
.events {
  overflow-x: clip;
}

.create-character {
  position: relative;
}

.create-character_content {
  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  font-size: var(--font40);

  color: var(--accent);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

  text-align: center;

  z-index: 10;
}

.create-character h3 {
  font-size: var(--font67);

  color: white;

  text-shadow: 0 -1px 9px rgb(255 172 25);
}

.create-character .rpg-button {
  background: linear-gradient(180deg, #a50000 0%, #8b0000 100%);

  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);

  border: 1px solid #5a0000;
}

.create-character {
  position: relative;

  /* height: 80rem; */

  overflow: clip;
}

.video-dice {
  width: 100%;

  height: auto;

  margin-top: -20rem;
}

#contact {
  max-width: 120rem;

  margin: 3rem auto;

  padding: 4rem;

  background: linear-gradient(
    145deg,
    rgba(34, 26, 20, 0.95) 0%,

    rgba(46, 35, 25, 0.95) 100%
  );

  border: 3px solid var(--primary);

  border-radius: 1.5rem;

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(200, 160, 90, 0.2);

  position: relative;
}

#contact::before {
  content: "";

  position: absolute;

  top: -6px;

  left: -6px;

  right: -6px;

  bottom: -6px;

  background: linear-gradient(
    45deg,
    var(--primary) 0%,

    var(--accent) 25%,

    var(--primary) 50%,

    var(--accent) 75%,

    var(--primary) 100%
  );

  border-radius: 1.8rem;

  z-index: -1;

  opacity: 0.3;
}

#contact form {
  position: relative;

  z-index: 1;
}

/* Labels */

#contact label {
  font-family: "Caudex", serif;

  font-size: var(--font18);

  color: var(--accent);

  font-weight: 600;

  margin-bottom: 0.8rem;

  display: block;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);

  letter-spacing: 0.5px;
}

/* Input Fields */

#contact input[type="text"],
#contact input[type="email"],
#contact select,
#contact textarea {
  width: 100%;

  padding: 2rem 1.8rem;

  border: 2px solid var(--primary);

  border-radius: 0.8rem;

  background: linear-gradient(
    to bottom,

    rgba(243, 225, 184, 0.1) 0%,

    rgba(200, 160, 90, 0.05) 100%
  );

  color: var(--accent);

  font-family: "Ysabeau Office", sans-serif;

  font-size: var(--font18);

  margin-bottom: 0.5rem;

  transition: all 0.3s ease;

  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(200, 160, 90, 0.1);
}

#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact select:focus,
#contact textarea:focus {
  outline: none;

  border-color: var(--accent);

  background: linear-gradient(
    to bottom,

    rgba(243, 225, 184, 0.15) 0%,

    rgba(200, 160, 90, 0.1) 100%
  );

  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(243, 225, 184, 0.2),
    0 2px 8px rgba(200, 160, 90, 0.3);

  transform: translateY(-1px);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
  color: rgba(243, 225, 184, 0.6);

  font-style: italic;

  font-family: "Ysabeau Office", sans-serif;
}

/* Textarea */

#contact textarea {
  resize: vertical;

  min-height: 12rem;

  font-family: "Ysabeau Office", sans-serif;

  line-height: 1.6;
}

/* Captcha Section */

.captcha {
  background: linear-gradient(
    135deg,
    rgba(200, 160, 90, 0.1) 0%,

    rgba(34, 26, 20, 0.3) 100%
  );

  border: 1px solid var(--primary);

  border-radius: 0.8rem;

  padding: 2rem;

  margin-top: 1rem;
}

.captcha label {
  font-size: var(--font18);

  margin-bottom: 1rem;
}

/* Submit Button */

#contact button[type="submit"] {
  background: linear-gradient(
    to bottom,

    #5d3a1a 0%,

    #8b5a2b 40%,

    #8b5a2b 60%,

    #3e2611 100%
  ) !important;

  border: 2px solid var(--primary) !important;

  color: var(--accent) !important;

  font-family: "Caudex", serif !important;

  font-size: var(--font24) !important;

  font-weight: 700 !important;

  padding: 1.5rem 4rem !important;

  border-radius: 0.8rem !important;

  letter-spacing: 1px !important;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;

  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(200, 160, 90, 0.2) !important;

  transition: all 0.3s ease !important;

  position: relative !important;

  overflow: hidden !important;
}

#contact button[type="submit"]::before {
  content: "";

  position: absolute;

  top: 0;

  left: -100%;

  width: 100%;

  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(243, 225, 184, 0.2),
    transparent
  );

  transition: left 0.5s ease;
}

#contact button[type="submit"]:hover {
  background: linear-gradient(
    to bottom,

    #6b4221 0%,

    #9d6833 40%,

    #9d6833 60%,

    #4a2f16 100%
  ) !important;

  border-color: var(--accent) !important;

  transform: translateY(-2px) !important;

  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(243, 225, 184, 0.3) !important;
}

#contact button[type="submit"]:hover::before {
  left: 100%;
}

#contact button[type="submit"]:active {
  transform: translateY(0) !important;

  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Foundation Column Adjustments */

#contact .row {
  margin-bottom: 2rem;
}

#contact .columns {
  padding-left: 1rem;

  padding-right: 1rem;
}

@media (max-width: 480px) {
  #contact {
    padding: 1.5rem;

    margin: 1rem 0.5rem;
  }

  .prev-next-category-container {
    flex-direction: column;
  }

  #contact .columns {
    padding-left: 0;

    padding-right: 0;
  }

  .captcha {
    margin-top: 0.5rem;

    padding: 1.5rem;
  }
}

.tabs {
  border: none !important;

  background: none !important;

  margin-bottom: 3rem;

  padding: 0;

  display: flex;

  justify-content: center;

  gap: 0;

  position: relative;

  margin: 5rem 0;
}

.tabs::before {
  content: "";

  position: absolute;

  bottom: -3px;

  left: 0;

  right: 0;

  height: 3px;

  background: linear-gradient(
    90deg,
    transparent 0%,

    var(--primary) 20%,

    var(--primary) 80%,

    transparent 100%
  );

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.tabs dd {
  margin: 0 !important;

  padding: 0 !important;

  border: none !important;

  background: none !important;

  position: relative;
}

.tabs dd + dd {
  margin-left: 0.3rem !important;
}

.tabs dd a {
  display: block !important;

  padding: 1.5rem 2.5rem 1.2rem 2.5rem !important;

  background: linear-gradient(
    to bottom,

    #2a1a0a 0%,

    #3e2611 20%,

    #4a2f18 80%,

    #2a1a0a 100%
  ) !important;

  border: 2px solid var(--primary) !important;

  border-bottom: none !important;

  border-top-left-radius: 1.2rem !important;

  border-top-right-radius: 1.2rem !important;

  color: var(--primary) !important;

  font-family: "Caudex", serif !important;

  font-size: var(--font20) !important;

  font-weight: 600 !important;

  text-decoration: none !important;

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;

  letter-spacing: 0.5px !important;

  position: relative !important;

  transition: all 0.3s ease !important;

  box-shadow:
    0 -2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(200, 160, 90, 0.1) !important;

  border-bottom: 3px solid var(--primary) !important;

  margin-bottom: -3px !important;
}

.editors-diamond .diamond-content img {
  height: 100%;

  width: 100%;

  max-height: 223px;

  object-fit: cover;
}

.editors-diamond .diamond-role {
  display: block;

  margin-top: 0.5rem;

  font-size: 1.2rem;

  letter-spacing: 0.04em;

  opacity: 0.85;
}

.tabs dd a::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: linear-gradient(
    to bottom,

    rgba(243, 225, 184, 0.1) 0%,

    transparent 50%
  );

  border-top-left-radius: 1rem;

  border-top-right-radius: 1rem;

  pointer-events: none;

  transition: opacity 0.3s ease;

  opacity: 0;
}

.tabs dd a::after {
  content: "";

  position: absolute;

  bottom: -1px;

  left: 50%;

  transform: translateX(-50%);

  width: 0;

  height: 3px;

  background: var(--accent);

  transition: width 0.3s ease;

  box-shadow: 0 0 8px var(--accent);
}

/* Hover Effects */

.tabs dd a:hover {
  color: var(--accent) !important;

  background: linear-gradient(
    to bottom,

    #3e2611 0%,

    #5d3a1a 20%,

    #6b4221 80%,

    #3e2611 100%
  ) !important;

  border-color: var(--accent) !important;

  transform: translateY(-2px) !important;

  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 3px rgba(243, 225, 184, 0.2) !important;
}

.tabs dd a:hover::before {
  opacity: 1;
}

.tabs dd a:hover::after {
  width: 80%;
}

/* Active Tab */

.tabs dd.active a {
  background: linear-gradient(
    to bottom,

    var(--accent) 0%,

    var(--primary) 20%,

    var(--primary) 80%,

    #c8a05a 100%
  ) !important;

  color: var(--secondary) !important;

  border-color: var(--accent) !important;

  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.2) !important;

  transform: translateY(-3px) !important;

  box-shadow:
    0 -6px 16px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.2) !important;

  z-index: 10;

  position: relative;
}

.tabs dd.active a::after {
  width: 90%;

  background: var(--secondary);

  box-shadow: 0 0 12px var(--secondary);
}

.tabs dd.active a::before {
  background: linear-gradient(
    to bottom,

    rgba(255, 255, 255, 0.3) 0%,

    rgba(255, 255, 255, 0.1) 50%,

    transparent 100%
  );

  opacity: 1;
}

/* Tab Content Area */

.tabs-content {
  border: 3px solid var(--primary) !important;

  border-top: none !important;

  border-radius: 0 0 1rem 1rem !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    inset 0 1px 3px rgba(200, 160, 90, 0.1) !important;

  margin-top: 0 !important;

  padding: 2.5rem !important;

  position: relative;
}

.tabs-content::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  right: 0;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent 0%,

    var(--accent) 50%,

    transparent 100%
  );
}

.book-popular {
  display: flex;
  flex-direction: column;
}

.book-filters {
  background: #ffffff8a;
  padding: 50px 40px;
  width: 40rem;
}

.editors-description {
  max-width: 75rem;
}

.character-guide.delta-guide .guide-header {
  min-height: 58rem;
}

@media screen and (max-width: 1640px) {
  :root {
    --space: 10rem;

    --font16: 1.6rem;

    --font18: 1.7rem;

    --font19: 1.8rem;

    --font20: 1.9rem;

    --font22: 2.1rem;

    --font24: 2.3rem;

    --font25: 2.4rem;

    --font26: 2.5rem;

    --font27: 2.6rem;

    --font28: 2.7rem;

    --font30: 2.8rem;

    --font32: 3rem;

    --font40: 3.8rem;

    --font45: 4.2rem;

    --font50: 4.8rem;

    --font55: 5rem;

    --font67: 6rem;
  }

  .character-guide.delta-guide .guide-header {
    min-height: 0;
  }

  .sliderCaption {
    bottom: 7rem;
  }

  .book-in-category {
    width: 48%;
  }

  .prev-next-category-container {
    width: calc(100% - 60rem);
    margin-left: 45rem;
  }

  .prev-next-category-container a {
    gap: 0rem;
    font-size: 16px;
  }

  section#intro {
    padding-top: 5rem;
  }

  .guide-header {
    padding-top: 3rem;
  }
  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 10px !important;
  }

  #logo img {
    max-width: 50rem;
  }

  .gt-books .see-all-books.rpg-button,
  .books-grid > .books.featured {
    right: 0;
  }

  .books-grid {
    padding-left: 2rem;
  }

  .books.featured .book-content {
    padding-left: 2rem;
  }
}

@media screen and (max-width: 1320px) {
  :root {
    --space: 10rem;

    --font16: 1.6rem;

    --font18: 1.6rem;

    --font19: 1.7rem;

    --font20: 1.8rem;

    --font22: 2rem;

    --font24: 2.1rem;

    --font25: 2.2rem;

    --font26: 2.3rem;

    --font27: 2.4rem;

    --font28: 2.5rem;

    --font30: 2.6rem;

    --font32: 2.7rem;

    --font40: 3.5rem;

    --font45: 3.9rem;

    --font50: 4.5rem;

    --font55: 4.7rem;

    --font67: 5.7rem;
  }

  .article-img-main img {
    height: 64rem;
  }

  .books.featured img {
    max-width: 35rem !important;
  }

  .gt-books .see-all-books.rpg-button {
    margin: 20rem 3rem;
  }

  .innerpage .top-bar {
    flex-direction: column;
  }

  .books-grid {
    gap: 10px;
  }

  .portraits-content .goblin-text {
    max-width: 60rem;
  }

  .goblin-text-inner {
    -webkit-line-clamp: 4;
  }
}

@media screen and (max-width: 1180px) {
  :root {
    --space: 8rem;

    --font16: 1.6rem;

    --font18: 1.6rem;

    --font19: 1.6rem;

    --font20: 1.7rem;

    --font22: 1.7rem;

    --font24: 1.8rem;

    --font25: 1.9rem;

    --font26: 2rem;

    --font27: 2.1rem;

    --font28: 2.2rem;

    --font30: 2.3rem;

    --font32: 2.4rem;

    --font40: 3rem;

    --font45: 3.2rem;

    --font50: 4rem;

    --font55: 4.3rem;

    --font67: 5rem;
  }

  .nav-tabs {
    padding-top: 6rem;
  }

  .prev-next-category-container + img,
  .character5e-wrapper .prev-next-category-container img {
    margin-left: 70rem;
    display: block;
    max-width: 40rem;
    margin: auto;
    left: 13rem;
    margin-top: 14rem;
    position: relative;
  }

  .prev-next-category-container {
    position: absolute;
    top: 14rem;
    gap: 0.6rem;
  }

  .guide-header {
    padding: 2rem 4rem;
  }

  .prev-next-category-container {
    width: 100%;
    margin-left: 0;
    padding: 2rem;
    justify-content: center;
    align-items: center;
    justify-content: flex-end;
    max-width: fit-content;
    right: 1rem;
  }

  .books-in-category-wrapper {
    flex-direction: column-reverse;
  }

  .book-filters {
    width: 100%;
  }

  .book-in-category {
    width: 47%;
  }

  .newsletter form {
    padding: 0 0rem;
  }

  .book-in-category {
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 10px;
  }

  #homeSearch {
    width: 100%;

    max-width: 20rem;

    margin: 0 auto;
  }

  .character-guide {
    margin-left: 30rem;
  }

  .progress-container {
    width: 34rem;
  }

  /* .portraits .diamond.tall {
    width: 22rem;

    height: 42rem;
  } */

  .diamond-nav.tall {
    gap: 10rem;

    margin: 2rem auto;
  }

  .events .diamond.tall {
    position: relative;

    width: 40rem;

    height: 60rem;
  }

  #logo img {
    max-width: 40rem;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: 0;

    margin-bottom: 20px;
  }

  .translates .translates-content {
    padding: 10px 2px;
  }

  .books-grid > .books.featured {
    top: 4rem;
  }

  .books.featured img {
    max-width: 32rem !important;
  }

  .gt-books {
    padding-bottom: 8rem;
  }

  .books-grid {
    padding-left: 1rem;

    justify-content: center;

    padding-right: 1rem;
  }

  .gt-books .see-all-books.rpg-button {
    margin: 1rem 3rem;
  }

  .video-dice {
    width: 100%;

    height: auto;

    margin-top: -10rem;
  }
}

@media screen and (max-width: 980px) {
  :root {
    --space: 8rem;

    --font16: 1.6rem;

    --font18: 1.6rem;

    --font19: 1.6rem;

    --font20: 1.6rem;

    --font22: 1.6rem;

    --font24: 1.7rem;

    --font25: 1.8rem;

    --font26: 1.9rem;

    --font27: 2rem;

    --font28: 2.1rem;

    --font30: 2.2rem;

    --font32: 2.3rem;

    --font40: 2.8rem;

    --font45: 3rem;

    --font50: 2.8rem;

    --font55: 4rem;

    --font67: 4.6rem;
  }

  .library-page .article__container {
    margin: auto;
    max-width: 100%;
  }

  .text-guide .text-guide-subtitle {
    margin-top: 18px;
    margin-bottom: 10px;
    font-size: 1.8rem;
    line-height: 23px;
  }

  .article__gallery-library {
    display: none;
  }
  .library-top {
    flex-direction: column;
  }

  .events_group.diamond-nav.tall.slick-initialized.slick-slider.slick-dotted {
    max-width: 40rem;
    margin-top: 0;
  }

  .translates a {
    flex: 1;

    min-width: 280px;
  }

  .footer-middle {
    flex-direction: column;
  }

  .translates .slick-dots li button {
    background: white;
  }

  a.see-all-books.rpg-button.slick-slide.slick-cloned {
    display: none;
  }

  .slideshow img {
    min-height: 45rem;

    object-fit: cover;
  }

  .translates a {
    max-height: 40rem;
  }

  .diamond.tall {
    width: 23rem;
    height: 40rem;
  }

  .portraits-content .goblin-text {
    max-height: 271px;
  }

  .goblin-text-inner {
    /* max-width: 54rem; */

    -webkit-line-clamp: 3;
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 9px;
  }

  #logo img {
    max-width: 30rem;
  }

  .top-bar-section {
    padding: 2px;
  }

  .top-bar-section .has-dropdown > a {
    padding-right: 15px !important;
  }

  .search-top-bar {
    height: 4rem;

    margin-top: 2px;

    border: none;
  }

  .events > a.rpg-button {
    margin: 2rem auto 6rem auto;
    display: block;
    width: fit-content;
  }

  .translates {
    gap: 1rem;
    padding-bottom: 5rem;
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 6px !important;
  }

  #homeSearch {
    max-width: 18rem;
  }

  #homeSearch {
    max-width: 17rem;
  }

  .character5e-wrapper div.breadcrumb {
    top: 15rem;

    transform: translateX(-15%);

    padding: 0;
  }
}

@media (max-width: 840px) {
  :root {
    --space: 5rem;

    --font16: 1.5rem;

    --font18: 1.6rem;

    --font19: 1.6rem;

    --font20: 1.6rem;

    --font22: 1.6rem;

    --font24: 1.7rem;

    --font25: 1.6rem;

    --font26: 1.9rem;

    --font27: 1.9rem;

    --font28: 2rem;

    --font30: 2rem;

    --font32: 2rem;

    --font40: 2.4rem;

    --font45: 2.5rem;

    --font50: 2.6rem;

    --font55: 3rem;

    --font67: 3.3rem;
  }

  .editors-diamond-heading {
    text-align: center;
  }

  .video-dice {
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .create-character {
    position: relative;
    height: auto;
    overflow: clip;
  }
  .flex-container {
    flex-direction: column;
  }

  .editors-image {
    text-align: center;
    margin: auto;
  }
  .sliderCaption {
    gap: 1rem;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 3rem;
  }

  .slideshow-library img {
    object-fit: cover;
    min-height: 40rem;
  }

  .events_group.diamond-nav.tall.slick-initialized.slick-slider.slick-dotted {
    max-width: 40rem;
    padding-top: 0;
  }

  .delta-green-image .img-wrapper img {
    margin-left: 0;
  }

  .prev-next-category-container {
    right: 50%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 100%;
    height: auto;
    padding: 0.5rem;
  }

  .prev-next-category-container {
    justify-content: center;
  }

  .progress-container.sidebar-closed {
    left: -336px;
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 4px !important;
  }

  .top-bar-section > div {
    padding: 0 3px;
  }

  .character5e-wrapper div.breadcrumb {
    position: unset;

    transform: none;

    margin-bottom: 0;

    padding-top: 7%;
  }

  .main__image h2 {
    letter-spacing: 0px;
  }

  .character5e-wrapper {
    padding-top: 7rem;
  }

  .moduledata > .article-title {
    min-height: 7rem;
  }

  /* .progress-container {
    display: none;
  } */
  .prev-next-category-container + img,
  .character5e-wrapper .prev-next-category-container img {
    left: 0;
  }

  .tabs {
    flex-wrap: wrap;

    justify-content: center;

    gap: 0.5rem;
  }

  #contact {
    margin: 2rem 1rem;

    padding: 2rem;
  }

  .pagination {
    gap: 0.5rem;

    margin: 2rem 0;
  }

  .pagination li a {
    min-width: 4rem;

    height: 4rem;

    padding: 0.8rem 1.2rem;

    font-size: var(--font18);
  }

  #contact .row {
    margin-bottom: 0rem;
  }

  .site-footer_logo img {
    opacity: 0.8;

    transition: opacity 0.3s ease;

    max-width: 6rem;
  }

  .footer-socials {
    display: flex;

    gap: 0.5rem;
  }

  .footer-socials img {
    width: 3rem;

    height: 3rem;
  }

  #contact label {
    font-size: var(--font20);
  }

  #contact input[type="text"],
  #contact input[type="email"],
  #contact select,
  #contact textarea {
    font-size: var(--font16);

    padding: 1.5rem 1.4rem;
  }

  #contact button[type="submit"] {
    font-size: var(--font20) !important;

    padding: 1.2rem 3rem !important;
  }

  .tabs dd + dd {
    margin-left: 0 !important;
  }

  .tabs dd a {
    padding: 1.2rem 2rem 1rem 2rem !important;

    font-size: var(--font18) !important;
  }

  .tabs-content {
    padding: 2rem !important;
  }

  .gt-books .see-all-books.rpg-button {
    display: none;
  }

  .books img {
    max-width: 100%;
  }

  .books {
    max-width: 100% !important;

    width: 100%;
  }

  .books-grid {
    padding: 0 1rem;

    gap: 1rem;

    justify-content: center;

    transform: none;

    display: block;

    left: 0;

    min-height: 0;
  }

  .description-article p {
    line-height: 30px;
  }

  .gt-books {
    padding-bottom: 4rem;
  }

  .books.slick-mobile {
    display: flex !important;

    flex-direction: column !important;

    align-items: center !important;

    width: 100% !important;

    max-width: 100% !important;

    opacity: 1 !important;

    position: relative !important;

    margin-bottom: 2rem;

    z-index: 1;
  }

  .books.slick-mobile img {
    max-width: 26rem !important;

    width: 100% !important;

    height: auto !important;
  }

  .books.slick-mobile .book-content {
    max-width: 100% !important;

    align-items: center;

    text-align: center;

    width: 100%;
  }

  .books.slick-mobile .book-title {
    font-size: var(--font28) !important;

    margin: 1.5rem 0 !important;

    text-align: center;

    width: 100%;
  }

  .books.slick-mobile .book-sub {
    display: block !important;

    font-size: var(--font18) !important;

    text-align: center;

    margin: 1rem 0 !important;

    width: 100%;
  }

  .books.slick-mobile .book-keywords {
    display: flex !important;

    justify-content: center;

    width: 100%;
  }

  .books.slick-mobile .book-read-more.rpg-button {
    display: flex !important;

    margin: 2rem 0 !important;

    justify-content: center;
  }

  /* Override slick's opacity for mobile books */

  .books-grid.slick-slider .books.slick-mobile.slick-slide {
    opacity: 1 !important;
  }

  .books-grid.slick-slider .books.slick-mobile.slick-current {
    opacity: 1 !important;
  }

  div.breadcrumb {
    padding: 1rem;

    margin: 0 auto 15px;
  }

  #logo img {
    max-width: 26rem;
  }

  .reveal-text {
    font-size: 15px;
  }

  .portraits > a:hover .reveal-text {
    opacity: 1;

    display: block;

    line-height: 13px;

    font-size: 15px;
  }

  .about h3:nth-child(2),
  .section-subtitle {
    height: 4rem;
  }

  .portraits .diamond.tall {
    height: 24rem;

    width: calc(50% - 1rem);

    max-width: 17rem;
  }

  .goblin-text-inner {
    font-size: 16px;
  }

  .portraits-content .rpg-button {
    font-size: 12px !important;
  }

  .portraits-content .goblin-text {
    padding: 1rem 2rem;
    max-height: 163px;
    align-content: center;
    /* max-width: 50rem; */
  }

  .portraits.diamond-nav.tall .diamond.tall {
    margin-bottom: 0.4rem;
  }

  .sliderCaption > span {
    font-size: 2rem;
    line-height: 1.1;
  }

  #homeSearch .input {
    display: none;
  }

  main #homeSearch .input {
    display: block;
  }

  .events_group {
    max-width: 36rem;

    padding-top: 3rem;

    padding-bottom: 3rem;
  }

  .articles_group {
    max-width: 63rem;

    margin: auto;
  }

  .top-bar .name {
    height: initial;

    max-height: 65px;
  }

  .site-header {
    padding-top: 3px;
  }

  .portraits.diamond-nav.tall {
    max-width: 100%;
  }

  .breadcrumbs a,
  .breadcrumbs .current {
    font-size: 1.4rem;

    padding: 0.6rem 0.8rem;
  }

  .portraits.diamond-nav.tall {
    max-width: 100%;

    margin: auto;

    column-gap: 1rem;

    flex-wrap: wrap;

    max-width: 52rem;
  }

  .gt-books__image {
    display: block;

    margin: 0rem auto;

    max-width: 152rem;

    width: 100%;

    object-fit: cover;

    height: 100%;

    min-height: 40rem;
  }

  .gt-books__image {
    min-height: 35rem;
  }

  .breadcrumbs a:not(.current):not(:last-child)::after {
    font-size: 1.8rem;

    right: -1.5rem;
  }

  .breadcrumbs .current {
    margin-left: 0.5rem;
  }

  .article-top {
    grid-template-columns: 1fr;

    gap: 1rem;

    padding: 1rem;

    position: relative;
  }

  .relevant-articles {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .article-bottom {
    padding: 1rem;
  }

  .description-article {
    padding: 1rem;
  }

  .moduledata > a {
    font-size: 16px;

    padding: 16px 20px 8px;
  }

  .footer-links {
    width: 100%;
  }

  .moduledata > article {
    padding: 0 20px 6px;
  }

  .moduledata time {
    padding: 0 20px 16px;
  }

  .footer-top {
    flex-direction: column;

    gap: 2rem;

    text-align: center;
  }

  .footer-middle {
    grid-template-columns: 1fr;

    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 1.5rem;

    text-align: center;
  }

  .newsletter {
    padding: 2rem;
  }

  .character-guide {
    margin-left: 0;
  }

  /* .progress-container {
    position: fixed;

    bottom: 0;

    left: 0;

    top: auto;

    width: 100%;

    height: 80px;

    background: linear-gradient(
      90deg,
      var(--secondary) 0%,

      rgba(34, 26, 20, 0.98) 100%
    );

    border-right: none;

    border-top: 3px solid var(--primary);

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  } */

  .progress-bar {
    flex-direction: row;

    padding: 1rem;

    overflow-x: auto;

    gap: 0.5rem;

    align-items: center;

    justify-content: flex-start;
  }

  .sidebar-title {
    display: none;
  }

  .progress-step {
    min-width: 80px;

    padding: 0.6rem 0.8rem;

    font-size: 0.9rem;

    text-align: center;

    border-radius: 2rem;

    white-space: nowrap;
  }

  .progress-step::before {
    display: none;
  }

  .progress-step:hover,
  .progress-step.active {
    transform: translateY(-2px);
  }

  .guide-title {
    font-size: 2rem;
  }

  .guide-header {
    padding: 1.5rem;

    border-radius: 0;
  }

  .step-card {
    margin: 1rem;

    padding: 1.5rem;

    margin-bottom: 6rem; /* Space for mobile navigation */
  }

  .step-header {
    flex-direction: column;

    text-align: center;
  }

  .step-number {
    margin-right: 0;

    margin-bottom: 1rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .race-class-grid {
    grid-template-columns: 1fr;

    gap: 1rem;
  }

  .ability-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .character-guide {
    margin-left: 0;

    margin-bottom: 80px;
  }

  /* .progress-container {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 80px;
    background: var(--secondary);
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    border-top: 3px solid var(--primary);

    border-right: none;
  } */

  /* .nav-tabs {
    flex-direction: row;

    height: 100%;

    min-width: max-content;
  } */

  .nav-tabs li {
    border-bottom: none;

    border-right: 1px solid rgba(200, 160, 90, 0.2);

    flex-shrink: 0;
  }

  .nav-tabs a {
    padding: 1rem;
    border-left: none;
    border-top: 4px solid transparent;
    white-space: nowrap;
    min-width: 120px;
  }

  .create-character_content {
    width: 100%;

    padding-right: 1rem;

    padding-left: 1rem;
  }

  .nav-tabs a:hover {
    border-top-color: var(--primary);

    transform: translateY(-5px);
  }

  .nav-tabs a:active,
  .nav-tabs a.active {
    background: rgba(200, 160, 90, 0.1);

    border-top-color: var(--primary);
  }

  .custom-page-scroll-top {
    right: 1.6rem;
    bottom: 9.6rem;
    min-width: 5rem;
    height: 5rem;
    padding: 0 1.4rem;
    font-size: 1.3rem;
    z-index: 45;
  }

  .books:not(.featured) {
    display: block !important;

    opacity: 1;

    margin: 1rem;
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    padding: 0px 30px;

    font-size: 15.7px;
  }

  .diamond-nav.tall {
    gap: 4rem;
  }

  .search-top-bar {
    padding: 0;
  }

  section#intro {
    padding-top: 8rem;
  }

  .sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    bottom: 250px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    border: none;
    border-radius: 0 6px 6px 0;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 1100;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease;
  }

  .sidebar-toggle-btn:hover {
    background: var(--primary-dark, #a0522d);
  }
}

@media screen and (max-width: 640px) {
  :root {
    --font50: 2.5rem;

    --font55: 2.7rem;

    --font67: 2.8rem;
  }

  .events_group.diamond-nav.tall.slick-initialized.slick-slider.slick-dotted {
    max-width: 36rem;
  }

  .article-space {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .events .diamond.tall {
    width: 30rem;
    margin: auto;
  }

  .events .rod-right,
  .events .rod::after {
    content: "";
    position: absolute;
    top: 49px;
  }

  .events .rod-right {
    right: 0px;
  }
  .events .rod::after {
    left: 0px;
  }

  .diamond.tall .diamond-content {
    padding: 0 1rem;
  }

  .rod-right,
  .rod::after {
    content: "";
    position: absolute;
    top: calc(8% - 5px);
    width: 2rem;
    height: 2rem;
  }

  .rod::before {
    width: 90%;
    height: 8px;
  }

  .diamond.tall .diamond-title {
    margin-top: 3rem;
  }

  .rod-right {
    right: 14px;
  }

  .rod::after {
    left: 14px;
  }

  .events > a.rpg-button {
    margin: 0rem auto 5rem auto;
  }

  .prev-next-category-container + img,
  .character5e-wrapper .prev-next-category-container img {
    margin-left: 70rem;
    display: block;
    max-width: 40rem;
    margin: auto;
    left: 0rem;
    margin-top: 6rem;
    position: relative;
  }

  .library-top {
    flex-direction: column;
    top: 0;
    margin-top: 10rem;
  }

  .prev-next-category-container {
    flex-direction: column;
  }

  .prev-next-category-container {
    top: 68px;
  }

  .top-bar .title-area {
    justify-content: space-between;
  }

  .innerpage .top-bar .title-area {
    width: auto;
    width: 100%;
  }

  .books-grid .slick-list.draggable {
    top: 50px;
  }

  .portraits-content .goblin-text {
    max-width: 25rem;
    max-height: 124px;
  }

  .portraits-content .rpg-button {
    padding: 0;
    padding-block: 0.2rem;
  }

  .goblin-text-inner {
    -webkit-line-clamp: 2;
  }

  .portraits-content .diamond-sub {
    font-size: 12px;
  }

  .categories .diamond.tall {
    width: 32rem;
  }

  .portraits .diamond.tall {
    height: 18rem;
    width: 10rem;
  }

  .site-footer {
    overflow: clip;
  }

  .st_linkedin_hcount {
    display: none;
  }

  .create-character_content p {
    display: none;
  }

  .top-bar.expanded .top-bar-section {
    height: 100vh;
  }

  .about h3:nth-child(2),
  .section-subtitle {
    height: 4rem;
  }

  .about h3:nth-child(2),
  .section-subtitle {
    height: auto;
  }

  .diamond-nav.tall {
    gap: 2rem;
  }

  .diamond-content::after {
    background: rgba(43, 34, 28, 0.068);
  }

  .footer-links {
    width: 90%;

    flex-direction: column;

    gap: 0;
  }

  .footer-middle {
    grid-template-columns: 1fr;

    gap: 0rem;
  }

  .newsletter {
    width: 90%;
  }

  .search-top-bar {
    padding: 2px;
  }

  #homeSearch .input {
    padding: 10px 15px;

    font-size: 14px;
  }

  .top-bar-section > div {
    flex-direction: column;

    justify-content: flex-start;

    align-items: center;
  }

  .top-bar-section ul li {
    padding: 1rem;
  }

  #homeSearch .button.postfix {
    width: 40px;

    height: 40px;
  }

  .top-bar-section ul.right {
    display: flex;

    justify-content: center;
  }

  #homeSearch .button.postfix i {
    font-size: 16px;
  }

  [class*="block-grid-"] {
    max-width: 330px; /* αλλαγή ανάλογα με το μέγεθος του thumb */

    margin: auto;
  }

  .breadcrumbs *,
  .breadcrumbs > .current {
    font-size: 15px;
  }

  .top-bar-section {
    float: none !important;
  }

  .top-bar .toggle-topbar.menu-icon a {
    color: #000000;

    margin-top: 10px;
  }

  .top-bar .toggle-topbar.menu-icon a {
    position: relative;

    width: 2.4rem;

    padding-right: 0;

    height: auto;
  }

  /* .top-bar .toggle-topbar.menu-icon a::after {

    box-shadow: 0 10px 0 1px #000000, 0 16px 0 1px #000000, 0 22px 0 1px #000000;

  } */

  .top-bar .toggle-topbar.menu-icon a::after {
    display: none !important;
  }

  .top-bar .toggle-topbar.menu-icon a span {
    display: block;

    width: 100%;

    border-radius: 3px;

    height: 0.3rem;

    background: white;

    -webkit-transition: all 0.3s;

    -o-transition: all 0.3s;

    transition: all 0.3s;

    position: relative;
  }

  .top-bar .toggle-topbar.menu-icon a span + span {
    margin-top: 0.3rem;
  }

  .top-bar.expanded .toggle-topbar.menu-icon a span:nth-child(1) {
    -webkit-animation: ease 0.7s top forwards;

    animation: ease 0.7s top forwards;
  }

  .top-bar .toggle-topbar.menu-icon a span:nth-child(1) {
    -webkit-animation: ease 0.7s top-2 forwards;

    animation: ease 0.7s top-2 forwards;
  }

  .top-bar.expanded .toggle-topbar.menu-icon a span:nth-child(2) {
    -webkit-animation: ease 0.7s scaled forwards;

    animation: ease 0.7s scaled forwards;
  }

  .top-bar .toggle-topbar.menu-icon a span:nth-child(2) {
    -webkit-animation: ease 0.7s scaled-2 forwards;

    animation: ease 0.7s scaled-2 forwards;
  }

  .top-bar.expanded .toggle-topbar.menu-icon a span:nth-child(3) {
    -webkit-animation: ease 0.7s bottom forwards;

    animation: ease 0.7s bottom forwards;
  }

  .top-bar .toggle-topbar.menu-icon a span:nth-child(3) {
    -webkit-animation: ease 0.7s bottom-2 forwards;

    animation: ease 0.7s bottom-2 forwards;
  }

  @-webkit-keyframes top {
    0% {
      top: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    50% {
      top: 0.5rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      top: 0.5rem;

      -webkit-transform: rotate(45deg);

      transform: rotate(45deg);
    }
  }

  @keyframes top {
    0% {
      top: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    50% {
      top: 0.5rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      top: 0.5rem;

      -webkit-transform: rotate(45deg);

      transform: rotate(45deg);
    }
  }

  @-webkit-keyframes top-2 {
    0% {
      top: 0.5rem;

      -webkit-transform: rotate(45deg);

      transform: rotate(45deg);
    }

    50% {
      top: 0.5rem;

      -webkit-transform: rotate(0deg);

      transform: rotate(0deg);
    }

    100% {
      top: 0;

      -webkit-transform: rotate(0deg);

      transform: rotate(0deg);
    }
  }

  @keyframes top-2 {
    0% {
      top: 0.5rem;

      -webkit-transform: rotate(45deg);

      transform: rotate(45deg);
    }

    50% {
      top: 0.5rem;

      -webkit-transform: rotate(0deg);

      transform: rotate(0deg);
    }

    100% {
      top: 0;

      -webkit-transform: rotate(0deg);

      transform: rotate(0deg);
    }
  }

  @-webkit-keyframes bottom {
    0% {
      bottom: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    50% {
      bottom: 0.7rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      bottom: 0.7rem;

      -webkit-transform: rotate(135deg);

      transform: rotate(135deg);
    }
  }

  @keyframes bottom {
    0% {
      bottom: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    50% {
      bottom: 0.7rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      bottom: 0.7rem;

      -webkit-transform: rotate(135deg);

      transform: rotate(135deg);
    }
  }

  @-webkit-keyframes bottom-2 {
    0% {
      bottom: 0.7rem;

      -webkit-transform: rotate(135deg);

      transform: rotate(135deg);
    }

    50% {
      bottom: 0.7rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      bottom: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }
  }

  @keyframes bottom-2 {
    0% {
      bottom: 0.7rem;

      -webkit-transform: rotate(135deg);

      transform: rotate(135deg);
    }

    50% {
      bottom: 0.7rem;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }

    100% {
      bottom: 0;

      -webkit-transform: rotate(0);

      transform: rotate(0);
    }
  }

  @-webkit-keyframes scaled {
    50% {
      -webkit-transform: scale(0);

      transform: scale(0);
    }

    100% {
      -webkit-transform: scale(0);

      transform: scale(0);
    }
  }

  @keyframes scaled {
    50% {
      -webkit-transform: scale(0);

      transform: scale(0);
    }

    100% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }
  }

  @-webkit-keyframes scaled-2 {
    0% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }

    50% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }

    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }

  @keyframes scaled-2 {
    0% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }

    50% {
      -webkit-transform: scale(0);
      transform: scale(0);
    }

    100% {
      -webkit-transform: scale(1);
      transform: scale(1);
    }
  }

  .overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none !important;
    background-color: rgba(0, 0, 0, 0.7);
  }

  .top-bar.expanded .title-area {
    background: transparent;
  }

  .top-bar-section li:not(.has-form) a:not(.button) {
    text-align: center;
  }

  .top-bar {
    height: 65px;
  }

  ul.dropdown {
    background: transparent !important;
  }

  .article-title_inner {
    margin: 15rem auto;
    margin-bottom: 3rem;
    font-size: 2.9rem;
  }

  .delta-green-image .img-wrapper img {
    min-height: 0;
    margin-top: 140px;
  }

  .diamond.tall {
    width: 11rem;
    height: 18rem;
  }

  section.diamond-nav.tall.editors-diamond {
    max-width: 40rem;

    gap: 1rem;
  }

  .diamond-sub {
    position: absolute;
  }

  .editors-diamond .diamond-content img {
    filter: brightness(0.6);
  }
}

@media (max-width: 480px) {
  .pagination {
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .pagination li a {
    min-width: 3.5rem;
    height: 3.5rem;
    padding: 0.5rem 1rem;
    font-size: var(--font16);
  }

  .breadcrumbs {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .breadcrumbs a:not(.current):not(:last-child)::after {
    display: none;
  }

  .tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  #contact {
    margin: 2rem 1rem;
    padding: 2rem;
  }

  .pagination {
    gap: 0.5rem;
    margin: 2rem 0;
  }

  .pagination li a {
    min-width: 4rem;
    height: 4rem;
    padding: 0.8rem 1.2rem;
    font-size: var(--font18);
  }

  #contact .row {
    margin-bottom: 0rem;
  }

  .site-footer_logo img {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    max-width: 6rem;
  }

  .footer-socials {
    display: flex;
    gap: 0.5rem;
  }

  .footer-socials img {
    width: 3rem;
    height: 3rem;
  }

  #contact label {
    font-size: var(--font20);
  }

  #contact input[type="text"],
  #contact input[type="email"],
  #contact select,
  #contact textarea {
    font-size: var(--font16);
    padding: 1.5rem 1.4rem;
  }

  #contact button[type="submit"] {
    font-size: var(--font20) !important;

    padding: 1.2rem 3rem !important;
  }

  .tabs dd + dd {
    margin-left: 0 !important;
  }

  .prev-next-category-container + img,
  .character5e-wrapper .prev-next-category-container img {
    left: 0;
    width: 100%;
  }

  .tabs dd a {
    padding: 1.2rem 2rem 1rem 2rem !important;
    font-size: var(--font18) !important;
  }

  .tabs-content {
    padding: 2rem !important;
  }

  .breadcrumbs .current {
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
