:root {
    --theme-primary: #ff6600; /* Default orange */
    --theme-primary-hover: #ff7700;
    --theme-primary-dark: #dc2d05;
}

body {
    background-color: black;
    color:white;
}

/* Category color themes */
body.theme-slot {
    --theme-primary: #ff0000; /* Red */
    --theme-primary-hover: #ff3333;
    --theme-primary-dark: #cc0000;
}

body.theme-sport,
body.theme-sports {
    --theme-primary: #0066ff; /* Blue */
    --theme-primary-hover: #3385ff;
    --theme-primary-dark: #0052cc;
}

body.theme-hot {
    --theme-primary: #ff6600; /* Orange */
    --theme-primary-hover: #ff7700;
    --theme-primary-dark: #dc2d05;
}

body.theme-live_casino,
body.theme-casino {
    --theme-primary: #9b59b6; /* Purple */
    --theme-primary-hover: #b370d0;
    --theme-primary-dark: #7d3c98;
}

body.theme-fishing {
    --theme-background-color: #00cc99;
    --theme-primary: #00cc99; /* Teal */
    --theme-primary-hover: #33d9b3;
    --theme-primary-dark: #00a67a;
}

body.theme-lottery {
    --theme-primary: #ffcc00; /* Yellow */
    --theme-primary-hover: #ffd633;
    --theme-primary-dark: #cc9900;
}

body.theme-cockfight {
    --theme-primary: #e74c3c; /* Red-orange */
    --theme-primary-hover: #ec7063;
    --theme-primary-dark: #c0392b;
}

input.form-control:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px black inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

input.form-control:-moz-autofill {
    box-shadow: 0 0 0 1000px black inset !important;
    -moz-text-fill-color: white !important;
}

/* Game tabs container - vertical navigation */
.game-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 200px;
}

/* Base game tab - vertical navigation style */
.game-tab {
    background: #2a2a2a;
    border-radius: 8px;
    border: none;
    color: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 200px;
    height: 80px;
    gap: 8px;
}

/* Desktop mode - remove fixed height and width */
@media (max-width: 576px) {
    .game-tab {
        height: 50px !important;
        width: 80px !important;      
    }    
}

/* Active tab - uses theme color */
.game-tab.active {
    background: var(--theme-primary);
    color: #000000;
    font-weight: bold;
}

/* Hover effect */
.game-tab:hover:not(.active) {
    background: #3a3a3a;
    color: #ffffff;
}

/* Icon - hidden */
.game-tab i {
    display: none;
}

