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

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #1e1e2f;
    color: #f0f0f0;
    user-select: none; /* Prevents text selection during frantic clicking */
}

.game-container {
    width: 90%;
    max-width: 400px;
    background-color: #2a2a40;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.header {
    font-size: 1.5em;
    font-weight: 600;
}

#timer-bar-container {
    width: 100%;
    height: 10px;
    background-color: #1e1e2f;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

#timer-bar {
    height: 100%;
    width: 100%;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 0.1s linear, background-color 0.5s;
}

#word-display {
    font-size: 4em;
    font-weight: 700;
    margin: 20px 0;
    text-transform: uppercase;
    transition: transform 0.1s ease;
}

#choices-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.choice-btn {
    padding: 15px;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.2s;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.choice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

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

#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(42, 42, 64, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    z-index: 10;
}

#play-again-btn {
    margin-top: 20px;
    padding: 10px 25px;
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    border-radius: 8px;
    border: none;
    background-color: #4caf50;
    color: white;
    cursor: pointer;
}

.hidden {
    display: none;
}