body {
    margin: 0;
    font-family: sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
}

.chess-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 10px; */
    max-width: 800px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.player {
    display: flex;
    align-items: center;
}

.player .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #888;
}

.player .info {
    display: flex;
    flex-direction: column;
}

.player .name {
    font-weight: bold;
}

.timer {
    color: #ffa500;
}

.board-container {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 12px;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chess-board {
    width: 100%;
    height: 100%;
    touch-action: none;
}

.controls {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.controls button {
    flex: 1 1 40%;
    padding: 10px;
    font-size: 16px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
}

.controls button:disabled {
    opacity: 0.4;
}

.footer {
    margin-top: 10px;
    width: 100%;
    text-align: center;
}

.full-version {
    padding: 10px;
    background-color: #0066cc;
    color: white;
    border: none;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
}

.move-history {
    width: 100%;
    max-height: 100px;
    overflow-y: auto;
    background-color: #222;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
}

.move-text {
    white-space: pre-wrap;
    word-wrap: break-word;
    user-select: text;
    cursor: text;
}