.btn-primary-gradient {
    background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    padding: 0.2rem 2rem;
    border: none;
    border-radius: 5rem;
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover,
.btn-primary-gradient:focus {
    background-image: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    color: #fff;
}

.navbar {
    background: #212122;

}

.game-text {
    color: white;
}

.bottom-nav-section .bottom-nav-content {
    background: #212122;
}

footer {
    background: #212122;
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: left -0.8vw;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
}
footer .bottom-nav-content i {
    color: #fff;    /* Set icon color to white by default */
    transition: color 0.3s ease;     /* Smooth color transition for the icon */
}

/* Ensure the text color is also white by default */
footer .bottom-nav-content a {
    color: #fff;    /* Set text color to white */
    transition: color 0.3s ease;    /* Smooth color transition for text */
    display: flex;   /* Use flex to align icon and text */
    justify-content: center;  /* Center contents horizontally */
    align-items: center;      /* Vertically center the icon and text */
    text-align: center;       /* Ensures the text is aligned properly */
}

/* Change icon color on hover */
footer .bottom-nav-content a:hover i {
    color: var(--theme-primary-hover);  /* Lighten the icon color on hover */
}

/* Change text color on hover */
footer .bottom-nav-content a:hover {
    color: var(--theme-primary);  /* Change the text color to primary color on hover */
}

/* Active link styling */
.bottom-nav-section .bottom-nav-content .nav-link.active {
    color: var(--theme-primary);  /* Set text color to primary when active */
}

.bottom-nav-content .active i {
    color: var(--theme-primary);   /* Set icon color to primary when active */
}

/* Adjust the layout for nav links */
.bottom-nav-section .bottom-nav-content .nav-link {
    display: grid;                  /* Grid layout */
    text-align: center;              /* Center text and icon */
    position: relative;
    font-size: 0.75rem;              /* Font size */
    padding: 0;                      /* Remove padding */
    gap: 8px;                        /* Add gap between the icon and the text */
}

/* Ensure that the icon and text are aligned in a row */
.bottom-nav-section .bottom-nav-content .nav-link i {    
    transition: color 0.3s ease;     /* Smooth transition for icon color */
}

.text-dark {
    --bs-text-opacity: 1;
    color: #f7bc33 !important;
}
/* Center the content and set equal size for icon and text */
.menu-icon > a {
    display: flex;             /* Flex layout for easy alignment */
    flex-direction: column;    /* Stack icon and text vertically */
    justify-content: center;   /* Center content vertically */
    align-items: center;       /* Center content horizontally */
    text-align: center;        /* Ensure text is centered */   
    padding: 0.5rem 0.5rem 0;  /* Remove bottom padding (top and left/right remain) */
    width: 100%;               /* Ensure the link takes up full width */
}

/* Adjust icon and text size */
.menu-icon > a i,
.menu-icon > a .avatar-menu-text {
    font-size: 0.8rem;           /* Reduce font size */
    font-weight: bold;
}

/* Set the icon size */
.menu-icon > a i {
    font-size: 1.2rem;         /* Icon size */
    line-height: 1;            /* Ensure vertical alignment */
    margin-bottom: 0.3rem;     /* Add some space between the icon and text */
}

/* Optional: Adjust vertical alignment of the icon */
.menu-icon > a .avatar-menu-text {
    margin-top: 0;             /* Ensure no unwanted spacing */
}

.card{
    background: #181616;
    border: none;
}
.text-muted {
    --bs-text-opacity: 1;
    color: white !important;
}
.nav-promotion .nav-link.active {
    background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
    color: white !important;
}
.nav-link {
    color:white;
}

.referral .btn-primary-gradient {
      background: linear-gradient(180deg, #f55, #ed2a00 38%, #ac0000);
}
.referral .referral-bottom-panel .social-media-text {
 color:white;   
}

.vip-table tbody td.header {
 color:red;   
}

.lang-menu {
    background-color: #121212;
    border-radius: 1rem;
    border: 1px solid #666;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1607843137);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 20px);  /* Increase space if necessary */
    right: 0;
    z-index: 9999;  /* Ensure the dropdown is on top of other elements */
    min-width: 300px;
    padding: 1rem;
    transition: all 140ms ease-in;
}

.lang-menu.active {
    opacity: 1;
    visibility: visible;
}

.lang-menu-items {
  padding: 0;
  margin-bottom: 0;
}

.lang-menu-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}
.lang-menu-item img {
  max-width: 25px;
}

.lang-country {
  font-weight: 900;
  color: red;
}

.lang-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
}

.lang-option {
  color: grey;
  list-style: none;
}
.lang-option .btn-link {
  font-family: Arial, Helvetica, sans-serif;
  color: grey;
  padding: 0;
}
.lang-option .btn-link.disabled {
  color: red;
  cursor: not-allowed;
  pointer-events: auto;
}

.btn-lang-close {
  background-color: #878787;
  color: #fff;
  border: none;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Toggle button styling */
.toggle-banner-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(128, 128, 128, 0.5); 
    border: none;
    color: #fff;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.toggle-banner-btn:hover {
    background: rgba(128, 128, 128, 0.8); 
}

/* Banner container */
.banner-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Banner animation - sliding and fading */
#bannerSlider {
    display: block;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    max-height: 0; /* Start with a height of 0 */
    opacity: 0; /* Make it invisible by default */
}

/* When the banner is shown */
#bannerSlider.show {
    opacity: 1; /* Make it visible */
    max-height: 1000px; /* Adjust the max-height */
}

/* Mobile view: Show with max-height for mobile */
@media (max-width: 768px) {
    #bannerSlider.show {
        max-height: 300px; /* Limit to 300px in mobile view */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it in mobile view */
    }
}

