body{
   scroll-behavior: smooth;
}


.mobile{
    display: none;
}

.desk{
    display: block;
}


.center{
    display: block;
    position: absolute;
    top: 50%;
    animation: bounce alternate infinite .7s;
    left: 60%;
    font-size: 1.2vw;
    transform: translate(-50%,-50%);
}

.underline::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--c1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom left;
}
  
.underline:hover::before {
    transform: scaleX(1);   
}


.underL::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--c1);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: bottom left;
}
  
.underL:hover::before {
    transform: scaleX(1);   
}


#back{
    position: fixed;
    display: block;
    top: 0;
    left: 0;
    margin: 1vw 2vw;
    transition: .3s;
    width: 1.2vw;
    transform-origin: center;
    height: 1.2vw;
}

#back img{
    width: 100%;
    height: 100%;
}

#back:hover{
    transform: rotate(90deg);
}

#nav{
    display: block;
    position: fixed;
    bottom: 0;
    font-family: writer;
    z-index: 2;
    padding: 2vh 2vw;
    font-size: 1.2vw;
    left: 0;

}

#title{
    font-family: panamera;
    margin-right: 3vw;
}
#categorie{
    margin-right: 3vw;

}

#infos{
    display: inline-block;
    position: relative;
}
#infos:hover{
    color: var(--c1);

}

.date{
    margin-left: 1vw;
}

#next{
    position: fixed;
    display: block;
    bottom: 0;
    right: 0;
    margin: 2vh 2vw;
    transition: .3s;
    z-index: 3;
    font-family: panamera;
    font-size: 1.2vw;
}

#next:hover{
    color: var(--c1);
}

#projImg{
    height: 100vh;
    display: block;
    width: 100vw;
    overflow-y: hidden;
    position: relative;

    padding:0 0;
}

#scrollImg{

    padding-top: 7vh;
    height: 100vh;
    padding-bottom: 7vh;
    width: max-content;
}


#scrollImg .im{
    height: 100%;
    position: relative;
    transition: .5s;
    display: inline-block;
    opacity: 0;
    padding:0 .75vw;
    padding-left: 3vw;
    width:max-content;

}

.im img{
    display: block;
    position: relative;
    height: 100%;
    pointer-events: none;
    width: auto;
}

.im video{
    display: block;
    position: relative;
    height: 100%;
    pointer-events: none;
    width: auto;
}

#introProj{
    display: inline-block;
    position: relative;
    font-family: panamera;
    color: var(--c1);
    height: 100%;
    width: 100vw;
}

#arrow{
    display: block;
    position: absolute;
    top: 50%;
    height: 100%;
    transition:1s;
    overflow: hidden;
    width: 35vw;
    transform: translate(0,-50%);
    right: 0;
}

#scroll{
    transition: 1s;
}


#arrow img{
    position: absolute;
    height: 2vw;
    width: auto;
    top: 50%;
    left: 0;
    transform: translate(0 , -50%);

    
}

#blur{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 0%;
    height: 100%;
    background: -webkit-linear-gradient(90deg, transparent 0%, var(--c2) 30%);
    animation: fade infinite 1.4s linear;
}

#text{
    display: block;
    width: 60vw;
    right: 0vw;
    position: fixed;
    font-size: 1.25vw;
    font-family: writer;
    z-index: 3;
    bottom: -100vh;
    transition: .8s ease;
    background-color: black;
    color: var(--c2);
    clip-path: polygon(0 0,calc(100% - 4.00vw) 0,100% 4.00vw,100% 100%,0 100%);
}

#tt{
    display: block;
    padding: 1vw;
    position: relative;
    width: 56vw;
    column-count: 2;
    text-align: left;

}

#tt p{
    margin-bottom: 1.2vh;
    margin-left: 2vw;
    text-indent: -2vw;
}

#changePiste{
    display: block;
    padding: 0vw 3vw 1vw 3vw;
    font-family: panamera;
}


