body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
}

.container {
    background-color: white;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;

    width: 90%;
    max-width: 600px;

    /* New styles for fixed positioning */
        position: fixed;
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
}

.controls button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#startButton {
    background-color: #4CAF50;
    color: white;
}

#resetButton {
    background-color: #f44336;
    color: white;
}

#nameInput {
    width: calc(100% - 20px);
    padding: 10px;
    margin-top: 1em;
    font-size: 1.2em;
    border: 2px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#nameInput.correct {
    background-color: #d4edda;
}

#nameInput.incorrect {
    background-color: #f8d7da;
}

#namesTable {
    width: 100%;
    margin-top: 2em;
    border-collapse: collapse;
}

#namesTable th,
#namesTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;


    
}

/* ... existing styles ... */
.input-group {
    display: flex;
    gap: 10px;
    margin-top: 1em;
}

#nameInput {
    flex-grow: 1;
    /* Allows the input to take up available space */
}

#submitButton {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
}





