*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font: normal 16px/1.5 Lato, "Helvetica Neue", sans-serif;
    color: #000;
    overflow-x: hidden;
}  /* INTRO SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */

.intro {
    background: linear-gradient(180deg, rgba(136, 239, 231, 0.3) 0%,rgba(176, 202, 217, 0.9) 100%);
    /*background: linear-gradient(0deg, rgba(136, 239, 231, 0.3) 0%,rgba(7, 47, 46, 0.8) 100%)*/
    padding: 20px 0;
}

.container {
    margin: 20px auto 50px auto;
    text-align: center;
    width: 70%
}

h1 {
    font-size: 2.5rem;
}

.arrow {
    display: inline-block;
    animation: arrow .7s ease-in alternate infinite;
}

.full-stack{
   padding: 2em;
    text-align: left;
}

.full-stack>p{
    padding: 2em 0;
    width: 80%;
    margin: auto
}

/* TIMELINE
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.timeline{
    margin:0
}
.timeline ul {
    background: rgba(255, 255, 255, 0.8); /*#456990;*/
    padding: 0;
    margin:0
}

.timeline ul li {
    list-style-type: none;
    position: relative;
    width: 6px;
    margin: 0 auto;
    padding-top: 30px;
    background: #000;
    padding-bottom: 20px
}

.timeline ul li::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 1);
}

.timeline ul li div {
    position: relative;
    bottom: 0;
    width: 400px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
}

