/* timeline.css */
@import url('https://fonts.googleapis.com/css?family=Ubuntu');

*, *::after, *::before {
    box-sizing: border-box;
}

body {
    font-family: "Ubuntu", sans-serif;
    color: #fff;
    background-color: #261C21;
}

.cd-horizontal-timeline {
    opacity: 0;
    margin: 2em auto;
    transition: opacity 0.2s;
}

.cd-horizontal-timeline.loaded {
    opacity: 1;
}

.cd-horizontal-timeline .timeline {
    position: relative;
    height: 100px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.cd-horizontal-timeline .events-wrapper {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.cd-horizontal-timeline .events {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 49px;
    height: 2px;
    background: #fff;
    transition: transform 0.4s;
}

.cd-horizontal-timeline .filling-line {
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #FF3D7F;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s;
}

.cd-horizontal-timeline .events a {
    position: absolute;
    bottom: 0;
    text-align: center;
    font-size: 1.3rem;
    color: white;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cd-horizontal-timeline .events a::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 20px;
    background: #fff;
    bottom: -20px;
    left: 50%;
}

.cd-horizontal-timeline .events a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -25px;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: #fff;
    transform: translateX(-50%);
    transition: background-color 0.3s, border-color 0.3s;
}

.cd-horizontal-timeline .events a.selected::after,
.cd-horizontal-timeline .events a:hover::after {
    background-color: #FF3D7F;
    border-color: #FF3D7F;
}

.cd-horizontal-timeline .events-content {
    position: relative;
    width: 100%;
    margin: 2em 0;
    overflow: hidden;
    transition: height 0.4s;
}

.cd-horizontal-timeline .events-content li {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.cd-horizontal-timeline .events-content li.selected {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.cd-horizontal-timeline .events-content h2 {
    font-weight: bold;
    font-size: 3em;
    line-height: 1.2;
}

.cd-timeline-navigation a {
    position: absolute;
    z-index: 1;
    top: 50%;
    height: 30px;
    width: 30px;
    border-radius: 50%;
    border: 2px solid #fff;
    color: transparent;
    text-indent: 100%;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%);
}

.cd-timeline-navigation a.prev {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
}

.cd-timeline-navigation a.next {
    right: 0;
}

.cd-timeline-navigation a.inactive {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive Tasarım */
@media only screen and (max-width: 768px) {
    .cd-horizontal-timeline .events a {
        font-size: 1rem;
    }

    .cd-horizontal-timeline .events-content h2 {
        font-size: 2em;
    }
}
