@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Hand:wght@400..700&family=Kalnia+Glaze:wght@100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Stoke:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Edu+AU+VIC+WA+NT+Hand:wght@400..700&family=Kalnia+Glaze:wght@100..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Stoke:wght@300;400&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    transition: .3s ease-in-out;
}

h1,
h2,
h3,
h4,
h5,
h6,
.header,
.nav ul li a {
    font-family: 'Stoke', serif;
}

body {
    height: 100dvh;
    background-image: url(../images/background/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    width: 100%;
    overflow: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #080808;
    --second-bg-color: #131313;
    --main-color: #ebb62e;
    --text-color: #fff;
}

/* css cho scroll */

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 15px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

/* css cho scroll */

#logo-banner {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.available {
    position: absolute;
    display: flex;
    flex-direction: column;
    right: 25px;
    top: 95px;
    z-index: 1;
    gap: 10px;
    background-color: transparent;
}

.available img {
    width: 150px;
    cursor: pointer;
    transition: .3s ease-in-out;
}

.available img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #logo-banner {
        width: 50%;
    }

    .available {
        top: 75px;
        right: 15px;
    }
}

@media (max-width: 500px) {
    #logo-banner {
        width: 80%;
    }

    .available img {
        width: 120px;
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 30px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    z-index: 999999;
    transition: background-color 0.5s;
    font-family: 'Stoke', serif;
}

.logo {
    cursor: pointer;
    height: 60px;
}

.logo span {
    color: var(--main-color);
    text-shadow: 0 0 25px var(--main-color);
}

.navbar {
    display: flex;
    align-items: center;
    margin-left: 10px;
    gap: 0;
}

.navbar a {
    font-size: 17px;
    color: var(--main-color);
    margin-left: 5px;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 12px;
    white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    color: #fff;
}

#menu-icon {
    font-size: 44px;
    color: var(--main-color);
    display: none;
}

/* Trang loading */

#loading-page {
    z-index: 99999999;
    background: url(../images/background/game-mode-special-pieces-background.jpg);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#loading-page.hide {
    opacity: 0;
}

.loader {
    height: 15px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(farthest-side, #fff 90%, #0000);
    background:
        var(--_g) left,
        var(--_g) right;
    background-size: 25% 100%;
    display: grid;
}

.loader:before,
.loader:after {
    content: "";
    height: inherit;
    aspect-ratio: 1;
    grid-area: 1/1;
    margin: auto;
    border-radius: 50%;
    transform-origin: -100% 50%;
    background: #fff;
    animation: l49 1s infinite linear;
}

.loader:after {
    transform-origin: 200% 50%;
    --s: -1;
    animation-delay: -.5s;
}

@keyframes l49 {

    58%,
    100% {
        transform: rotate(calc(var(--s, 1)*1turn))
    }
}

/* --------------------------------------------------------------------- */

#nav-bar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    color: #fff;
    padding: 10px 30px;
    transition: background-color 0.3s, color 0.3s;
    z-index: 999;
}

#logo {
    height: 50px;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.nav-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 16px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 50px;
    font-weight: 500;
    color: #fff;
}

.nav-button:hover {
    background-color: #fff;
    color: #000;
}



.video-container {
    width: 100%;
    height: 100dvh;
    position: relative;
}

#anim {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Play button (right-center) */
#play-video{
  background: url(../images/play-video-icon.png) no-repeat center;
  background-size: cover;
  position: absolute;
  top: 22%;
  right: 15%;                   /* move to right side */
  left: auto;                  /* ensure left isn't used */
  transform: translateY(-50%); /* vertical center only */
  z-index: 999;
  width: 80px;
  height: 80px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: transform .3s ease-in-out;
}

/* Hover: scale without shifting */
#play-video:hover{
  transform: translateY(-50%) scale(1.2);
}

/* Mobile tweak */
@media (max-width:768px){
  #play-video{
    right: calc(6% + env(safe-area-inset-right, 0px));
    width: 64px; height: 64px;
  }
}



/* #play-video {
    background: url(../images/play-video-icon.png) no-repeat center;
    background-size: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: 80px;
    height: 80px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    transition: .3s ease-in-out;
} */

/* #play-video:hover {
    transform: translate(-50%, -50%) scale(1.2);
} */


/* CSS for Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 999999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: transparent;
    width: 80%;
    max-width: 700px;
    position: relative;
    border-radius: 5px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: -15px;
    top: -30px;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
}

/* Responsive Iframe */
.modal-content iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 5px;
}

