/* General Styling */
body {
    background: url('../img/black.jpg') no-repeat center center fixed;
    background-size: cover;
    font-family: 'Playfair Display', serif;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
}

/* Title & Subtitle */
.page-title {
    font-size: 2.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    margin-top: 0px; /* Adjust to match last page */
    text-align: center; /* Ensures alignment */
}

.subtitle {
    font-size: 1.0rem;
    margin-top: -10px;
    margin-bottom:280px;
    opacity: 0.8;
}

/* Timeline Styling */
.timeline-container {
    width: 80%;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px 0;
}

/* Timeline - Cleaned Up */
.timeline {
    display: flex;
    justify-content: space-between; /* Ensures circles are evenly spaced */
    align-items: center; /* Keeps circles aligned properly */
    width: 90%;
    max-width: 1000px; /* Prevents it from stretching too much */
    position: relative;
    border-top: 3px solid rgba(255, 255, 255, 0.7); /* Timeline line */
    padding-top: 40px; /* Adjusted to match your design */
    margin: auto;
}

/* Timeline Image Styling (Above the Circles) */
.timeline-image {
    width: 160px; /* Adjusted for even sizing */
    height: 160px;
    object-fit: cover; /* Ensures images remain proportional */
    border-radius: 8px; /* Optional: Rounded corners */
    display: block;
    margin: auto;
    position: absolute;
    top: -230px; /* Moves image directly above the circles */
    left: 50%;
    transform: translateX(-50%);
}


/* Timeline Circles - Properly Aligned */
.timeline-event {
    text-align: center;
    position: relative;
    flex: 1;
}

.timeline-event .circle {
    width: 18px;
    height: 18px;
    background-color: #ffffff;
    border-radius: 50%;
    display: block;
    position: absolute;
    top: -50px; /* Moves circle directly on the line */
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Hover Effect */
.timeline-event:hover .circle {
    transform: scale(1.3) translateX(-50%);
    background-color: #880808;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}


/* Make Clicked Circle Stay Red & Bigger */
.timeline-event.active .circle {
    background-color: #880808 !important;
    transform: scale(1.3) translateX(-50%); /* Now matches hover */
    box-shadow: 0 0 20px rgba(255, 0, 0, 1);
}

/* Positioning Event Dates Above the Circles */
.timeline-event p {
    position: absolute;
    top: -25px; /* Moves text above the circles */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    white-space: nowrap;
}

/* Navigation Buttons */
.navigation {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    font-size: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    border: 1px solid white;
    transition: background 0.3s, color 0.3s;
    color: #fff;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}
