/* Path: css/style.css */

/* General Body Styles */
body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Arial', sans-serif;
    color: red; /* Default text color for red on black theme */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Splash Screen Styles */
#splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    z-index: 1000; /* Ensure it's on top */
    transition: opacity 1s ease-out; /* For fading out the splash */
}

#logo {
    width: 200px; /* Initial size, will animate */
    opacity: 0; /* Start invisible */
    transform: scale(0.5); /* Start smaller */
    animation: zoomFadeIn 2s forwards ease-out;
}

@keyframes zoomFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hide utility class */
.hidden {
    display: none !important;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* input fills most of the container, with normal padding */
.password-container input {
  flex: 1;
  padding-right: 0.5rem;  /* small padding, icon outside input */
  background-color: black;
  color: red;
  border: 1px solid darkred;
  outline: none;
  box-shadow: none;
}

.toggle-password-icon {
  position: absolute;
  left: 50%;
  bottom: -0.8rem;
  transform: translateX(-50%);
  cursor: pointer;
  color: darkred;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease; /* smooth hover */
}

.toggle-password-icon:hover {
  transform: translateX(-50%) scale(1.2); /* slightly larger on hover */
  color: #ff4d4d;                        /* optional subtle brighter red */
}

/* Shared Container Styles for Login/Register/Lounge/Forgot/Reset Password */
#login-container,
#register-container,
#forgot-password-container,
#reset-password-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*min-height: 100vh; /* Full viewport height */
    padding: 20px; /* General padding around content */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

/* Login, Register, Forgot/Reset Password Form Styles (Base) */
#login-form,
#register-form,
#forgot-password-form,
#reset-password-form {
    /*background-color: rgba(255, 0, 0, 0.1);*/
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    max-width: 350px; /* Max width for desktop forms (adjust if you want login narrower than others) */
    color: white;
    box-sizing: border-box; /* Ensure padding is included in the width */
}


.login-header,
.register-header,
.forgot-password-header,
.reset-password-header {
    text-align: center;
    margin-bottom: 10px;
    font-size:1.2em;
}



.login-logo,
.register-logo,
.forgot-password-logo,
.reset-password-logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: red;
}

.input-group input[type="text"],
.input-group input[type="password"],
.input-group input[type="email"],
.input-group input[type="date"]  {
    width: calc(100% - 20px); /* Account for 10px padding on each side */
    padding: 10px;
    /*border: 1px solid rgb(97,0,0);*/
    border: none;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    /*background-color: rgba(0, 0, 0, 0.7);*/
    background-color: black;
    color: white;
    font-size: 1em;
}

/* Styling for disabled inputs */
.input-group input:disabled {
    background-color: rgba(0, 0, 0, 0.5); /* Slightly lighter background */
    color: grey; /* Greyed out text */
    border-color: rgba(255, 0, 0, 0.3); /* Faded red border */
    cursor: not-allowed;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus,
.input-group input[type="email"]:focus,
.input-group input[type="date"]:focus {
    outline: none;
    border-color: #ff4d4d;
    /*box-shadow: 0 0 8px rgba(255, 0, 0, 0.7);*/
}

.secondary-btn {
    width: 100%; /* Default for single buttons */
    padding: 12px;
    background-color: rgb(164, 2, 2);
    appearance: none;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.0em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button[type="submit"],
button[type="button"] {
    font-weight: bold;
    color:lightgray;
}

.secondary-btn:hover {
    background-color: #ff4d4d;
    color: white;
}

.secondary-btn:active {
    transform: scale(0.95);
}

.login-options, .legal {
    text-align: center;
    margin-top: 20px;
}

.login-options a, .legal a {
    color: red;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.login-options a:hover, .legal a:hover {
    color: #ff4d4d;
}

.login-options span, .legal span {
    color: red; /* Separator color now red */
}

/* Registration Page Specific Styles */
#register-form {
    max-width: 350px; /* Larger max-width for register form on desktop */
}
/* Styles for side-by-side buttons in register form */
.register-buttons {
    display: flex;
    justify-content: space-between; /* Spreads buttons out */
    gap: 10px; /* Space between buttons */
    margin-top: 20px; /* Space from elements above */
}

.register-buttons button {
    width: 48%; /* Each button takes roughly half the width, considering gap */
}

/* Styles for registration instruction text */
.register-instructions {
    color: #ac0202; /* Info color (orange/yellow) */
    font-size: 0.80em;
    text-align: center;
    margin-bottom: 15px;
    opacity: 0; /* Start hidden */
    transition: opacity 0.3s ease-in-out; /* Fade in/out */
}

.register-instructions.visible {
    opacity: 1; /* Fully visible */
}

.register-instructions.hidden {
    display: none !important; /* Hide completely */
}

.forgot-password-instructions, .reset-password-instructions {
    color: #ac0202;
    font-size: 0.80em;
    text-align: center;
    margin-bottom: 15px;
}

/* Styles for side-by-side buttons in forgot password form */
.forgot-password-buttons, .reset-password-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.forgot-password-buttons button {
    width: 48%;
}

/* Lounge Page Styles */
#lounge-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: black;
    color: white;
    position: relative;
    /* Removed padding-bottom here to prevent extra space before the non-sticky footer */
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

#lounge-container.visible {
    opacity: 1;
}

.lounge-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Added: Distributes items along the line */
    padding: 15px 25px;
    background-color: rgba(255, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.5);
    position: relative;
    z-index: 100;
}

