body {
    font-family: serif;
    color: white;
    background-color: forestgreen;
    font-size: 24px;
    font-weight: bold;
}

#bigdiv {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.card {
    background-color: white;
    border-style: solid;
    border-color: black;
    border-radius: 10px;
    border-width: 3px;
    padding: 7px;
    height: 140px;
    width: 95px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    font-size: 36px;
    font-weight: bold;
    margin: 5px 5px 5px 5px;
    flex-shrink: 0;
    transition-duration: 0.4s;
    animation-name: grow;
    animation-fill-mode: none;
}

.redcard {
    color: red;
}

.blackcard {
    color: black;
}

.card:hover {
    transform: scale(1.1, 1.1);
    cursor: pointer;
}

.toprank {
    text-align: left;
    vertical-align: top;
}

.suit {
    text-align: center;
    vertical-align: middle;
    font-size: 45px;
}

.bottomrank {
    text-align: right;
    vertical-align: bottom;
}

.hand {
    display: flex;
    flex-direction: row;
    overflow: auto;
    flex-grow: 1;
    align-items: center;
    border-radius: 10px;
    background-color: darkgreen;
    box-shadow: 0px 0px 10px black inset;
    height: 180px;
    max-width: 100%;
    padding: 0px 5px;
}

#playerhand {
    justify-content: left;
}

#dealerhand {
    justify-content: right;
    flex-direction: row-reverse;
}

.hand::-webkit-scrollbar {
    display: none;
}

.handbox {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buttonbox {
    display: flex;
    line-height: 40px;
    flex-grow: 0;
}

.tinybox {
    display: flex;
    width: calc(100% / 3);
    gap: 20px;
}

.gapfiller {
    flex-grow: 1;
    color: white;
}

.label {
    transform-origin: center;
    height: 140px;
    width: 95px;
    background-color: black;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle {
    transform-origin: inherit;
    height: 45px;
    width: 45px;
    border-style: solid;
    border-color: ghostwhite;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-width: 7px;
}

.playerbutton {
    height: 40px;
    width: 80px;
    font-family: serif;
    color: white;
    background-color: crimson;
    font-size: 24px;
    font-weight: bold;
    border-style: solid;
    border-radius: 5px;
    border-color: black;
    transition-duration: 0.4s;
    box-shadow: 2.5px 2.5px 10px black;
}

.playerbutton:hover:enabled {
    transform: scale(1.1, 1.1);
    cursor: pointer;
    transition-duration: 0.4s;
}

.playerbutton:active {
    color: black;
    background-color: white;
    transition-duration: 0.1s;
}

.playerbutton:disabled {
    color: darkgreen;
    background-color: darkgreen;
    border-color: darkgreen;
    transition-duration: 0.4s;
    box-shadow: 0px 0px;
}

.sign {
    height: 40px;
    width: 110px;
    font-family: serif;
    color: white;
    background-color: black;
    font-size: 24px;
    font-weight: bold;
    border-style: solid;
    border-radius: 7px;
    border-color: black;
    transition-duration: 0.4s;
}

.sign:hover:enabled {
    transform: scale(1.1, 1.1);
    cursor: pointer;
    transition-duration: 0.4s;
}

.sign:active {
    color: black;
    background-color: white;
    transition-duration: 0.1s;
}

.sign:disabled {
    display: none;
}

.name {
    transition-duration: 0.4s;
    overflow: auto;
}

.name::-webkit-scrollbar {
    display: none;
}

.name:hover {
    transform: scale(1.1, 1.1);
    cursor: pointer;
}

#playervalue {
    min-width: 100px;
}

#bigresult {
    color: yellow;
    text-align: center;
    font-family: serif;
    font-size: 85px;
    font-weight: bold;
    animation-name: grow;
    animation-duration: 1s;
    animation-fill-mode: none;
    background-color: forestgreen;
    border: none;
    transition-duration: 0.4s;
    flex-grow: 0;
    text-shadow: 5px 5px 10px black;
}

#bigresult:disabled {
    animation-fill-mode: both;
}

#bigresult:hover:enabled {
    color: white;
    transition-duration: 0.4s;
    transform: scale(1.1, 1.1);
}

.tinyresult {
    color: yellow;
    justify-content: center;
    font-weight: bold;
    animation-name: grow;
    animation-duration: 1s;
    animation-fill-mode: both;
    text-shadow: 5px 5px 10px black;
}

.stat {
    display: flex;
    flex-grow: 0;
    flex-direction: column;
    margin-right: 5px;
    justify-content: space-evenly;
    animation-duration: 1s;
}

.ministat {
    animation-duration: 1s;
    animation-name: grow;
}

@keyframes grow {
    from {
        transform: scale(0, 0);
    } to {
        transform: scale(1, 1);
    }
}

@keyframes shrink {
    from {
        transform: scale(1, 1);
    } to {
        transform: scale(0, 0);
    }
}

.statboard {
    display: flex;
    max-height: 100%;
    min-width: 90px;
    padding: 0px 10px;
    border-radius: 10px;
    background-color: crimson;
    margin-right: 10px;
    border-style: solid;
    border-color: black;
    border-width: 3px;
    animation-name: grow;
    animation-duration: 1s;
}

@media only screen and (max-width: 660px) {
    #bigresult {
        font-size: 60px;
    }
}

@media only screen and (max-height: 660px) {
    #bigresult {
        font-size: 60px;
    }
}