﻿/* --- Main Content Area --- */
.main-content-area {
    height: calc(100vh - 120px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 2rem;
    box-sizing: border-box;
    overflow: hidden;
}

.view {
    width: 100%;
    max-width: 99vw;
    margin: 0 auto;
}

/* --- Timeline Styles --- */
.timeline-container {
    width: 100%;
    position: relative;
    padding: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.timeline-container::-webkit-scrollbar {
    height: 10px;
}

.timeline-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background-color: #ffd100;
    border-radius: 5px;
    border: 2px solid #1a1a1a;
}

.timeline-container::-webkit-scrollbar-thumb:hover {
    background-color: #ffe45c;
}

.timeline {
    display: inline-flex;
    min-width: 100%;
    position: relative;
    padding-bottom: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    ;
    background-color: #383838;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 0;
    width: var(--progress-width, 0%);
    height: 4px;
    background-color: #ffd100;
    z-index: 2;
    transition: width 0.5s ease-in-out;
}

.timeline-item {
    position: relative;
    text-align: center;
    min-width: 260px;
    padding: 0 20px;
    z-index: 3;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -35%);
    width: 90px;
    height: 90px;
    background-color: #121212;
    border: 4px solid #383838;
    border-radius: 50%;
    z-index: -1;
    transition: border-color 0.3s ease;
    cursor: pointer; /* Show that the year is clickable */
}

.timeline-item.active .timeline-dot {
    border-color: #ffd100;
}

    .timeline-item.active .timeline-dot::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
    }

.timeline-date {
    font-weight: bold;
    color: #ccc;
    margin-bottom: 4.5rem;
    cursor: pointer; /* Show that the year is clickable */
    transition: color 0.3s ease;
}

.timeline-item.selected .timeline-date {
    color: #ffd100; /* Highlight the selected year */
}

.timeline-content {
    padding: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    min-height: 170px;
    text-align: left;
    position: relative;
    color: #ccc;
    border: 1px solid #444;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Add transitions for smooth enlarging */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Style for the enlarged/selected content box */
.timeline-content.enlarged {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border-color: #777;
}

.timeline-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2.5rem;
    background-image: linear-gradient(#444 40%, rgba(255,255,255,0) 0%);
    background-position: right;
    background-size: 2px 10px;
    background-repeat: repeat-y;
}

.timeline-content h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.timeline-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a0a0a0;
    margin: 0;
}

/* Styles for the extra details text */
.timeline-details {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-top: 1rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
    /* Hide by default and transition smoothly */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, margin-top 0.4s ease, padding-top 0.4s ease;
}

.timeline-content.enlarged .timeline-details {
    /* Show when the parent is enlarged */
    max-height: 200px; /* Set a max-height large enough for content */
    opacity: 1;
}
