#timeline {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #720913;
    transform: translateY(-0.9px);
}

#timeline::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    z-index: 2;
    pointer-events: none;
    width: 100%;
    height: 76px;
    background-image: url(../assets/pop.svg);
    background-repeat: repeat-x;
}

.timeline {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    padding: 255px 0;
}

.timeline_heart {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.right_heart {
    top: 55px;
    right: -385px;
    transform: rotate(-20deg);
}

.left_heart {
    top: 570px;
    left: -335px;
    transform: rotate(20deg);
}

.timeline_girl {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    right: 26px;
    top: -29px;
    max-width: 507px;
}

.timeline_text {
    position: absolute;
    left: 220px;
    z-index: 2;
    top: 603px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline_title {
    color: #FFF;
    font-family: 'Shadow';
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.64px;
    position: relative;
}

.timeline_discribe {
    color: #FFF;
    font-size: 18px;
    line-height: 130%;
    max-width: 490px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.timeline_date {
    color: #FF2C2F;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: -0.28px;
    padding-bottom: 8px;
}

.timeline_timeline {
    width: 100%;
    padding: 45px 0;
    position: relative;
    height: 660px;
    display: flex;
    flex-direction: row;
}

.timeline_button {
    display: flex;
    padding: 16px 64px;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: #CE1316;
    color: #FFF;
    text-align: center;
    font-size: 18px;
    line-height: normal;
    width: fit-content;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.timeline_button:hover {
    background: #A71416;
}

.timeline_timeline .first_svg {
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.second_svg {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.timeline_body {
    background: url(../assets/timeline_heart.png) center / contain no-repeat;
    width: 75px;
    height: 100px;
    color: #FFF;
    font-size: 24px;
    line-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.timeline_name {
    color: #FFF;
    text-align: center;
    font-family: 'HelveticaNeue-Bold';
    font-size: 24px;
    line-height: 130%;
}

.timeline_mounth {
    color: #ffffffa3;
    text-align: center;
    font-family: 'HelveticaNeue-Bold';
    font-size: 16px;
    line-height: 100%;
}

.timeline_cloud {
    display: flex;
    width: 265px;
    align-items: center;
    gap: 24px;
    border-radius: 18px;
    background: #8F1823;
    color: #FFF;
    font-size: 16px;
    line-height: 130%;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .25s ease,
        transform .25s ease;
    top: 0;
}

.timeline_incloud {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 32px;
    background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='18' ry='18' stroke='%23B02B38' stroke-width='6' stroke-dasharray='15' stroke-dashoffset='0' stroke-linecap='butt'/%3e%3c/svg%3e");
}

.timeline_item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    opacity: 0;
    will-change: opacity;
    z-index: 3;
}

.to_read {
    transition: opacity .3s ease;
    width: 8px;
    height: 8px;
    aspect-ratio: 1/1;
    background: #FF2C2F;
    border-radius: 100%;
    position: absolute;
    right: -16px;
    top: 0;
}

.to_read.hidden {
    opacity: 0;
    transition: opacity .25s ease;
}

@keyframes opa {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

#timeline.show .timeline_item:nth-child(1) {
    animation: opa .6s cubic-bezier(.22, 1.4, .36, 1) forwards;
}

#timeline.show .timeline_item:nth-child(2) {
    animation: opa .6s cubic-bezier(.22, 1.4, .36, 1) forwards;
    animation-delay: 0.25s;
}

#timeline.show .timeline_item:nth-child(3) {
    animation: opa .6s cubic-bezier(.22, 1.4, .36, 1) forwards;
    animation-delay: 0.5s;
}

#timeline.show .timeline_item:nth-child(4) {
    animation: opa .6s cubic-bezier(.22, 1.4, .36, 1) forwards;
    animation-delay: 0.75s;
}

#timeline.show .timeline_item:nth-child(5) {
    animation: opa .6s cubic-bezier(.22, 1.4, .36, 1) forwards;
    animation-delay: 1s;
}

@media (max-width: 1600px) {

    .timeline {
        padding: 94px 0 225px;
    }

    .right_heart {
        top: 60px;
        right: -244px;
        transform: rotate(-20deg);
        max-width: 660px;
    }

    .timeline_girl {
        right: -5px;
        top: -40px;
        max-width: 390px;
    }

    .timeline_text {
        left: 64px;
        top: 465px;
        gap: 16px;
    }

    .timeline_title {
        font-size: 48px;
        line-height: 100%;
        letter-spacing: -0.48px;
    }

    .timeline_date {
        font-size: 24px;
        line-height: 100%;
        letter-spacing: -0.24px;
    }

    .timeline_discribe {
        max-width: 400px;
        gap: 8px;
        font-size: 16px;
        line-height: 130%;
    }

    .timeline_name {
        font-size: 20px;
        line-height: 130%;
    }

    .timeline_body {
        width: 58px;
        height: 70px;
        font-size: 16px;
        line-height: 100%;
    }

    .timeline_cloud {
        font-size: 12.346px;
        line-height: 130%;
        width: 204px;
    }

    .timeline_incloud {
        padding: 24px;
    }
}

@media (max-width: 1400px) {
    .timeline {
        padding: 100px 0 180px;
    }

    .timeline_timeline {
        height: 570px;
    }

    .timeline_girl {
        right: 35px;
        top: 5px;
        max-width: 320px;
    }

    .right_heart {
        top: 105px;
        right: -230px;
        max-width: 525px;
    }

    .timeline_date {
        font-size: 18px;
        line-height: 100%;
        letter-spacing: -0.18px;
    }

    .timeline_title {
        font-size: 38px;
        line-height: 100%;
        letter-spacing: -0.38px;
    }

    .timeline_discribe {
        font-size: 14px;
        line-height: 130%;
        max-width: 355px;
    }

    .timeline_button {
        padding: 12px 56px;
        border-radius: 8px;
        font-size: 14px;
        line-height: normal;
    }

    .timeline_name {
        font-size: 16px;
        line-height: 130%;
    }

    .timeline_mounth {
        font-size: 14px;
        line-height: 100%;
    }

    .timeline_body {
        width: 46px;
        height: 54px;
        font-size: 15px;
        line-height: 100%;
    }

    .timeline_cloud {
        width: 164px;
    }

    .timeline_incloud {
        padding: 16px;
    }

    .timeline_text {
        left: 64px;
        top: 395px;
        gap: 12px;
    }

    .left_heart {
        top: 412px;
        left: -190px;
        max-width: 500px;
    }
}

@media (max-width: 1000px) {
    #timeline::after {
        bottom: -65px;
        height: 85px;
        background-size: 55px;
    }
}

@media (min-width: 800px) {
    .timeline_item:hover .timeline_cloud {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
        z-index: 10;
    }
}


@media (max-width: 800px) {

    .slick-current.slick-center .timeline_cloud {
        opacity: 1;
    }

    .timeline_girl,
    .left_heart {
        display: none;
    }

    .timeline_item {
        position: static;
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        transform: none;
        opacity: 0;
        will-change: opacity;
        z-index: 3;
        min-width: 154px;
    }

    .timeline_timeline svg {
        display: none;
    }

    .timeline_timeline {
        padding: 50px 0;
        height: 320px;
        position: relative;
    }

    .timeline_timeline::before {
        content: '';
        position: absolute;
        pointer-events: none;
        z-index: 0;
        width: 100%;
        height: 4px;
        background: repeating-linear-gradient(to right, #8D121E 0px, #8D121E 16px, transparent 16px, transparent 32px);
        top: 150px;
    }

    .timeline_slider {
        overflow: hidden;
        position: relative;
    }

    .timeline_text {
        position: static;
        gap: 16px;
        padding: 0 16px;
    }

    .timeline {
        padding: 78px 0 122px;
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
    }

    .timeline_date {
        font-size: 16px;
        line-height: 100%;
        letter-spacing: -0.16px;
    }

    .timeline_title {
        font-size: 30px;
        line-height: 110%;
        letter-spacing: -0.3px;
    }

    .timeline_discribe {
        font-size: 16px;
        line-height: 120%;
        max-width: 355px;
        gap: 16px;
    }

    .timeline_button {
        font-size: 16px;
        line-height: normal;
        width: 100%;
        margin-top: 12px;
    }

    .timeline_name {
        font-size: 18px;
        line-height: 130%;
        letter-spacing: -0.18px;
        height: 48px;
    }

    .timeline_body {
        width: 58px;
        height: 54px;
        font-size: 15px;
        line-height: 100%;
    }

    .timeline_cloud {
        width: 250px;
        font-size: 16px;
        line-height: 130%;
    }

    .timeline_incloud {
        padding: 24px;
    }

    .right_heart {
        top: 105px;
        right: 50%;
        width: 100%;
        transform: translate(50%, 0) rotate(-20deg);
        min-width: 650px;
    }
}