.lounge-left-group { /* New rule */
    display: flex;
    align-items: center;
}

.menu-icon {
    font-size: 1.6em;
    color: red;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-icon:hover {
    color: #ff4d4d;
}

.lounge-logo {
    width: 40px;
    height: auto;
    margin-left: 10px; /* Space to the left (from menu icon) */
    margin-right: 0; /* Ensure no auto-margins here that would conflict with centering */
}

.lounge-title {
    text-align: center;
    margin: auto; /* Centers the element by consuming equal space on both sides relative to its siblings */
    font-size: 1.4em;
    font-weight: normal;
    color: rgb(232, 3, 3);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.9);
    /* Removed: flex-grow if present, as it conflicts with margin:auto + space-between for centering */
}

.lounge-username {
    margin-left: 10px;
    color: rgb(255, 0, 0);
}

.lounge-right-filler { /* New rule */
    /* This width should balance the lounge-left-group for true visual centering */
    /* Estimated: ~25px (menu-icon) + 10px (logo-margin-left) + 40px (logo-width) = ~75px */
    width: 95px; /* Adjust this value if visual centering isn't perfect */
    height: 1px; /* Minimum height to ensure it takes up space */
}


/* Collapsible Menu */
#collapsible-menu {
    position: fixed;
    top: 0; /* Height of header */
    left: 0;
    width: 150px;
    height: 100%; /* Adjust height based on header */
    background-color: rgba(0, 0, 0, 0.80);
    box-shadow: 2px 0 15px rgba(255, 0, 0, 0.8);
    z-index: 1000; /* Above lounge content */
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    padding-top: 0px;
    box-sizing: border-box;
    overflow-y: hidden; /* no scrolling for menus */
}

#collapsible-menu.active {
    transform: translateX(0); /* Slide in */
    transition: transform 0.3s ease-in-out;
}

#collapsible-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#collapsible-menu li {
    margin-bottom: 10px;
}

#collapsible-menu a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    font-size: 1.0em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#collapsible-menu a:hover {
    background-color: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
}

#collapsible-menu a i {
    margin-right: 10px;
    width: 20px; /* Align icons */
    text-align: center;
}

/* Game Selection Area */
.game-selection, .table-selection {
    flex-grow: 1; /* Takes up remaining vertical space */
    padding: 20px;
    overflow-y: auto; /* Enable scrolling for  panels */
}

.game-row-title, .table-row-title {
    font-size: 1.2em;
    color: rgb(117, 24, 24);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    margin-bottom: 20px;
    margin-top: 30px;
    text-align: center;
}

.game-row, .table-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive grid */
    gap: 25px;
    padding-bottom: 20px; /* Space at the bottom of the row */
}

