body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.question {
    margin-bottom: 30px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

.question h3 {
    margin-top: 0;
}

.question input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.option.correct {
    border-color: #28a745;
    background-color: #d4edda;
}

.option.red { background-color: #ffebee; }
.option.blue { background-color: #e3f2fd; }
.option.yellow { background-color: #fffde7; }
.option.green { background-color: #e8f5e8; }

.option .icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.option input {
    width: 100%;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 16px;
    outline: none;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.option input:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.correct-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background: white;
    color: #666;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 20;
}

.correct-btn:hover {
    border-color: #28a745;
    color: #28a745;
}

.correct-btn.selected {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.option {
    position: relative;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#message {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.error { color: red; }
.success { color: green; }