.blacksquare {
    background-color: brown;
}

.whitesquare {
    background-color: burlywood;
}

.chessboard {
    display: inline-flex;
    flex-direction: column-reverse;
    border: 5px #B58863 solid;
    height: auto;
    width: auto;
    position: relative;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.row {
    display: flex;
    flex-direction: row;
}

.square {
    display: flex;
    overflow: hidden;
    height: 10vmin;
    width: 10vmin;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor : pointer
}

.chessPiece {
    height: 10vmin;
    width: 10vmin;
    font-size: 9.3vmin;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whitePiece {
    color: #F0F0F0;
}

.blackPiece {
    color: black;
}

.selectedSquare, .selectedPieceNewSquare, .oppositionPieceInitialSquare {
    background-color: rgb(183, 148, 250);
}

.game-end-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid black;
    padding: 20px;
    font-size: 24px;
}

.promotion-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid black;
    padding: 20px;
    font-size: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.promotion-option {
    cursor: pointer;
    margin: 5px 0;
}

#new-game-btn {
    margin: 10px;
    background-color: rgb(91, 163, 127);
    border-radius: 5px;
    padding: 5px;
    font-weight: 600;
}

.chessboard .chessPiece {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* Internet Explorer/Edge */
    user-select: none;         /* Non-prefixed version, currently supported by Chrome and Opera */
}

body {
    background-color: rgb(80, 142, 201);
    margin: 0;
    padding: 0;
}

.container2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}