.timeline ul li div::before {
    content: '';
    position: absolute;
    bottom: 9px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline ul li:nth-child(odd) div {
    left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
    left: -15px;
    border-width: 9px 16px 9px 0;
    border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
}

.timeline ul li:nth-child(even) div {
    left: -439px;
}

.timeline ul li:nth-child(even) div::before {
    right: -15px;
    border-width: 9px 0 9px 16px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
}

time {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 8px;
}
.timeline-dates{
    display: block;
    padding: 5px 0;
}
.timeline-subtitle{
    display: block;
    padding: 5px 0;
    font-weight: bold;

}
.timeline-item {
    display: block;
    font-size: 0.9em;
    padding: 5px 0;
    color: black
}

.sea{
    background: linear-gradient(0deg, rgba(7, 47, 46, 0.8) 0%, rgba(255, 252, 226, 0.5) 100%), url(../images/seattle.jpeg) no-repeat center center;
    background-size: cover;
}

.pdx{
    background: linear-gradient(0deg, rgba(7, 47, 46, 0.8) 0%, rgba(255, 252, 226, 0.5) 100%), url(../images/portland.jpg) no-repeat center center;
    background-size: cover;
}
.milan{
    background: linear-gradient(0deg, rgba(7, 47, 46, 0.8) 0%, rgba(255, 252, 226, 0.5) 100%), url(../images/milan.jpg) no-repeat center center;
    background-size: cover;
}
.cluj{
    background: linear-gradient(0deg, rgba(7, 47, 46, 0.8) 0%, rgba(255, 252, 226, 0.5) 100%), url(../images/cluj.jpg) no-repeat center center;
    background-size: cover;
}
.trento{
    background: linear-gradient(0deg, rgba(7, 47, 46, 0.8) 0%, rgba(255, 252, 226, 0.5) 100%), url(../images/trento.jpg) no-repeat center center;
    background-size: cover;
}

/* EFFECTS
–––––––––––––––––––––––––––––––––––––––––––––––––– */
@keyframes arrow {
    100% {
        transform: translateY(10px);
    }
}

.timeline ul li::after {
    transition: background .5s ease-in-out;
}

.timeline ul li.in-view::after {
    background: rgba(255, 255, 255, 1);
}

.timeline ul li div {
    visibility: hidden;
    opacity: 0;
    transition: all .5s ease-in-out;
}

.timeline ul li:nth-child(odd) div {
    transform: translate3d(200px, 0, 0);
}

.timeline ul li:nth-child(even) div {
    transform: translate3d(-200px, 0, 0);
}

.timeline ul li.in-view div {
    transform: none;
    visibility: visible;
    opacity: 1;
}


/* full stack */
.wrapper {
    text-align: center;
    width: 100%;
    margin: 2em 0;
}
.full-stack p{
    font-size: 1.2em;
}
.item{
    display: inline-block;
    width: 19%;
    border-radius: 20px;
    vertical-align: top;
    padding: 12px;
    margin: 0 20px 0 0;
    height: 15em;
}
.item h3{
    margin-bottom: 1em
}
.item p{
    font-size: 1em;
    text-align: left;
    padding: 0 1em
}
.color1{
    background-color: rgba(239, 136, 191, 0.6);
}
.color2{
    background-color: rgba(239, 212, 136, 0.6);
}
.color3{
    background-color: rgba(184, 136, 239, 0.6);
}
.color4{
    background-color: rgba(239, 160, 136, 0.6);
}
.animated{
    -webkit-animation-duration:1.5s;
    animation-duration:1.5s;
    -webkit-animation-fill-mode:both;
    animation-fill-mode:both
}

@-webkit-keyframes rollIn{
    0%{
        opacity:0;
        -webkit-transform:translateX(-100%)rotate(-120deg);
        transform:translateX(-100%)rotate(-120deg)
    }
    100%{
        opacity:1;
        -webkit-transform:translateX(0)rotate(0);
        transform:translateX(0)rotate(0)}
}
@keyframes rollIn{
    0%{
        opacity:0;
        -webkit-transform:translateX(-100%)rotate(-120deg);
        -ms-transform:translateX(-100%)rotate(-120deg);
        transform:translateX(-100%)rotate(-120deg)
    }
    100%{
        opacity:1;
        -webkit-transform:translateX(0)rotate(0);
        -ms-transform:translateX(0)rotate(0);
        transform:translateX(0)rotate(0)
    }
}
@-webkit-keyframes rollInRight{
    0%{
        opacity:0;
        -webkit-transform:translateX(100%)rotate(120deg);
        transform:translateX(100%)rotate(120deg)
    }
    100%{
        opacity:1;
        -webkit-transform:translateX(0)rotate(0);
        transform:translateX(0)rotate(0)}
}
@keyframes rollInRight{
    0%{
        opacity:0;
        -webkit-transform:translateX(100%)rotate(120deg);
        -ms-transform:translateX(100%)rotate(120deg);
        transform:translateX(100%)rotate(120deg)
    }
    100%{
        opacity:1;
        -webkit-transform:translateX(0)rotate(0);
        -ms-transform:translateX(0)rotate(0);
        transform:translateX(0)rotate(0)
    }
}
.rollIn{
    -webkit-animation-name:rollIn;
    animation-name:rollIn
}
.rollInRight{
    -webkit-animation-name:rollInRight;
    animation-name:rollInRight
}


/* GENERAL MEDIA QUERIES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

@media screen and (max-width: 900px) {
    .timeline ul li div {
        width: 250px;
    }
    .timeline ul li:nth-child(even) div {
        left: -289px;
        /*250+45-6*/
    }
    .item {
        display: inline-block;
        width: 40%;
        margin: 1em auto
    }
    .item p{
        font-size: 1em
    }
}

@media screen and (max-width: 600px) {
    .timeline ul li {
        margin-left: 20px;
    }
    .timeline ul li div {
        width: calc(100vw - 91px);
    }
    .timeline ul li:nth-child(even) div {
        left: 45px;
    }
    .timeline ul li:nth-child(even) div::before {
        left: -15px;
        border-width: 9px 16px 9px 0;
        border-color: transparent rgba(255, 255, 255, 0.9) transparent transparent;
    }
    .item {
        display: block;
        width: 90%;
        margin: 1em auto
    }
}