body {
    font-family: 'Comic Neue', cursive;
    background: #e6e6e6;
    text-align: center;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cards {
    display: flex;
    justify-content: space-around;
    margin: 20px;
}

.card {
    width: 100px;
    height: 140px;
    background: white;
    border-radius: 10px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    border: none;
    color: white;
    border-radius: 5px;
}

button:hover {
    background: #45a049;
}

#message {
    font-size: 24px;
    margin: 20px;
    color: #ff4444;
}

.balance {
    margin: 20px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 10px;
}

.bet-controls {
    margin: 10px 0;
}

input {
    padding: 8px;
    width: 80px;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#hit-btn, #stand-btn {
    background: #2196F3;
}

#hit-btn:hover, #stand-btn:hover {
    background: #0b7dda;
}

#hit-btn:disabled, #stand-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Исправлено: Уточнены стили для кнопок */
button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    color: white;
    border-radius: 5px;
    transition: background 0.3s;
}

/* Базовый цвет для всех кнопок */
button {
    background: #4CAF50; /* Зеленый */
}

/* Специфичные стили для кнопок "Взять" и "Стоп" */
#hit-btn, #stand-btn {
    background: #2196F3; /* Синий */
}

#hit-btn:hover, #stand-btn:hover {
    background: #0b7dda; /* Темно-синий при наведении */
}

/* Стиль для отключенных кнопок */
button:disabled {
    background: #cccccc !important; /* Серый */
    cursor: not-allowed;
}

/* Стиль кнопки "Новая игра" */
button[onclick="resetGame()"] {
    background: #9C27B0; /* Фиолетовый */
}

.cards-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 120px;
    height: 160px;
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    font-size: 24px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    cursor: pointer;
}

.card::before {
    content: attr(data-suit);
    font-size: 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

.card:hover {
    transform: translateY(-5px);
}

.card-value {
    font-weight: bold;
}

.card-suit {
    font-size: 28px;
}

/* Цвета для мастей */
[data-suit="♥"], [data-suit="♦"] {
    color: #ff4444;
}

[data-suit="♣"], [data-suit="♠"] {
    color: #333;
}

/* Анимация появления карты */
@keyframes cardAppear {
    from {
        transform: scale(0.5) rotate(-5deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.new-card {
    animation: cardAppear 0.3s ease-out;
}
/* Стили модальных окон */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
  }
  
  .modal-content {
    background: #f8f8f8;
    margin: 10% auto;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  }
  
  .success-content {
    text-align: center;
    padding: 40px;
  }
  
  .close {
    float: right;
    font-size: 28px;
    cursor: pointer;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
  }
  
  .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
  }
  
  .submit-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .submit-btn:hover {
    background: #45a049;
  }
  
  /* Кнопка пополнения в основном интерфейсе */
  #deposit-btn {
    background: #FF9800;
    margin-left: 10px;
  }
  
  #deposit-btn:hover {
    background: #F57C00;
  }

  .shop-section {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.shop-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.shop-item {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
}

.shop-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: bold;
    color: #27ae60;
}

.inventory {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#inventory-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

#music-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    color: white;
    width: 300px;
    z-index: 1000;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.player-controls button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.player-controls button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.song-info {
    text-align: center;
    margin-bottom: 10px;
}

#current-song-title {
    font-weight: bold;
    font-size: 16px;
}

#current-song-artist {
    font-size: 14px;
    color: #ccc;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
}

.playlist h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #ccc;
}

#song-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#song-list li {
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

#song-list li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#song-list li.active {
    background-color: rgba(255, 255, 255, 0.2);
}