
/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.game-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 30px;
}

.game-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffd700, #f5b041);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-subtitle {
    font-size: 1rem;
    color: #a0a0a0;
}

/* Card styles */
.balance-card, .bet-card, .bet-amount-card, .stats-card {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bet-card:hover, .bet-amount-card:hover, .stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Balance card styles */
.balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    font-size: 1.5rem;
}

#balance {
    font-size: 1.5rem;
    font-weight: 700;
}

.icon-button {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2rem;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Betting options styles */
.betting-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .betting-options {
        grid-template-columns: 1fr 1fr;
    }
}

.bet-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-icon {
    font-size: 1.2rem;
}

.bet-description {
    color: #a0a0a0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.bet-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.safe-button {
    background: linear-gradient(to right, #4caf50, #45a049);
}

.safe-button:hover {
    background: linear-gradient(to right, #45a049, #388e3c);
}

.risky-button {
    background: linear-gradient(to right, #9c27b0, #7b1fa2);
}

.risky-button:hover {
    background: linear-gradient(to right, #7b1fa2, #6a1b9a);
}

.bet-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Bet amount styles */
.bet-amount-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.bet-amount-options {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.amount-button {
    flex: 1;
    padding: 10px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.amount-button.selected {
    background-color: #f39c12;
}

/* Custom amount styles */
.custom-amount-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

.custom-amount-label {
    flex: 1 1 100%;
    font-size: 0.9rem;
    color: #a0a0a0;
}

.custom-amount-input {
    flex: 1;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.custom-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.custom-amount-button {
    padding: 10px 15px;
    background-color: #3498db;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.custom-amount-button:hover {
    background-color: #2980b9;
}

/* Stats card styles */
.stats-card {
    margin-bottom: 30px;
}

.stats-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #a0a0a0;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Toast notification styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    min-width: 250px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slide-in-right 0.3s forwards;
}

.toast.success {
    background-color: #4caf50;
}

.toast.error {
    background-color: #f44336;
}

.toast.warning {
    background-color: #ff9800;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.toast-message {
    font-size: 0.9rem;
}

/* Animation keyframes */
@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-out-right {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.win-animation {
    animation: pulse 0.5s ease-in-out;
}
