.timeline{
    overflow: hidden;
}

#timeline ul {
    background: var(--sub);
    padding: 50px 0;
}

/* Create Line */
#timeline ul li {
    list-style: none;
    position: relative;
    width: 6px;
    margin: 0 auto;
    padding-top: 50px;
    background: #fff;
    border-radius: 3px;
}

.show div{
    border-radius: 8px;
}

/* Boxes */
#timeline ul li div {
    position: relative;
    bottom: 0;
    width: 400px;
    aspect-ratio: 4 / 3;
    background-color: var(--w);
    background-position: center;
    background-size: cover;
    transition: all 0.3s linear;
    visibility: hidden;
    opacity: 0;
}

#timeline ul li div .arrow{
    position: absolute;
    width: 40px;
    aspect-ratio: 1;
    background-color: var(--main);
    padding: 0.5em;
    font-size: 20px;
    text-align: center;
    color: var(--w);
    border-radius: 50%;
    cursor: pointer;
    bottom: 10px;
    right: 10px;
    transition: all 0.3s;
}
#timeline ul li div .arrow:hover{
    box-shadow: 0 0 10px var(--main);
}

#timeline ul li div .arrow:active{
    transform: scale(0.9);
}

#timeline ul li:nth-child(1) div{
    background-image: url(../images/d1_bg.jpg);
}
#timeline ul li:nth-child(2) div{
    background-image: url(../images/d2_bg.jpg);
}
#timeline ul li:nth-child(3) div{
    background-image: url(../images/d3_bg.jpg);
}
#timeline ul li:nth-child(4) div{
    background-image: url(../images/d4_bg.jpg);
}
#timeline ul li:nth-child(5) div{
    background-image: url(../images/d5_bg.png);
}
#timeline ul li:nth-child(6) div{
    background-image: url(../images/d6_bg.jpg);
}

/* Right Side */
#timeline ul li:nth-child(odd) div {
    left: 40px;
    transform: translate(200px, 0);
}

/* Left Side */
#timeline ul li:nth-child(even) div {
    left: -434px;
    transform: translate(-200px, 0);
}

/* Dots */
#timeline ul li:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 25px;
    height: 25px;
    background: inherit;
    transform: translateX(-50%);
    border-radius: 50%;
    transition: background 0.3s linear;
}

/* Arrows Base */
#timeline div:before {
    content: '';
    position: absolute;
    bottom: 5px;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Right Side Arrows */
#timeline ul li:nth-child(odd) div:before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent var(--w) transparent transparent;
}

/* Left Side Arrows */
#timeline ul li:nth-child(even) div:before {
    right: -15px;
    border-width: 8px 0 8px 16px;
    border-color: transparent transparent transparent var(--w);
}

/* Show Boxes */
#timeline ul li.show div {
    transform: none;
    visibility: visible;
    opacity: 1;
}

#timeline ul li.show:after {
    background: var(--main);
}

@media(max-width: 900px) {
    #timeline ul li div {
        width: 250px;
    }

    #timeline ul li:nth-child(even) div {
        left: -284px;
    }
}

@media(max-width: 600px) {
    #timeline ul li {
        margin-left: 20px;
    }

    #timeline ul li div {
        width: calc(100vw - 120px);
    }

    #timeline ul li:nth-child(even) div {
        left: 40px;
    }

    #timeline ul li:nth-child(even) div:before {
        left: -15px;
        border-width: 8px 16px 8px 0;
        border-color: transparent var(--main) transparent transparent;
    }
}

h3{
    color: var(--w) !important;
    font-size: 1.5em;
    background-color: var(--shd);
    padding: 1rem;
}

h3 i{
    color: var(--main) !important;
}

li p{
    line-height: 28px;
    color: var(--w);
    text-shadow: 0 0 4px var(--shd);
}