﻿/* General Styles */
.StellaTimelineFull {
    background: url('/images/Backgrounds/TimelineBackground.webp');
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

    .StellaTimelineFull::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8); /* Dark overlay */
        z-index: -1; /* Ensure the overlay is behind the content */
    }
.date-dropdown{
    display:none;
}

.StellaTimelineHeader {
    text-align: center;
    padding: 50px 0 20px;
}

    .StellaTimelineHeader h2 {
        font-size: 3rem;
        margin-bottom: 10px;
    }

    .StellaTimelineHeader p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

/* Title Styles */
.StellarTimelineTitle {
    position: relative;
    text-align: center;
}

    .StellarTimelineTitle .title-container {
        background-color: #000;
        display: inline-block;
        padding: 0 25%;
        position: relative;
        z-index: 2;
        clip-path: polygon(30% 0, 70% 0, 85% 100%, 15% 100%);
    }

/* Date Selector Styles */
.StellaTimelineDateSelector {
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 3;
}

    .StellaTimelineDateSelector .date-list,
    .StellaTimelineDateSelector ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

        .StellaTimelineDateSelector .date-list li,
        .StellaTimelineDateSelector ul li {
            margin: 0 15px;
        }

    .StellaTimelineDateSelector a {
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        transition: color 0.3s ease;
    }

        .StellaTimelineDateSelector a:hover {
            text-decoration: underline;
        }

    .StellaTimelineDateSelector .arrow-left,
    .StellaTimelineDateSelector .arrow-right,
    .arrow-left,
    .arrow-right {
        font-size: 2rem;
        color: white;
        cursor: pointer;
        padding: 0 20px;
    }

        .arrow-left:hover,
        .arrow-right:hover {
            color: #00aaff;
        }

/* Timeline Display Styles */
.StellaTimelineDisplay {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

    .StellaTimelineDisplay::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 150px;
        width: 2px;
        background-color: white;
        z-index: 1;
    }

/* Timeline Item and Card Styles */
.StellaTimelineItem {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding-bottom: 60px;
    overflow: visible;
}

.StellaTimelineCard {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
}

.timeline-date {
    font-size: 1.5rem;
    color: white;
    text-align: right;
    padding-right: 200px;
    line-height: 1.5rem;
}

.StellaTimelineCard h3 {
    font-size: 2rem;
    margin: 0 0 30px;
}

.StellaTimelineCard img {
    width: 100%; /* Full width of container */
    max-width: 600px; /* Maximum width on larger screens */
    height: auto; /* Maintain aspect ratio */
    max-height: 300px; /* Limit the height to ensure consistency */
    object-fit:cover; /* Ensures the image fills the space uniformly without stretching */
    border-radius: 10px;
    margin-bottom: 15px;
}

.StellaTimelineCard p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.StellaTimelineCard a {
    display: inline-block;
    color: #00aaff;
    font-weight: bold;
    text-decoration: none;
}

    .StellaTimelineCard a:hover {
        text-decoration: underline;
    }

/* Popup Styles */
.popup-overlay {
    display: none;
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    background-color: black;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow-y: auto;
}

    .popup-content img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 15px;
    }

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    color: white;
    z-index: 10;
}

    .popup-close:hover {
        color: #ff0000;
    }

.popup-cta-buttons {
    margin-top: 40px;
}

    .popup-cta-buttons a {
        padding: 10px 20px;
        background-color: transparent;
        border: 2px solid white;
        color: white;
        text-decoration: none;
        text-align: center;
        font-size: 1rem;
        border-radius: 25px;
        transition: background-color 0.3s, color 0.3s;
        min-width: 150px; /* Set a minimum width to make the buttons uniform */
    }
        .popup-cta-buttons a:hover {
            background-color: white;
            color: black;
        }

/* Mobile Styles */
@media (max-width: 768px) {
    .StellaTimelineItem {
        flex-direction: column;
        align-items: center;
        max-width: 90vw;
    }

    .timeline-date {
        text-align: center;
        padding-right: 0;
        margin-bottom: 10px;
        display: block;
        width: fit-content;
        margin: 0 auto 10px;
        border-bottom: 2px solid white;
        padding-bottom: 5px;
    }

    .StellaTimelineDisplay::before {
        display: none;
    }

    .StellaTimelineCard img {
        margin: 0 auto 20px;
    }

    .StellaTimelineDateSelector .arrow-left,
    .StellaTimelineDateSelector .arrow-right,
    .StellaTimelineDateSelector .date-list {
        display: none;
    }

    .StellaTimelineDateSelector .date-dropdown {
        display: block;
        width: 100%;
        margin-top: 10px;
    }

    .popup-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

        .popup-cta-buttons a {
            display: block;
            padding: 10px 20px;
        }
}
