/* CSS for pawn promotion dialog */
.promotion-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    padding: 10px;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.promotion-options {
    display: flex;
    justify-content: center;
}

.promotion-row {
    display: flex;
    flex-direction: row;
}

.promotion-cell {
    margin: 5px;
    cursor: pointer;
}

/* Ensure these styles don't override the main chess piece styles */
.promote {
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    z-index: 999;
}

.promote:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Board overlay during promotion */
.board-container {
    position: relative;
}

.board-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}
