/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --card-width: 80px;
    --card-height: 120px;
    
    /* New color variables */
    --table-gradient-start: #27ae60;
    --table-gradient-end: #2ecc71;
    --text-dark: #333;
    --text-highlight: #f1c40f;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --shadow-darker: rgba(0, 0, 0, 0.3);
    --overlay-light: rgba(0, 0, 0, 0.2);
    --overlay-medium: rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
    --button-hover: #2980b9;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    min-height: 100vh;
    line-height: 1.6;
}

/* Game Container */
.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.game-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.game-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Table */
.table {
    background: var(--table-gradient-start);
    background: linear-gradient(135deg, var(--table-gradient-start), var(--table-gradient-end));
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px var(--shadow-dark);
    position: relative;
    overflow: hidden;
}

/* Community Cards Container */
.community-cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    min-height: 180px;
    position: relative;
    z-index: 2;
}

/* Ensure cards have consistent size and spacing */
#community-cards .card {
    width: var(--card-width);
    height: var(--card-height);
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Hover effect for community cards */
#community-cards .card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

.table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* Cards */
.card {
    width: var(--card-width);
    height: var(--card-height);
    background: var(--white);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-dark);
    box-shadow: 0 3px 10px var(--shadow-dark);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    padding: 10px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

/* Player Areas */
.opponent-area, .player-area {
    margin: 20px 0;
}

.player-info {
    background: var(--overlay-medium);
    padding: 20px;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.player-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.player-chips {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-highlight);
    font-weight: 500;
}

.player-hand {
    display: flex;
    justify-content: center;
    margin: 15px 0;
    min-height: var(--card-height);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--button-hover);
    transform: translateY(-2px);
}

.btn-danger {
    background-color: var(--accent-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* All In button */
.btn-warning {
    background-color: #f39c12;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-warning:hover:not(:disabled) {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-warning:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-warning:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #6c7a7d;
    transform: translateY(-2px);
}

/* Bet Controls */
.bet-controls {
    display: flex;
    align-items: center;
    margin-top: 15px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.slider {
    flex-grow: 1;
    margin: 0 15px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: #7f8c8d;
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #2980b9;
}

.bet-amount {
    min-width: 50px;
    text-align: center;
    font-weight: bold;
    color: var(--text-highlight);
    font-size: 1.1rem;
}

/* Game Log */
.game-log {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.log-header {
    background: var(--overlay-medium);
    padding: 10px 15px;
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-content {
    max-height: 150px;
    overflow-y: auto;
    padding: 10px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.log-content p {
    margin: 5px 0;
    padding: 5px 10px;
    border-radius: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
}

/* Style for computer messages */
.log-content p.computer-message {
    color: #ff6b6b; /* Red color for computer messages */
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
}

/* Style for player messages */
.log-content p.player-message {
    color: #4ecdc4; /* Teal color for player messages */
    background-color: rgba(78, 205, 196, 0.1);
    border-left: 3px solid #4ecdc4;
}

/* Style for system/neutral messages */
.log-content p.system-message {
    color: var(--text-highlight); /* Yellow color for system messages */
    background-color: rgba(241, 196, 15, 0.1);
    border-left: 3px solid #f1c40f;
}

/* Close button for modals */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #333;
    text-decoration: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    box-sizing: border-box;
}

.modal.show {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #1a1e2c, #2a2d3e);
    padding: 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.modal.show .modal-content {
    transform: translateY(0);
}

@keyframes slideUp {
from { transform: translateY(40px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}

.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1.8rem;
padding-bottom: 1.2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
}

.modal-header h2 {
margin: 0;
color: #ffffff;
font-size: 2rem;
font-weight: 700;
letter-spacing: 0.5px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-body {
margin-bottom: 2.2rem;
color: #e0e0e0;
line-height: 1.7;
font-size: 1.1rem;
}

.modal-buttons {
display: flex;
justify-content: flex-end;
gap: 1.2rem;
margin-top: 2rem;
}

.close-modal {
background: rgba(255, 255, 255, 0.1);
border: none;
width: 36px;
height: 36px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #b0b0b0;
font-size: 1.5rem;
line-height: 1;
transition: all 0.2s ease;
padding: 0;
position: relative;
overflow: hidden;
}

.close-modal::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.1);
border-radius: 50%;
transform: scale(0);
transition: transform 0.3s ease;
}

.close-modal:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.15);
}

.close-modal:hover::before {
transform: scale(1.5);
opacity: 0;
}

/* Card display in modals */
#result-cards {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 15px;
margin: 2rem 0 2.5rem;
perspective: 1000px;
}

#result-cards .card {
    width: 70px;
    height: 100px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    background: #ffffff;
    color: #2c3e50;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#result-cards .card:hover {
    transform: translateY(-8px) rotateY(5deg) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Card suit colors */
#result-cards .card.hearts,
#result-cards .card.diamonds {
    color: #e74c3c;
}

/* Card animations */
@keyframes cardAppear {
    0% { 
        opacity: 0; 
        transform: translateY(30px) rotateY(-90deg);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) rotateY(0);
    }
}

.modal.show .card {
    animation: cardAppear 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

#new-game:hover {
    background-color: #27ae60 !important;
    transform: translateY(-2px);
}

/* Responsive modal */
@media (max-width: 600px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    #result-cards .card {
        width: 60px;
        height: 90px;
        font-size: 1.3rem;
    }
    
    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-buttons .btn {
        width: 100%;
        margin: 0;
    }
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--light-color);
}

