body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a; /* Darker background */
    color: #e0e0e0; /* Lighter text for contrast */
}

.navbar {
    background-color: #0a0a0a !important; /* Even darker navbar */
    border-bottom: 1px solid #333;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.6rem;
    color: #ffc107 !important; /* Gold color for brand */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-link {
    color: #e0e0e0 !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important; /* Gold on hover */
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    background-color: #ffc107;
    color: #1a1a1a;
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a); /* Subtle gradient for cards */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.card-header {
    background-color: #0a0a0a !important; /* Dark header */
    border-bottom: 1px solid #333;
    color: #ffc107; /* Gold title */
    font-weight: bold;
    font-size: 1.2rem;
}

.form-control {
    border-radius: 8px;
    background-color: #333; /* Darker input fields */
    color: #e0e0e0;
    border: 1px solid #555;
}

.form-control:focus {
    background-color: #444;
    color: #e0e0e0;
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

.btn-primary {
    background-color: #ffc107; /* Gold button */
    border-color: #ffc107;
    color: #1a1a1a; /* Dark text for gold button */
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-warning {
    background-color: #ffc107; /* Gold button */
    border-color: #ffc107;
    color: #1a1a1a; /* Dark text for gold button */
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.list-group-item {
    background-color: #2a2a2a; /* Darker list items */
    border-color: #333;
    color: #e0e0e0;
    margin-bottom: 5px; /* Spacing between items */
    border-radius: 8px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.list-group-item-action:hover {
    background-color: #3a3a3a !important;
    color: #ffc107 !important; /* Gold on hover */
}

.game-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.table-dark {
    --bs-table-bg: #2a2a2a;
    --bs-table-striped-bg: #333;
    --bs-table-hover-bg: #3a3a3a;
    --bs-table-border-color: #444;
    color: #e0e0e0;
}

.table-responsive {
    border-radius: 10px;
    overflow: hidden;
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #333;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.footer {
    background-color: #0a0a0a !important;
    border-top: 1px solid #333;
    color: #777;
    padding: 15px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 30px;
}

/* Slot Machine Styles */
.slot-machine-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 800px;
}

.slot-machine-container {
    background: linear-gradient(to top, #2c3e50, #46637f);
    border: 5px solid #95a5a6;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(0,0,0,0.5);
    width: 100%;
}

.reels-container {
    background-color: #000;
    border: 5px solid #34495e;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.7);
}

.reel {
    width: 120px;
    height: 120px;
    background-color: #ecf0f1;
    border: 2px solid #bdc3c7;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
    color: #000;
    overflow: hidden;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    position: relative;
}

.reel.spinning .reel-content {
    animation: spinReel 0.1s linear infinite;
    filter: blur(3px);
}

.reel-content {
    position: absolute;
}

@keyframes spinReel {
    0% { transform: translateY(-50px); }
    100% { transform: translateY(50px); }
}

.spin-button {
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 0 #c0392b;
    transition: all 0.1s ease-in-out;
}

.spin-button:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #c0392b;
}

.lever-container {
    width: 80px;
    margin-left: 20px;
}

.lever {
    width: 20px;
    height: 150px;
    background: #7f8c8d;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lever::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    border-radius: 50%;
    border: 5px solid #c0392b;
}

.lever.pulling {
    transform: rotate(45deg);
}

.win-message {
    min-height: 40px;
    font-family: 'Courier New', Courier, monospace;
}

.win-jackpot {
    color: #2ecc71; /* Green for win */
    text-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
    animation: jackpot-glow 1.5s ease-in-out infinite alternate;
}

.win-bonus {
    color: #f1c40f; /* Gold for bonus */
    text-shadow: 0 0 10px #f1c40f, 0 0 20px #f1c40f;
    animation: jackpot-glow 1.5s ease-in-out infinite alternate;
}

@keyframes jackpot-glow {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.prize-table-container {
    max-width: 800px;
    margin: auto;
}

.prize-table {
    border: 2px solid #ffc107;
}
.prize-table th, .prize-table td {
    text-align: center;
    vertical-align: middle;
}

/* Blackjack Styles */
.game-container {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hand {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.hand h2 {
    margin-bottom: 15px;
    color: #ffd700;
}

.cards {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.card.red {
    color: #e74c3c;
}

.card .top-value, .card .bottom-value {
    font-size: 1.2em;
}

.card .center-value {
    font-size: 1.5em;
    text-align: center;
}

.score {
    font-size: 1.2em;
    font-weight: bold;
}

.game-message {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0;
    min-height: 40px;
    color: #ffd700;
}

.game-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-back {
    display: inline-block;
    padding: 15px 30px;
    background: #ffd700;
    color: #0a3d2e;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    background: #ffed4a;
    transform: translateY(-2px);
}

/* Space Launcher Styles */
.game-container {
    background-color: #1a1a3a;
    border-radius: 10px;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 0, 255, 0.3);
}

.rocket-container {
    height: 200px;
    position: relative;
    margin: 20px 0;
    background-color: #0c0c24;
    border-radius: 5px;
    overflow: hidden;
}

.rocket {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 80px;
    background-color: #ff5722;
    border-radius: 10px 10px 0 0;
    transition: bottom 0.5s;
}

.rocket::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10px;
    width: 30px;
    height: 20px;
    background-color: #ff9800;
    border-radius: 0 0 10px 10px;
}

.multiplier-display {
    text-align: center;
    font-size: 2em;
    margin: 10px 0;
    color: #4caf50;
}

.cash-out {
    background-color: #4caf50;
}

.cash-out:hover {
    background-color: #388e3c;
}

.status-message {
    text-align: center;
    margin: 10px 0;
    min-height: 24px;
}

.win-message {
    color: #4caf50;
    font-weight: bold;
}

.lose-message {
    color: #f44336;
    font-weight: bold;
}

.game-info {
    margin-top: 20px;
    background-color: #2a2a4a;
    padding: 15px;
    border-radius: 5px;
}

/* 777 Slot Machine Styles */
.balance {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background-color: #0f3460;
    padding: 10px;
    border-radius: 5px;
}

.balance-item {
    font-size: 1.2em;
}

.game-section {
    margin-bottom: 30px;
    padding: 15px;
    border-radius: 5px;
}

.normal-game {
    background-color: #0f3460;
}

.special-game {
    background-color: #533483;
}

.reels {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-size: 3em;
}

.reel {
    margin: 0 10px;
    background-color: #1a1a2e;
    padding: 10px;
    border-radius: 5px;
    min-width: 80px;
}

.bet-buttons {
    margin: 15px 0;
}

.bet-btn {
    background-color: #e94560;
    color: white;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.bet-btn.active {
    background-color: #ff7b9c;
    font-weight: bold;
}

.spin-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
}

.spin-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.result {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
}

.win {
    color: #4CAF50;
    font-weight: bold;
}

.bonus {
    color: #FFD700;
    font-weight: bold;
}

.lines-info {
    font-size: 0.9em;
    margin-top: 10px;
    color: #ccc;
}

.blinking-siren {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}