/* === GLOBAL RESET === */
html {
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
}
/* === END RESET === */

/* === COLOR PALETTE === */
:root {
    --bg-main: #1F1F1F;
    --bg-container: #2d2d2d;
    --accent-yellow: #f0bf4c;
    --text-light: #E0E0E0;
    --text-muted: #A0A0A0;
    --text-dark: #1F1F1F;
    --border-color: #424242;
    --btn-green:  #28a745;
    --btn-red:  #a72828;
    --btn-blue: #007bff; /* A new blue for lore */

}
/* === END PALETTE === */

body {
    background-color: var(--bg-main); /* Main Background */
    font-family: Arial, sans-serif;
    text-align: center;
}

p {
    color: var(--bg-main); /* A dark gray */
    font-size: 18px;
}
    /* ADD THESE NEW STYLES: */

header {
    background-color: var(--bg-main); /* Dark gray */
    color: rgb(255, 255, 255);
    padding: 20px;
    text-align: center;

    /* Location of the tab bar: */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

    /* ADD THIS LINE for the whole bar's corners */
    padding: 10px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    
}

/* === NAVIGATION STYLES === */
/* NEW: Add relative positioning for the dropdown */
nav {
    position: relative; 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex; /* Makes the tabs line up in a row */
    
}

nav li {
    flex-grow: 1; /* This tells each item to grow equally */
}

nav a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 16px;

    /* ADD THIS LINE to center the text */
    text-align: center; 
}

/* This is the key: Styles the "active" tab */
nav a.active {
    background-color: var(--accent-yellow); /* Yellow color */
    color: var(--text-dark); /* Dark text */

    /* ADD THIS LINE for the tab's corners */
    border-radius: 8px;
}

/* === NEW: Mobile Menu Toggle (Re-styled) === */
.menu-toggle {
    display: none; /* Hidden on desktop */
    
    /* NEW STYLING TO MATCH YOUR THEME */
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light); /* Use light text */
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%; /* Make it full-width on mobile */
    text-align: center; /* Center the text */
}

.menu-toggle:hover {
     background-color: var(--bg-container); /* Subtle hover */
}


/* === MAIN CONTENT CONTAINER === */

main {
    background-color: var(--bg-container); /* The same dark color as the header */
    border-radius: 8px;       /* Rounded corners to match */
    padding-top: 7.5px;
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    border: 1px solid var(--border-color);

    /* This adds some space between the nav bar and this container */
    margin-top: 20px; 

    /* This centers the main container and gives it a max width */
    /* You can remove this if you want it to be full-width */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

}

/* === FOOTER STYLE === */
footer {
    background-color: transparent; /* Lets it blend with the dark body */
    padding: 20px;
    text-align: center;
    margin-top: 30px;
    font-size: 14px; /* Makes the text a bit smaller */
}

footer p {
    color: var(--text-light); /* This targets the <p> tag ONLY inside the <footer> */
}

/* This class will hide any element it's applied to */
.hidden {
    display: none;
}

/* === NEW HERO STYLES === */

#hero {
    height: 100vh; /* vh = viewport height. Makes it 100% of the screen height */
    display: flex; /* We use flexbox to center the content */
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-main); /* Dark background */
}

#hero h1 {
    font-size: 6rem; /* rem is a modern size unit. This is big. */
    color: var(--accent-yellow); /* The same yellow as your active tab */
    margin: 0;
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-light); /* Light gray text */
}

/* === HEADER STICKY MODIFICATION === */

header {
    background-color: var(--bg-container);
    
    /* These two lines make it "stick" to the top! */
    position: sticky;
    top: 0;
    
    z-index: 100; /* Ensures it stays on top of other content */

    /* ADD THIS LINE for left/right padding */
    padding: 0 30px;

      /* this adds padding to top and bottom of the tabs */
    padding: 5px 5px; 
    border-radius: 4px;
}

/* This style was simplified */
main h2 {
    color: var(--accent-yellow);
    margin: 0; /* Removes default spacing */
}

/* === SUB-NAVIGATION STYLES === */

.sub-nav {
    /* Use the container background color to match */
    background-color: var(--bg-main); 
    border-radius: 8px;
    margin-top: 30px; /* Space below the "Character Designer" h2 */
}

.sub-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

/* Make sub-nav list items fill space, just like main nav */
.sub-nav li {
    flex-grow: 1; 
}