.modal p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: calc(var(--card-width) * 0.8);
        height: calc(var(--card-height) * 0.8);
        font-size: 1.4rem;
    }
    
    .player-actions {
        display: flex;
        flex-direction: column;
    }
    
    .bet-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .slider {
        width: 100%;
        margin: 10px 0;
    }
}

/* Animations */
@keyframes dealCard {
    from {
        transform: translateY(-50px) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }
}

.card.dealt {
    animation: dealCard 0.5s ease-out forwards;
}

/* Game status indicators */
.player-status {
    margin-top: 10px;
    font-weight: 500;
    color: var(--text-highlight);
    min-height: 24px;
}

/* Community cards area */
#player-hand, #opponent-hand, .community-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0);
    border-radius: 10px;
    margin: 0;
    transition: all 0.3s ease;
}

#player-hand:not(:empty),
#opponent-hand:not(:empty),
.community-cards:not(:empty) {
    min-height: 150px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

/* Card styling */
.card {
    transition: all 0.3s ease;
    position: relative;
    top: 0;
}

/* Winning card effect */
.card.winner {
    box-shadow: 0 0 15px #FFD700, 0 0 20px #FFD700, 0 0 25px #FFD700;
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
    border: 2px solid #FFD700 !important;
}

/* Best hand highlight at round end */
.card.best-hand {
    box-shadow: 0 0 15px #FFD700, 0 0 20px #FFD700, 0 0 25px #FFD700 !important;
    transform: translateY(-10px) scale(1.1) !important;
    z-index: 20;
    border: 2px solid #FFD700 !important;
    transition: all 0.3s ease;
}

/* Card styling */
.card {
    width: 60px;
    height: 90px;
    background: var(--white);
    border: 1px solid #000;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

/* Player Actions */
.player-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.round-buttons {
    justify-content: center;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button states */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Disabled button style */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Hover effect for enabled buttons */
.btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Active/pressed effect */
.btn:not(:disabled):active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Visual feedback for disabled buttons */
.btn[disabled]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Special styling for call button */
#call-btn:not(:disabled) {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: 1px solid #2980b9;
}

/* Special styling for check button */
#check-btn:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: 1px solid #27ae60;
}

/* Special styling for fold button */
#fold-btn:not(:disabled) {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid #c0392b;
}

/* Bet Controls */
.bet-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bet-slider-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    background: #2980b9;
}

.bet-amount-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0 5px;
}

