body{
    overflow-x:hidden;
    overflow: hidden;
    max-height: 100vh;
    max-width: 100%;
    height: 100vh;
}

.chessContainer{
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.boardContainer {
    width:  593px;
    height: 593px;
}
.topPlayer{
    font-size: 0.8rem;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
}
.bottomPlayer{
    width: 100%;
    text-align: left;
    font-size: 0.8rem;
    margin-top: 3px;
}

/* Tablette (entre 601px et 1024px) */
@media screen and (max-width: 1024px) {
    .boardContainer {
        width: 400px;
        height: 400px;
    }
}

/* Téléphone (600px et moins) */
@media screen and (max-width: 600px) {
    .boardContainer {
        width: 305px;
        height: 305px;
    }
}

#myBoard{
    width: 100%;
    height: 100%;
}
#chessboard-63f37 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#board-b72b1{
        width: 100% !important;
        height: 100% !important;
}

.clearfix-7da63 {
    clear: both;
}

.board-b72b1 {
    box-sizing: content-box;
}

.square-55d63 {
    float: left;
    position: relative;

    /* disable any native browser highlighting */
    -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
                user-select: none;
}

.white-1e1d7 {
    z-index: 0;
    background-color: #ffffff;
}

.black-3c85d {
    z-index: 0;
    background-size: 6% 6%;
    background-image: repeating-linear-gradient(45deg, #0000006c 0, #00000042 0.3px, #ffffff 0, #ffffff 50%);
}

.piece-417db {
    filter: drop-shadow(0px 0px 1px #747474);
    transition: filter 0.2s ease;
    
  }

.notation-322f9 {
    cursor: default;
    font-size: 10px;
    position: absolute;
    display: none;
}

.alpha-d2270 {
    bottom: -40%;
    left: 50%;
    text-align: center;
    width: 100%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
}

.numeric-fc462 {
    left: -30%;
    top: 50%;
    text-align: center;
    -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
}

#promotion-modal {
    user-select: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display:flex; 
    position: relative; 
    transform: translate(0, -100%); 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: #0000002f;
}
#promotion-modal.show {
    opacity: 1;
    pointer-events: auto;
}

#promotion-pieces {
    display:flex; 
    gap:10px; 
    width: 100%;
    justify-content:center;
}
.promotion-piece{
    cursor:pointer; 
    width: 12.5%;
}

#gameover-modal {
    user-select: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    display:flex; 
    position: relative; 
    transform: translate(0, -200%); 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    width: 100%;
    height: 100%;
    background-color: #0000002f;
    z-index: 6; 
}
#gameover-modal.show {
    opacity: 1;
    pointer-events: auto;
}
#gameover-container{
    background: rgb(255, 255, 255); 
    /* padding: 20px;  */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    width: 100%;
    height: 7rem;
}

#gameover-message{
    font-size: 1.3rem; 
}
#gameover-winner{
    font-size: 0.9rem; 
    margin-bottom: 10px;
    font-style: italic;
}

#reset-button{

    width: 4rem;
    background-color: #ffffff; 
    color: #000000; 
    border: 1px solid #000000; 
    padding: 0.3rem;
    cursor: pointer;
    font-size: 0.8rem; 
}
