html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


main {
  flex: 1 0 auto;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  background-color: #1a1a1a;
  color: #ccc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  font-family: 'Cinzel', serif;
  border-top: 1px solid #444;
  gap: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  max-width: 100%; /* Quitar la limitación del 50% */
}

.footer-left h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #fff;
}

.footer-left p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-right {
  display: flex;
  gap: 1rem;
  margin: 0;
}

.footer-right a {
  transition: transform 0.3s ease;
  display: inline-block;
}

.footer-right a img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.footer-right a:hover {
  transform: scale(1.15);
  filter: brightness(1.5);
}


@media (max-width: 768px) {
  .footer {
    padding: 2rem 1rem;
  }
  
  .footer-left h2 {
    font-size: 1.2rem;
  }
  
  .footer-left p {
    font-size: 0.8rem;
  }
}

#lightboxOverlay {
  display: none !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

#lightbox {
  pointer-events: none !important;
  z-index: -1 !important;
}

body {
    background-color: #0e0e0e;
    color: #d4c9b3;
    font-family: 'Cinzel', serif;
    /*background-image: url('/CenturiaGames/assets/images/texture_dark_celtic.avif');*/
    background-size: cover;
  }
  
  h1, h2, h3 {
    color: #e8dcb5;
    text-shadow: 0 0 5px #2e2b1a;
  }
  
  nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgba(20, 20, 20, 0.8);
    padding: 1em;
    margin-top: 0;
  }
  
  nav ul li {
    margin: 0 1em;
  }
  
  nav ul li a {
    color: #d4c9b3;
    text-decoration: none;
  }
  
  a:hover {
    color: #f3e8c8;
    text-shadow: 0 0 10px #a89c65;
  }

  a,
a:visited {
  color: #f3e8c8;
  text-decoration: none;
}

  .footer {
    background-color: #1a1a1a;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-family: 'Cinzel', serif;
    border-top: 1px solid #444;
    margin-top: 30px;
  }
  
  .footer-left {
    max-width: 50%;
  }
  
  .footer-left h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #fff;
  }
  
  .footer-left p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
  }
  
  .footer-right a {
    margin-left: 1rem;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  
  .footer-right a img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
  }
  
  .footer-right a:hover {
    transform: scale(1.15);
    filter: brightness(1.5);
  }
  .team-section {
    padding: 2rem;
    color: #f0e6d2;
    text-align: center;
  }
  
  .team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 2rem auto 0;
  }
  
  .team-card {
    flex: 1 1 220px;
    max-width: 260px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 1.2rem;
    text-align: center;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  
  .team-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  }
  
  .team-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d4af37;
    margin-bottom: 1rem;
  }
  .team-role {
    background: linear-gradient(to right, #d4af37, #9e7b20);
    color: #000;
    font-weight: bold;
    padding: 0.4rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
  }
  .team-name {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 8px;
  }
  
  .team-social {
    margin: 0.8rem 0 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .team-social img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
  }
  
  .team-social img:hover {
    transform: scale(1.2);
  }
  
  .team-name {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    font-weight: bold;
  }
  .team-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  
  .filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #bfa76f;
    color: #bfa76f;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    background-color: #bfa76f;
    color: #1e1e1e;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(191, 167, 111, 0.5);
  }

  .blog-section {
    padding: 2rem;
    color: #e0e0e0;
  }
  
  .blog-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .blog-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .blog-card {
    background: rgba(0, 0, 0, 0.5);
    padding: 1.5rem 2rem;
    border-left: 4px solid #d4af37;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    transition: transform 0.3s ease;
  }
  
  .blog-card:hover {
    transform: translateX(10px);
  }

  .blog-card h2 a {
    color: #d4af37;
    text-decoration: none;
  }
  
  .blog-card h2 a:hover {
    text-decoration: underline;
  }
  
  
 blog-list {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  gap: 2rem;
}

.blog-preview {
  border-left: 4px solid #8fbc8f;
  padding-left: 1rem;
}

.blog-preview h2 a {
  color: #d4af37;
  text-decoration: none;
}

.blog-preview h2 a:hover {
  text-decoration: underline;
}

