.chess h1{
    font-family: monospace;
    margin-bottom: 100px;
}
.chess .board {
    display: grid;
    grid-template-columns: repeat(8, calc(100%/8));
    grid-template-rows: repeat(8, calc(100%/8));
    width: 400px;
    height: 400px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1/1;
    border-radius: 5px;
    border: 3px dashed #555;
    overflow: hidden;
}

.chess .cell {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 1s background;
}

.chess .cell:hover{
    cursor:pointer;
}

.chess .black {
    background-color: #769656;
}

.chess .white {
    background-color: #eeeed2;
}

#chess_count{
    font-size: 35px;
    font-family: monospace;
}

.chess .cross {
    color: red;
    font-weight: bold;
    font-family: monospace;
    font-size: 25px;
}

.chess .dot-content {
    font-size: 65px;
    display: block;
    color: black;
    transform: translate(-50%, -50%);
}

.chess .target {
    background: rgba(255, 255, 0, .3);
}

.chess .dot {
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: top 0.25s ease, left 0.25s ease;
    z-index: 999;
    transform: translate(0, 0);
}


.chess .center{
    display: flex;
    flex-direction: column;
}

.chess .center *{
    margin-right:auto;
    margin-left:auto;
}

.chess .center button{
    margin-bottom: 20px;
    padding: 20px;
    background-color: #eeeed2;
    color: black;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.chess .center button:hover{
    cursor:pointer;
    background-color: #769656;
    color: #eeeed2;
}

#chess_launch{
    margin-bottom: 20px;
}

#chess_launch{
    padding: 20px;
    background-color: #eeeed2;
    color: black;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#chess_launch:hover{
    cursor:pointer;
    background-color: #769656;
    color: #eeeed2;
}

.chess .center .chess_message{
    font-family: monospace; 
    margin-bottom: 75px;
}


.chess .chess_example{
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
    margin-top: 75px;
}

#chess_message{
    font-family: monospace; 
}

@media only screen and (min-width: 620px){
.chess .board {
    width: 600px;
    height: 600px;
}

.chess .dot-content {
    font-size: 90px;
}

.chess .cross {
    font-size: 50px;
}

#chess_count{
    font-size: 50px;
}

}
