body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: whitesmoke;
    font-family: 'Times New Roman', Times, serif;
}

header {
    text-align: center;
    background-color: brown;
    color: white;
    padding: 20px;
    border-bottom: 5px solid darkred;
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

p {
    margin: 10px 0;
    font-size: 1.2em;
}

.timeline-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: grey;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#earlylife {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px; /* Width of the image */
    height: 50px; /* Height of the image */
    background-size: contain; /* Ensures the image scales correctly */
    border-radius: 3px; /* Matches the span's style */
}

#earlymusic {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px; /* Width of the image */
    height: 50px; /* Height of the image */
    background-size: contain; /* Ensures the image scales correctly */
    border-radius: 3px; /* Matches the span's style */
}

#formation {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px; /* Width of the image */
    height: 50px; /* Height of the image */
    background-size: contain; /* Ensures the image scales correctly */
    border-radius: 3px; /* Matches the span's style */
}

#military {
    position: absolute;
    margin-top: 3px;
    top: 0;
    left: 0;
    width: 50px; /* Width of the image */
    height: 50px; /* Height of the image */
    background-size: contain; /* Ensures the image scales correctly */
    border-radius: 3px; /* Matches the span's style */
}

#passing {
    position: absolute;
    margin-top: 3px;
    top: 0;
    left: 0;
    width: 50px; /* Width of the image */
    height: 50px; /* Height of the image */
    background-size: contain; /* Ensures the image scales correctly */
    border-radius: 3px; /* Matches the span's style */
}

.event {
    background: brown;
    color: white;
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.event:hover {
    background: #0078D7;
    transform: translateY(-3px);
}

.date {
    font-size: 1.2em;
    font-weight: bold;
    display: block;
    margin-left: 30px;
}


.details-section {
    margin-top: 20px;
    padding: 20px;
    background: grey;
    border: 1px solid grey;
    border-radius: 5px;
    font-size: 1.1em;
    line-height: 1.6;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.details-section img {
    width: 300px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

img {
    margin: auto;
    text-align: center;
    border: 1px;
}

/* Add transitions for smoother effects */
.details-section {
    transition: opacity 0.3s ease-in-out;
}

.event.active {
    background-color: #ffa500; /* Highlight active event */
    color: black;
    transform: scale(1.05);
}
