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

body {
    font-family: Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

/* Facebook Login Page Styles */
#fb-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f0f2f5;
    z-index: 10;
}

.fb-container {
    width: 100%;
    max-width: 1000px;
    background-color: #f0f2f5;
}

.fb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.fb-left {
    flex: 1;
}

.fb-logo {
    color: #1877f2;
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Klavika', Helvetica, Arial, sans-serif;
}

.fb-tagline {
    font-size: 28px;
    font-weight: normal;
    color: #1c1e21;
    line-height: 32px;
}

.fb-right {
    width: 396px;
}

.fb-form-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
    padding: 20px;
    text-align: center;
}

.fb-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 17px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    margin-bottom: 12px;
    outline: none;
}

.fb-input:focus {
    border-color: #1877f2;
}

.fb-login-btn {
    width: 100%;
    padding: 14px 16px;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background-color: #1877f2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 16px;
}

.fb-login-btn:hover {
    background-color: #166fe5;
}

.fb-forgot {
    color: #1877f2;
    font-size: 14px;
    text-decoration: none;
}

.fb-forgot:hover {
    text-decoration: underline;
}

.fb-divider {
    border-bottom: 1px solid #dadde1;
    margin: 20px 0;
}

.fb-create-btn {
    padding: 14px 16px;
    font-size: 17px;
    font-weight: bold;
    color: #fff;
    background-color: #42b72a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.fb-create-btn:hover {
    background-color: #36a420;
}

.fb-create-page {
    text-align: center;
    margin-top: 28px;
    color: #1c1e21;
    font-size: 14px;
}

.fb-create-page a {
    color: #1c1e21;
    font-weight: 600;
    text-decoration: none;
}

.fb-create-page a:hover {
    text-decoration: underline;
}


/* Timeline Styles */
#timeline {
    position: relative;
    min-height: 100vh;
    background-color: #f0f2f5;
    padding: 20px;
    z-index: 1;
}

.timeline-header {
    max-width: 680px;
    margin: 0 auto 40px;
    text-align: center;
}

.timeline-header h1 {
    font-size: 48px;
    color: #1c1e21;
    margin-bottom: 12px;
    font-weight: bold;
}

.subtitle {
    font-size: 20px;
    color: #65676b;
    margin-bottom: 30px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-pill {
    padding: 8px 16px;
    border: 1px solid #dddfe2;
    border-radius: 20px;
    background-color: #fff;
    color: #1c1e21;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background-color: #f8f9fa;
}

.filter-pill.active {
    background-color: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.timeline-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.timeline-spine {
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #dddfe2;
}

.event-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
    padding: 20px;
    margin-bottom: 20px;
    margin-left: 60px;
    position: relative;
    transition: all 0.3s;
}

.event-card::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 24px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border: 2px solid #1877f2;
    border-radius: 50%;
}

.event-card.glitch {
    animation: glitch 0.3s;
}

@keyframes glitch {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

.event-date {
    font-size: 13px;
    color: #65676b;
    margin-bottom: 8px;
}

.event-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.category-deception {
    color: #dc3545;
    background-color: #f8d7da;
}

.category-privacy {
    color: #fd7e14;
    background-color: #ffe5d0;
}

.category-harm {
    color: #6f42c1;
    background-color: #e7dffc;
}

.category-violence {
    color: #721c24;
    background-color: #f5c6cb;
}

.category-regulatory {
    color: #17a2b8;
    background-color: #d1ecf1;
}

.category-monopoly {
    color: #856404;
    background-color: #fff3cd;
}

.event-title {
    font-size: 20px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 12px;
}

.event-description {
    font-size: 15px;
    color: #1c1e21;
    line-height: 1.5;
    margin-bottom: 16px;
}

.event-lie {
    background-color: #fef3c7;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.event-lie-label {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.event-lie-text {
    font-size: 15px;
    color: #451a03;
    font-style: italic;
}

.event-source {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.event-sources-container {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 16px;
}

.sources-label {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    margin-bottom: 8px;
}

.sources-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.event-source-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.source-icon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

.source-link {
    color: #1877f2;
    text-decoration: none;
    font-size: 14px;
}

.source-link:hover {
    text-decoration: underline;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.share-btn:hover {
    background-color: #166fe5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fb-content {
        flex-direction: column;
        text-align: center;
    }

    .fb-logo {
        font-size: 48px;
    }

    .fb-tagline {
        font-size: 24px;
    }

    .fb-right {
        width: 100%;
        max-width: 396px;
    }

    .timeline-header h1 {
        font-size: 36px;
    }

    .subtitle {
        font-size: 18px;
    }

    .filter-container {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .timeline-spine {
        left: 20px;
    }

    .event-card {
        margin-left: 40px;
    }

    .event-card::before {
        left: -26px;
    }
}