@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}
body{
    background-color: #262a2b;
    color: #fff;

    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

img.card{ /* 726 : 500 */
    aspect-ratio: 1/1;
    object-fit: contain;
    height: 200px;
    width: 135px;
    margin: 0 -3rem 0 0;
    cursor: context-menu;
}
img.card:last-child{
    margin: 0;
}
.cards{
    height: 200px;
    margin: .5rem 0;
}
h2{
    margin-top: .5rem;
}

.result{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: drop-shadow(1.5px 1.5px 6px #000);
    text-transform: uppercase;
    text-align: center;
    font-size: 100px;
    animation: pop 0.5s ease-in-out;
}

.won{
    color: #0f0;
}

.lost{
    color: #f00;
}

.blackjack{
    color: #ff0;
}

.draw{
    color: #fff;
}

@keyframes pop{
    0%{
        scale: 0.5;
        transform: translate(-100%, -50%);
    }
    100%{
        scale: 1;
        transform: translate(-50%, -50%);
    }
}

button{
    border-radius: 5px;
    border: none;
    height: 30px;
    width: 60px;
    margin: .5rem;
    color: #fff;
    background: #6b6b6b;
    box-shadow: 10px 10px 10px #202020,
        inset 2.5px 2.5px 2.5px #999;
    cursor: pointer;
}
button#resetBTN{
    width: 140px;
}
#reset{
    display: none;
}

.gray{
    filter: grayscale(1) opacity(.25);
}

@media screen and (max-width: 500px){
    img.card{
        margin: 0 -6.5rem 0 0;
    }
}