/* Basic Reset & Body */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4e9d8; /* Sandy beige base */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('bg/OasisBG01.png'); /* Optional: Add a subtle themed background */
    background-size: cover;
}

/* Game Container */
#game-container {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 5px solid #c4a66a; /* Gold border */
    width: 90%;
    max-width: 900px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #c4a66a; /* Gold */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

header h1 {
    color: #8b4513; /* Saddle brown */
    font-family: 'Georgia', serif; /* Classier font */
}

header button {
	
	padding: 10px 15px;
    background-color: #c4a66a; /* Gold */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
	
}

header button:hover {	
	background-color: #b8860b; /* Darker gold */
}

.player-info {
    font-weight: bold;
    color: #008080; /* Teal accent */
}

/* Keno Board */
.game-board {
    display: flex;
    gap: 20px;
}

#keno-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    width: 70%;
    background-color: #e0d8c7;
    padding: 10px;
    border-radius: 8px;
	
}

.keno-number {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
    user-select: none; /* Prevent text selection */
	min-height: 50px;
	min-width: 50px;
}

.keno-number:hover {
    background-color: #f0f0f0;
}

.keno-number.selected {
    background-color: #ffd700; /* Gold */
    color: #333;
    border-color: #b8860b; /* Darker gold */
    transform: scale(1.05);
}

.keno-number.drawn {
    background-color: #00ced1; /* Dark Turquoise */
    color: white;
    animation: pulse 0.8s infinite alternate;
}

.keno-number.match {
    background-color: #32cd32; /* Lime Green */
    color: white;
    border: 2px solid white;
    font-weight: bold;
    animation: flash 0.5s 3; /* Flash 3 times */
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}


/* Controls */
.controls {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    background-color: #e0d8c7;
    border-radius: 8px;
}

.controls label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #8b4513;
}

.controls button, .modal button {
    padding: 10px 15px;
    background-color: #c4a66a; /* Gold */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.controls button:hover, .modal button:hover {
    background-color: #b8860b; /* Darker gold */
}

.controls button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.bet-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.bet-controls input {
    width: 90px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.bet-controls button {
    padding: 5px 10px;
    font-size: 1.2em;
}

.spots-info, .win-display {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    padding: 8px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

/* Results Area */
.results-area {
    margin-top: 50px;
    padding: 15px;
    background-color: #e0d8c7;
    border-radius: 8px;
    text-align: center;
	min-height: 150px; 
}

.results-area h2 {
    color: #8b4513;
    margin-bottom: 10px;
}

#drawn-numbers-display {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
	
}

.drawn-number-item {
    background-color: #00ced1; /* Dark Turquoise */
    color: white;
    padding: 5px 10px;
    border-radius: 50%; /* Circle */
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

/* Modals (Help, Leaderboard, Setup) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex; /* Show when active */
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 3px solid #c4a66a; /* Gold */
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

#payout-table-display {
    white-space: pre;
    font-family: monospace;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
}

#leaderboard-list {
    list-style-position: inside;
    padding-left: 0;
}
#leaderboard-list li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}
#leaderboard-list li:last-child {
    border-bottom: none;
}

/* Utility Classes */
.hidden {
    display: none;
}

