body {
    font-family: 'Montserrat', sans-serif;
    background-image: linear-gradient(-45deg, #1c1c1c, #2c2c2c00);
    background-color: #1c1c1c;
    background-size:cover;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    height: 100%;
    margin: 0;
}
.container {
    min-width: auto;
    width: 95%;
    min-height: auto;
    height: 90%;
    padding: 2%;
    margin: 0.5%;
    background: linear-gradient(-45deg, #1c1c1c, #2c2c2c00);
    background-color: rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.betting-section,
.game-section,
.stats-section {
    flex: 1; /* Each section takes equal space initially */
    margin: 0 10px;
}

.game-section {
    flex: 2; /* Set the order of the game section */
}
/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    .betting-section,
    .game-section,
    .stats-section {
        flex: 1 100%; /* Each section takes full width on smaller screens */
        margin: 10px 0; /* Adjust margin for smaller screens */
    }

    .game-section, .stats-section {
        flex: 3 100%;
    }
}

.betting-section {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.betting-section h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.betting-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.balance,
.bet-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.balance label,
.bet-input label {
    color: #fff;
    margin-right: 10px;
    font-weight: bold;
}

#balance {
    color: #4caf50;
    font-size: 18px;
    font-weight: bold;
}

#betAmount {
    padding: 5px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}



.bet-input {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bet-buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.bet-button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 5px;
}

.bet-button:hover {
    background-color: #3b8f3b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.stats-section {
    background-color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    flex: 1;
}

.stats-section h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
}

.stats-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat {
    color: #fff;
    margin-bottom: 5px;
}


header {
    margin-bottom: 20px;
}

h1 {
    font-size: 36px;
    margin: 0;
}

p {
    margin: 0;
}

.play-button,
.game-button {
    width: 45%;
    padding: 10px 0; 
    font-size: 18px;
    background-color: #4caf50;
    color: #fff;
    border: 2px solid #45d80b;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: bold;
}

/* Adjust hover styles */
.play-button:hover,
.game-button:hover {
    background-color: #3b8f3b00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Adjust disabled button styles */
.game-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    border-color: #ffffff;
}

.card-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.hand-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px;
}

.card-container {
    display: flex;
    justify-content: center;
    margin-right: 20px;
}

.score-container {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}



#dealerCards,
#playerCards {
    display: flex;
    justify-content: center;
}

#dealerCards img,
#playerCards img {
    width: 100px;
    margin: 0 5px;
    box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.8);
    border-radius: 10%;
}

.fadein {
    animation: slideInRightAnimation 0.3s ease-in;
}

@keyframes slideInRightAnimation {
    0% {
        opacity: 0;
        transform: translateX(35%);
        transform: translateY(-35%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        transform: translateX(0);
    }
}
.spacer {
    height: 20px;
}


#gameResult {
    font-size: 32px;
    font-weight: bold;
    opacity: 0;
}

#gameResult.show {
    opacity: 1; /* Set opacity to 1 when the 'show' class is added */
}



/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    #dealerCards img,
    #playerCards img {
        width: 80px; /* Adjust width for smaller screens */
    }
}

/* Media query for even smaller screens */
@media only screen and (max-width: 480px) {
    #dealerCards img, 
    #playerCards img {
        width: 60px; /* Adjust width for even smaller screens */
    }
}