@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #1f2937; /* Dark Gray Background */
}

/* CANVAS STYLE */
#chess-canvas {
    background-color: #fef3c7; /* Light Sand */
    border-radius: 4px;
    max-width: 600px;
    max-height: 600px;
    width: 90vw;
    height: 90vw;
    display: block;
}

/* BUTTONS */
.control-btn {
    padding: 0.5rem 1rem;
    font-weight: 700;
    border-radius: 0.75rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.control-btn:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}
.control-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* --- LEGEND PANEL STYLES --- */
.legend-panel {
    width: 100%;
    max-width: 250px;
    padding: 1rem;
    border-radius: 0.75rem;
    border-top: 4px solid; /* Color defined in HTML classes */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 0.5rem;
}

/* --- BANNER STYLING --- */
#bannerOverlay {
    backdrop-filter: blur(4px);
}

#bannerText {
    text-shadow: 0 0 15px currentColor;
    animation: pulse 1.5s infinite alternate;
}

/* Color themes for the banner text */
.banner-win { color: #34d399; }
.banner-lose { color: #f87171; }
.banner-draw { color: #fcd34d; }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 1; }
}
