    body {
        /* background-color: #212529;  */
        background-color: #0f1724;
        /* background: linear-gradient(-90deg, #031877ff, #5c0199ff); */
        color: #f8f9fa;
        /* Light text */
        margin: 0;
        /* Remove default body margin */
        min-height: 100vh;
        /* Ensure body takes full viewport height */
        display: flex;
        /* Use flexbox for main layout */
    }

    /* Adjusted Sidebar Styling */
    #sidebar-wrapper {
        /* background-color: #343a40;  */
        background: linear-gradient(90deg, #031877ff, #5c0199ff);
        width: 250px;
        /* Default expanded width */
        flex-shrink: 0;
        /* Prevent sidebar from shrinking */
        transition: width 0.3s ease;
        overflow-x: hidden;
        position: sticky;
        /* Keep sidebar in view as content scrolls */
        top: 0;
        left: 0;
        height: 100vh;
        /* Make sidebar take full viewport height */
        z-index: 1020;
        /* Below fixed navbar if present */
        display: flex;
        /* For internal layout of sidebar items */
        flex-direction: column;
    }

    #sidebar-wrapper.collapsed {
        width: 80px;
        /* Collapsed width */
    }

    #sidebar-wrapper .nav-link {
        color: #f8f9fa;
        padding: 1rem 1.5rem;
        white-space: nowrap;
        display: flex;
        /* For icon and text alignment */
        align-items: center;
    }

    #sidebar-wrapper .nav-link i {
        font-size: 1.5rem;
        width: 30px;
        /* Align icons */
        margin-right: 10px;
        flex-shrink: 0;
        /* Prevent icon from shrinking */
    }

    #sidebar-wrapper.collapsed .nav-link span {
        display: none;
        /* Hide text when collapsed */
    }

    #sidebar-header {
        padding: 1rem;
        border-bottom: 1px solid #495057;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #sidebar-wrapper.collapsed #sidebar-header h4 {
        display: none;
        /* Hide title when collapsed */
    }

    #sidebar-wrapper.collapsed #sidebar-header #sidebarToggle {
        margin: 0 auto;
        /* Center toggle button */
    }

    #sidebar-wrapper.collapsed #user-info-container {
        display: none;
        /* Hide user info when collapsed */
    }

    #sidebar-wrapper .user-info-text {
        display: block;
        /* By default, show user info text */
    }

    #sidebar-wrapper.collapsed .user-info-text {
        display: none;
        /* Hide user info text when collapsed */
    }

    #user-info-container {
        margin-top: auto;
        /* Push user info to the bottom */
        padding: 1rem;
        border-top: 1px solid #495057;
        display: flex;
        align-items: center;
    }

    #user-info-container img {
        flex-shrink: 0;
    }


    /* Main Content Styling */
    #main-content-wrapper {
        flex-grow: 1;
        /* Allow content to take remaining space */
        padding: 20px;
    }

    .game-card {
        /* background-color: #343a40; */
        background-color: #0b121b;
        border: none;
        cursor: pointer;
        transition: transform 0.2s ease-in-out;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .game-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    }

    .game-card img {
        height: 180px;
        object-fit: cover;
        border-bottom: 1px solid #495057;
    }

    .game-card .card-title {
        color: #f8f9fa;
        font-weight: bold;
    }

    .game-card .card-text {
        color: #adb5bd;
        font-size: 0.9rem;
    }

    .game-card .btn-primary {
        background-color: #0d6efd;
        border-color: #0d6efd;
        transition: background-color 0.2s ease;
    }

    .game-card .btn-primary:hover {
        background-color: #0a58ca;
        border-color: #0a58ca;
    }

    /* Top Navbar for mobile hamburger */
    .navbar-mobile-toggler {
        background-color: #343a40;
        /* Match sidebar background */
        position: sticky;
        top: 0;
        width: 100%;
        z-index: 1030;
        /* Higher than sidebar */
    }

    .navbar-mobile-toggler .navbar-toggler {
        border: none;
        color: #f8f9fa;
    }

    .navbar-mobile-toggler .navbar-toggler:focus {
        box-shadow: none;
    }

    /* Offcanvas specific styling */
    .offcanvas-backdrop.show {
        opacity: 0.5;
        /* Ensure backdrop is visible */
    }

    .offcanvas.offcanvas-start {
        width: 250px;
        /* Ensure mobile sidebar has correct width */
        background-color: #343a40;
        /* Ensure offcanvas matches sidebar background */
    }

    .offcanvas-header {
        border-bottom: 1px solid #495057;
    }

    /* Responsive adjustments */
    @media (max-width: 991.98px) {
        body {
            flex-direction: column;
            /* Stack elements vertically on mobile */
        }

        #sidebar-wrapper {
            display: none;
            /* Hide sidebar-wrapper entirely on mobile by default */
            /* It will be replaced by the offcanvas functionality */
        }

        #main-content-wrapper {
            margin-left: 0 !important;
            /* No margin on mobile */
        }

        /* Offcanvas for mobile should take full width of what it needs */
        .offcanvas-lg {
            visibility: hidden;
            /* Hide offcanvas-lg elements by default */
            transition: transform .3s ease-in-out;
            transform: translateX(-100%);
        }

        .offcanvas-lg.show {
            visibility: visible;
            transform: translateX(0);
        }
    }

    /* Ensure .offcanvas for non-lg (mobile) doesn't interfere with desktop sidebar */
    @media (min-width: 992px) {
        .navbar-mobile-toggler {
            display: none !important;
            /* Hide mobile toggler on desktop */
        }

        /* Reset offcanvas styles on desktop to not interfere */
        .offcanvas-lg {
            position: static;
            transform: none;
            visibility: visible;
            display: flex !important;
            /* Make sure the sidebar-wrapper is visible and acts as the sidebar */
            flex-direction: column;
            width: 250px;
            /* Explicit width for desktop */
            height: 100vh;
        }

        .offcanvas-header,
        .offcanvas-body {
            padding: 0;
            /* Remove offcanvas padding on desktop */
        }

        .offcanvas-header {
            display: none;
            /* Hide offcanvas header on desktop */
        }

        /* The actual #sidebar-wrapper will handle the desktop layout */
    }

/* Game Info */
/* Info Button */
.info-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
}
.info-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Modal Background */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 20px 20px 50px rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Card Content */
.info-card {
  background: rgba(4, 140, 219, 0.19);
  border-radius: 20px;
  padding: 20px;
  width: 80%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  color: white;
  box-shadow: 0px 4px 30px rgba(0,0,0,0.5);
  position: relative;
}

/* Scrollable Content */
.info-content {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: white;
  cursor: pointer;
}

/* Play Now Button */
.play-now {
  text-align: center;
  margin-top: 15px;
}
.play-now button {
  padding: 10px 20px;
  background: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}
.play-now button:hover {
  background: #04e5f5;
  color: #000;
}

/* Scroll bar css */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(0, 119, 187); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #04e5f5; 
}
/* Scroll bar css */

/* Game Info */