a[fancybox],
a[old-fancybox] {
    display: inline-block;
    color: #444;
    font-weight: bold;
    transition: .2s all;
}

a[fancybox] span,
a[old-fancybox] span {
    vertical-align: bottom;
}

a[fancybox]:hover,
a[old-fancybox]:hover {
    color: #444;
    transform: scale(1.03);
}

#menu li.active:hover {
    background-color: rgba(0,0,0, 0.5);
}

#menu li.active a:hover {
    color: #FFF;
}

#fp-nav ul li .fp-tooltip {
    top: -4px;
    padding: 3px 6px;
    background-color: rgba(51,51,51,.7);
    border-radius: .25rem;
}

#fullpage h2 {
    font-size: 60px;
}

.pdf-icon {
    width: 20px;
    vertical-align: middle;
}

.left li {
    text-align: left;

}

.window-icon {
    width: 20px;
    vertical-align: middle;
}

#home .title-container {
    display: inline-block;
}

#home h1 {
    font-size: 5em;
    margin: 0 auto 2.75rem;
    border-right: .05em solid rgba(0,0,0,.1);
    white-space: nowrap;
    animation: typing 1.5s steps(40, end), blink-caret .85s step-end infinite;
    overflow: hidden;
}

#home p {
    width: 65%;
    font-size: 20px;
    color: rgba(0,0,0,.7);
    text-align: justify;
    text-align-last: left;
}

#aggregation .fp-controlArrow {
    display: inline-block;
    margin-top: -18px;
    padding: 18px;
    border: solid #FFF;
    border-width: 0 3px 3px 0;
    transition: .2s all;
}

#aggregation .fp-slidesNav.fp-bottom {
    bottom: 40px;
}

#aggregation .fp-controlArrow.fp-prev {
    margin-left: 35px;
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

#aggregation .fp-controlArrow.fp-next {
    margin-right: 35px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

#aggregation .fp-controlArrow.fp-prev:hover {
    transform: rotate(135deg) scale(1.10);
    -webkit-transform: rotate(135deg) scale(1.10);
}

#aggregation .fp-controlArrow.fp-next:hover {
    transform: rotate(-45deg) scale(1.10);
    -webkit-transform: rotate(-45deg) scale(1.10);
}

#aggregation .text-container {
    margin: 20px 0 15px;
    text-align: center;
}

#aggregation .text-container:first-of-type {
    margin: 30px 0 15px;
}

#aggregation h3,
#fullpage h3 {
    margin: 0 auto 10px;
    max-width: 85%;
    text-align: left;
    font-weight: bold;
    text-decoration : underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    font-size: 20px;
}

h4 {
    font-size: 20px;
}

#research p,
#research ul,
#aggregation h3,
#aggregation p,
#aggregation table,
#aggregation ul,
#course ul {
    max-width: 85%;
}

#research p,
#aggregation p {
    display: inline-block;
    font-size: 16px;
    text-align: justify;
}

#research p.left,
#research ul.left,
#aggregation p.left,
#aggregation ul.left,
#course ul.left {
    display: block;
    margin: 0 auto;
}

#aggregation ul.left li {
    text-align: left;
}

#aggregation table {
    width: 85%;
    margin: 15px auto;
    text-align: left;
}

#aggregation table td {
    padding: 5px 0;
}

#research a,
#aggregation a {
    color: #444;
}

#traineeship h1 {
    margin-bottom: 15px;
}

#traineeship p {
    font-size: 20px;
}

#traineeship .timeline {
    margin-top: 40px;
}

#traineeship .timeline h2 {
    margin-bottom: .5rem;
    color: rgba(0,0,0,0.5);
    font-size: 2em;
}

#traineeship .timeline p {
    color: #444;
    font-size: 100%;
    text-align: justify;
}

.travaux-icon {
    width: 20px;
    vertical-align: middle;
}


#cv iframe {
    width: 60vw;
    height: 80vh;
    border: none;
    border-radius: .5rem;
    background-color: #525659;
}

#footer {
    position: fixed !important;
    width: 100%;
    height: 40px;
    bottom: 0;
    background-color: rgba(255,255,255, 0.5);
    text-align: center;
    line-height: 40px;
}

#footer p {
    color: rgba(0,0,0,.7);
    font-size: 16px;
}

#footer p a {
    display: inline-block;
    margin-left: 5px;
    color: #444;
    font-weight: bold;
    transition: .2s all;
}

#footer p a:hover {
    color: #565656;
    transform: scale(1.02);
}

/* The typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: rgba(0,0,0,0); }
}

/* Responsive
---------------------------------------*/
@media screen and (max-width: 700px) {
    #home h1 {
        font-size: 48px;
    }

    #home p {
        width: 90%;
    }

    #fullpage h2 {
        font-size: 32px;
    }

    #aggregation .text-container:first-of-type {
        margin: 15px 0 10px;
    }

    #aggregation .text-container {
        margin: 15px 0 10px;
    }

    #cv iframe {
        width: 90vw;
    }

    #fp-nav.fp-right {
        right: 0;
    }
}

@media screen and (max-width: 410px) {
    #home h1 {
        font-size: 33px;
    }

    #home p {
        width: 85%;
        font-size: 16px;
    }

    #aggregation table td {
        display: block;
    }

    #traineeship .timeline p {
        text-align: center;
        font-size: 14px;
    }

    #menu {
        text-align: center;
        font-size: 14px;
    }

    #menu li {
        margin: 5px 0;
    }

    #menu li a,
    #menu li.active a {
        padding: 9px;
    }
}

@media screen and (max-width: 325px) {
    #footer p {
        line-height: 1.3;
    }
}
