:root {
    --background: #ffffff;
    --foreground: #020817;
    --card: #ffffff;
    --card-foreground: #020817;
    --popover: #ffffff;
    --popover-foreground: #020817;
    --primary: #0ea5e9;
    --primary-foreground: #f8fafc;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --ring: #0ea5e9;
    --radius: 0.5rem;
}

.dark {
    --background: #020817;
    --foreground: #f8fafc;
    --card: #0f172a;
    --card-foreground: #f8fafc;
    --popover: #0f172a;
    --popover-foreground: #f8fafc;
    --primary: #0ea5e9;
    --primary-foreground: #f8fafc;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #7f1d1d;
    --destructive-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --ring: #0ea5e9;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding-top: 1rem;
}

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

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--card-foreground);
}

.rotating-questions {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--card-foreground);
}

#rotating-text {
    color: var(--primary);
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.5s ease-in-out;
}

.question-list {
    list-style: none;
}

.question-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.question-list li:last-child {
    border-bottom: none;
}

.question {
    color: var(--card-foreground);
    font-weight: 500;
    font-size: 1rem;
    min-width: 0;
    word-wrap: break-word;
}

.answer {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    text-align: right;
    font-size: 0.9rem;
    white-space: nowrap;
}

.answer:hover {
    text-decoration: underline;
    opacity: 0.9;
}

.cta-container {
    text-align: center;
}

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.button.primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.button.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.hint {
    margin-top: 1rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.feedback-text {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin: 1.5rem 0;
    padding: 0 1rem;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .container {
        padding: 0 0.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .question-list li {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .answer {
        text-align: left;
        white-space: normal;
    }
}
