/* Base styles */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #0b6623; /* dark green casino table */
    font-family: Arial, sans-serif;
    color: white;
}

/* Blackjack table container */
#bj-table {
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.title {
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-size: 3rem;
    font-weight: bold;

    /* Image clipped inside text */
    background-image: url('cards-bg.jpg'); /* replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    -webkit-background-clip: text;   /* Chrome, Safari, Edge */
    -webkit-text-fill-color: transparent; /* text becomes transparent to reveal image */

    background-clip: text;   /* Firefox fallback */
    color: transparent;      /* ensures transparency on non-WebKit browsers */

    /* Optional: adds shadow for better readability */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}



/* Player & dealer section */
.game-box {
    width: 65%;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}


.player-label {
    color: orange;
    letter-spacing: 2px;
    margin: 0;
}

/* Hands container */
.hands {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 40%;
}

/* Individual hands */
.hand {
    min-height: 350px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);

    display: flex;
    flex-wrap: wrap;     
    justify-content: center;
}


.card-div{
    height: 150px;
    width: 100px;
    margin: 10px;
   
}

/*Scale up SVG images to fill up container*/
.card-div .svg-img{
    transform: scale(3.2);
}


/* Card images */
.card-div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;

}


/* Hit & Stand buttons */
#hit-stand {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 30px;
    margin-top: 3%;
}



button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;

    color: white;
    background: linear-gradient(145deg, #1e8f3c, #0a5d21); /* glossy green */
    box-shadow:
        0px 4px 8px rgba(0,0,0,0.4),
        inset 0px 1px 2px rgba(255,255,255,0.4),
        inset 0px -2px 2px rgba(0,0,0,0.4);

    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover: glow + lift */
button:hover {
    transform: translateY(-2px);
    background: linear-gradient(145deg, #27b34a, #0d7a2e);
    box-shadow:
        0px 6px 14px rgba(0, 0, 0, 0.45),
        0px 0px 8px rgba(255,255,255,0.3);
}

/* Active click effect */
button:active {
    transform: scale(0.96);
    box-shadow: inset 0px 3px 5px rgba(0,0,0,0.5);
}



#winner {
    display: none;         
    flex-direction: column; 
    align-items: center;   
    gap: 10px;              
    text-align: center;
    margin: 30px;
    font-size: 30px;
    letter-spacing: 3px;
    color: cornflowerblue;
}

/* Responsive tweaks for smaller screens */
@media screen and (max-width: 768px) {

    .game-box {
        width: 95%;
        display: flex;
        flex-direction: column;
    }

    .hands{
        flex: 1 1 40%;
    }

    .hand {
        margin-bottom: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .card-div{
        height: 100px;
        width: 70px;
        margin: 10px;         
    }

}
