body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f4f4f9;
}

header {
    width: 100%;
    background-color: #388e3c;
    padding: 1rem;
    color: white;
    text-align: center;
}

h1 {
    margin: 0;
}

.screen {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
}

.hidden {
    display: none;
}

button {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    background-color: #388e3c;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #2e7d32;
}

#question-text {
    font-size: 1.5rem;
    font-style: italic;
    color: #333;
    background-color: #fff;
    padding: 1rem;
    border-left: 4px solid #388e3c;
    margin-bottom: 1rem;
}

.option-button {
    display: block;
    margin: 0.5rem auto;
    padding: 0.7rem 1rem;
    width: auto;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #cccccc;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.option-button:hover {
    background-color: #e0e0e0;
}

.option-button.correct {
    background-color: #388e3c;
    color: white;
    border-color: #2e7d32;
}

.option-button.incorrect {
    background-color: #d32f2f;
    color: white;
    border-color: #b71c1c;
}

.evil-feedback {
    border-left: 5px solid #ff4d4d;
    background-color: #fff2f2;
    padding: 1rem;
    margin-top: 1rem;
    color: #ff1a1a;
    font-size: 0.9rem;
    display: inline-block;
}

.evil-feedback .icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #ff4d4d;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 20px;
    margin-right: 5px;
    font-size: 0.9rem;
    cursor: pointer;
}

.evil-feedback .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: -5px;
    left: 30px;
    background-color: #ff4d4d;
    color: #fff;
    padding: 5px;
    font-size: 0.8rem;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: visibility 0.3s, opacity 0.3s;
}

.evil-feedback .icon:hover + .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Intents Page Styles */

.hero {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #388e3c 0%, #2e7d32 100%);
    color: white;
    border-radius: 8px;
}

.hero h2 {
    margin-top: 0;
    font-size: 2rem;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.intent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
    box-sizing: border-box;
}

.intent-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #ddd;
    position: relative;
}

.intent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.intent-card.positive {
    border-left-color: #4CAF50;
}

.intent-card.positive:hover {
    background-color: #f1f8f6;
}

.intent-card.growth {
    border-left-color: #6366f1;
}

.intent-card.growth:hover {
    background-color: #f0f4ff;
}

.intent-card.evil {
    border-left-color: #ff6b6b;
}

.intent-card.evil:hover {
    background-color: #fff5f5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-header .icon {
    font-size: 2rem;
    min-width: 2.5rem;
}

.card-header h3 {
    margin: 0;
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.tag {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
}

.positive-tag {
    background-color: #d4edda;
    color: #155724;
}

.growth-tag {
    background-color: #d1ecf1;
    color: #0c5460;
}

.evil-tag {
    background-color: #f8d7da;
    color: #721c24;
}

.intent-card .definition {
    font-size: 1rem;
    color: #555;
    margin: 0.5rem 0 1rem 0;
    font-style: italic;
}

.details {
    background-color: #f9f9f9;
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.details strong {
    color: #222;
}

.pro-text {
    color: #2e7d32;
    font-weight: bold;
}

.watch-text {
    color: #e67e22;
    font-weight: bold;
}

.warning-text {
    color: #c41e3a;
    font-weight: bold;
}

.back-button-container {
    margin: 2rem 0;
}

.button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #2e7d32;
}

footer {
    margin-top: 2rem;
    text-align: center;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .intent-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-header h3 {
        text-align: left;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* Candor Gap Page Styles */

.candor-hero {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1426 100%);
    color: white;
}

.candor-hero blockquote {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.8;
    font-style: italic;
    font-weight: 500;
}

.candor-hero blockquote p {
    margin: 0.5rem 0;
}

.candor-hero blockquote p:first-child {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.content-section {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    box-sizing: border-box;
}

.content-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #388e3c;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.subsection {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #ff6b6b;
}

.subsection h3 {
    margin-top: 0;
    color: #2c3e50;
}

.subsection p {
    margin: 0.5rem 0;
}

.subsection ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.subsection li {
    padding: 0.5rem 0;
    color: #555;
    line-height: 1.6;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background-color: #2c3e50;
    color: white;
}

.comparison-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #388e3c;
}

.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: #f5f5f5;
}

.comparison-table td:first-child {
    font-style: italic;
    color: #c41e3a;
    font-weight: 500;
}

.antidote-section {
    background: linear-gradient(135deg, #d4edda 0%, #c3e9cb 100%);
    border-left: 4px solid #28a745;
    border-radius: 8px;
}

.antidote-section h2 {
    color: #155724;
    border-bottom-color: #28a745;
}

.antidote-section p {
    color: #155724;
}

.sources-section {
    background-color: #f0f4ff;
    border-left: 4px solid #6366f1;
}

.sources-section h2 {
    border-bottom-color: #6366f1;
}

.sources-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.sources-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.8;
    color: #555;
}

.sources-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
    margin: 0.5rem 0 0 0;
}

/* Mobile responsiveness for Candor Gap */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5rem;
    }

    .subsection {
        padding: 1rem;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }

    .candor-hero blockquote {
        font-size: 1.1rem;
    }

    .candor-hero blockquote p:first-child {
        font-size: 1.3rem;
    }
}