/* General Styles */
body {
    font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #222;
    margin-top: 0;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

header h1 {
    color: #0056b3; /* A professional blue */
    margin: 0;
    font-size: 2.2em;
}

header p {
    margin: 5px 0 0;
    font-size: 1em;
    color: #666;
}

/* Quiz Section */
.quiz-section {
    padding: 60px 0;
    background-color: #e9f7ff; /* Light blue background */
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-screen {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
    display: none; /* Hidden by default */
}

.quiz-screen.active {
    display: block; /* Show active screen */
}

.mentor-profile {
    margin-bottom: 20px;
}

.mentor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #0056b3;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.quiz-screen h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0056b3;
}

.quiz-screen p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-button, .cta-button {
    background-color: #007bff; /* Primary blue */
    color: #fff;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.option-button:hover, .cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.option-button:active, .cta-button:active {
    transform: translateY(0);
}

.line-button {
    background-color: #00C300; /* LINE green */
}

.line-button:hover {
    background-color: #009900;
}

/* Legal Sections */
#legal-sections {
    background-color: #f9f9f9;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.legal-content {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.legal-content h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #0056b3;
    text-align: center;
}

.legal-content h3 {
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
}

.legal-content p, .legal-content li {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 8px;
    text-align: justify;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 25px;
    padding-left: 0;
}

/* Footer */
footer {
    background-color: #222;
    color: #bbb;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer .footer-links a {
    color: #bbb;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #fff;
}

footer p {
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-screen {
        padding: 30px;
    }

    .quiz-screen h2 {
        font-size: 1.8em;
    }

    .quiz-screen p {
        font-size: 1em;
    }

    .option-button, .cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .legal-content h2 {
        font-size: 1.6em;
    }

    .legal-content h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }

    header p {
        font-size: 0.9em;
    }

    .quiz-section {
        padding: 40px 0;
    }

    .quiz-screen {
        padding: 20px;
    }

    .quiz-screen h2 {
        font-size: 1.5em;
    }

    .quiz-screen p {
        font-size: 0.9em;
    }

    .option-button, .cta-button {
        padding: 10px 15px;
        font-size: 0.9em;
    }

    .legal-content h2 {
        font-size: 1.4em;
    }

    .legal-content h3 {
        font-size: 1.1em;
    }

    .legal-content p, .legal-content li {
        font-size: 0.85em;
    }

    footer .footer-links a {
        margin: 0 5px;
        font-size: 0.85em;
    }
}
