/* custom fonts */
@font-face{
    font-family: "Courier";
    src:url(fonts/CourierPrime-Regular.ttf) format('truetype');
    font-weight: 500;
    font-style: normal;
}

body{
    background-color: #0f1011;

    margin: 0 auto;
    min-width: 880px;
    max-width: 900px;
}

/* main container styles */
.container{
    display: flex;
    flex-direction: row;

    margin: 25px 10px;
}

.dealerBox{
    display: flex;
    flex-direction: column;

    width: 24%;
    padding: 15px 20px;
    margin: 15px auto;

    background-color: #fff;

    height: 420px;
    text-align: center;
}

.subbox{
    display: flex;
    flex-direction: column;

    margin: auto 0;
    text-align: center;
    justify-content: center;
}

.subbox i{ margin-top: 12px; }

#sprite{ height: 180px; }

.gameplay{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    width: 55%;
    height: 430px;
    padding: 10px 20px;

    margin: auto;

    background-color: #fff;
}

#homepage{
    display: block; 
    margin: 0 auto; 
    text-align: center; 
    color: #22d
}

#homepage:hover{ color: #44f }

/* dealer box */
.header{
    display: flex;

    text-align: left;
    height: 35px;
    width: 100%;
    margin-bottom: 10px;
    align-self: flex-start;

    user-select: none;
}

.header p{
    margin: 0;
}

.header p:first-child{
    margin: 0;

    display: inline-block; 
    border: 2px solid black; 
    padding: 5px; 
    border-radius: 5px;
    background-color: #333;

    font-family: 'Courier';
    color: #fff;
}

.header p:last-child{
    line-height: 35px; 
    margin-left: auto; 
    color: #00f; 
    text-decoration-line: underline;
}

.header p:last-child:hover{
    cursor: pointer;
}

#net{
    line-height: 35px; 
    margin-left: 5px;

    transition: opacity 0.5s ease-out;
}

#zeros{
    margin-left: 1px;

    color: #666;
}

.disabled{
    user-select: none;
    cursor: default !important;
    text-decoration-line: none !important;
    color: #666 !important;
}

.footer{
    display: flex;

    width: 158px;
    height: 35px;
    margin: 10px auto;

    align-self: flex-end;
    user-select: none;
}

.footer p{
    margin: 0;
    line-height: 30px;

    
}

.footer p:first-child{
    text-align: left;
}

#start, #confirm{
    text-decoration-line: underline;
    color: blue;

    cursor: pointer;
}

#start{
    display: inline-block;
    text-align: center;
    line-height: 18px;
    width: 90px;

    border: 2.9px solid #696;
    border-radius: 5px;
    background-color: #cec;
    padding: 3px 10px;
    padding-bottom: 5px;
    color: #22c;
}

#start:hover{
    color: #33f;
}

#bet{
    display: inline-block;
    text-align: center;
    line-height: 20px;
    margin-left: -4px;
    width: 30px;
    font-size: 13px;

    background-color: #feb;
    border: 2px solid #986;
    border-left: none;
    padding: 0 4px;
}

.betButtons{
    display: flex;
    flex-direction: column;

    margin-top: -43px;
    margin-left: -31px;
}

.betButtons p{
    width: 20px;
    margin: 18px 2px;
    font-size: 16px;
    line-height: 24px;

    transition: opacity 0.16s ease-out;
}

.betButtons p:hover{ color: #888; }

#betMinus{ margin-left: 0.5px }

.betButtons p:hover{ cursor: pointer }

/* gameplay */
#info{
    position: absolute;
    display: flex;
    justify-content: center;
    text-align: center;

    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    user-select: none;

    
    transition: opacity 0.1s ease-out;
}

#info table{
    width: 40%;
}

#info table, th, td{ 
    border: 1px solid #fff;
    border-collapse: collapse;

    font-weight: normal;
}

#info th:first-child, .tableHeader{ font-weight: bold; }

.tableHeader{
    padding: 10px 0;
}

.Dhand, .Phand{
    display: flex;

    height: 160px;
    width: 100%;
    margin: auto 0;
}

.hand:first-child{ margin-top: 10px }
.hand:last-child{ margin-bottom: 10px }

.cardDivider{ 
    text-align: center; 
    transition: opacity 0.2s ease-out;
    margin: 15px 0;
}

.card{
    display: block;

    height: 110px;
    width: 70px;
    margin: auto;

    font-size: 20px;
    text-align: center;
    line-height: 110px;

    border-radius: 3px;

    opacity: 0;
    user-select: none;
}

.card img{ width: 70px; }

.Dhand .card{ margin-bottom: 15px; }
.Phand .card{ margin-top: 15px; }

.handDisplay{
    position: relative;
    height: 160px;

    border: 5px solid #c9eeff;
    border-radius: 5px;

    transition: opacity 0.2s ease-out;
}

.handDisplay:first-child{ border: 5px solid mistyrose; }

.handText{
    position: absolute;
    right: 15px;
    margin: 0;

    opacity: 0;
}

#dealerHand{ top: 4.5px }
#playerHand{ bottom: 4.5px; }

.selected{
    background-color: #fcecd0 !important;
    box-shadow:inset 0px 0px 0px 3px #f7e9bc;

    font-weight: bold !important;
}