body {
    margin: 0;
    min-height: 100vh;
    background-color: #000;
    background-image:
            linear-gradient(rgba(166,37,40,0.15) 1px, transparent 1px),
            linear-gradient(90deg, rgba(166,37,40,0.15) 1px, transparent 1px),
            radial-gradient(circle at center, #1a0003 0%, #000 80%);
    background-size: 60px 60px, 60px 60px, cover;
    background-attachment: fixed;
    font-family: sans-serif;
}

h1 {
    padding-top: 5%;
    text-align: center;
    color: white;
    font-weight: bolder;
    font-size: 4rem;
}
#era-label {
    position: fixed;
    left: 20px;
    top: 25%;
    transform: translateY(-50%);
    font-size: 64px;
    font-weight: 700;
    color: rgba(255, 102, 102, 0.15); /* slightly visible */
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.timeline-wrapper{
    position:relative;
    max-width:1100px;
    margin:80px auto;
    padding:40px 20px;
}

/* center line */
.timeline-wrapper::before{
    content:"";
    position:absolute;
    left:50%;
    top:0;
    transform:translateX(-50%);
    width:3px;
    height:100%;
    background:#a62528;
    opacity:.9;
}

/* each row is a real 3-col grid */
.timeline-item{
    display:grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items:center;
    margin:50px 0;
    position:relative;
}

/* marker column */
.timeline-marker{
    grid-column:2;
    position:relative;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
}

/* dot */
.timeline-marker::before{
    content:"";
    width:14px;
    height:14px;
    border-radius:50%;
    background:#ff6666;
    border:2px solid #a62528;
    box-shadow:0 0 0 6px rgba(166,37,40,.15);
}

/* card */
.timeline-card{
    max-width:520px;
    background:rgba(20,0,0,.92);
    border:1px solid rgba(166,37,40,.85);
    border-radius:10px;
    padding:14px 16px;
    box-shadow:0 10px 30px rgba(0,0,0,.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-6px); /* lifts the card slightly */
    border-color: #ff6666;       /* highlight border */
    box-shadow: 0 14px 40px rgba(255, 102, 102, 0.5); /* stronger shadow */
}

/* left/right alignment */
.timeline-item.left .timeline-card{
    justify-self:end;
    text-align:left;
}
.timeline-item.right .timeline-card{
    justify-self:start;
    text-align:left;
}

/* date stays glued to the card */
.timeline-date{
    font-size:25px;
    font-weight:700;
    color:#ff6666;
    margin-bottom:10px;
    letter-spacing:.2px;
}

/* card inner layout */
.timeline-card-inner{
    display:flex;
    align-items:center;
    gap:12px;
}

.timeline-image img{
    width:200px;
    height:200px;
    object-fit:cover;
    border-radius:8px;
    border:1px solid rgba(166,37,40,.9);
}

.timeline-title{
    color:#fff;
    text-decoration:none;
    font-size:25px;
    line-height:1.2;
    width: 50%;
    font-weight: bolder;
}
.timeline-title:hover{ color:#ff6666; }

#era-menu {
    text-align: center;
    margin: 20px 0;
    top: 0;
    z-index: 1000;
    padding: 10px;
}
/* ERA ROW */
.timeline-era-row{
    display:grid;
    grid-template-columns: 1fr 70px 1fr;
    align-items:center;
    margin:100px 0 40px 0;
}

.timeline-era-left{
    justify-self:end;
    text-align:right;
    padding-right:20px;
    font-size:32px;
    font-weight:700;
    color:#ffffff;
    letter-spacing:.5px;
}

.timeline-era-right{
    justify-self:start;
    text-align:left;
    padding-left:20px;
    font-size:30px;
    font-weight:600;
    color:#ff6666;
}

.timeline-era-dot{
    grid-column:2;
    justify-self:center;
    width:26px;
    height:26px;
    border-radius:50%;
    background:#ffffff;
    border:4px solid #a62528;
    box-shadow:0 0 0 8px rgba(166,37,40,.25);
    z-index:3;
}
.timeline-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #a62528;
    color: #fff;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
    transition: all .25s ease;
    z-index: 2000;
}

.timeline-back-btn:hover {
    background: #ff6666;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .wd-toolbar {
        display: none !important;
    }
}

/* MOBILE: stack cards to the right of a left-side line */
@media (max-width: 768px){
    .timeline-wrapper::before{
        left:18px;
    }

    .timeline-item{
        grid-template-columns: 40px 1fr;
        margin:26px 0;
    }

    .timeline-marker{
        grid-column:1;
    }

    .timeline-item.left .timeline-card,
    .timeline-item.right .timeline-card{
        grid-column:2;
        justify-self:stretch;
        max-width:100%;
    }

    .timeline-item > div:empty{
        display:none;
    }

    .timeline-image img{
        width:84px;
        height:62px;
    }
    #era-label {
        display: none;
    }
    h1{
        padding-top: 5rem;
        font-size: 3rem;
    }
}