.game-panel, .table-panel { /* Unified styling for game and table panels */
    background-color: rgba(255, 0, 0, 0.15);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.3);
    text-align: center;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content */
    align-items: center;
    border: 2px solid transparent; /* Default transparent border */
}

.game-panel.disabled {
    /* Visual styling to make it look disabled */
    opacity: 0.5; /* Makes the panel semi-transparent */
    filter: grayscale(100%); /* Applies a grayscale effect */

    /* The most important property to disable interaction */
    pointer-events: none; /* Prevents all mouse events (clicks, hovers, etc.) on the element and its children */

    /* Provide a clear visual cue that the element is not clickable */
    cursor: not-allowed;
}

.game-panel:hover, .table-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
}

/* New: Style for selected game panel */
.game-panel.selected {
    border: 2px solid #ff0000; /* Red border for selected game */
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7); /* red glow */
}

.game-poster, .table-poster {
    width: 100%;
    height: 150px; /* Fixed height for posters */
    object-fit: contain; /* Cover the area, crop if necessary */
    border-radius: 8px;
    margin-bottom: 10px;
}

.game-title, .table-title {
    font-size: 1.0em;
    font-weight: bold;
    color: rgb(154, 2, 2);
    margin-bottom: 8px;
    min-height: 40px; /* Ensure consistent height for titles */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.game-rating {
    /*color: gold; /* Gold stars */
    color:red;
    margin-bottom: 8px;
}

.game-rating .fas, .game-rating .far {
    margin: 0 1px;
}

.game-info, .table-info {
    font-size: 0.9em;
    color: #ccccccd0;
    margin-top: auto; /* Push to bottom */
}

.table-betConfig {
    color:darkorange;
    font-size: 0.9em;
    margin-top: auto; /* Push to bottom */
}

/* Styles for table-panel specific elements */
.table-panel {
    background-color: rgba(0, 255, 0, 0.1); /* Greenish background for tables */
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.3);
}

.table-panel:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

.table-panel.selected {
    border: 2px solid #0000ff; /* Blue border for selected game */
    box-shadow: 0 0 25px rgba(0, 0, 255, 0.7); /* Blue glow */
}

.table-title {
    color: white; /* Table titles remain white */
}

.table-info {
    color: #e0ffe0;
}

.table-status {
    font-weight: bold;
    color: #00ff00; /* Bright green for status */
    margin-top: 10px;
}

.no-content-message {
    text-align: center;
    color: #aaa;
    grid-column: 1 / -1; /* Span across all columns in the grid */
    padding: 20px;
    font-size: 1.0em;
}


/* Utility for messages */
.error-message {
    background-color: black;
    color: red;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    text-align: center;
    font-weight: bold;
    font-size: 1em;
    margin-top: 15px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.error-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.error-message.hidden {
    display: none;
}

.error-message .error-text {
    margin: 0;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

/* Logout Success / Registration Success / Forgot Password Success Message Styling (reused) */
.logout-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: red;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.7);
    text-align: center;
    font-weight: bold;
    font-size: 1.0em;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.logout-message.visible {
    opacity: 1;
}

.logout-message.hidden {
    display: none !important;
}

.logout-message .logout-text {
    margin: 0;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}


/* --- Wallet and Transaction Forms Styling --- */
/* Form Overlay (for both wallet and transaction forms) */
.form-overlay {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0; /* Initial state is transparent */
    transition: opacity 0.6s ease-in-out;
}

.form-overlay.hidden {
    display: none; /* Use 'display: none' to remove from flow after transition */
}

/* Form Container */
.form-container {
    background-color: black; /* #1a1a1a; */
    /*border: 1px solid #ff0000;*/
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    margin-right: 20px;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: fixed;
    top: 50px;
    transition: transform 0.3s ease-out;
}

.form-container h2 {
    color: #ff3333;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1.2em;
    text-shadow: 0 0 8px rgba(255, 51, 51, 0.7);
}

/* Wallet Form Specifics */
.wallet-balances {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    padding: 0 10px;
}

.balance-list {
    padding: 0%;
    margin-top: 0;
    margin-bottom: 0;
}

.balance-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.0em;
    font-weight: bold;
    color: gray;
}

