@font-face {
    font-family: 'Avenir'; /*a name to be used later*/
    src: url('Fonts/Avenir.eot?#iefix') format('embedded-opentype'), 
         url('Fonts/Avenir.woff') format('woff'), 
         url('Fonts/Avenir.ttf')  format('truetype'),
         url('Fonts/Avenir.svg#Avenir') format('svg')
}
@font-face {
    font-family: 'Avenir-Heavy'; /*a name to be used later*/
    src: url('Fonts/Avenir-Heavy.eot?#iefix') format('embedded-opentype'), 
         url('Fonts/Avenir-Heavy.woff') format('woff'), 
         url('Fonts/Avenir-Heavy.ttf')  format('truetype'),
         url('Fonts/Avenir-Heavy.svg#AvenirHeavy') format('svg')
}
@font-face {
    font-family: 'Avenir-Black'; /*a name to be used later*/
    src: url('Fonts/Avenir-Black.eot?#iefix') format('embedded-opentype'), 
         url('Fonts/Avenir-Black.woff') format('woff'), 
         url('Fonts/Avenir-Black.ttf')  format('truetype'),
         url('Fonts/Avenir-Black.svg#AvenirBlack') format('svg')
}
@font-face {
    font-family: 'Avenir-Light'; /*a name to be used later*/
    src: url('Fonts/Avenir-Light.eot?#iefix') format('embedded-opentype'), 
         url('Fonts/Avenir-Light.woff') format('woff'), 
         url('Fonts/Avenir-Light.ttf')  format('truetype'),
         url('Fonts/Avenir-Light.svg#AvenirLight') format('svg')
}

html, body{
    margin: 0;
}
h1, h2, h3, h4, h5, h6{
    font-family: 'Avenir-Heavy', sans-serif;
}
main {
    width: 100%;
}
article{
    max-width: 49%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
article > * {
    width: calc(100% - 6rem);
    max-width: 800px;
    align-self: flex-start;
    margin: 0 auto;
}
.small-screen{
    display: none;
    text-align: center;
    width: 100%;
    width: 80%;
    margin: 0 auto;
    margin-top: 2rem;
}
.container{
    margin-top: 4rem;
}
.big-article{
    max-width: 100%;
    width: 100%;
    height: 100vh;
}
img{
    max-height: 50%;
    width: calc(100% - 6rem);;
    object-fit: contain;
    display: block;
    margin: 0 auto;

}
.img-article{
    margin-top: 6rem;
}
h1{
    padding: 2rem;
    margin: 0;
    text-align: center;
    font-size: 5rem;
}
h2{
    /* text-align: center; */
    font-size: 3rem;
}
p{
    font-size: 1.5rem;
    padding: 1rem 0 0 0;
    margin: 0;
    font-family: sans-serif;
    letter-spacing: 1px;
    line-height: 2rem;
    font-weight: 100;
    line-height: 1.3;
}
a{
    text-align: center;
    margin-top: 4rem;
    font-size: 1rem;
    text-decoration: none;
}
table{
    border-spacing: 2rem;
    padding-left: 6.5rem;
    table-layout: fixed;
}
td{
    font-size: 1.4rem;
    vertical-align: top;
    font-family: sans-serif;
    font-weight: 100;
    overflow: hidden; 
    text-overflow: ellipsis; 
    word-wrap: break-word;
    
}
.align-right{
    text-align: right;
}
.align-center{
    text-align: center;
}
button{
    border: none;
    background-color: transparent;
    font-family: sans-serif;
}

button:focus{
    outline: none;
}

.scroll-button{
    color: rgba(0, 0, 0, 0.5);
    position: absolute;
    left: -100%;
    right: 0;
    height: 4rem;
    font-size: 2rem;
    width: 100vw;
    cursor: pointer;
}
.scroll-article{
    margin-top: 5rem;
    color: black;
    position: relative;
    left: 0;
}

.grid{
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 30%);
}

.grid-item{
    text-align: left;
}
.grid-item > p{
    font-size: 1rem;
}

.up{
    top: 0;
}

.down{
    bottom: 0;
}

.scroll-button:hover{
    color: black;
}

section{
    width: 50%;
    height: 100vh;
    min-height: 600px;
    display: none;
    align-items: center;
    
}

.footer{
    background-color: rgb(98, 121, 151);
    color: white;
}

.fixed{
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    animation: fadeIn 1s linear 0s;
}

@keyframes fadeIn{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }

}


#section-image{
    display: inline-block;
    max-width: 70%;
    margin-top: 200px;
    margin-left: 0;
    opacity: 0;
    float: right;
}

.timeline{
    position: relative;
    display: inline-block;
    height: 100%;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: black;
    top: 0;
    bottom: 0px;
    left: 65%;
    margin-left: 0px;

}

.timeline-container {
    padding: 0px 20px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-right: 30px;
    opacity: 0;

}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    right: 10.8px;
    background-color: black;
    top: calc(50% - 8px);
    border-radius: 50%;
    z-index: 1;
    max-height: 110px;
}
.left {
    left: 0;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 20px;
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.content {
    padding: 10px 10px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    text-align: right;
    
  }
  .content > h3{
      padding-top: 1px;
      margin: 0;
  }

  .big{
      height: 100%;
  }

.curriculum-vitae{
    stroke: black;
    stroke-dasharray: 800;
    stroke-dashoffset:800;
    -moz-animation:DASH 2.5s ease-in-out 0.5s forwards;
    -webkit-animation:DASH 2.5s ease-in-out 0.5s forwards;
    animation:DASH 2.5s ease-in-out 0.5s forwards;
    fill-opacity:0;
    stroke-width:1;
    
}
#name {
    opacity: 0;
    -moz-animation: fadeIn 1.25s ease-in-out 2s forwards;
    -webkit-animation: fadeIn 1.25s ease-in-out 2s forwards;
    animation: fadeIn 1.25s ease-in-out 2s forwards;
    margin: 0 auto;
}
#ingress {
    opacity: 0;
    -moz-animation: fadeIn 1.25s ease-in-out 2.5s forwards;
    -webkit-animation: fadeIn 1.25s ease-in-out 2.5s forwards;
    animation: fadeIn 1.25s ease-in-out 2.5s forwards;
    margin: 0 auto;
}
#button {
    opacity: 0;
    -moz-animation: fadeIn 1.25s ease-in-out 3s forwards;
    -webkit-animation: fadeIn 1.25s ease-in-out 3s forwards;
    animation: fadeIn 1.25s ease-in-out 3s forwards;
}

@keyframes DASH{
    0%{
        stroke-dashoffset:800;
    }
    50%{
        fill-opacity:0;
    }
    100%{
        stroke-dashoffset:0;
        fill-opacity:1;
    }
}


@media screen and (max-width: 883px) {
    section{
        display: none !important;
    }
    article{
        max-width: 100%;
        width: 100%;
        height: initial;
        margin-top: 5rem;
    }
    h2 {
	    text-align: center;
        font-size: 2rem;
    }
    .big-article{
        width: 100%;
        height: inherit;
    }
    .title-article{
        height: 100vh;
        margin: 0;
    }
    .container{
        margin: 0;
        width: 100%;
    }
    p{
        width: 95%;
        padding: 0;
        font-size: small;
    }
    a {
        font-size: small;
    }
    table{
        padding-left: 0rem;
    }
    td {
        font-size: smaller;
    }
    button{
        display: none;
    }
    .small-screen{
        display: block;
    }

}
@media only screen and (max-width: 480px) {
    /* horizontal scrollbar for tables if mobile screen */
    table {
        overflow-x: auto;
        display: block;
    }
}
