/* Reset default styles for all elements */
*{
    padding: 0;
    margin: 0;
    list-style-type: none;
    text-decoration: none;
    box-sizing: border-box;
    color: white;
}

/* 
:root {
    --button-shadow-base: 0px 2px 4px #D6D7D9, 0px -2px 4px #CECFD1;
    
    --button-shadow-default: inset 0 0 3px 0 #CECFD1;
    --button-shadow-hover: var(--button-shadow-base), inset 0 0 3px 3px #CECFD1;
    --button-shadow-active: var(--button-shadow-base), inset 0 0 5px 3px #999, inset 0 0 30px #aaa;
  } */

 
.blackjack-gameplay{
    display: flex;
    align-items: start;
    justify-content: space-between;
    width: 100%;
    height: 80%; 
}

.timer-and-discard-holder-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;


    /* Size */
    width: 140px;

    /* Mics */
    /* margin-top: 60px;
    margin-left: 20px; */
}

.timer-display{
    position: absolute;

    top: 11%;
    left: 1.5%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Color */
    background: linear-gradient(rgba(238, 213, 104, 0.1), rgba(235, 153, 30, 0.1));
    
    /* Size */
    width: 145px;
    height: 35px;

    /* Font */
    font-size: 12px;
    
    /* Misc */
    padding: 5px;
    border-radius: 10px;
    border: 3px solid white;
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);

    transform: skewX(-5deg);
    
}

.countdown-info{
    /* Font */
    font-size: 14px
}

.countdown{
    /* Font */
    font-size: 16px;
}
.discard-holder, .card-shoe{
    display: flex;
    justify-content: center;
    align-items: center;
}

