﻿:root {
    --box-color: #00838F; /* dark cyan for the boxes */
    --font-color: #27F565; /* parrot green for the words */
    --time-color: #fff;
}

/* INTRO SECTION */
.intro {
    background: var(--box-color);
}

    .intro .container {
        width: 90%;
        max-width: 1200px;
        max-height: 224px !important;
        margin: 0 auto;
        text-align: center;
        padding: 14px 0;
    }


.wavetop {
    transform: rotate(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--box-color);
    height: 45px;
    position: relative;
    margin-bottom: 20px;
    &::before, &::after
    {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        background-repeat: repeat-x;
    }

    &::before {
        height: 10px;
        background-size: 20px 20px;
        background-image: radial-gradient(circle at 10px -5px, transparent 12px, white 13px);
    }
}


.wave-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    position: relative;
    margin-bottom: 20px;
    &::before, &::after
    {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        right: 0;
        background-repeat: repeat-x;
    }

    &::before {
        height: 10px;
        background-size: 20px 20px;
        background-image: radial-gradient(circle at 10px -5px, transparent 12px, white 13px);
    }
}



/* TIMELINE */
.timeline .timelinediv .divul {
    padding: 50px 0;
}

    .timeline .timelinediv .divul .divulli {
        list-style-type: none;
        position: relative;
        width: 10px;
        margin: 0 auto;
        padding-top: 50px;
        background: var(--font-color);
    }

        .timeline .timelinediv .divul .divulli::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            /*transform: translateX(-50%);*/
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: inherit;
        }

        .timeline .timelinediv .divul .divulli div {
            position: relative;
            bottom: 0;
            width: 400px;
            padding: 15px;
            background: var(--box-color);
            display: flex;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 10px;
            line-height: 1.5;
            text-align: justify;
        }

            .timeline .timelinediv .divul .divulli div::before {
                content: '';
                position: absolute;
                bottom: 7px;
                width: 0;
                height: 0;
                border-style: solid;
            }

        .timeline .timelinediv .divul .divulli:nth-child(odd) div {
            left: 45px;
        }

            .timeline .timelinediv .divul .divulli:nth-child(odd) div::before {
                left: -15px;
                border-width: 8px 16px 8px 0;
                border-color: transparent var(--box-color) transparent transparent;
            }

        .timeline .timelinediv .divul .divulli:nth-child(even) div {
            left: -439px;
        }

            .timeline .timelinediv .divul .divulli:nth-child(even) div::before {
                right: -15px;
                border-width: 8px 0 8px 16px;
                border-color: transparent transparent transparent var(--box-color);
            }

time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--time-color);
    width: 100%;
}

/* EFFECTS */
/*.timeline .timelinediv .divul .divulli::after {
    transition: background .5s ease-in-out;
}
*/
.timeline .timelinediv .divul .divulli.in-view::after {
    background: var(--box-color);
}

.timeline .timelinediv .divul .divulli div {
    visibility: visible;
    opacity: 1;
    /*transition: all .5s ease-in-out;*/
}

/*.timeline .timelinediv .divul .divulli:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline .timelinediv .divul .divulli:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}*/

.timeline .timelinediv .divul .divulli.in-view div {
    /*transform: none;*/
    visibility: visible;
    opacity: 1;
}

/* IMAGES + TEXT WRAP FIX */
.timeline .timelinediv .divul .divulli div img {
    float: left;
    margin-right: 10px;
    border-radius: 6px;
    width: 100px;
    height: auto;
}
.timeline .timelinediv .divul .divulli div p {
    color: var(--time-color);
}
.timeline .timelinediv .divul .divulli div br {
    display: none; /* flex layout handles spacing now */
}

/* GENERAL MEDIA QUERIES */
@media screen and (max-width: 900px) {

    /*.timeline .timelinediv .divul .divulli:nth-child(odd) div {
        transform: none;
    }*/


    .timeline .timelinediv .divul .divulli div {
        width: 250px;
    }

    .timeline .timelinediv .divul .divulli:nth-child(even) div {
        left: -289px; /* 250 + 45 - 6 */
    }
}

@media screen and (max-width: 600px) {
    .timeline .timelinediv .divul .divulli {
        margin-left: 20px;
    }

        .timeline .timelinediv .divul .divulli div {
            width: calc(100vw - 91px);
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

            .timeline .timelinediv .divul .divulli div img {
                margin: 0 0 10px 0;
                float: none;
            }

            .timeline .timelinediv .divul .divulli div p {
                color: var(--time-color);
            }

        .timeline .timelinediv .divul .divulli:nth-child(even) div {
            left: 45px;
        }

            .timeline .timelinediv .divul .divulli:nth-child(even) div::before {
                left: -15px;
                border-width: 8px 16px 8px 0;
                border-color: transparent var(--box-color) transparent transparent;
            }
}

/* IMAGE SIZES */
#meBaby {
    width: 100px;
    height: 135px;
}

.photos {
    width: 100px;
    height: auto;
}

/* LINKS */
a:visited {
    color: var(--font-color);
}

a:hover {
    color: #AD1457;
}
