@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

body {
    background: #354936;
    margin: 0;
    padding: 20px;
    font-family: 'Nunito', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.checkers-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.title {
    text-align: center;
    color: #f0f0f0;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#board {
    display: flex;
    margin-right: 20px;
}

.checkers-board {
    background: #fff;
    width: 500px;
    height: 500px;
    display: flex;
    flex-wrap: wrap;
    border: #C4A484 25px solid;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.checkers-grid {
    position: relative;
    width: 12.5%;
    height: 12.5%;
    cursor: pointer;
}

.dark-square {
    background: #689f6d;
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 2px);
}

.light-square {
    background: #f0e6c5;
}

.checkers-piece {
    top: 10%;
    left: 10%;
    position: relative;
    width: 80%;
    height: 80%;
    border-radius: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2),
        inset 0 5px 8px rgba(0, 0, 0, 0.2);
}

.checkers-piece-red {
    background: #b22222;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.3), inset 0 -5px 8px rgba(0, 0, 0, 0.2);
}

.checkers-piece-blue {
    background: #fdf5e6;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.9), inset 0 -5px 8px rgba(0, 0, 0, 0.2);
}

.checkers-grid.highlight {
    cursor: pointer;
}

.checkers-grid.highlight::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    border: 3px dashed #ffd700;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 99;
}

.checkers-piece.king {
    border: 2px solid gold;
    box-shadow: 0 0 10px gold;
}

.game-info {
    width: 500px;
    height: 500px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.notation-title {
    font-size: 1.8em;
    font-weight: bold;
    color: #234;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid #345;
    padding-bottom: 5px;
}

.notation-container {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notation-container h3 {
    margin: 0 0 10px 0;
    color: #495057;
    font-size: 1.1em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.move-counter {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 10px;
    padding: 5px;
    background: #e9ecef;
    border-radius: 4px;
}

.moves-list {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px;
    background: white;
    max-height: 200px;
}

.move-record {
    padding: 5px 8px;
    margin: 2px 0;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.move-record.red {
    background: #ffe6e6;
    border-left: 3px solid #dc3545;
}

.move-record.blue {
    background: #e6f3ff;
    border-left: 3px solid #007bff;
}

.move-number {
    font-weight: bold;
    color: #495057;
    margin-right: 8px;
}

.move-notation {
    color: #212529;
}

.game-status {
    margin-top: 10px;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    font-size: 0.9em;
    color: #856404;
}

.moves-list::-webkit-scrollbar {
    width: 6px;
}

.moves-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.moves-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.moves-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: auto;
    padding-top: 15px;
}

.new-game {
    padding: 10px 20px;
    background-color: #345;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.new-game:hover {
    background-color: #234;
    transform: translateY(-2px);
}