.sub-nav a {
    display: block;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

/* Active style for sub-nav */
.sub-nav a.active {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    border-radius: 8px; 
}

/* This is the content that the sub-nav reveals */
.sub-page-section {
    padding-top: 20px; /* Space below the sub-nav */
    text-align: left;
}
/* Aligns all content inside the sub-pages to the left */
.sub-page-section p {
    text-align: left;
    color: var(--accent-yellow);
}

/* === SECTION HEADER & TOOLBAR === */

/* This just holds the main h2*/
.section-header {
    border-bottom: 2px solid var(--border-color); 
    padding-top: 10px;
    padding-bottom: 20px; 
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between the buttons */
}

/* Generic Button Style */
.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and text */
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.btn-success {
    background-color:var(--btn-green); /* A nice, standard green */
    color: white;
    border: 2px solid var(--border-color);
}

.btn-cancel {
    background-color:var(--btn-red); /* A nice, standard red */
    color: white;
    border: 2px solid var(--border-color);
}

/* Dropdown Style */
.dropdown-menu {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-weight: bold;
}

/* === SUB-PAGE HEADER === */

/* This holds the h3 and the toolbar */
.sub-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* We'll add a margin to the <p> tag instead */
}

.sub-page-header h3 {
    color: var(--accent-yellow);
    margin: 0;
}

/* Adds space between the header and the form content */
.sub-page-section p {
    margin-top: 20px;
}

/* === FORM STYLES === */
.gdd-form {
    /* Adds space between the header and the form */
    margin-top: 20px;
}

.form-group {
    /* Adds space between each question block */
    margin-bottom: 25px;
}

.form-group label {
    display: block; /* Makes the label its own line */
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 8px; /* Space between label and input */
    font-size: 16px;
}

/* This styles ALL your text boxes (single and multi-line) */
.form-control {
    display: block;
    width: 100%; /* Makes the input fill the container */
    padding: 12px 15px;
    
    background-color: var(--bg-main);
    border: 1px solid #555; /* A slightly lighter border */
    border-radius: 8px;
    
    color: var(--text-light); /* The text the user types */
    font-family: Arial, sans-serif;
    font-size: 14px;
}

/* Styles the placeholder text (e.g., "Enter your story title...") */
.form-control::placeholder {
    color: var(--text-muted);
}

/* === MODAL STYLES === */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* This tints the background */
    background-color: rgba(0, 0, 0, 0.7); /*the last number is the alpha (opacity)*/
    
    /* This blurs what's behind the tint */
    backdrop-filter: blur(5px);
    
    /* Centering */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    
    /* By default, it's hidden */
    display: none;
}

/* When it's NOT hidden, we use flex to center */
.modal-overlay:not(.hidden) {
    display: flex;
}


.modal-content {
    background-color: var(--bg-container);
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px; /* Max width for the modal */
    border: 1px solid var(--border-color);
}

.modal-content h2 {
    color: var(--accent-yellow);
    margin-top: 0;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end; /* Pushes buttons to the right */
    gap: 10px;
    margin-top: 20px;
}

/* New button style for "Cancel" */
.btn-cancel {
    background-color:  var(--btn-red);
    border: 1px solid  var(--border-color);
}

/* === NEW: LOGIN MODAL STYLES === */
.login-modal-content {
    background-color: var(--bg-container);
    padding: 30px 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.login-modal-content h2 {
    color: var(--accent-yellow);
    margin-top: 0;
}
.login-modal-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

#google-signin-btn {
    display: inline-flex; /* This will respect the text-align: center */
}


/* Make sure login modal is always visible when active */
.modal-overlay:not(.hidden) {
    display: flex;
}

/* === NEW: AUTH CONTAINER STYLES === */
#auth-container {
    padding: 10px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-main); /* Match sub-nav */
    border-radius: 8px;
    margin: 10px 0;
}
#user-email {
    color: var(--text-muted);
    font-size: 14px;
    flex-grow: 1; /* Pushes buttons to the right */
    text-align: right;
}

/* Make manage/signout buttons small */
#sign-out-btn,
#manage-studio-btn {
    padding: 5px 10px;
    font-size: 14px;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

/* === *** UPDATED: STUDIO NAME DISPLAY *** === */
/* This now styles the h3 that lives on the dark body background */
#studio-name-display {
    color: var(--accent-yellow); /* Yellow like the hero title */
    text-align: center;
    font-size: 3rem; /* Much larger */
    font-weight: bold;
    
    /* Spacing to put it between hero and header */
    padding: 40px 20px 20px 20px;
    margin: 0;
    
    /* Centering like the header/main */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* === SUMMARY REPORT STYLES (New) === */