.play-game {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 324px;
    min-height: 60px;
    background: url(../images/button/play-now-inactive.png) center no-repeat;
    background-size: cover;
    color: rgb(255, 255, 255);
    font-size: 23px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    margin-left: auto;
    font-family: 'Stoke', serif;
    text-transform: uppercase;
}

.play-game:hover {
    transform: scale(1.02);
    background: url('../images/button/play-now-active.png') no-repeat center;
    background-size: cover;
}

/* About us section */
.about-divine-intervention {
    position: relative;
    text-align: left;
    color: white;
    margin-top: 0;
    width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.about-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.content {
    display: block;
    margin-left: 40px;
    width: 60%;
    max-width: 800px;
    padding: 20px;
}

.game-name-image {
    width: 80%;
    max-width: 300px;
    display: block;
    margin-top: 50px;
}

.game-name-separator {
    width: 80%;
    max-width: 400px;
    display: block;
    margin-top: 10px;
    margin: auto;
    display: none;
}

.content h2 {
    margin-top: 20px;
    font-family: 'Stoke', serif;
    font-size: 2em;
    color: #FFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.content p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: block;
    margin-top: 10px;
}

/* game feature */
.game-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 160px 30px 160px;
}

.feature {
    display: flex;
    align-items: center;
    margin: 20px 0;
    width: 100%;
    max-width: 1200px;
    background: transparent;
    /* Ensure the feature sections are transparent */
}

.feature img {
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature-content {
    width: 50%;
    padding: 20px;
    position: relative;
}

.feature-content.left {
    text-align: right;
    padding-right: 30px;
}

.feature-content.right {
    text-align: left;
    padding-left: 30px;
}

.feature:nth-child(even) .feature-content {
    order: 1;
}

.feature:nth-child(even) img {
    order: 2;
}


.feature-content h2 {
    margin-left: -100px;
}

.feature-content h2 {
    margin-right: -100px;
}

/* Default styles for 1536px */
.feature-content h2 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 10px;
    background-color: #C19D53;
    padding: 10px;
    display: inline-block;
    border-radius: 2px;
    color: #fff;
}

.feature-content p {
    font-size: 18px;
    line-height: 1.6;
}

h1 {
    font-size: 1.8em;
    margin: 40px 0 0px 100px;
    font-weight: 400;
}




/* tournaments */
.tournaments-container {
    display: grid;
    grid-template-columns: 33% 66%;
    height: auto;
    padding: 30px 0;
    position: relative;
    background: black;
    gap: 20px;
}

.left-panel {
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    height: 100%;
}

.left-panel h1 {
    font-size: 40px;
    margin: 0;
}

.left-panel img {
    width: auto;
    max-height: 490px;
    user-select: none;
    pointer-events: none;
}

.see-full-list {
    margin: auto;
    margin-top: 20px;
    background: url('../images/button/button_active.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 70px;
    cursor: pointer;
    transition: background 0.3s;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-transform: uppercase;
    font-family: 'Stoke', serif;
}

.see-full-list:hover {
    background: url('../images/button/button_inactive.png') no-repeat center center;
    background-size: contain;
}

.right-panel {
    padding: 0;
    box-sizing: border-box;
}

.right-panel p {
    font-size: 16px;
    margin-top: 80px;
    margin-bottom: 20px;
    display: block;
}

.table-container {
    max-width: calc(100% - 40px);
    overflow-x: auto;
}

.leaderboard {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard th,
.leaderboard td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #444;
}

.leaderboard td.rank {
    font-size: 20px;
    font-weight: bold;
    padding-left: 20px;
}

.leaderboard th {
    background: #222;
}

.leaderboard td img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.leaderboard tr:nth-child(even) {
    background: #333;
}

.leaderboard tr:nth-child(odd) {
    background: #222;
}

/* tournaments */

/* game mode */

.game-modes-section {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    /* background: url(images/background/game-mode-special-pieces-background.jpg) no-repeat center;
    background-size: cover; */
}

.game-mode-background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    z-index: -1;
}

.section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Stoke', serif;
    color: #fff;
    margin-top: 30px;
}

.background-image {
    width: 100%;
    height: auto;
    display: block;
}

.header-title {
    margin-left: 40px;
    margin-top: 20px;
    width: 80%;
    text-align: center;
    color: #FFF;
    z-index: 2;
}

.game-modes-container {
    position: relative;
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-top: 0;
}