/* Desktop view: Auto height based on content */
@media (min-width: 769px) {
    #bannerSlider.show {
        max-height: 1000px; /* Allow large max-height for desktop */
        height: auto; /* Ensure the height adjusts based on content */
    }

    #bannerSlider.hide {
        max-height: 0; /* Collapse it for desktop view */
    }
}

/* Ensure the icons are correctly toggled based on the banner visibility */
#toggleIconShow, #toggleIconHide {
    transition: opacity 0.3s ease;  /* Smooth opacity transition */
}

.toggle-banner-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
}

#toggleIconShow {
    display: inline;
}
#toggleIconHide {
    display: none;
}

#bannerSlider.show + .toggle-banner-btn #toggleIconShow {
    display: none;
}

#bannerSlider.show + .toggle-banner-btn #toggleIconHide {
    display: inline;
}

#bannerSlider.hide + .toggle-banner-btn #toggleIconShow {
    display: inline;
}

#bannerSlider.hide + .toggle-banner-btn #toggleIconHide {
    display: none;
}

.copy-popup {
    position: absolute;
    background: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 9999;
    transform: translateY(6px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.swal2-modal {
    background-color: #222;
    color: #fff;
}

.swal2-icon {
    display: none !important;
}

/* Target the SweetAlert2 confirm button */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm {
    background-color: #ed2a00 !important;
    /* Bootstrap red */
    border-color: #ed2a00 !important;
}

/* Optional: hover effect */
div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:hover {
    background-color: #ed2a00 !important;
    /* Darker red on hover */
    border-color: #ed2a00 !important;
}

.was-validated .form-check-input:valid:checked,
.form-check-input.is-valid:checked {
    background-color: #ed2a00 !important;
    /* change valid checked color to orange */
    border-color: #ed2a00 !important;
    /* optional: change border too */
}

.form-check-input:checked {
    background-color: #ed2a00;
    border-color: #ed2a00;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%; /* This ensures the container will take at least the full height of its parent */
    height: auto; /* Allow the container to expand based on content */
}

.pagination {
    display: flex;
    gap: 6px;
    padding-left: 0;
    list-style: none;
}

/* Base button */
.page-link {
    background: #2b2b2b;       /* dark grey */
    color: #d0d0d0;            /* soft grey */
    font-weight: 600;
    border: 1px solid #555 !important;   /* grey border */
    padding: 0.55rem 0.9rem;
    transition: 0.2s ease-in-out;
}

/* Hover */
.page-link:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #666;        /* slightly brighter border on hover */
}

/* Active page (red gradient) */
.page-link.active,
.active > .page-link {
    background: linear-gradient(180deg, #ff4b3e, #c92400);
    color: #fff !important;
    border-color: #c92400;     /* match active color */
}

/* Disabled buttons = pure black */
.page-link.disabled,
.disabled > .page-link {
    background: #000 !important;  /* black */
    color: #444 !important;       /* dim grey text */
    border-color: #222 !important;/* darker border */
    pointer-events: none;
}

.marquee-content {
    color: #f4f3f3;
}

/* User Info Section */
.user-info-section {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Game Vendors - ensure it works properly */
.game-vendors {
    flex-grow: 1;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.game-vendors::-webkit-scrollbar {
    display: none;
}

/* ME88 Nav Styles */
.me88nav {
    position: sticky;
    top: 0;
    background: #0a0a0a;
    min-height: 70px;
    z-index: 1000;
    width: 100%;
}

/* Festive Border */
.festive-border {
    position: relative;
    width: 100%;
    height: 8px;
    overflow: hidden;
    background: repeating-linear-gradient(
        45deg,
        #ff0000 0px,
        #ff0000 10px,
        #ffffff 10px,
        #ffffff 20px,
        #00ff00 20px,
        #00ff00 30px,
        #ffffff 30px,
        #ffffff 40px
    );
}

.festive-lights {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1;
}

.festive-lights .light {
    width: 8px;
    height: 8px;
    background: #ffeb3b;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffeb3b, 0 0 20px #ffeb3b;
    animation: twinkle 1.5s ease-in-out infinite;
}

.festive-lights .light:nth-child(2n) {
    animation-delay: 0.3s;
}

.festive-lights .light:nth-child(3n) {
    animation-delay: 0.6s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Main Header Container with Bokeh Effect */
.me88nav-container {
    position: relative;
    background: #0a0a0a;
    padding: 15px 0;
    overflow: hidden;
}

.me88nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.025) 0%, transparent 50%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.me88nav-container .container {
    position: relative;
    z-index: 1;
}

/* Logo */
.me88nav-brand {
    text-decoration: none;
    font-size: 3rem;
    font-weight: bold;
    font-family: "Anta", sans-serif;
    text-align: center; /* Center the whole block */
    white-space: nowrap; /* Prevent wrapping */
}

.me88nav-brand span {
    margin: 0;
    padding: 0;
    display: inline-block; /* Make sure they are inline without gaps */
}


.logo-text {
    display: inline-block;
}

.logo-1me {
    color: #ffffff;
}

.logo-88 {
    color: var(--theme-primary);
}

/* Action Buttons */
.me88nav-actions {
    gap: 15px;
}

.me88nav-btn-login {
    background: #000000;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-login:hover {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #ffffff;
}

.me88nav-btn-join {
    background: var(--theme-primary);
    border: none;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-join:hover {
    background: var(--theme-primary-hover);
    color: #ffffff;
}

/* Hamburger Menu */
/* Hamburger Menu Button Styling */
.me88nav-menu-toggle {
    background: transparent;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: none; /* Hide hamburger menu by default on desktop */
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 24px;
    justify-content: center;
}

/* Hamburger Menu Lines */
.me88nav-menu-toggle span {
    width: 100%;
    height: 2px;
    background: #ffffff;
    display: block;
    transition: all 0.3s ease;
}

.me88nav-menu-toggle:hover span {
    background: var(--theme-primary);
}

/* Mobile View - Show Hamburger Menu */
@media (max-width: 992px) {
    /* Show the hamburger menu button on mobile */
    .me88nav-menu-toggle {
        display: flex; /* Show hamburger menu on mobile screens */
    }

    /* Hide session buttons (Deposit, Withdraw, Logout) from the main menu on mobile */
    .me88nav-btn-deposit,
    .me88nav-btn-withdraw,
    .me88nav-btn-logout {
        display: none !important; /* Hide these buttons on mobile screens */
    }

    /* Show hamburger menu items inside the sidebar (offcanvas) */
    .offcanvas-body {
        display: block;
        padding: 0 20px;
    }

    /* Ensure the language and message icons remain visible on mobile */
    .message-badge-balance,
    .position-relative {
        display: block;
    }

    /* Ensure the logo and balance stay visible */
    .me88nav-brand {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Display the session buttons (Deposit, Withdraw, Logout) inside the offcanvas */
    .offcanvas-body .me88nav-btn-deposit,
    .offcanvas-body .me88nav-btn-withdraw,
    .offcanvas-body .me88nav-btn-logout {
        display: block !important; /* Make buttons visible inside the offcanvas */
        width: 100%; /* Optional: Ensure buttons fill the width of the container */
        margin-bottom: 10px; /* Optional: Add some space between the buttons */
    }
}

/* Desktop View - Show Session Buttons */
@media (min-width: 992px) {
    /* Hide hamburger menu on desktop */
    .me88nav-menu-toggle {
        display: none;
    }

    /* Show session buttons (Deposit, Withdraw, Logout) on desktop */
    .me88nav-btn-deposit,
    .me88nav-btn-withdraw,
    .me88nav-btn-logout {
        display: inline-block;
    }

    /* Align session buttons between message icon and language icon */
    .me88nav-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }
}

.logo-me {
    color: #ffffff;
}

/* Balance Display */
.me88nav-balance {
    gap: 5px;
    margin-right: 15px;
}

.me88nav-currency {
    color: var(--theme-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.me88nav-amount {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Refresh Button */
.me88nav-refresh-form {
    margin: 0;
    padding: 0;
    display: inline-block;
}

.me88nav-refresh-btn {
    background: transparent;
    border: none;
    color: var(--theme-primary);
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.me88nav-refresh-btn:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--theme-primary-hover);
}

.me88nav-refresh-btn i {
    font-size: 1rem;
}

.me88nav-refresh-btn:active i {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Deposit Button */
/* .me88nav-deposit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.me88nav-deposit-btn:hover {
    opacity: 0.8;
}

.me88nav-deposit-btn svg {
    width: 24px;
    height: 24px;
}

.me88nav-deposit-btn svg .deposit-icon-rect {
    fill: var(--theme-primary);
} */
.me88nav-btn-deposit {
    background: var(--theme-primary);
    border: none;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-deposit:hover {
    background: var(--theme-primary-hover);
    color: #ffffff;
}

/* Withdraw button with white outline */
.me88nav-btn-withdraw {
    background: transparent; /* Transparent background */
    border: 2px solid var(--theme-primary);
    color: var(--theme-primary);
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.1); /* Light background when hovered */
    color: #ffffff;
    border-color: #ffffff; /* Keep white border on hover */
}

/* Logout button with orange outline */
.me88nav-btn-logout {
    background: transparent; /* Transparent background */
    border: 2px solid #ffffff; /* Orange border */
    color: #ffffff; /* Orange text to match border */
    padding: 8px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.me88nav-btn-logout:hover {
    background: rgba(255, 165, 0, 0.1); /* Light orange background when hovered */
    color: orange; /* Keep orange text */
    border-color: orange; /* Keep orange border on hover */
}

.me88nav-refresh-btn svg {
    width: 20px;
    height: 20px;
}

.me88nav-refresh-btn svg .icon-reload-rect {
    fill: var(--theme-primary);
}

.avatar-menu-link svg.avatar-menu-img {
    width: 40px;
    height: 40px;
}

.avatar-menu-link svg .avatar-menu-icon {
    stroke: var(--theme-primary);
}

.icon-wap-withdraw .withdraw-icon-primary {
    fill: none;
    stroke: var(--theme-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-miterlimit: 10;
}

.icon-wap-withdraw .withdraw-icon-secondary {
    fill: none;
    stroke: #A1AABC;
    stroke-width: 2;
    stroke-miterlimit: 10;
}

.icon-wap-withdraw .withdraw-icon-secondary-fill {
    fill: #A1AABC;
}

.icon-wap-withdraw .withdraw-icon-primary-fill {
    fill: var(--theme-primary);
}

.vip-icon-secondary {
    fill: #A1AABC;
}

.vip-icon-primary-fill {
    fill: var(--theme-primary);
}

.vip-icon-primary-stroke {
    stroke: var(--theme-primary);
}

.main-page-username {
    color: var(--theme-primary) !important;
}

/* Logged In Hamburger Menu */
.me88nav-logged-in .me88nav-menu-toggle span {
    background: #cccccc;
}

.me88nav-logged-in .me88nav-menu-toggle:hover span {
    background: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .me88nav-brand {
        font-size: 2.5rem;
    }
    
    .me88nav-btn-login,
    .me88nav-btn-join {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .me88nav-actions {
        gap: 10px;
    }
    
    .me88nav-balance {
        margin-right: 10px;
    }
    
    .me88nav-refresh-btn,
    .me88nav-deposit-btn {
        margin-right: 10px;
        width: 28px;
        height: 28px;
    }
    
    .me88nav-currency,
    .me88nav-amount {
        font-size: 0.8rem;
    }
}


/* new */
/* Game content container */
.game-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Minimum of 200px per item on larger screens */
    gap: 14px; /* Space between items */
    padding: 0;
    margin: 0;
}

/* Lobby game content grid */
.lobby-game-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Minimum of 150px per item */
    gap: 14px; /* Space between items */
    padding: 0;
    margin: 0;
}

/* Adjust for tablets (max-width: 992px) */
@media (max-width: 992px) {
    .game-content,
    .lobby-game-content {
        grid-template-columns: repeat(auto-fit, 1fr);  /* More items per row on tablet */
        gap: 10px;  /* Reduce the gap between items */
    }
}

/* Adjust for mobile (max-width: 576px) */
@media (max-width: 576px) {
    .game-content {
        grid-template-columns: repeat(3, 1fr);  /* Display 3 items per row on mobile */
        gap: 7px;  /* Further reduce the gap for small screens */
        width: 100%;  /* Ensure the grid takes full width */
    }

    .lobby-game-content {
        grid-template-columns: repeat(2, 1fr);  /* Display 2 items per row on mobile */
        gap: 10px;  /* Further reduce the gap for small screens */
        width: 100%;  /* Ensure the grid takes full width */
    }

    /* Make sure each item takes full width inside the grid */
    .game-item {
        width: 100%; /* Ensure each game item fills its column */
        max-width: 100%; /* Prevent the items from exceeding the container width */
    }
}


/* Each game item */
.game-item {
    list-style: none;
    position: relative;
    aspect-ratio: 1 / 1;  /* Keeps the aspect ratio square */
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 15px;
    opacity: 0;
    transform: translateX(120px) scale(0.9);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* visible state */
.game-item.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Image box */
.img-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background-color: #121010;  /* Light background in case the image doesn't load */
}

/* Game image */
.game-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

/* Hover effect on image */
.game-item:hover .game-image {
    transform: scale(1.05);  /* Slight zoom on hover */
}

/* Overlay box (appears on hover) */
.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 0%; /* Initially, the overlay is hidden */
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    color: white;
    padding: 10px; /* Reduced padding */
    transition: height 0.5s ease; /* Smooth transition when expanding the overlay */
    text-align: center;
    border-radius: 0 0 15px 15px; /* Rounded bottom corners */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center buttons vertically */
    align-items: center; /* Center buttons horizontally */
}

/* Show overlay when hovering over the image (expand from bottom to top) */
.game-item:hover .game-overlay {
    height: 100%; /* The overlay expands to cover the image */
    border-bottom: 4px solid var(--theme-primary, #ff6600);  /* Theme color border at the bottom */
    border-right: 2px solid var(--theme-primary, #ff6600);   /* Theme color border on the right side */
}

/* Game name background - always visible at the bottom */
.game-name-bg {
    background-color: #191818; /* Black background for the game name */
    padding: 3px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2; /* Ensure the game name stays on top of the overlay */
    /* 3D effect using box-shadow and transform */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5), 0px 10px 15px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    transform: translateY(4px); /* Give it a 3D lift effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Bottom-right corner rounded */
    border-radius: 0 0 15px 0; /* Only round the bottom-right corner */
}

/* Add hover effect to game name background */
.game-item:hover .game-name-bg {
    transform: translateY(0); /* Lift it back to normal when hovering */
    /* Adjust the shadow to make it look more natural and not have a red hue */
    box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.5), 0px 15px 20px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}

/* Game title inside the overlay */
.game-name {
    font-size: 0.7rem; /* Reduced font size */
    font-weight: bold;
    color: white;
    margin-bottom: 8px; /* Adjusted margin */
    text-align: center;
}

/* Hide buttons by default */
.buttons {
    display: none; /* Hide buttons initially */
    gap: 8px; /* Reduced gap between buttons */
    z-index: 999;
}

/* Show buttons when the game item is hovered */
.game-item:hover .buttons {
    display: flex; /* Show buttons when mouse hovers */
    justify-content: center;
    gap: 8px; /* Reduced gap between buttons */
}

/* Styling for the buttons */
.btn-play-now {
    background-color: var(--theme-primary, #ff6600);
    color: white;
    border: none;
    padding: 8px 16px; /* Reduced padding */
    font-size: 0.9rem; /* Reduced button font size */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

/* Hover effect for buttons */
.btn-play-now:hover {
    background-color: var(--theme-primary-hover, #ff7700);
    color: white;
}

/* Disabled button when game is under maintenance */
.btn-play-now.disabled {
    background-color: grey;
    cursor: not-allowed;
}

/* Demo button style */
.demo {
    background-color: grey;
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 768px) {
    .game-item {        
        margin-bottom: 8px; /* Reduced bottom margin */
    }
}

@media (max-width: 480px) {
    .game-item {        
        margin-bottom: 6px; /* Reduced bottom margin */
    }
}

.search [name=keyword]:focus + [type=submit] {
    border-color: var(--theme-primary);
}

body, main, .me88nav-actions, .me88nav-container {
    overflow: visible !important; 
}

.position-relative {
    position: relative;
    z-index: 9999;
}

.message-badge-lobby {
    background-color: red;
    color: #fff;
    font-size: 0.5rem;
    border-radius: 50%;
    padding: 4px 6px;
    position: absolute !important;
    top: 0px !important;
    right: -8px !important;
}

.message-badge {
    padding: 2px 6px !important;
    position: absolute !important;
    top: 0px !important;
    right: 0px !important;
}

@media (max-width: 768px) {
    .lang-menu {
        min-width: 200px;
    }
}

/* Set default color for icons and text (white) */
.avatar-menu-img, .avatar-menu-text, .myaccount-list-img, .navbar-nav .nav-link {
    color: #fff;  /* Default color for icons and text to white */
    transition: color 0.3s ease;  /* Smooth color transition */
}

/* Change icon and text color on hover */
.avatar-menu-link:hover .avatar-menu-img,
.avatar-menu-link:hover .avatar-menu-text,
.navbar-nav .nav-link:hover .myaccount-list-img,
.navbar-nav .nav-link:hover span {
    color: var(--theme-primary);  /* Change to theme-primary on hover */
}

/* Active state color for both icon and text */
.navbar-nav .nav-link.active .myaccount-list-img,
.navbar-nav .nav-link.active span,
.avatar-menu-link.active .avatar-menu-img,
.avatar-menu-link.active .avatar-menu-text {
    color: var(--theme-primary);  /* Set to theme-primary when active */
}

/* Chevron icon color */
.chevron {
    color: #fff;  /* Default chevron color to white */
}

/* Change chevron color on hover */
.avatar-menu-link:hover .chevron,
.navbar-nav .nav-link:hover .chevron {
    color: var(--theme-primary);  /* Chevron color to theme-primary on hover */
}

/* Inactive state for icons and text (normal state) */
.navbar-nav .nav-link .myaccount-list-img,
.avatar-menu-link .avatar-menu-img {
    color: #fff; /* Default state is white */
    height: 1.3rem;
}

/* Set specific styles for active link to differentiate from others */
.navbar-nav .nav-link.active .myaccount-list-img,
.avatar-menu-link.active .avatar-menu-img {
    color: var(--theme-primary);  /* Use the theme primary color when active */
}

/* Ensure icon and text are in a flex container on the left */
.nav-item .nav-link {
    display: flex;              /* Use flex layout to align icon and text */
    justify-content: space-between;  /* Push chevron to the right */
    align-items: center;        /* Vertically center the icon and text */
    gap: 0.6rem;                /* Standard gap between icon and text */
    padding: 0.5rem 1rem;       /* Padding for link */
}

/* Set consistent icon size */
.nav-item .nav-link i {
    font-size: 0.9rem;          /* Adjust icon size */
    line-height: 1;             /* Align icon vertically */
}

/* Optional: Adjust text font size */
.nav-item .nav-link span {
    font-size: 0.9rem            /* Adjust text size */
}

/* Ensure the chevron is on the far right */
.nav-item .nav-link .chevron {
    font-size: 0.9rem;  /* Same size as other icons */
    margin-left: auto;   /* Push chevron to the right */
}

/* Button that follows the theme color */
.btn-primary {
    background: var(--theme-primary); /* Button background color from the theme */
    border: none; /* Remove border (if needed) */
    color: #fff; /* Button text color */
    transition: background 0.3s ease, border-color 0.3s ease; /* Smooth transition */
}

/* Hover effect for the button */
.btn-primary:hover {
    background: var(--theme-primary-hover); /* Button hover color */
    color: #fff; /* Ensure the text stays white */
}

/* Active state for the button */
.btn-primary:active {
    background: var(--theme-primary-dark); /* Darker color for when button is clicked */
    color: #fff;
}

/* Optional: Focus state to maintain accessibility */
.btn-primary:focus {
    outline: none; /* Remove focus outline (or style it differently) */
    box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb), 0.5); /* Soft glow effect using theme primary color */
}

.message-custom-icon.unread-message {
    background: linear-gradient(90deg, var(--theme-primary), var(--theme-primary-dark));

}









