body {
    color: #b4b4b4;
    background-color: #3c3c3c;
    background-image: url("sprite/colorCard.webp");
    background-size: 80px;
    margin: 0;
    user-select: none;
}
/*--------------------SUCCESS---------------------*/
#success {
    width: 400px;
    padding: 0 10px;
    position: absolute;
    right: 50px;
    box-sizing: border-box;
}
.successClose {
    top: -140px;
    transition: 0.8s ease-in;
    opacity: 0;
}
.successOpen {
    top: 70px;
    transition: 0.8s ease-out;
    opacity: 1;
}
#success-wrap {
    display: flex;
    align-items: center;
    padding: 16px;
    border-radius: 15px;
    box-shadow: 0 1px 4px 3px rgba(0, 0, 0, 0.3);
    background-color: #fff;
    box-sizing: border-box;
}
.success-logo {
    display: flex;
    align-items: center;
}
.success-logo img {
    width: 64px;
    height: 64px;
}
.success-text {
    padding-left: 16px;
}
.success-text h3 {
    margin-top: 0;
    margin-bottom: 8px;
}
.success-text p {
    margin: 0;
}
/*--------------------SUCCESS---------------------*/
/*--------------------NAVIGATION--------------------*/
#nav_bar {
    background-color: #333;
    width: 100%;
    box-shadow: 0 5px 10px #2d2d2d;
    position: fixed;
    z-index: 5;
}
#nav_bar hr {
    width: 80%;
    border: 1px solid rgb(54, 93, 93);
}
#nav_wrap {
    display: flex;
    margin: auto;
    max-width: 700px;
}
.list {
    width: 130px;
    padding-bottom: 8px;
    background-color: darkslategrey;
    border-radius: 0 0 10px 10px;
    position: absolute;
    display: none;
    overflow: hidden;
    z-index: 5;
}
.list_btn, .list div {
    padding: 8px 10px;
}
.menu:hover .list_btn {
    background-color: darkslategrey;
    cursor: pointer;
}
.menu:hover .list {
    display: block;
    cursor: pointer;
}
.list div:hover {
    background-color: #2b745b;
}
/*--------------------NAVIGATION---------------------*/
/*--------------------OPTION---------------------*/
#fade {
    position: absolute;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    background-color: #00000080;
    z-index: 10;
    display: none;
}
#fade hr {
    border: 1px solid #eee;
}
.close {
    font-family: Coiny;
    position: absolute;
    top: 8px;
    right: 16px;
    cursor: pointer;
}
.close:hover {
    color: rgb(228, 55, 55);
}
#about, #rules, #trophy {
    height: auto;
    width: auto;
    padding: 1.875em;
    display: none;
}
#about {
    text-align: center;
}
#about img {
    width: 7em
}
#total {
    display: flex;
}
.trophy-total {
    display: flex;
    flex-grow: 1;
    padding: 8px 0;
}
.trophy-total img {
    padding: 0 8px;
    width: 16px;
    height: 16px;
}
#total-right {
    justify-content: flex-end;
    padding-right: 8px;
}
#trophy-scroll {
    height: 650px;
    width: 400px;
    padding-right: 8px;
    overflow: scroll;
    overflow-x: hidden;
}
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #eee; 
}
::-webkit-scrollbar-thumb {
    background: #ccc; 
}
::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}
.trophy-wrap {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 0.5px solid lightgrey;
    background-color: #fff;
    box-sizing: border-box;
    color: #777;
}
.trophy-off {
    opacity: 0.3;
}
.trophy-on {
    opacity: 1;
}
#trophy :last-child {
    border-bottom: none;
}
.trophy-date {
    color: #b4b4b4;
    font-size: 14px;
    padding-top: 4px;
}
#game-over, #login, #custom-color {
    display: flex;
    width: auto;
    height: auto;
    padding: 40px;
}
#game-over h3 {
    text-align: center;
    color: rgb(255, 43, 43);
    font-size: 48px;
    margin: 0;
}
#game-over p {
    font-size: 20px;
    color: rgb(56, 56, 56);
    text-align: center;
}
.popup-button {
    font-size: 24px;
    color: #94c6ff;
    text-shadow: 2px 2px 4px grey;
    width: 150px;
    height: 50px;
    margin: auto;
    background-color: #479bfb;
    box-shadow: -4px -4px 0 #357ac9 inset;
    border: none;
    border-radius: 15px;
}
.popup-button:hover {
    background-color: #70b3ff;
    box-shadow: -4px -4px 0 #6094cf inset;
    cursor: pointer;
}
.popup-button:focus {
    outline: none;
}
.popup-wrap {
    display: flex;
    flex-direction: column;
}
.left-auto {
    margin-left: auto;
}
#login h3, #custom-color h3 {
    text-align: center;
    color: #666;
    font-size: 40px;
    margin: 0 0 20px 0;
}
#login input {
    padding: 10px;
    margin: 0 0 10px 0;
    border: 1px solid rgb(180, 180, 180);
    border-radius: 5px;
}
#login button, #custom-color button {
    margin-top: 15px;
}
.color-selection {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/*--------------------OPTION---------------------*/
/*--------------------BANNER---------------------*/
h1 {
    font-family: Charm;
    font-size: 60px;
    color: #92ff86;
    text-shadow: 2px 2px 0 #7dbb76;
    background-color: #62e962;
    box-shadow: -4px -4px 0 #4ba54b inset;
    border-radius: 15px;
    padding: 15px;
    margin: 40px 0;
}
/*--------------------BANNER---------------------*/
/*--------------------CARTE ZONE---------------------*/
#game_wrap {
    display: flex;
    align-items: center;
    text-align: center;
    background-color: #444;
    box-shadow: 0 0 15px 4px #2d2d2d inset;
    min-height: calc(100vh - 80px);
    width: 700px;
    padding: 40px;
    margin: auto;
}
#game_wrap > div {
    width: 100%;
}
.game_zone {
    display: flex;
    flex-direction: column;
    background-color: #659240;
    box-shadow: 4px 4px 0 #828282 inset;
    border: 1px solid #616161;
    border-radius: 15px;
    padding: 10px;
    overflow: hidden;
}
.card_zone {
    position: relative;
    height: 170px;
}
#dealer_zone, #player_zone {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 130px));
    margin: auto;
}
#card_back {
    background-image: url("sprite/backCard.webp");
    background-size: contain;
    background-position: center;
}
.card {
    position: relative;
    background-color: white;
    box-shadow: 0 0 20px 4px #c8c8c8 inset;
    border-radius: 10px;
    width: 120px;
    height: 160px;
    margin: 5px;
    z-index: 1;
}
.number {
    font-size: 30px;
    text-align: left;
    font-family: Coiny;
    color: #5a5a5a;
    margin: 4px 14px;
}
.player_name {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: absolute;
    font-size: 60px;
    font-family: Charm;
    color: #5c883b;
    width: 100%;
    height: 100%;
    margin: 0;
}
.player_name p {
    padding-right: 20px;
    margin: 0;
}
#line {
    border: 1px solid #5c883b;
    width: 100%;
    margin: 10px 0;
}
#log {
    display: flex;
    flex-direction: row;
    font-size: 18px;
    font-family: Coiny;
    color: #373737;
    background-color: #659240;
    height: 24px;
    margin: 10px 0;
}
#log div {
    width: 100%;
    height: 100%;
}
/*--------------------CARTE ZONE---------------------*/
/*--------------------BUTTON---------------------*/
#button_wrap {
    display: flex;
    justify-content: space-between;
    padding: 30px 0;
}
.game_button {
    font-size: 50px;
    text-shadow: 2px 2px 4px grey;
    border-radius: 15px;
    width: 176px;
    cursor: pointer;
}
.blue {
    color: #94c6ff;
    background-color: #479bfb;
}
.blue-down {
    box-shadow: 4px 4px 0 #828282 inset;
    padding: 20px 10px 10px 20px;
}
.blue-up {
    box-shadow: -4px -4px 0 #357ac9 inset;
    padding: 15px;
}
.blue-up:hover {
    background-color: #70b3ff;
    box-shadow: -4px -4px 0 #6094cf inset;
}
.red {
    color: #ff8d8d;
    background-color: #ff5555;
}
.red-down {
    box-shadow: 4px 4px 0 #828282 inset;
    padding: 20px 10px 10px 20px;
}
.red-up {
    box-shadow: -4px -4px 0 #bb3e3e inset;
    padding: 15px;
}
.red-up:hover {
    background-color: #ff7575;
    box-shadow: -4px -4px 0 #bb5252 inset;
}
#bet_wrap {
    display: flex;
    width: 206px;
}
.bet {
    font-size: 50px;
    color: #ffe48d;
    padding: 15px;
    background-color: #ffc955;
    text-shadow: 2px 2px 4px grey;
    cursor: pointer;
    flex-grow: 1;
}
#bet_left {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}
.bet-left-down {
    padding: 20px 10px 10px 20px;
    box-shadow: 4px 4px 0 #828282 inset;
}
.bet-left-up {
    box-shadow: -1px -4px 0 #bb8f3e inset;
}
.bet-left-up:hover {
    background-color: #ffd57c;
    box-shadow: -1px -4px 0 #bb954f inset;
}
#bet_right {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}
.bet-right-down {
    padding: 20px 10px 10px 20px;
    box-shadow: 0px 4px 0 #828282 inset, 4px 0px 0 #dba849 inset;
}
.bet-right-up {
    box-shadow: -4px -4px 0 #bb8f3e inset;
}
.bet-right-up:hover {
    background-color: #ffd57c;
    box-shadow: -4px -4px 0 #bb954f inset;
}
#hit {
    display: none;
}
/*--------------------BUTTON---------------------*/
/*--------------------FOOTER---------------------*/
#credit {
    text-align: center;
    background-color: #333;
    width: 100%;
    padding: 8px;
    position: fixed;
    bottom: 0;
    z-index: 1;
}
/*--------------------FOOTER---------------------*/
/*--------------------MEDIA SCREEN---------------------*/
@media screen and (max-width: 768px) {
    .menu {
        width: 100%;
        text-align: center;
    }
    .list_btn, .list div{
        padding: 20px 10px;
    }
    .list {
        left: 0;
        width: 100%;
    }
    h1{
        font-size: 28px;
        padding: 10px;
        margin: 10px 0;
    }
    #game_wrap {
        width: auto;
        padding: 58px 10px 22px 10px;
        margin: 0;
    }
    .card_zone {
        height: 150px;
    }
    .player_name p {
        padding-right: 5px;
        font-size: 46px;
    }
    .card {
        width: 100px;
        height: 140px;
        margin: 5px;
    }
    #log {
        flex-direction: column;
        height: 80px;
    }
    #button_wrap {
        padding: 0 0 10px 0;
    }
    #button_wrap div {
        font-size: 24px;
    }
    #stand {
        margin: 0 10px;
    }
    #credit {
        font-size: 10px;
    }
    #success {
        width: 100%;
        padding: 0 10px;
        right: 0;
    }
    #success-wrap {
        width: 100%;
        padding: 8px;
    }
    .success-logo img {
        width: 28px;
        height: 28px;
        padding-left: 8px;
    }
    .success-text h3 {
        font-size: 16px;
        margin-bottom: 4px;
    }
    .success-text p {
        font-size: 14px;
    }
    #trophy {
        max-width: 80%;
    }
    #trophy-scroll {
        height: 60vh;
        width: 100%;
        padding-right: 2px;
    }
    .trophy-date {
        font-size: 12px!important;
    }
}