@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121212; /* Dark Background */
    color: #e0e0e0;
}

.container {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    width: 500px;
    text-align: center;
}

h1 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 1px;
}

/* --- TIMER SECTION --- */
.timer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a2a2a;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
}

.timer {
    font-size: 1.5rem;
    font-weight: 700;
    color: #888;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.active-timer {
    color: #00ff88; /* Neon Green */
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.1);
}

#turn-status {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- BOARD AREA --- */
.board {
    width: 400px;
    margin: 0 auto 20px auto;
    border: 5px solid #333;
    border-radius: 5px;
}

/* --- INPUTS & BUTTONS --- */
.room-setup {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    outline: none;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:active {
    transform: scale(0.95);
}

/* Button Variants */
#join-btn { background: #007bff; color: white; }
#play-comp-btn { background: #6c5ce7; color: white; }
.play-again { background: #ff4757; color: white; }
.undo-btn, .redo-btn { background: #2f3542; color: white; }
.set-pos, .flip-board { background: #2f3542; color: white; }

/* Button Container */
.buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.move-history {
    margin-top: 15px;
    background: #2a2a2a;
    color: #aaa;
    padding: 10px;
    border-radius: 5px;
    height: 80px;
    overflow-y: auto;
    font-size: 0.85rem;
    text-align: left;
    border: 1px solid #444;
}

/* --- HIGHLIGHTING --- */
.highlight-move {
    box-shadow: inset 0 0 3px 3px rgba(255, 255, 0, 0.7);
}