#gameDiv {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: 100vw;
    max-height: 100vh;
}

.game-container {
    display: none;
    position: relative;
    flex-direction: row;
    justify-content: center;
    animation-name: appearAnimation;
    animation-duration: 1s;
}

.stats {
    border: 1px solid black;
    /*avoid firefox gradient bug*/
    background-size: 100% 101%;
    margin-left: 1%;
    margin-right: 1%;
    border-radius: 20px;
    width: 20vw;
    font-size: 2vw;
}

#whitePlayer {
    background-image: linear-gradient(black, grey, white);
}

#whitePlayer th {
    color: whitesmoke;
}

#blackPlayer {
    background-image: linear-gradient(white, grey, black);
}

#blackPlayer th {
    color: rgb(25, 20, 25);
}

.stats th{
    height: 5vh;
}

.stats td {
    text-align: center;
    padding-top: min(20vh, 20vw);
}

.stats * {
    margin-left: auto;
    margin-right: auto;
}

.playing {
    text-decoration: underline;
}

.not-playing {
    text-decoration: none;
}

.actionButton-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left: 10vw;
    margin-right: 10vw;
    height: 10vh;
}

.actionButton {
    margin-top: 1%;
    margin-left: 1%;
    margin-right: 1%;
    flex: 1 1 0px;
    height: 8vh;
    text-align: center;
    border: 1px solid black;
    background-color: blueviolet;
    color: wheat;
    font-size: 2.0vw;
    border-radius: 10px;
    animation-name: appearAnimation;
    animation-duration: 2s;   
    cursor: pointer;
    transition-property: margin-top, box-shadow, background-color;
    transition-duration: 0.5s;
    box-shadow: 0 0.5vh black;
}

.actionButton:hover{
    margin-top: calc(1% + 0.5vh);
    background-color: rebeccapurple;
    box-shadow: none;
}

#canvas {
    border: 1px solid black;
    border-radius: 15px;
}