#balance-item-amount {
    font-size: 1.0em;
    font-weight: bold;
    color: darkorange;
}

#membershipAmount {
    font-size: 1.0em;
    font-weight: bold;
    color: darkorange;
}

.membership-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 10px 0;
}

.payment-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 15px 0;
}

#buyMembershipButton, .membershipDoneButton {
    background-color: #ff3333; /* Bright red for attention */
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    color: white;
    font-weight: bold;
    font-size: 1.0em;
    padding: 10px 20px;
    border: 1px solid red;
    border-radius: 5px;
    background-color: #a40101;
    min-width: 80px;
}

.walletDoneButton {
    background-color: #ff3333; /* Bright red for attention */
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
    color: white;
    font-weight: bold;
    font-size: 1.0em;
    padding: 10px 20px;
    border: 1px solid red;
    border-radius: 5px;
    background-color: #a40101;
    min-width: 160px;
    margin-left:auto;
    margin-right: auto;
}

#buyMembershipButton:hover,
.walletDoneButton:hover,
.membershipDoneButton:hover {
    background-color: darkred;
    border: 1px solid darkred;
}

.payment-icons {
    display: flex;
    gap: 15px;
    font-size: 2.5em;
    transition: color 0.3s ease;
    opacity: 1; /* Default opacity */
    color: #900000;
    cursor: default
}

#paypal-wrapper.disabled {
    filter: grayscale(80%) opacity(0.6);
    pointer-events: none; /* optional redundancy */
}
#paypal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.5;
    cursor: not-allowed;
    display: block;  /* initially disabled */
    z-index: 10;
}

/* thi sis fo rany icons we may have in the div */
.payment-icons i {
    transition: transform 0.2s ease-in-out;
}

.payment-icons i:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
    color: #e00000; /* hl red on hover */
    cursor: not-allowed;
}
.payment-icons i.disabled, .payment-icons i.disabled:hover {
    cursor: not-allowed;
    color: darkgray; /* Gray out icons to indicate they are disabled */
    opacity: 0.5; /* Make icons look disabled */
    /* disable user interaction */
    pointer-events: none; 
}


/* Wrapper: stacks list + controls with spacing */
.transaction-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px; /* spacing between list and controls */
}

/* Heading */
.transaction-list-container h3 {
  margin: 0;
  font-size: 1em;
  color: gray;
}

/* Scrollable list */
.transaction-list {
  list-style: none;
  margin: 0;
  padding: 5px;
  max-height: 150px;
  overflow-y: auto;
  overflow-x: auto; /* horizontal scroll if needed */
  /*border: 1px solid #ff3333;*/
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  border-radius: 5px;
  background-color: #0d0d0d;
  font-size: 0.9em;
  color: gray;
}

