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

body {
    font-family: Arial, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 20px;
}

.instruction {
    font-size: 1.2em;
    font-weight: bold;
    margin: 20px 0;
}

.question p {
    margin-bottom: 10px;
    font-weight: bold; /* Add this line */
}

.question p {
    margin-bottom: 10px;
}

.question label {
    display: block;
    margin: 5px 0;
}

button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #555;
}

.error {
    color: red;
    text-align: center;
    margin-top: 10px;
}

.hidden {
    display: none;
}

#loading.hidden {
    display: none !important;
}

/* Loading Animation */
#loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #333;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results */
.code {
    font-size: 1.5em;
    text-align: center;
    font-weight: bold;
    margin: 20px 0;
}

/* Validation Highlighting */
.question.error {
    border-left: 3px solid red;
    padding-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .question label {
        font-size: 0.9em;
    }

    .container {
        padding: 10px;
    }
}