.blog-date {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.blog-post {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  color: #f0f0f0;
}

.blog-post h1 {
  color: #d4af37;
  font-size: 2.5rem;
  text-align: center;
}

.blog-post .blog-date {
  text-align: center;
  color: #ccc;
  margin-bottom: 2rem;
}

.blog-content img, .blog-content video {
  max-width: 100%;
  margin: auto;
  display: block;
}

.about-section {
  padding: 3rem 2rem;
  color: #f0e6d2;
  text-align: center;
}

.about-title {
  font-family: 'Cinzel', serif;
  font-size: 3rem;
  margin-bottom: 2rem;
}

.about-grid {
  /*display: grid;*/
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.press-grid {
  /*display: grid;*/
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1000px;
  margin: 0 auto;
}

.about-card {
  background: rgba(0, 0, 0, 0.5);
  padding: 2rem;
  border-left: 5px solid #d4af37;
  border-radius: 16px;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-card h2 {
  color: #d4af37;
  font-family: 'Cinzel', serif;
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 1rem;
  line-height: 1.6;
}

.game-horizontal-card {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-left: 4px solid #d4af37;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1rem;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.game-image-placeholder {
  width: 300px;
  height: 200px;
  background: #333;
  border-radius: 8px;
  overflow: hidden;
}

.game-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-content {
  flex: 1;
  color: #f0e6d2;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.character-card {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #f0e6d2;
  text-align: center;
}

.character-image-placeholder {
  width: 100%;
  height: 180px;
  background: #444;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.character-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.character-image-placeholder img:hover {
  transform: scale(1.2);
}

.logo-image-placeholder {
  width: 100%;
  height: 180px;
  background: #444;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.logo-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform .4s;
}

.logo-image-placeholder img:hover {
  transform: scale(1.2);
}

.white-text {
  color: #ffffff;
}

.character-info h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: #d4af37;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  padding: 0.75rem 1.5rem;
  background-color: #6a994e;
  color: #0e0e0e;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 5px #6a994e;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #a7c957;
  color: #1a1a1a;
}

.intro {
  text-align: center;
  padding: 3rem 2rem;
  background-color: rgba(0, 0, 0, 0.8);
  margin-top: 2rem;
}

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

.card-link {
  background-color: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-left: 4px solid #6a994e;
  border-radius: 12px;
  max-width: 300px;
  text-align: left;
  transition: transform 0.3s ease;
}

.card-link:hover {
  transform: translateY(-5px);
}

.engine-section {
  padding: 2rem;
  background-color: #1a1a1a;
  color: #eee;
  font-family: 'Cinzel', serif;
}

.engine-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 800px;
  gap: 1rem;
}

.engine-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.engine-logo img {
  max-width: 500px;
}

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

.engine-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  background-color: #2a2a2a;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.feature h3 {
  color: #cc9933;
  margin-bottom: 0.5rem;
}

.section-dark {
  background-color: #121212;
  color: #d4c7b0;
  padding: 3rem 2rem;
  font-family: 'Cinzel', serif;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.grid-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  max-width: 150px;
  width: 100%;
  box-sizing: border-box;
}

.grid-card img {
  max-width: 64px;
  max-height: 64px;
  margin-bottom: 0.5rem;
  object-fit: contain;
}

.grid-card span {
  font-size: 1rem;
  color: #f3d87f; 
}
.libraries {
  text-align: center;
  padding: 2rem 1rem;
}
.libraries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto; 
  padding: 1rem;
}
.library {
  background-color: #222;
  padding: 1rem 1.5rem;
  border-radius: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.library:hover {
  transform: scale(1.05);
}
.library-card {
  background-color: #1a1a1a;
  padding: 1rem;
  border-left: 4px solid #6b4e16;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
  text-align: center;
  font-weight: bold;
}

.download-section {
  background-color: #121212;
  padding: 3rem 1rem;
  text-align: center;
}

.download-section h2 {
  color: #e0e0e0;
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.download-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: #1e1e1e;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-link img {
  width: 24px;
  height: 24px;
}
#wolf_placeholder {
  width: 120px; 
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -35px;
}

.download-link:hover {
  background-color: #2b2b2b;
  transform: scale(1.05);
}
.navbar {
  position: relative;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
}

.video-background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  opacity: 0.6;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: none; 
}


.video-background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  opacity: 0.6;

}

@media (max-width: 1024px) and (min-width: 769px) {
    .video-background-video {
    display: block;
  }
  .video-background {
    background-image: url('/CenturiaGames/assets/images/Load_5_mourning2.png');
      display: none;
  }
}

