
/* Timeline Container */
.timeline {
    display: flex;
    justify-content: center;
    font-family: sans-serif;
    padding: 20px;
    height: auto;
}

/* Card container */
.card-timeline {
    position: relative;
    max-width: 900px;

}

/* setting padding based on even or odd */
.card-timeline:nth-child(odd) {
    padding: 30px 0 30px 30px;
}

.card-timeline:nth-child(even) {
    padding: 30px 30px 30px 0;
}

/* Global ::before */
.card-timeline::before {
    content: "";
    position: absolute;
    width: 50%;
    border: solid rgb(0, 0, 0);
}

/* Setting the border of top, bottom, left */
.card-timeline:nth-child(odd)::before {
    left: 0px;
    top: -4.5px;
    bottom: -4.5px;
    border-width: 5px 0 5px 5px;
    border-radius: 50px 0 0 50px;
}

/* Setting the top and bottom to "-5px" because earlier it was out of a pixel in mobile devices */
@media only screen and (max-width: 400px) {
    .card-timeline:nth-child(odd)::before {
        top: -5px;
        bottom: -5px;
    }
}

/* Setting the border of top, bottom, right */
.card-timeline:nth-child(even)::before {
    right: 0;
    top: 0;
    bottom: 0;
    border-width: 5px 5px 5px 0;
    border-radius: 0 50px 50px 0;
}

/* Removing the border if it is the first card */
.card-timeline:first-child::before {
    border-top: 0;
    border-top-left-radius: 0;
}

/* Removing the border if it is the last card  and it's odd */
.card-timeline:last-child:nth-child(odd)::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
}

/* Removing the border if it is the last card  and it's even */
.card-timeline:last-child:nth-child(even)::before {
    border-bottom: 0;
    border-bottom-right-radius: 0;
}

/* Information about the timeline */
.info {
    display: flex;
    flex-direction: column;
    background: linear-gradient(60deg, rgb(149, 233, 229) 0%, rgb(202, 165, 243) 100%);
    color: gray;
    border-radius: 10px;
    padding: 10px;
}

/* Title of the card */
.title {
    color: orangered;
    position: relative;
}

/* Timeline dot  */
.title::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 999px;
    border: 3px solid rgb(255, 0, 0);
}

/* text right if the card is even  */
.card-timeline:nth-child(even)>.info>.title {
    text-align: right;
}

/* setting dot to the left if the card is odd */
.card-timeline:nth-child(odd)>.info>.title::before {
    left: -45px;
}

/* setting dot to the right if the card is odd */
.card-timeline:nth-child(even)>.info>.title::before {
    right: -45px;
}


.main-div {
    display: flex;
    gap: 20px;
    flex-direction: row;
    padding: 24px;

}

.main-div p {
    font-size: 18px;
}

.main-div .img {
    width: 40%;
    border-radius: 12px;
    overflow: hidden;
}


a {
    text-decoration: none;
    color: white
}

.main-div button {
    border: none;
    padding: 10px 80px;
    border-radius: 12px;

    font-size: 20px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    text-align: center;
    margin: auto;
}

@media screen and (max-width: 720px) {
    .main-div {
        flex-direction: column;

    }

    .main-div .img {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ads {
        width: fit-content;
        text-align: center;

    }
}


.ads {
    width: 75%;
    text-align: center;
}


