img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

#timeline {
    position: relative;
    padding: 3rem 0;
    margin-bottom: 3rem;
    max-width: 1330px;
}
@media only screen and (max-width: 600px) {
    #timeline {
         padding: 1px 0;
    }
}

#timeline .line {
    background: #f4e9d1;
    width: 10px;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}

@media only screen and (max-width: 600px) {
    #timeline .line {
        left: 4.85rem;
    }
}

#timeline>article {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 3rem 0;
    position: relative;
}

@media only screen and (max-width: 600px) {
    #timeline>article {
        margin-left: 1.5rem;
        margin-right: 1.5rem;
        flex-direction: row;
    }
}

#timeline>article img {
    width: 140px;
}

@media only screen and (max-width: 850px) {
    #timeline>article img {
        width: 100px;
    }
}

#timeline>article>div {
    position: absolute;
    width: 35%;
    padding: 1rem 1.5rem;
    border: 2px solid #c2c2c2;
}
@media only screen and (max-width: 850px){
    #timeline>article>div {
        width: 30%;
    }
}
@media only screen and (max-width: 600px){
    #timeline>article>div {
        position: relative;
        width: auto;
        margin-left: 1.5rem;
    }
}


#timeline>article:nth-of-type(2n-1)>div {
    right: 5%;
}

@media only screen and (max-width: 600px){
    #timeline>article:nth-of-type(2n-1)>div {
        right: 0%;
    }
    
}


#timeline>article .arrow {
    border: 2px solid #c2c2c2;
    width: 25px;
    height: 25px;
    position: absolute;
    top: 50%;
    background: white;
    transform: rotate(45deg) translateY(-50%);
}

#timeline>article:nth-of-type(2n-1) .arrow {
    left: -1.5rem;
    border-top: none;
    border-right: none;
}

#timeline>article p {
    color: black;
}
#timeline>article p {
    margin-top: 0;
    margin-bottom: 0;
}

#timeline>article:nth-of-type(2n)>div {
    left: 5%;
}
@media only screen and (max-width: 600px){
    #timeline>article:nth-of-type(2n)>div {
        left: 0%;
    }
}
@media only screen and (max-width: 600px){
    #timeline>article:nth-of-type(2n)>div {
        /* left: unset; */
        right: 5%;
    }
}

#timeline>article:nth-of-type(2n) .arrow {
    right: -0.3rem;
    border-left: none;
    border-bottom: none;
}
@media only screen and (max-width: 600px){
    #timeline>article:nth-of-type(2n) .arrow {
        right: -0.3rem;
        border-left: 2px solid #c2c2c2;
        border-bottom: 2px solid #c2c2c2;
        left: -1.5rem;
        border-top: none;
        border-right: none;
    }
}

#timeline .maple-leaf {
    position: relative;
    width: 50%;
    margin: 5rem auto;
    display: block;
}
@media only screen and (max-width: 600px){
    #timeline .maple-leaf {
        width: 100%;
        margin: 3rem auto;
    }
}

/* for js */
.amp-hidden {
    visibility: hidden;
    /*visibility: visible;*/
    transition: visibility 0s, opacity 1s linear;
    opacity: 0;
  }
/* for js */

/* animation */
  @keyframes amp-fade {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1

    }
}
  @keyframes amp-fade-left {
    0% {
        opacity: 0;
        transform: translateX(-100%)
    }

    100% {
        opacity: 1;
        transform: translateX(0)
    }
}
  @keyframes amp-fade-right {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-from-right {
    animation: amp-fade-right 2s ease forwards; /* Existing animation properties */
    animation-fill-mode: both; /* Set animation fill mode to both */
}
.fade-in-from-left {
    animation: amp-fade-left 2s ease forwards; /* Existing animation properties */
    animation-fill-mode: both; /* Set animation fill mode to both */
}
.amp-animation-fade{
    animation-name: amp-fade;
    /* animation-delay: 5s; */
    animation-duration: 2s;
    animation-timing-function: linear;
}
/* animation */



