body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.game-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 1200px;
}

.controls {
    text-align: center;
    margin-bottom: 20px;
}

.controls button {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d);
    border: none;
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.controls button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.game-info {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.keyboard-hint {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
    font-style: italic;
}

.multi-board-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.board-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-header {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.board {
    background: #1a237e;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 3px solid #3949ab;
    transition: all 0.3s ease;
    min-width: 250px;
}

.active-board {
    border-color: #4caf50;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    transform: scale(1.02);
}

.inactive-board {
    filter: grayscale(70%);
    opacity: 0.6;
    transform: scale(0.98);
}

.completed-board {
    filter: grayscale(50%);
    opacity: 0.8;
    border-color: #9e9e9e;
}

.column-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.column-btn {
    width: 35px;
    height: 30px;
    margin: 0 1px;
    background: linear-gradient(45deg, #4caf50, #8bc34a);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 11px;
}

.column-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(45deg, #66bb6a, #aed581);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.column-btn:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
}

.column-btn.highlight {
    animation: pulse-key 0.3s ease;
}

@keyframes pulse-key {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background: linear-gradient(45deg, #ffeb3b, #ffc107); }
    100% { transform: scale(1); }
}

.grid {
    display: grid;
    grid-template-columns: repeat(7, 35px);
    grid-gap: 2px;
	align-items: right;
}

.cell {
    width: 35px;
    height: 35px;
    background: #e8eaf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cell.player-o {
    background: radial-gradient(circle, #ff6b6b, #ff5252);
    color: white;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.cell.player-x {
    background: radial-gradient(circle, #ffd93d, #ffcc02);
    color: #333;
    box-shadow: 0 3px 10px rgba(255, 217, 61, 0.4);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.cell.winning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.board-result {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    height: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.board-result.win {
    color: #4caf50;
}

.board-result.lose {
    color: #f44336;
}

.board-result.tie {
    color: #ff9800;
}

.overall-score {
    text-align: center;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.score-display {
    display: flex;
    justify-content: space-around;
    font-size: 16px;
    font-weight: bold;
}

.player-score {
    color: #4caf50;
}

.ai-score {
    color: #f44336;
}

.tie-score {
    color: #ff9800;
}

.difficulty-selector {
    margin: 10px 0;
}

.difficulty-selector label {
    margin-right: 15px;
}

.difficulty-selector select {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.loading {
    display: none;
    color: #ffd93d;
    font-weight: bold;
    animation: blink 1s infinite;
}
.game-over-message {
	    font-size: 50px;
}

.ai-lastmove {
    margin-top: 5px;
    font-size: 14px;
    color: white;
    text-align: center;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Responsive design */
@media (max-width: 768px) {
    .multi-board-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .board {
        min-width: 250px;
    }
    
    .score-display {
        flex-direction: column;
        gap: 10px;
    }
}