body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    padding: 2rem;
    box-sizing: border-box;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
}

.login-form, .game-container, .results-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input[type="text"] {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.question-block {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 5px solid #007bff;
    margin-bottom: 1.5rem;
}

.question-title {
    font-weight: bold;
    margin-bottom: 1rem;
    display: block;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.radio-label {
    display: block;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
}

.radio-label:hover {
    background-color: #e9ecef;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f1f1f1;
}

.score-display {
    text-align: center;
    font-size: 2rem;
    color: #28a745;
    font-weight: bold;
}

.correct {
    color: green;
}
.incorrect {
    color: red;
}
