* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

#social-buttons {
    list-style: none;
    display: block;
    margin: 35px auto;
    width: fit-content;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid black;

    > li {
        display: inline-block;
        margin: 5px;

        > img {
            height: 20px;
        }

    }

}

#roadmap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10%;
    padding: 0 20px;

    > .stop {
        display: inline-block;
        position: relative;
        height: 128px;
        width: 450px;
        cursor: pointer;
        background-color: #fff;
        perspective: 1000px; /* Remove this if you don't want the 3D effect */

        &:hover .inner {
            transform: rotateY(180deg);
        }        

        & .inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.8s;
            transform-style: preserve-3d;
        }

        & .front, & .back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden; /* Safari */
            backface-visibility: hidden;
            box-shadow: 0px 0px 5px 0px #00000055;
            border-radius: 20px;
        }

        & .front {
            padding: 20px;
        }
          
        & .back {
            background-color: #efefef;
            color: black;
            transform: rotateY(180deg);
            padding: 20px;

            & ul {
                text-align: start;
                width: fit-content;
                margin: 15px auto;
                padding-left: 20px;
            }

        }

        & a {
            color: black;
        }

        & img {
            max-height: 100%;
            max-width: 100%;
        }

        &.active {
            padding-right: 92px;
            width: 542px;

            &::after {
                content: '';
                position: absolute;
                top: 0;
                right: 0;
                background: url(img/me.png);
                background-size: cover;
                height: 128px;
                width: 62px;
            }

        }

    }

}

.dotted-line {
    display: inline-block;
    width: 400px;
    height: 128px;
    z-index: -1;
    background: transparent;
    padding: 40px;
    border-radius: 50%;

    &.style-1 {
        border-bottom: dashed 2px red;
        margin: 0 -65px;
    }
    
    &.style-2 {
        border-top: dashed 2px red;
        margin: 20px -50px 0;
    }
}

@media only screen and (max-width: 600px) {
    #roadmap {
        flex-wrap: wrap;
        & .stop.active{
            padding-right: 46px;
            width: 496px;
            &::after {
                height: 64px;
                width: 31px;
                margin-top: 32px;
            }
        }
    }
    .dotted-line {
        display: block;
        width: 0;
        margin: 0 50px !important;
        padding: 0px;
        border-radius: 0;
        border-top: 0 !important;
        border-bottom: 0 !important;
        border-right: dashed 2px red;
    }
}