/* Styling for the large section title (e.g., PLACE, CULTURE) */
.summary-section-title {
    color: var(--accent-yellow); 
    border-bottom: 2px solid var(--border-color); 
    padding: 10px 0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Styling for the individual saved file title */
.summary-file-title {
    color: var(--text-light); /* Light gray for the file name */
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    /* This rule visually separates different files */
    padding-left: 5px; 
    border-left: 4px solid var(--btn-green); /* A green accent bar */
}

/* Styling for the Q&A list */
.summary-list {
    list-style-type: none; 
    padding-left: 15px;
    text-align: left;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* Styling for the question text */
.summary-list strong {
    color: var(--text-muted); /* Muted gray for the question/label */
    display: block; /* Makes the label appear on its own line */
    font-size: 14px;
    font-weight: normal;
}

/* Styling for the user's answer text */
.summary-answer {
    color: var(--text-light);
    margin-bottom: 15px; /* Space between answers */
    display: block;
    white-space: pre-wrap; /* Preserves formatting (newlines) from the textarea */
}

/* === NEW: SUMMARY BUILDER STYLES === */
.checklist-group {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-main);
    text-align: left; /* Align content to the left */
}
.checklist-group h4 {
    color: var(--accent-yellow);
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.checklist-item {
    display: block; /* Stack checkboxes */
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-light);
    cursor: pointer;
}
.checklist-item input {
    margin-right: 10px;
    /* Make checkbox larger */
    transform: scale(1.2);
    /* Align checkbox with text */
    vertical-align: middle;
}
/* Style the header for the generated report */
.summary-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.summary-output-header h3 {
    color: var(--accent-yellow);
    margin: 0;
}

/* === *** NEW: RELATIONSHIP MANAGER STYLES *** === */
.relationship-manager-container {
    margin-top: 40px;
}
.relationship-manager-container hr {
    border-color: var(--border-color);
}
.relationship-manager-container h3 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
}
.relationship-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
/* Make the target select dropdown expand */
.relationship-target-select {
    flex-grow: 1; 
}
/* Style the small add button */
.btn-add-relationship {
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1.2rem;
}
/* Style the list of added relationships */
.relationship-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: var(--text-light);
}
.relationship-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
}
.relationship-item-name {
    font-weight: bold;
}
.relationship-item-type {
    color: var(--text-muted);
}
/* Style the 'x' button */
.btn-remove-relationship {
    background: none;
    border: none;
    color: var(--btn-red);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0 10px;
}
.btn-remove-relationship:hover {
    color: #ff5c5c;
}

/* === NEW: STUDIO MANAGE MODAL STYLES === */
#invite-code-display {
    background-color: var(--bg-main);
    border: 1px dashed var(--accent-yellow);
    color: var(--accent-yellow);
    font-size: 2.5rem;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    letter-spacing: 3px;
    font-family: 'Courier New', Courier, monospace;
}

.studio-member-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.studio-member-list li {
    background-color: var(--bg-main);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 16px;
}

#manage-modal-title {
    margin-top: 0;
}

/* *** NEW: Style for invite code buttons *** */
#generate-new-code-btn,
#copy-invite-code-btn {
    padding: 5px 10px;
    font-size: 14px;
}

/* === *** NEW: ONBOARDING MODAL STYLES *** === */
.onboarding-section {
    text-align: left;
}
.onboarding-section h4 {
    color: var(--text-light);
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}

/* === *** NEW: TOAST NOTIFICATION STYLES *** === */
.toast-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%, 100px); /* Start off-screen */
    background-color: var(--bg-container);
    color: var(--text-light);
    padding: 15px 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--btn-green); /* Green for success */
    z-index: 2000; /* On top of everything */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.17, 0.84, 0.44, 1);
    font-weight: bold;
}

.toast-notification.show {
    opacity: 1;
    transform: translate(-50%, 0); /* Slide up */
}

/* Optional: Add a style for errors */
.toast-notification.error {
    border-left-color: var(--btn-red);
}

/* === *** UPDATED: TIMELINE STYLES *** === */
.timeline-add-form {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on mobile */
    gap: 10px;
    align-items: flex-end; /* Align items to the bottom */
}

.timeline-list {
    margin-top: 30px;
    /* This creates the vertical line */
    position: relative;
    padding-left: 30px; /* Space for the line and dots */
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 15px;
    bottom: 15px;
    width: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
}

.timeline-event {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px; /* Increased spacing */
    text-align: left;
    position: relative; /* Needed for the dot */
}

/* This creates the "dot" on the timeline */
.timeline-event::before {
    content: '';
    position: absolute;
    left: -24px; /* (30px padding - (16px width / 2)) = 22px */
    top: 18px; /* Align with the title */
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-container);
    border: 4px solid var(--border-color);
}

.timeline-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.timeline-event-title {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.timeline-event-type {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-dark);
}

/* Event type colors - also color the dot! */
.timeline-event-type.main-story {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
}
.timeline-event.main-story::before {
    border-color: var(--accent-yellow);
}

.timeline-event-type.side-quest {
    background-color: var(--btn-green);
    color: white;
}
.timeline-event.side-quest::before {
    border-color: var(--btn-green);
}

.timeline-event-type.lore-event {
    background-color: var(--btn-blue);
    color: white;
}
.timeline-event.lore-event::before {
    border-color: var(--btn-blue);
}