.arrow-container {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 105%;
    display: flex;
    z-index: 999999;
    padding: 0 9.5%;
}

.slick-dots {
    position: absolute;
    bottom: 195px;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    text-align: center;
    z-index: 9999999999;
}

@media (max-width: 1366px) {
    .slick-dots {
        bottom: 100px;
    }
}

.slick-dots li button:before {
    content: '';
    background-image: url(../images/GameMode/inactive-icon.png);
    background-size: cover;
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.slick-dots li.slick-active button:before {
    background-image: url(../images/GameMode/active-icon.png);
}


.arrow {
    width: auto;
    height: 120px;
    cursor: pointer;
    display: block;
    position: relative;
}

.slick-container {
    width: 80% !important;
    height: 100%;
    z-index: 1;
    position: relative;
}

.slick-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slick-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    z-index: 1;
}

.slick-center {
    position: relative;
    transform: scale(1.5);
    transition: transform 0.3s ease;
    z-index: 10;
}

.frame-container {
    height: 100vh;
    aspect-ratio: 16/9;
}

.frame-container::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: url('../images/GameMode/center-frame.png') no-repeat center/contain;
    display: block;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.mode-description {
    position: absolute;
    bottom: 36%;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 60px);
    text-align: center;
    color: white;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 30;
    border-radius: 10px;
}

.arrow img {
    height: 100%;
}

.right-arrow {
    margin-left: auto;
}

.mode-description h2 {
    font-size: 7px;
    color: gold;
    padding: 0;
    margin: 0;
    margin-bottom: 5px;
}

.mode-description p {
    font-size: 7px;
    padding: 0;
    margin: 0;
}

/* special pieces */
.special-pieces-container {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 1;
    background-color: transparent;
    margin-top: 55px;
}

.special-piece-name {
    text-transform: uppercase;
}

.special-pieces-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/SpecialPieces/curvle-line.png') no-repeat left top;
    background-size: auto 100%;
    z-index: 2;
}

.special-pieces-header-title {
    position: absolute;
    top: 40px;
    left: 0px;
    font-size: 2em;
    z-index: 4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Stoke', serif;
}

.special-pieces-left-panel {
    max-width: 400px;
    z-index: 3;
    padding: 0;
    margin: 0;
}

.icon {
    width: 40px;
    height: 40px;
    display: inline-block;
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 10px;
    transition: background-image 0.3s;
}

.icon.king {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/king-inactive.png');
}

.icon.queen {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/queen-inactive.png');
}

.icon.bishop {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/bishop-inactive.png');
}

.icon.knight {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/knight-inactive.png');
}

.icon.rook {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/rook-inactive.png');
}

.icon.pawn {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/pawn-inactive.png');
}

.special-pieces-left-panel li.active .icon.king {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/king-active.png');
}

.special-pieces-left-panel li.active .icon.queen {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/queen-active.png');
}

.special-pieces-left-panel li.active .icon.bishop {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/bishop-active.png');
}

.special-pieces-left-panel li.active .icon.knight {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/knight-active.png');
}

.special-pieces-left-panel li.active .icon.rook {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/rook-active.png');
}

.special-pieces-left-panel li.active .icon.pawn {
    background-image: url('../images/SpecialPieces/ChessPieceIcons/pawn-active.png');
}

.special-pieces-left-panel ul {
    width: 580px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.special-pieces-left-panel li {
    margin-bottom: 40px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.special-pieces-left-panel li:hover {
    transform: scale(1.02);
}

.special-pieces-left-panel img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.special-pieces-right-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin-left: calc(50% - 600px);
}

.special-pieces-swiper {
    width: 100%;
    height: 100%;
}

.special-pieces-swiper-slide {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.special-pieces-swiper-slide .special-pieces-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
}

.special-pieces-swiper-slide img {
    height: 100%;
    padding: 0;
}

.special-pieces-swiper-slide .special-pieces-text-container {
    text-align: left;
    margin-left: 100px;
}

.special-pieces-swiper-pagination {
    bottom: 10px;
}

.special-pieces-swiper-button-next,
.special-pieces-swiper-button-prev {
    color: #fff;
}

.special-pieces-piece-info {
    margin: 0;
    padding: 0;
}

.special-pieces-piece-info h2 {
    margin: 0;
    padding: 0;
    font-size: 3em;
    margin-bottom: 0;
    color: #ECB631;
}

.special-pieces-piece-info h5 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    margin-bottom: 20px;
    color: #ECB631;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-bottom: 40px;
}

