/* ============================================================
   Shared chess styles
   Palette, reset, page body, navigation, and the centered panel.
   Used by every chess page (board and match front page).
   ============================================================ */

/* Shared palette, matching the other games in this folder */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #1abc9c;
    --text-color: #ecf0f1;
    --danger-color: #e74c3c;

    /* Board-specific colors */
    --light-square: #f0d9b5;
    --dark-square: #b58863;
    --selected-square: #f7ec74;   /* highlight for the picked-up piece */
    --legal-move: rgba(26, 188, 156, 0.55); /* dot shown on reachable squares */
    --check-square: #e74c3c;       /* king square when in check */

    /* One square edge length; the board is 8 of these wide */
    --square-size: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* The centered dark panel that frames a page's main content */
.game-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* top-right navigation buttons, matching the eyesz game */
.nav {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.nav a {
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--secondary-color);
    border-radius: 7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.nav a:hover {
    color: #fff;
    border-color: var(--accent-color);
}