@media (max-width: 768px) {
    .video-background-video {
    display: block;
  }
  .video-background {
    background-image: url('/CenturiaGames/assets/images/ember.gif');
    display: block;
  }

.menu-toggle {
     display: block;
    padding: 1rem;
    background-color: rgba(20, 20, 20, 0.8);
  }
  
 .nav-list {
  display: none;
    flex-direction: column;
    background-color: rgba(20, 20, 20, 0.95);
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    margin: 0; 
  }

  .nav-list.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .game-horizontal-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-image-placeholder {
    width: 100%;
    height: auto;
  }

  .engine-logo img{
    max-width: 100px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;

    padding-top: 30px;
  }

  .footer-left,
  .footer-right {
    max-width: 100%;
  }

  .team-grid,
  .characters-grid,
  .about-grid {
    gap: 1rem;
    padding: 0 1rem;
  }

  .team-card,
  .character-card,
  .about-card {
    max-width: 100%;
  }

  .blog-card {
    padding: 1rem;
  }

  .about-title,
  .blog-title {
    font-size: 2rem;
  }

  .cta-button {
    width: 100%;
  }
}

@media (max-width: 600px) {
    .video-background-video {
    display: none;
  }
  .engine-card {
    flex-direction: column; 
    text-align: center;
  }

  .engine-logo img {
    margin-bottom: 1rem;
  }
}

.press-kit-container {
  display: flex;
  flex-direction: row; /* side by side on desktop */
  gap: 2rem;
  width: 100%;
}

/* Left column */
.press-kit-sidebar {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0px 0px 0px 20px;
}

/* Right column */
.press-kit-main {
  flex: 1;
}

.hero {
  background-size: cover;
  text-align: center;
  color: #f3e8c8;
  padding: 8rem 2rem 8rem;
}

.bigcanvas {
  width: 700px;
  max-width: 100%;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .video-background-video {
    display: none;
  }
  .press-kit-container {
    flex-direction: column-reverse; /* stack vertically, reverse order */
  }
 .teamImg {
    display: none;
  }
  .press-kit-sidebar,
  .press-kit-main {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .bigcanvas {
    top: 336px;
  }
}

.teamImg{
  width: 70%;
  height: 100%;
   margin-top: 10px;
  margin-bottom: 40px;
}
.ost-container {
  display: flex;
  flex-direction: row; /* side by side on desktop */
  gap: 2rem;
  width: 100%;
}

/* Left column */
.ost-sidebar {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0px 0px 0px 20px;
}

/* Right column */
.ost-main {
  flex: 1;
}
/* Responsive behavior */
  
@media (max-width: 950px) {
  .ost-container {
    flex-direction: column-reverse; /* stack vertically, reverse order */
  }

  .ost-sidebar,
  .ost-main {
    max-width: 100%;
    margin-right: 20px;
    margin-left: 20px;
    flex: 1 1 100%;
    padding: 0;
  }
}

.cradle-image {
  animation: cradle 3s ease-in-out infinite;
  transform-origin: center left;
  width: 120px;
  height: 120px;
  top: 15px;
  left: 120px;
  position: absolute;
}

@keyframes cradle {
  0%, 100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@media (max-width: 768px) {
  .ost-container {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
  }

  .ost-sidebar,
  .ost-main {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 0;
    margin: 0;
  }
  

  .ost-sidebar table {
    width: 100%;
  }
  
  .ost-sidebar td {
    padding: 0.5rem 0;
  }
  
  
  .ost-sidebar audio {
    width: 100%;
    max-width: 250px;
    height: 32px;
  }
  
  
  .ost-main img {
    width: 200px !important;
    max-width: 80% !important;
    height: auto;
  }
  
 
  .ost-main .about-card {
    padding: 1rem;
    font-size: 0.9rem;
    margin: 0;
  }
  

  .ost-main .about-card p {
    margin: 0.5rem 0;
  }
}


@media (max-width: 400px) {
  .ost-sidebar audio {
    max-width: 200px;
    height: 28px;
  }
  
  .ost-main img {
    width: 150px !important;
  }
  
  .ost-main .about-card {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
}


@media (min-width: 769px) and (max-width: 950px) {
  .ost-container {
    flex-direction: column;
  }
  
  .ost-sidebar,
  .ost-main {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .ost-sidebar audio {
    max-width: 300px;
  }
}