:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --container-bg: #1e1e1e;
    --btn-bg: #333333;
    --btn-hover: #444444;
    --primary: #4CAF50;
    --red: #e74c3c;
    --blue: #3498db;
    --green: #2ecc71;
    --yellow: #f1c40f;
    --orange: #e67e22;
    --purple: #9b59b6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    background-color: var(--container-bg);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

h1 {
    margin-bottom: 10px;
    font-size: 2rem;
    color: var(--primary);
}

.instructions {
    margin-bottom: 20px;
    color: #aaaaaa;
    font-size: 1rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

#progress-bar {
    width: 100%;
    height: 100%;
    background-color: var(--green);
    transition: width 0.05s linear, background-color 0.3s ease;
}

.word-display {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 40px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.color-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.color-btn {
    background-color: var(--btn-bg);
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-transform: capitalize;
}

.color-btn:hover {
    background-color: var(--btn-hover);
    transform: translateY(-2px);
}

.color-btn:active {
    transform: translateY(0);
}

.color-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.game-over, .start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.game-over h2 {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 10px;
}

.game-over p {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.action-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.action-btn:hover {
    background-color: #43a047;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}