#changePiste a{
    display: inline-block;
    margin-right: 2vw;
    vertical-align: top;
    color: white;
    transition: .3s;
}

#changePiste a:hover{
    color: var(--c1);
}

.boxshape{
    width: 4vw;
    height: 4vw;
    float: right;
    right: 0;
    background-color: var(--c1);
    shape-outside: inset(100% 100% 100% 100%);
}
/*
#text::before{
    content: '';
    position: absolute;
    top: 0; right: 0;
    border-top: 80px solid transparent;
    border-left: 80px solid black;
    width: 0;
}
*/


#closeInfo{
    display: block;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 1vw 2vw;
    width: 1.2vw;
    transition: .3s;
    transform-origin: center;
    height: 1.2vw;
}

#closeInfo img{
    width: 100%;
    height: 100%;
}

#closeInfo:hover{
    transform: rotate(90deg);
}


.pisteTxt{
    display: none;
}


@keyframes bounce {
    from {
      padding-right: 0;
    }
  
    to {
        padding-right: 3vh;
    }
  }

  @keyframes fade {
    0% {
        width: 0 ;
     }
    100% {
        width: 180%;
     }
    }
  





@media (orientation: portrait) {

    .mobile{
        display: block;
    }

    .desk{
        display: none;
    }


    #next{
        bottom: unset;
        top: 0;
        padding: 2vw 0 0 0;
        margin-top: 1.2vw;
        right: 2vw;
        font-size: 3.5vw;
    }

    #back{
        margin: 4vw;
        width: 4vw;
        height: 4vw;
    }
    

    

    .center{
        display: block;
        position: absolute;
        top:40%;
        animation: bounce alternate infinite .7s;
        left: 30%;
        font-size: 3.5vw;
        transform: translate(-50%,-50%);
    }


    #arrow{
        display: block;
        position: absolute;
        top: 40%;
        height: 100%;
        overflow: hidden;
        width: 45vw;
        transform: translate(0,-50%);
        right: 0;
    }
    
    #arrow img{
        position: absolute;
        height: 35px;
        display: block;
        width: auto;
        top: 50%;
    
        left: 0;
        transform: translate(0 , -50%);
    
        
    }
    

    #nav{
        z-index: 2;
        padding: 2vw 4vw;
        background-color: var(--c2);
        width: 100%;
        text-align: justify;
        text-align-last: justify;
        font-size: 3.5vw;
    }

    .date{
        margin-left: 2vw;
    }
    

    #projImg{
        overflow-x: scroll;
        position: fixed;
        bottom: 0;
        height: 75vh;
        padding-bottom: 7vh;
        left: 0;
    }

    #scrollImg{
       
        padding-top: 0;
        height: 100%;
        padding-bottom: 0;
        width: max-content;
    }

    #scrollImg .im{
    
        padding:0 3.25vw;
        padding-left: 10vw;
        width:max-content;
        height: 100%;
    
    }
    

    #title{
        display: inline-block;
        margin-right: 0;
    }
    #categorie{
        display: inline-block;
        margin-right: 0;
    
    }
    
    #infos{
        display: inline-block;
    }
    
    #text{
        width: 90vw;
        right: 5vw;
        font-size: 3.75vw;
        margin-bottom: 7vh;
        column-count: unset;
        clip-path: polygon(0 0,calc(100% - 4.00vw) 0,100% 4.00vw,100% 100%,0 100%);
      
    }

    #tt{
        display: block;
        padding: 2vh;
        position: relative;
        width: 86vw;
        max-height: 80vh;
        overflow-y: scroll;
        column-count: unset;
        text-align: left;
    
    }

    #changePiste{
        padding: 0vw 2vh 2vh 2vh;
    }

    #text p{
        margin-bottom: 1.2vh;
        margin-left: 8vw;
        text-indent: -8vw;
    }
    

    #closeInfo{
        margin: 2vh ;
        width: 2vh;
        height: 2vh;
    }

}