/* Row styling */
.transaction-item {
  display: grid;
  grid-template-columns: 140px 100px 1fr; /* date | amount | description */
  gap: 10px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px solid #2d2d2d;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  min-width: 400px; /* ✅ ensures scroll kicks in if needed */
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-item:hover {
  background-color: #2d2d2d;
}

/* Column formatting */
.transaction-date {
  text-align: left;
}

.transaction-amount {
  text-align: right;
  /* white-space: nowrap; /* keep $ aligned */
  font-weight: bold;
}

.transaction-description {
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Membership List */
.membership-list-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-list-container h3, .membership-list-container h3{
    margin: 0;
    font-size: 1.0em;
    color: gray;
}

.membership-list {
    list-style-type: none;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid #ff3333;
    border-radius: 5px;
    background-color: #0d0d0d;
    padding: 5px;
    text-align: left;
    font-size: 0.9em;
    color: gray;
}

.transaction-item:last-child, .membership-item:last-child {
    border-bottom: none;
}

.membership-item:hover {
    background-color: #2d2d2d;
}

.membership-item {
    display: flex;
    justify-content: space-between;
    padding: 4px;
    border-bottom: 1px solid #2d2d2d;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}


.transaction-controls {
    display: flex;
    justify-content: center; 
    margin-top: 5px;
}

#downloadTransactionsButton {
    min-width: 120px; /* adjust as needed */
    text-align: center;
    position: relative;
    margin-top:0;
}

.spinner {
    margin-left: 8px;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Transaction Detail Form */
.transactionDetail {
    background-color: #0d0d0d;
    border: 1px solid #ff3333;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    text-align: left;
    font-size: 0.9em;
    color: gray;
}

.transactionDetail p {
    margin: 5px 0;
}

.transactionDetail strong {
    color: lightgray;
}


/* Update the styling for the transaction control buttons */
.action-button
 {
    color: lightgray;
    padding: 10px 20px;
    border: 1px solid rgb(91, 90, 90);
    border-radius: 5px;
    background-color: black;
    box-shadow: 0 0 15px rgba(247, 0, 0, 0.5);
    min-width: 80px;
    transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 1.0em;
    cursor: pointer;
}

.action-button:hover
{
    color: white;
    background-color: #918f8f;
    border: 1px solid rgb(109, 107, 107);
    box-shadow: 0 0 10px rgba(247, 27, 27, 0.7);
}

.action-button:active
#buyMembershipButton:active,
.cancel-button:active {
    transform: scale(0.95); /* Shrink button slightly on click for "push" effect */
}

.pulse {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        transform: scale(1);
        color: #700000;
    }
    50% {
        transform: scale(1.10);
        color: red;
    }
    100% {
        transform: scale(1);
        color: #700000;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px)  {

    .lounge-header {
        padding: 10px 15px;
    }

    .login-header,
    .register-header,
    .forgot-password-header,
    .reset-password-header {
        font-size:1.0em;
    }

    .register-header h2,
    .reset-password-header h2,
    .forgot-password-header h2 {
        margin: 10px;
    }

    .input-group {
        margin-bottom: 12px;
        font-size: 0.8em;
    }

    .register-buttons, .membershipDoneButton, 
    .walletDoneButton, #buyMembershipButton {
        margin-top:10px; 
        font-size: 0.8em;
    }

    .action-button {
        font-size: 0.8em;
    }

    .menu-icon {
        font-size: 1.3em;
    }

    .lounge-logo {
        width: 30px;
        margin-left: 15px; /* Adjusted: More space to the right of menu icon on mobile */
        margin-right: 0; /* Ensure no auto-margins here that would conflict with centering */
    }

    .lounge-title {
        font-size: 1.2em;
    }

    .lounge-right-filler { /* New rule for mobile */
        /* Estimated mobile width: ~20px (menu-icon) + 15px (logo-margin-left) + 30px (logo-width) = ~65px */
        width: 85px; /* Adjust as needed */
        height: 1px;
    }

    #collapsible-menu {
        width: 140px;
    }

    #collapsible-menu a {
        padding: 12px 15px;
        font-size: 1em;
    }

    .game-row, .table-row {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .game-poster, .table-poster {
        height: 120px;
    }

    .game-title, .table-title {
        font-size: 1em;
        min-height: 35px;
    }

    .game-row-title, .table-row-title {
        font-size: 1.0em;
        margin-top: 20px;
    }

    #login-form,
    #register-form,
    #forgot-password-form,
    #reset-password-form {
        max-width: 240px;
        padding: 15px;
        overflow-x: hidden;
    }

    .login-logo,
    .register-logo,
    .forgot-password-logo,
    .reset-password-logo {
        width: 90px;
    }

    .form-container {
        padding: 15px;
        max-width: 300px;
    }
    
    .form-container h2 {
        font-size: 1.0em;
    }

    .payment-icons {
        font-size: 1.5em;
    }
    
    .transaction-list, .membership-list{
        max-height: 120px;
        font-size: 0.8em;
    }

    .transactionDetail {
        font-size:0.7em;
    }

    .balance-item {
        font-size: 0.8em;
    }
    #balance-item-amount {
        font-size: 0.8em;
    }

    #membershipAmount {
        font-size: 0.8em;
    }   
}