.timeline-event-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 15px 0; /* Add space at the bottom */
}

/* NEW: Styles for event controls (Move/Delete) */
.timeline-event-controls {
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    margin-top: 15px;
}
.btn-timeline-action {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 3px 8px;
    font-size: 1rem;
    cursor: pointer;
}
.btn-timeline-action:hover {
    color: var(--text-light);
    border-color: var(--text-light);
}


/* === PRINT STYLES (Hide UI elements for PDF Export) === */
@media print {
    /* Hide the hero section (intro text) */
    #hero {
        display: none;
    }
    
    /* Hide all toolbars, navigation, and footer */
    header, footer, .toolbar, .nav-link, .sub-nav, .menu-toggle, #auth-container, #studio-name-display {
        display: none !important;
    }
    
    /* HIDE the summary builder UI when printing */
    .summary-checklist-container, .sub-page-section > p, .sub-page-section > hr, .generate-summary-btn {
        display: none !important;
    }
    
    /* HIDE the relationship manager when printing */
    .relationship-manager-container {
        display: none !important;
    }
    
    /* HIDE the timeline form when printing */
    .timeline-add-form, .timeline-event-controls {
        display: none !important;
    }
    
    /* Remove timeline-specific layout for print */
    .timeline-list {
        padding-left: 0;
    }
    .timeline-list::before, .timeline-event::before {
        display: none;
    }
    
    /* SHOW the hidden-by-default output header */
    .summary-output-header {
        display: flex !important;
    }
    
    /* Ensure the main content takes up the full width */
    main {
        margin: 0;
        max-width: none;
        padding: 0;
        border: none;
        background-color: white; /* Print documents should usually have a white background */
    }
    
    /* Ensure text colors are readable on a white background */
    body, h1, h2, h3, h4, h5, strong, .summary-answer {
        color: black !important;
    }
    
    /* Ensure questions are readable */
    .summary-list strong {
        color: #444 !important; /* Dark gray for clarity */
    }

    /* Print styling cleanup */
    .summary-file-title {
        border-left: 4px solid #000; /* Black accent bar for print */
    }
    
    /* Ensure headers print correctly */
    .section-header, .sub-page-section h3 {
        border-bottom: 1px solid #ddd;
        color: black !important;
    }
}

/* === 📱 NEW: MOBILE RESPONSIVE STYLES === */
@media (max-width: 768px) {

    /* Make sticky header non-sticky on mobile */
    header {
        position: static;
        padding: 10px;
    }
    
    /* Hide studio name on mobile (too cluttered) */
    #studio-name-display {
        font-size: 2rem; /* Make it smaller on mobile */
        padding: 20px 10px 10px 10px;
    }
    
    /* Stack auth container on mobile */
    #auth-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px;
    }

    /* === NEW: Mobile Nav Dropdown Logic === */

    /* 1. Show the hamburger button */
    .menu-toggle {
        display: block;
        margin-bottom: 10px; 
    }
    
    /* 2. Hide the nav list by default */
    header nav ul {
        display: none; /* Hide the list */
        flex-direction: column; /* Stack vertically when shown */
        gap: 5px;

        /* Dropdown positioning */
        position: absolute;
        top: 60px; /* Position it below the toggle button */
        left: 0;
        right: 0;
        background-color: var(--bg-container);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
        z-index: 200; /* Ensure it's on top */
    }

    /* 3. Create the class JS will toggle */
    header nav ul.nav-open {
        display: flex; /* Show the list */
    }

    /* Reduce hero text size */
    #hero h1 {
        font-size: 3.5rem;
    }
    #hero p {
        font-size: 1rem;
    }

    /* Reduce padding on main content */
    main {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Stack sub-page headers (title and toolbar) */
    .sub-page-header {
        flex-direction: column;
        align-items: flex-start; /* Align title to the left */
        gap: 15px;
    }

    /* Allow toolbars to wrap to the next line */
    .toolbar {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
    }

    /* Reduce sub-nav text size */
    .sub-nav a {
        font-size: 14px;
        padding: 12px 5px; /* Less horizontal padding */
    }

    /* Make modal full-width on small screens */
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    /* Make login modal full-width */
    .login-modal-content {
        width: 95%;
        padding: 20px;
    }

    /* Stack relationship form on mobile */
    .relationship-form {
        flex-direction: column;
    }

    /* Stack timeline form on mobile */
    .timeline-add-form {
        flex-direction: column;
        align-items: stretch; /* Make inputs full-width */
    }
    .timeline-add-form .form-group {
        width: 100%;
    }
    
    /* Adjust timeline for mobile */
    .timeline-list {
        padding-left: 20px;
    }
    .timeline-event::before {
        left: -14px; /* (20px padding - (8px width / 2)) = 16px */
    }
}