.bet-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 5px;
}

.bet-actions .btn {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-secondary {
    background-color: #7f8c8d;
    color: white;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-success {
    background-color: #2ecc71;
    color: white;
}

/* Card base styles */
.card {
    color: #2c3e50; /* Default text color */
} 

/* Style for red cards (hearts and diamonds) */
.card[data-suit='♥'] .card-suit,
.card[data-suit='♦'] .card-suit,
.card[data-suit='♥'] .card-top,
.card[data-suit='♦'] .card-top,
.card[data-suit='♥'] .card-bottom,
.card[data-suit='♦'] .card-bottom {
    color: #e74c3c !important;
}

.winning-card {
    box-shadow: 0 0 15px #FFD700, 0 0 20px #FFD700, 0 0 25px #FFD700 !important;
    transform: translateY(-10px) scale(1.1) !important;
    z-index: 20;
    border: 2px solid #FFD700 !important;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px #FFD700, 0 0 10px #FFD700, 0 0 15px #FFD700;
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 0 0 40px #FFD700;
        transform: translateY(-10px) scale(1.1);
    }
}

/* Style for black cards (clubs and spades) */
.card[data-suit='♣'] .card-suit,
.card[data-suit='♠'] .card-suit,
.card[data-suit='♣'] .card-top,
.card[data-suit='♠'] .card-top,
.card[data-suit='♣'] .card-bottom,
.card[data-suit='♠'] .card-bottom {
    color: #2c3e50 !important;
}

.card-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.card-top, .card-bottom {
    width: 100%;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

.card-suit {
    font-size: 24px;
    line-height: 1;
    margin: 5px 0;
}

/* Face down cards */
.card.face-down {
    background: #1a5fb4;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

/* Button click effect */
@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Base button styles */
.btn {
    padding: 10px 20px !important;
    margin: 5px !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

/* Action button styles */
.action-buttons .btn {
    position: relative;
    overflow: hidden;
    min-width: 100px; /* Ensure consistent width */
    text-align: center;
}

.action-buttons .btn:active {
    animation: buttonClick 0.3s ease;
}

.action-buttons .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.action-buttons .btn.clicked::after {
    animation: ripple 0.6s ease-out;
}

/* Button specific active states */
#check-btn:active {
    background-color: #5a6268 !important;
}

#call-btn:active {
    background-color: #0069d9 !important;
}

#fold-btn:active {
    background-color: #c82333 !important;
}

#bet-btn:active {
    background-color: #218838 !important;
}

.btn-primary {
    background-color: #007bff !important;
    color: white !important;
}

.btn-danger {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-success {
    background-color: #28a745 !important;
    color: white !important;
}

.btn-secondary {
    background-color: #6c757d !important;
    color: white !important;
}

/* Make sure buttons are visible */
.player-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 15px !important;
    justify-content: center !important;
}

/* Slider styling */
.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 200px;
    height: 8px;
    border-radius: 4px;
    background: #ddd;
    outline: none;
    margin: 0 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    border: none;
}

.bet-controls {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.bet-amount {
    font-weight: bold !important;
    min-width: 50px !important;
    text-align: center !important;
}

/* Pot display */
.pot {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-highlight);
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 2px;
    left: 10px;
}

/* Game Over Modal Specific Styles */
#game-over-modal .modal-content {
    background: linear-gradient(145deg, #1a1e2c, #2a2d3e);
    padding: 2.5rem;
    border-radius: 16px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#game-over-modal h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#game-over-modal p {
    color: #e0e0e0;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#game-over-modal .modal-buttons {
    justify-content: center;
    margin-top: 1.5rem;
}

#game-over-modal .btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
    transition: all 0.3s ease;
}

#game-over-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);
    background: linear-gradient(135deg, #3aa1e6, #2d8ed6);
}

#game-over-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #b0b0b0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#game-over-modal .close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Add a subtle animation when the modal appears */
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#game-over-modal.show .modal-content {
    animation: modalAppear 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