.discard-holder{
    background-image: url("/games/blackjack/image/Gameboard/CardHolder.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-position: center bottom;

    position: absolute;

    top: 22%;
    left: 6%;
    

    width: 60px;
    height: 80px;

    /* Miscs */
    transform: rotate(-25deg);
}


.discard-cards-held{
    display: flex;
    justify-content: center;
   
}

.card-shoe{
     /* Miscs */
    margin: 90px 35px 0px 0px;
    transform: rotate(25deg);
}

.card-shoe-top{
    /* Size */
    width: 80px;
    position: absolute;
    

    /* Miscs */
    margin-top: 80px;
    z-index: 3;
}


.held-cards{
    /* Size */
    width: 40px;
    position: absolute;
}

.held-cards{

    /* Miscs */
    margin-top: 110px;
    transform: rotate(90deg);
    z-index: 2;    
    
}

.card-shoe-base{
    /* Size */
    width: 80px;
    z-index: 1;
}

.blackjack-table{
    display: flex;
    align-items: center;
    justify-content: center;


    /* Color */
    background: linear-gradient(#265f18, rgb(18, 70, 4)) padding-box,
    linear-gradient(to top, rgb(255, 255, 255), rgb(252, 252, 252)) border-box;

    /* Size */
    width: 70%;
    height: 100%;

    /* Misc */
    border-bottom-left-radius: 600px;
    border-bottom-right-radius: 600px;
    border: 25px solid transparent;
    box-shadow: 0px 25px 30px 10px rgba(0,0,0,0.5);

    /* Font */
    font-size: 12px;

    transition: all .55s ease;
}

/* <-------------------------------Gameplay------------------------------>  */


/* <!---------- Chips  ----------> */
.blackjack-chips-container{
    position: absolute;
    display: flex;
    align-items: start;
    justify-content:space-between;
    flex-direction: row;

    width: 30%;
    margin-left: 0px;

    transform: translate(-370px, 220px);
}

.chip-500-button, .chip-100-button, .chip-50-button, .chip-10-button, .chip-5-button, .chip-1-button{
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Size */
    width: 40px;
    height: 40px;

    /* Miscs */
    border-radius: 30px;
    border: 2px solid rgba(143, 144, 146, 0.5);
    box-shadow: var(--button-shadow-default);
    transition: all .55s ease;
}

.chip
{
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Size */
    width: 40px;
    height: 40px;

    /* Miscs */
    border-radius: 30px;
    border: 2px solid rgba(143, 144, 146, 0.5);
    box-shadow: var(--button-shadow-default);
    transition: all .55s ease;  
}

.chip :hover{
    transform: scale(1.25);
}


.chip-500-button{
    background: url("/games/blackjack/image/Chips/500_Chip.png") center/contain no-repeat;
}

.chip-100-button{
    background: url("/games/blackjack/image/Chips/100_Chip.png") center/contain no-repeat;
}

.chip-50-button{
    background: url("/games/blackjack/image/Chips/50_Chip.png") center/contain no-repeat;
}

.chip-10-button{

    background: url("/games/blackjack/image/Chips/10_Chip.png") center/contain no-repeat;
}

.chip-5-button{
    background: url("/games/blackjack/image/Chips/5_Chip.png") center/contain no-repeat;
}

.chip-1-button{
    background: url("/games/blackjack/image/Chips/1_Chip.png") center/contain no-repeat;  
}


.chip-500-button:hover, .chip-100-button:hover, .chip-50-button:hover, .chip-10-button:hover, .chip-5-button:hover, .chip-1-button:hover{
    transform: scale(1.25);
}


/* <----Blackjack Card Positioning----> */
.blackjack-board-items{
    display: flex;
    align-items: center;
    flex-direction: column;

    /* Position */

    /* Size */
    width: 90%;

    /* Miscs */
    margin-bottom: 30px;
}

.blackjack-dealer-card-position{
    display: flex;
    justify-content: center;
    width: 50%;
}

.blackjack-board-text-container img{
    /* Size */
    width: 300px;
}


.blackjack-players-card-position{
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Size */
    width: 70%;
    /* height: 70%; */
}
.dealer-container{
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Size  */
    width: 40%;
}

.player-1-container, .player-2-container, .player-3-container{
    display: flex;
    align-items: center;
    flex-direction: row; 
}

.player-1-normal-info,.player-2-normal-info, .player-2-split-info
{
    display: flex;
    align-items: center;
    flex-direction: column; 
    margin: 10px;
}



.player-1-container{
    position: absolute;
    bottom: 36%;
    right: 28%;
    transform: rotate(-35deg);
}


.player-2-container{
    transform: translateY(40px);
}


.player-3-container{
    position: absolute;
    bottom: 38%;
    left: 33%;
    transform: rotate(35deg);
}

.normal-placement
{
    margin: 10px;
}

.dealer-card-placement-container{
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Size */
    width: 100%;

    /* Miscs */
    margin-left: 10px;

}

.players-card-placement-container{
    display: flex;
    align-items: center;
    flex-direction: column;
}

.card-value-display{
    display: flex;
    justify-content: center;
    align-items: center;

    /* Color */
    background: linear-gradient(rgba(238, 213, 104, 0.1), rgba(235, 153, 30, 0.1));
    
    /* Size */
    width: 50px;
    height: 20px;

    /* Font */
    font-size: 12px;
    
    /* Misc */
    margin-bottom: 10px ;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}


.card-placement-display{
    display: flex;
    justify-content: center;
    align-items: center;

     /* Color */
     background: linear-gradient(rgba(238, 213, 104, 0.1), rgba(235, 153, 30, 0.1));
     
     /* Size */
     width: 50px;
     height: 70px;
   
     /* Font */
     font-size: 12px;
     
     
     /* Misc */
     margin-bottom: 10px;
     /* padding: 20px; */
     border-radius: 10px;
     border: 3px solid rgba(255, 255, 255, 0.5);
     box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.dealer-cards, .player-1-cards, .player-2-cards, .player-2-split-cards, .player-3-cards{
    display: flex;
    justify-content: center;

    /* Size */
    width:250px;
}



/* .dealer-cards img, .player-1-cards img, .player-2-cards img, .player-2-split-cards img, .player-3-cards img{    
    /* Size */
    /* width: 40px; */

    /* Miscs */
    /* margin-right: -33px; 
} */

.results-image{
    position: absolute;
    width: 60px;
}

.card{
    width: 40px;
}

.dealer-results, .player-1-results, .player-2-results, .player-3-results{
    position: absolute;
    /* Size */
    width: 60px;

    /* Fonts */
    color:black;
}




.chip-placement-display{
    display: flex;
    justify-content: center;
    align-items: center;

    /* Color */
    background: linear-gradient(rgba(238, 213, 104, 0.1), rgba(235, 153, 30, 0.1));
    
    /* Size */
    width: 45px;
    height: 45px;

    /* Font */
    font-size: 12px;
    
    /* Misc */
    padding: 20px;
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 25px rgba(0,0,0,0.5);
}

.chip-placement{
    position: absolute;
    /* Size */
    width: 40px;
    height: 40px;
}

.total-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.player-2-chip-split-value{
   
    /* Miscs */
   transform: translate(30px, 0px); 
}


/* <----------Blackjack Player Information----------> */
.blackjack-player-info{
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Size */
    width: 100%;
    height:  20%;  

    padding : 20px;
}


.blackjack-player-button-container{
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* Size */
    width: 100%;
    height: 100%;
}







/* <----------Player Buttons----------> */

/*Blackjack Buttons */
.deal-button{
    display: flex;
    justify-content: center;
    align-items: center;

    /* Color */
    background: linear-gradient(#1daeec, rgb(17, 90, 207));

    /* Size */
    width: 55px;
    height: 55px;

    /* Misc */
    border-radius: 10px;
    border: 2px solid rgba(143, 144, 146, 0.5);
    box-shadow: var(--button-shadow-default);

     /* Font */
    font-size: 18px;

    transition: all .55s ease; 
}

.other-button-container{
    display: flex;
    justify-content: space-between;
    align-items: center; 

    /* Size */
    width: 30%;

    margin-left: 200px;
    
}

.deal-button-container{
    margin-left: 20px ;
}

.deal-button-container, .split-button-container, .stand-button-container, .hit-button-container, .double-button-container, .insurance-button-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 

     /* Font */
     font-size: 12px;
}

.split-button, .stand-button, .hit-button, .double-button, .insurance-button{
    display: flex;
    justify-content: center;
    align-items: center;

    /* Color */
    background: linear-gradient(#ec351d, rgb(144, 16, 16));

    /* Size */
    width: 40px;
    height: 40px;
    
    margin: 2px;

    /* Misc */
    border-radius: 10px;
    border: 2px solid rgba(143, 144, 146, 0.5);
    box-shadow: var(--button-shadow-default);
    
    cursor: pointer;
    user-select: none;

    transition: all .55s ease;

}


.split-button:hover, .stand-button:hover, .hit-button:hover, .double-button:hover,.deal-button:hover, .insurance-button:hover{
    transform: scale(1.25);
}


.split-button img, .stand-button img, .hit-button img, .double-button img,.deal-button img, .insurance-button img{
    width:  60%;
}

.minus-button, .plus-button, .max-bet, .speed-mode, .auto-spin{
    background-image: linear-gradient(to top, rgb(95, 57, 16) 0%, rgb(147, 90, 27) 80%, rgb(145, 88, 25) 100%);
    
    
    /* Misc */
    border-radius: 10px;
    border: 2px solid rgba(143, 144, 146, 0.5);
    box-shadow: var(--button-shadow-default);
    
    cursor: pointer;
    user-select: none;

    transition: all .55s ease;

  }



/* <--Player actions and Information--> */
.blackjack-player-info-container{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    /* Size */
    height: 100%;

    /* Misc */
    margin-right: 40px;
}

.credits-display, .wins-display{
    display: flex;
    justify-content: space-between;
    align-items: center;

     /* Color */
     background: linear-gradient(rgba(238, 213, 104, 0.1), rgba(235, 153, 30, 0.1));
     
     /* Size */
     width: 250px;
     height: 35px;
   
     /* Font */
     font-size: 12px;
     
     /* Misc */
     padding: 5px;
     border-radius: 10px;
     border: 3px solid white;
     box-shadow: 0 15px 25px rgba(0,0,0,0.5);

     transform: skewX(-5deg);
}


.flash {
    animation: flash 1s infinite;
  }
  
  @keyframes flash {
    0%,
    100% {
      color: red;
      transform: scale(1.5);
    }
    50% {
      color: white;
      transform: scale(1);
    }
  }





  