html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
  }
body {
    font-family: "Montserrat", thin;
    font-size: 15px;
    color: white;
    background: url(../img/background_orange2.jpg);
    cursor: none!important;
    background-repeat: no-repeat;
    margin: 0px;
}
#wrapper{
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}


h1{
    font-family: "Montserrat", sans-serif;
    font-weight: lighter;
    font-size: 3em;
}
h2{
    font-family: "Montserrat", sans-serif;
    font-weight: lighter;
    font-size: 2.5em;
    margin-top: -2%;
}
p{
    font-family: "Montserrat", sans-serif;
    font-weight: lighter;
    font-size: 2em;
}


#mainnav{
    display: block;
    position: relative;
    z-index: 101;
    font-family: "Montserrat", thin!important;
}
#mainnav a{
    color: white;
    text-decoration: none;
    position: absolute;
    vertical-align: top;
    /*opacity: 0;
    transition: all .5s ease-out 1.2s;*/
}
#mainnav a::before {
    content: ' ';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0%;
    height: 2px;
    background: rgba(255, 255, 255, 0);
    z-index: 2;
    transform: translate(-50%,-50%) rotate(0deg);
    transition: all .2s ease-out;
}
#mainnav a.work::after, #mainnav a.about::after, #mainnav a.contact::after {
    content: ' ';
    display: inline-block;
    width: 50px;
    height: 1px;
    background: white;
    line-height: 1px;
    vertical-align: middle;
    margin-left: 6px;
    margin-bottom: 3px;
}

#mainnav a.home{
    top: 50px;
    left: 50px;
    transform-origin: right top;
}
#mainnav a.home img{
    width: 90px;
}

#mainnav a.work{
    right: 60px;
    top: 60px;
    transform-origin: left top;
    transform: translateX(100%) rotate(90deg);
}
#mainnav a.about{
    top: calc(100vh - 60px);
    left: 60px;
    transform-origin: left bottom;
    transform: translateY(-100%) rotate(-90deg) translateY(100%);
}
#mainnav a.contact{
    top: calc(100vh - 60px);
    right: 60px;
    transform-origin: right bottom;
    transform: translateY(-100%) rotate(90deg) translateY(100%);
}


/*ACCEUIL*/
.abouttitre2{
    font-family: 'Noto Serif Display', serif;
    font-size: 7vw;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    animation: movedown 1s linear 1;
    visibility: hidden;
    animation-fill-mode: forwards;
}
.t2 {
    margin-left: 15%;
    width: max-content;
}
#text1{
    position: absolute;
    top: 75%;
    left: 28%;
    transform: translate(0,-50%);
    line-height: 1.4;
    width: 34%;
    font-size: 32px !important;
    text-align: justify;
    font-weight: 300;
    animation: moveright 1s linear 1;
    animation-delay: 1s;
    visibility: hidden;
    animation-fill-mode: forwards;
}
.mobile{
    visibility: hidden;
}

/*ABOUT ME*/
#page{
    position: absolute;
    top: 50%;
    right: 40%;
    transform: translate(0,-50%);
}

.abouttitre{
    font-family: 'Noto Serif Display', serif;
    font-size: 11em;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
    animation: movedown 1s linear 1;
    visibility: hidden;
    animation-fill-mode: forwards;
}

.t1{
    margin-left: 70%;
}

#text2{
    position: absolute;
    top: 53%;
    left: 15%;
    transform: translate(0,-50%);
    line-height: 1.4;
    width: 34%;
    font-size: 19px !important;
    text-align: justify;
    font-weight: 300;
    animation: moveright 1s linear 1;
    animation-delay: 1s;
    visibility: hidden;
    animation-fill-mode: forwards;
}

.splide__arrows{
    visibility: hidden!important;
}

.btnCV{
    padding: 11px 25px;
    border: 1px solid white;
    color: white;
    background: none;
    font-family: "Montserrat", thin;
    font-size: 16px;
    border-radius: 4px;
}
.btnCV:hover{
    color: black!important;
    background: white;
    font-weight: 400;
}
a{
    text-decoration: none;
}
.img{
    width: 18%;
    position: absolute;
    top: 35%;
    left: 9%;
}
.img2{
    width: 16%;
    position: absolute;
    top: 4%;
    left: 24%;
}
.SM{
    display: flex;
    flex-direction: row;
    align-content: center;
}
.SM a{
    display: flex;
    align-items: center;
}
.SocialMedia{
    width: 45px;
    margin-left: 15px;
}

.slideshow{
    animation: transition 1s linear 1;
    visibility: hidden;
    animation-fill-mode: forwards;
}

@keyframes moveright{
    0%{
        transform: translateX(-100px);
        opacity: 0;
        visibility: visible;
    }
    100%{
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
}
@keyframes movedown{
    0%{
        transform: translateY(-100px);
        opacity: 0;
        visibility: visible;
    }
    100%{
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}
@keyframes transition{
    0%{
        opacity: 0;
        visibility: visible;
    }
    100%{
        opacity: 1;
        visibility: visible;
    }
}


@media only screen and (min-device-width : 320px) and (max-device-width : 1000px) {
    body{
        background: url(../img/background_orange2.jpg)!important;
    }
    #mainnav a.work {
        right: 20px;
        top: 25px;
    }
    #mainnav a.home {
        top: 20px;
        left: 20px;
    }
    #mainnav a.about {
        top: calc(100vh - 80px);
        left: 20px;
    }
    #mainnav a.contact {
        top: calc(100vh - 70px);
        right: 20px;
    }
    #page {
        top: 28%;
        right: 37%;
        text-align: left;
    }
    .mobile{
        visibility: visible;
        width: 65%;
        margin: auto;
    }
    #text1{
        font-size: 16px !important;
        width: 100%;
        left: auto;
        margin-top: 12%;
        text-align: center;
        animation: transition 1s linear 1;
        animation-delay: 1s;
        visibility: hidden;
        animation-fill-mode: forwards;
    }
    .SM {
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: center;
    }
    .SM a {
        display: flex;
        align-items: center;
        margin-bottom: 20px;
        margin-left: 6px;
    }
	.abouttitre{
        font-size: 4em;
        text-align: left;
        animation: moveright 1s linear 1;
        visibility: hidden;
        animation-fill-mode: forwards;
    }
    .abouttitre2{
        text-align: left;
        animation: moveright 1s linear 1;
        visibility: hidden;
        animation-fill-mode: forwards;
    }
    .t1{
        margin-left: 0;
    }
    #text2 {
        position: absolute;
        top: 68%;
        left: 17%;
        line-height: 1.2;
        width: 66%;
        font-size: 16px !important;
        animation: transition 1s linear 1;
        animation-delay: 1s;
        visibility: hidden;
        animation-fill-mode: forwards;
    }
    .btnCV{
        font-size: 14px;
    }
}