.special-pieces-piece-info h3 {
    font-size: 20px;
    color: #BBB;
    margin-top: 35px;
    margin-bottom: 0px;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    margin-top: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.special-pieces-piece-info h4 {
    margin: 0;
    padding: 0;
    padding-top: 5px;
    padding-bottom: 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

.size24 {
    font-size: 24px;
}

.special-pieces-piece-info .king {
    color: #ECB631;
}

.special-pieces-piece-info .queen {
    color: #FF69B4;
}

.special-pieces-piece-info .bishop {
    color: #1100FF;
}

.special-pieces-piece-info .knight {
    color: #FFFFFF;
}

.special-pieces-piece-info .rook {
    color: #FF0000;
}

.special-pieces-piece-info .pawn {
    color: #008000;
}

.special-pieces-see-all {
    position: relative;
    background: url('../images/button/button_active.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 70px;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    text-decoration: none;
    z-index: 999999999999999;
    margin-top: -60px;
    cursor: pointer;
    user-select: auto !important;
    pointer-events: all !important;
    font-family: 'Stoke', serif;
}

.special-pieces-see-all:hover {
    opacity: 0.8;
    background: url('../images/button/button_inactive.png') no-repeat center center;
    background-size: contain;
}

.special-pieces-swiper-button-next,
.special-pieces-swiper-button-prev {
    display: none;
}

/* game mode */

/* faq */
.faq-section {
    text-align: center;
    padding: 50px 20px;
}

.faq-section h2 {
    font-size: 2.0em;
    margin-bottom: 20px;
}

.separator {
    margin: 20px auto 0 auto;
    width: 30%;
}

.faq-item {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.faq-item h3 {
    font-size: 1.4em;
    margin-top: 80px;
    margin-bottom: 20px;
    color: #ECB631;
}

.faq-item p {
    font-size: 1.0em;
    margin: 0;
    text-align: justify;
}

.faq-item .separator-small {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
}

/* faq */

/* meddia frame */
.media {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px 10px;
    margin: 0;
    box-sizing: border-box;
    flex-direction: column;
}

.media-header {
    font-size: 2.0em;
    font-family: 'Stoke', serif;
}

/* Default styles for 1536px */
.iframe-container {
    margin-top: 20px;
    width: 100%;
    max-width: 1000px;
    height: 80%;
    border: none;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

/* media frame */

/* social footer */
footer {
    width: 100%;
    padding: 20px 0 40px 0;
    background: #000;
}

.footer-header {
    text-align: center;
    margin: 40px 0 40px 0;
}

.footer-container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    text-align: center;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icons img {
    width: 40px;
    margin: 0 20px;
    transition: transform 0.3s;
    cursor: pointer;
}

.social-icons img:hover {
    transform: scale(1.2);
}

.subscribe-now {
    margin: 30px 0;
    background: url('../images/background/chess-piecies-collection_subcribe-background.jpg') no-repeat center center;
    background-size: cover;
    padding: 50px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.subscribe-now button {
    background: url('../images/button/button_active.png') no-repeat center center;
    background-size: contain;
    width: 300px;
    height: 70px;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Stoke', serif;
}

.subscribe-now button:hover {
    background: url('../images/button/button_inactive.png') no-repeat center center;
    background-size: contain;
}

.footer-logo {
    margin: 30px 0;
}

.footer-logo img {
    width: 100px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ECB631;
}

.footer-credits {
    margin-top: 20px;
    font-size: 0.8em;
}

/* footer */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    background-color: transparent;
    color: #000;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    font-size: 16px;
    z-index: 1000;
}

#back-to-top:hover {
    background-color: rgba(212, 162, 39, 0.1);
}

#play-game-mobile,
#close-nav-mobile,
.nav-logo,
.nav-social-icons,
.white-line {
    display: none;
}

/* desktop view */
.cta-section {
    width: 100%;
    height: auto;
    position: relative;
    margin: 0;
}

.cta-bg {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    object-fit: cover;
}

.text-container {
    width: 33.33%;
    padding: 20px;
    padding-top: 120px;
    border-radius: 10px;
    text-align: center;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.text-container h1 {
    font-size: 2.5em;
    margin-bottom: 5x;
}

.text-container h3 {
    font-size: 1.1em;
    margin: 0 0 5px 0;
    padding: 0;
}

.text-container p {
    font-size: 0.8em;
    margin-bottom: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: absolute;
    bottom: 30px;
    left: 30px;
}

.cta-buttons img {
    width: 140px;
    height: auto;
    transition: transform 0.3s;
    cursor: pointer;
}

.cta-buttons img:hover {
    transform: scale(1.1);
}

.cta-section .play-now-button {
    margin-top: 20px;
    width: 300px;
    height: 70px;
    background: url('../images/button/button_active.png') no-repeat center center;
    background-size: contain;
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Stoke', serif;
}

.cta-section .play-now-button:hover {
    background: url('../images/button/button_inactive.png') no-repeat center center;
    background-size: contain;
}

/* cta section */

/* rps for all */

@media (max-width: 1150px) {
    .game-features {
        padding: 20px 40px;
    }

    .feature img {
        max-width: 100%;
    }

    .feature-content {
        max-width: 100%;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .feature:nth-child(even) {
        flex-direction: column-reverse;
        text-align: center;
    }

    .feature-content {
        padding: 10px;
    }

    .feature-content.left,
    .feature-content.right {
        padding: 0;
        width: 100%;
        text-align: left;
        margin-top: 10px;
    }

    .feature-content h2 {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        border-radius: 10px;
        text-align: center;
    }

    .feature img {
        width: 100%;
    }

    h1 {
        margin: 40px 0 0px 40px;
    }
}

@media (max-width: 1250px) {
    .modal-content {
        width: calc(100% - 20px);
        max-width: 100%;
    }

    .close {
        right: -10px;
        top: -35px;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100dvh;
        padding: 0 15px 0 0;
        background: url(/images/background/game-mode-special-pieces-background.jpg) no-repeat center;
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 0;
        border-left: none;
        border-bottom: none;
        display: none;
        z-index: 9999999999;
        margin: 0;
        flex-direction: column;
        justify-content: center;
    }

    .active {
        display: flex !important;
    }

    #play-game-mobile {
        display: block;
        margin-top: 10px;
    }

    #close-nav-mobile {
        background: url(/images/button/xmark-solid.svg) no-repeat center;
        background-size: cover;
        background-color: transparent;
        border: none;
        width: 40px;
        height: 40px;
        display: block;
        position: absolute;
        right: 15px;
        top: 35px;
    }

    .navbar a {
        display: block;
        font-size: 16px;
        margin-left: auto;
        color: #fff;
        width: fit-content;
        padding: 7px 12px;
    }

    .header {
        padding: 5px 5px;
        position: relative;
        background-color: transparent !important;
    }

    .video-container {
        margin-top: -70px;
    }

    .content {
        display: block;
        margin-left: unset;
        width: 100%;
        padding: 10px 40px;
    }

    .content h2 {
        text-align: center;
        font-size: 30px;
    }

    .game-name-image {
        width: 80%;
        max-width: 300px;
        display: block;
        margin: auto;
        margin-top: 50px;
    }

    .content p {
        display: block;
        margin-top: 10px;
        text-align: center;
        font-size: 1.2em;
        line-height: 1.6;
        color: #FFFFFF;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    .game-name-separator {
        display: block;
    }

    .nav-social-icons {
        display: flex;
        width: fit-content;
        gap: 20px;
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%)
    }

    .nav-social-icons img {
        width: 25px;
        height: 25px;
    }

    .white-line {
        display: block;
        background-color: #fff;
        height: 1px;
        width: calc(100% - 40px);
        position: absolute;
        left: 20px;
        bottom: 80px;
    }

    .nav-logo {
        display: block;
        width: 60px;
        position: absolute;
        bottom: 20px;
        left: calc(50% - 30px);
    }

    .tournaments-container {
        grid-template-columns: repeat(1, 1fr);
    }

    .right-panel {
        padding: 20px;
        box-sizing: border-box;
    }

    .right-panel p {
        font-size: 16px;
        margin-top: 0;
        margin-bottom: 20px;
        display: block;
    }

    .table-container {
        max-width: calc(100vw - 40px);
        margin: auto;
    }

    .arrow-container {
        padding: 0 10px;
    }

    .arrow {
        height: 80px;
    }

    .special-pieces-container {
        position: relative;
        width: 100%;
        height: fit-content;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        z-index: 1;
        overflow: hidden;
        background-color: transparent;
        flex-direction: column;
    }

    .special-pieces-container::before {
        display: none;
    }


    .special-pieces-name {
        display: none;
    }

    .special-pieces-left-panel {
        max-width: fit-content;
        width: fit-content;
        z-index: 3;
        padding: 0;
        margin: 0;
        margin-top: -125px;
        margin-bottom: -100px;
        rotate: -90deg;
    }

    .icon {
        rotate: 90deg;
    }

    .special-pieces-left-panel ul {
        width: auto;
    }

    .special-pieces-left-panel ul li:last-child {
        margin-bottom: 0;
    }

    .special-pieces-left-panel li {
        margin-bottom: 15px;
        cursor: pointer;
        transition: transform 0.3s;
        display: flex;
        align-items: center;
    }

    .special-pieces-image-container {
        overflow: hidden;
    }

    .special-pieces-swiper-slide img {
        max-width: 100%;
        max-height: 80vh;
        padding: 0;
    }

    .special-pieces-right-panel {
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0;
        margin-left: 0;
        width: 100%;
        margin: auto;
    }

    .special-pieces-swiper-slide .special-pieces-text-container {
        margin-left: 10px;
    }

    .special-pieces-piece-info h2 {
        font-size: 25px;
    }

    .special-pieces-piece-info h5 {
        font-size: 16px;
        margin-top: 5px;
        margin-bottom: 30px;
    }

    .special-pieces-piece-info h3 {
        margin-top: 10px;
    }

    .left-panel {
        padding: 0;
    }

    .cta-section {
        width: 100%;
        height: 100vh;
        background: url(../images/background/Shape-your-destiny.png) no-repeat center;
        background-size: cover;
        position: relative;
        margin: 0;
        display: flex;
        flex-direction: column-reverse;
        padding-bottom: 20px;
    }

    .cta-bg {
        display: none;
    }

    .text-container {
        width: 100%;
        padding: 20px;
        padding-top: 10px;
        border-radius: 10px;
        text-align: center;
        position: relative;
        right: unset;
        top: unset;
        transform: unset;
    }

    .text-container h3 {
        font-size: 23px;
        margin: 0 0 5px 0;
        padding: 0;
    }

    .text-container p {
        font-size: 16px;
        display: block;
        margin-top: 15px;
        margin-bottom: 10px;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        bottom: unset;
        left: unset;
    }

    .cta-buttons img {
        width: 140px;
        height: auto;
        transition: transform 0.3s;
        cursor: pointer;
    }
}

@media (max-width: 475px) {
    .play-game {
        font-size: 16px;
        min-width: 250px;
        min-height: 46px;
    }

    .play-game:hover {
        transform: none;
    }

    .iframe-container {
        height: auto;
    }

    .social-icons img {
        width: 30px;
        margin: 10px 10px;
        transition: transform 0.3s;
        cursor: pointer;
    }

    .cta-buttons {
        display: flex;
        justify-content: center;
        gap: 20px;
        position: relative;
        bottom: unset;
        left: unset;
        flex-direction: column;
        margin-left: auto;
        margin-right: auto;
    }
}

/* @media (max-width: 345px) {
    .play-game {
        font-size: 16px;
        min-width: fit-content;
        min-height: 46px;
        background: none;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 0 10px;
        border-radius: 10px;
    }

    .play-game:hover {
        transform: none;
        background: none;
    }
} */


/* Ensure overlay can position over the video */
.video-container {
  position: relative;                 /* <-- critical */
}

/* Soundbite layer */
.soundbite-container{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  pointer-events:none; z-index:2;     /* above video */
}


/* The text */
.soundbite-text{
  color:#fff; font-weight:600; letter-spacing:1px;
  text-shadow:0 0 15px rgba(0,0,0,.8);
  opacity:0; text-align:center;
  font-size:3.5vw;                    /* responsive size */
  animation:fadeText 6s ease-in-out infinite;
}

.soundbite-text{
  margin-top: 12vh !important;
}

/* Mobile size fallback */
@media (max-width:768px){
  .soundbite-text{ font-size:28px; }
}

/* Fade in/out */
@keyframes fadeText{
  0%{opacity:0; transform:translateY(20px)}
  10%{opacity:1; transform:translateY(0)}
  90%{opacity:1}
  100%{opacity:0; transform:translateY(-20px)}
}

/* If your <video> has its own z-index, keep it lower than the text */
.video-container video{ z-index:1; }


@media (max-width:768px){
  #play-video{
    right: calc(6% + env(safe-area-inset-right, 0px));
    width: 64px;
    height: 64px;
    top: 35%;   /* move button down — try 55–70% to taste */
  }
}