body {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    line-height: 1.5;
    background: linear-gradient(to right, #bfdbfe, #bbf7d0);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.container {
    max-width: 800px;
    width: 60%;
    font-size: 24px;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}
h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e40af;
}
.question-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
    display: inline-block;
    margin: 8px 8px 0 0;
    width: 120px;
}
input[type="radio"].round-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #2563eb;
    appearance: none;
    outline: none;
    cursor: pointer;
    margin-right: 8px;
}
input[type="radio"].round-checkbox:checked {
    background-color: #2563eb;
    border-color: #2563eb;
    position: relative;
}
input[type="radio"].round-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.drag-drop-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.drag-item, .drop-target, .connect-item {
    padding: 0.5rem;
    margin: 0.25rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #f9fafb;
    text-align: left;
    font-size: 0.875rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.drag-item {
    cursor: move;
    width: 192px;
}
.drop-target {
    min-height: 50px;
    background-color: #e5e7eb;
    width: 192px;
}
.drop-target.filled {
    width: 350px;
    white-space: nowrap;
}
.drop-target.correct {
    background-color: #86efac;
}
.drop-target.incorrect {
    background-color: #f87171;
}
.target-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.target-number {
    width: 2rem;
    text-align: right;
    font-size: 0.875rem;
}
textarea {
    width: 100%;
    height: 50px;
    margin-top: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 0.5rem;
    font-size: 0.875rem;
}
.connect-item {
    cursor: pointer;
    transition: background-color 0.2s;
    width: 250px;
    position: relative;
}
.connect-item.right {
    padding-right: 10px;
}
.connect-item.locked {
    background-color: #bfdbfe;
    cursor: not-allowed;
    opacity: 0.6;
}
.connect-item.selected {
    background-color: #bfdbfe;
}
.connect-item.correct {
    background-color: #86efac;
}
.connect-item.incorrect {
    background-color: #f87171;
}
.connect-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
}
.connect-item-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.connect-number {
    width: 2rem;
    text-align: right;
    font-size: 0.875rem;
}
.connect-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.horizontal-options {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.sample-answer {
    white-space: pre-line;
}
@media (min-width: 640px) {
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    button {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        width: 140px;
    }
}
@media (max-width: 640px) {
    .question-card {
        padding: 0.75rem;
    }
    button {
        width: 100px;
        font-size: 0.75rem;
    }
    input[type="radio"].round-checkbox {
        width: 16px;
        height: 16px;
    }
    input[type="radio"].round-checkbox:checked::after {
        width: 8px;
        height: 8px;
    }
    .drag-item, .drop-target, .connect-item {
        font-size: 0.75rem;
        height: 40px;
    }
    .drag-item, .drop-target {
        width: 160px;
    }
    .drop-target.filled {
        width: 500px;
    }
    .connect-item {
        width: 200px;
    }
    .target-number, .connect-number {
        width: 1.5rem;
        font-size: 0.75rem;
    }
    textarea {
        font-size: 0.75rem;
    }
    .horizontal-options {
        flex-direction: column;
        gap: 0.5rem;
    }
}