body {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    padding: 1rem;
}

h1 {
    margin-bottom: 20px;
}

#chessboard {
    display: grid;
    grid-template-columns: repeat(8, minmax(40px, 1fr));
    grid-template-rows: repeat(8, minmax(40px, 1fr));
    width: 90vmin;
    height: 90vmin;
    margin: 0 auto;
    border: 2px solid #fff;
}

.square {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5vmin;
    cursor: pointer;
}

.white {
    background-color: #000000;
}

.black {
    background-color: #b58863;
}

.selected {
    outline: 3px solid yellow;
}

.white-piece {
    color: white;
}

.black-piece {
    color: rgba(98, 128, 148, 0.745);
}

#turn {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 1.2rem;
    }

    #chessboard {
        width: 95vmin;
        height: 95vmin;
    }

    .square {
        font-size: 4vmin;
    }
}
.square:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    z-index: 1;
}
/* .highlight {
    outline: 3px solid rgb(234, 255, 0);
    box-shadow: 0 0 18px rgb(234, 255, 0);
}
.square.drag-over {
    outline: 3px dashed rgb(234, 255, 0);
    box-shadow: 0 0 18px rgb(234, 255, 0);
} */

.dragging {
    opacity: 0.5;
    scale: 1.2;
}
.capture-highlight {
    outline: 3px solid crimson;
    box-shadow: 0 0 12px crimson;
    z-index: 2;
}
