:root {
    --light-square: #f0d9b5;
    --dark-square: #b58863;
    --green: #90ee90;
    --dark-green: #006400;
    --highlight: #add8e6;
    --knight-color: #000000;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.size-controls, .action-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

input[type="number"] {
    width: 60px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

#status {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background-color: #eee;
    border-radius: 4px;
    font-weight: bold;
}

#board-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#board {
    display: inline-grid;
    gap: 2px;
    padding: 5px;
    background-color: #34495e;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cell {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cell-coords {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 9px;
    opacity: 0.7;
}

.knight-symbol {
    font-size: 30px;
}

.move-number {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 12px;
}

.info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.info h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .cell {
        width: 45px;
        height: 45px;
        font-size: 10px;
    }
    
    .knight-symbol {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .cell {
        width: 36px;
        height: 36px;
        font-size: 9px;
    }
    
    .knight-symbol {
        font-size: 18px;
    }
    
    .controls {
        gap: 10px;
    }
} 