*,::before,::after{
    margin:0;
    padding: 0;
    -webkit-appearance: none;
}

html{
    font-size: calc(0.5em + 1.8vmin);
    overflow-y: scroll;
}

html,body{
    min-height: 100vh;
    width:100%;
}

body{
    /* Created with https://www.css-gradient.com */
    background: #fbfad8;
    font-family: Georgia, 'Times New Roman', Times, serif;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

header{
    position: sticky;
    top: 0;
    padding:0.5% 2%;
    display: flex;
    justify-content: space-between;
    height: 13vh;
    background: #fbfad8;
    z-index:2;
}

.sticky {
    position: fixed;
    width: 100%;
    height: 8vh;
    top: 0;
    left: 0;
    right: 0;
    padding-bottom: 5vh;
}



.nameWebsite{
    font-size: 1.7em;
    cursor: pointer;
}

.nameLastname{
    font-size: 2.2em;
    cursor: pointer;
}


#filterTechnologie{
    margin-right: 15px;
    padding:0.5vmin;
    text-align: center;
    background-image: url("pictures/icons/Filter.png");
    object-fit: contain;
    background-position: 97%;
    background-repeat: no-repeat;
    background-size:
            10px 10px,
            10px 10px,
            3em 3em;
    min-width:35vw;
    width: fit-content
}





#leftHeader {
    cursor: pointer;
    margin-right: 20px;
}



#rightHeader {
    position: relative;
    top: 3%;
    right: 0%;
    width:13vmin;
    height: 13vmin;
    cursor: pointer;
}



#rightHeader > img {
    content: url("../pictures/Me/Me1.png");
    object-fit: cover;
    border-radius: 50%;
    max-width: 100%;
    max-height: 100%;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.4s;
}

#rightHeader > img:hover {
    content: url("../pictures/Me/Me2.png");
    transform: rotate(0) scale(1.05);
}

#rightHeader > img:active {
    content: url("../pictures/Me/Me3.png");
    transform: rotate(365deg) scale(1.3);
}

.cta-projects {
    display: inline-block;
    cursor: pointer;
    margin-top: 20px;
    font-weight: 600;
    text-decoration: none;
    color: black;
    transition: transform 0.2s ease;
    animation: float 2s ease-in-out infinite;
    position: absolute;
    top: 50%;
    left: 50%
}

main{
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#headerProject{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#nameProject{
    align-self: center;
    font-size :2.5em;
}

#nameProject > a{
    text-decoration: none;
    color:black;
}


#containerLinksProjects{
    display: flex;
    align-items: center;
    justify-content: center;
}

#linksProjects{
    display: flex;
    justify-content: space-around;
    height: 2.5em;
    padding-left: 2%;
}

.iconProject{
    max-height:100%;
    max-width:100%;
    object-fit: contain;
    padding-left: 0.5em;
}


#iconsCredits{
    top: 50%;
    transform: translateY(-50%);
    position:fixed;
    align-self:center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 20vmin;
    position: relative;
}

#iconsCredits > div{
    display: flex;
    justify-content: center;
    max-height: 3vmin;
    margin: 0.2vmin;

}

#iconsCredits > div > a{
    margin-right:0.5em;
    font-size: 0.5em;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.titleCredits{
    display: flex;
    justify-content: center;
    padding-bottom: 3vmin;
}

#mainProject{
    display: flex;
    justify-content: space-around;
    padding: 1% 3%;
    height: 78%;
}

.title{
    font-weight:bold;
}

#containerTextsProject{
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 35%;
    justify-content: center;
}


#textsProject{
    display: flex;
    flex-direction: column;
}

#textsProject > div{
    padding: 5%;
}

#textsProject > div > div{
    padding:1%;
    text-align : left;
}

.scroll {
    border-radius:10px;
    background-color:rgba(67%, 67%, 67%,0.2);
    box-shadow: 2px 2px 4px #000000;
    overflow: auto;
    text-align: justify;
    padding: 3%;
    scrollbar-width: thin;
}


#picturesProject{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 59%;
}

.pictureProject.active{
    display: block;
}

.left.arrow{
    clip-path: polygon(50% 0, 25% 50%, 50% 100%, 25% 100%, 0% 50%, 25% 0%);
}

.right.arrow{
    clip-path: polygon(75% 0%, 100% 50%, 75% 100%, 50% 100%, 75% 50%, 50% 0);
}


.pictureProject{
    display: none;
    object-fit: contain;
    box-shadow: 2px 2px 4px #000000;
    max-height: 100%;
    max-width: 100%;
    border-radius: 10px;
}

.pictureProjectModel:hover, .nameProjectModel:hover + .pictureProjectModel{
    box-shadow: 4px 4px 8px #000000;
}


.arrow{
    display: block;
    height: 11vmin;
    width: 11vmin;
    opacity: 0.85;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: #957563
}

.arrow:hover{
    height: 13vmin;
    width: 13vmin;
    opacity: 1;
}

.left{
    position:absolute;
    left:1%;
}

.right{
    position:absolute;
    right:1%;
}

footer{
    display: flex;
    position:relative;
    bottom: 0.5em;
    justify-content: center;
    gap: 6vw;
    font-size: 0.7em;
    text-decoration: underline;
}

.textFooter{
    cursor: pointer;
}

#chooseIdProject{
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

#projects{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 60vh 20vmin 0;
}

.projectModel{
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin: 2.5%;
    width:30vmin;
    height: 30vmin;
}

.projectModel > * {
    cursor: pointer;
}

.pictureProjectModel{
    max-width: 98%;
    max-height: 98%;
    align-self: center;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 2px 2px 4px #000000;
}

.nameProjectModel{
    position: absolute;
    min-width: fit-content;
    max-width:29vmin;
    left: 50%;
    top: 50%;
    text-align: center;
    align-self: center;
    transform: translate(-50%, -50%);
    font-size: 3vmin;
    color: #f5f5f5;
    text-shadow:
            0 0 10px rgba(0,0,0,.2),
            0 2px 6px rgba(0,0,0,.7),
            0 6px 10px rgba(0,0,0,.7),
            0 10px 20px rgba(0,0,0,.7),
            0 20px 20px rgba(0,0,0,.7),
            0 40px 40px rgba(0,0,0,1);
}


#seeResume{
    display: inline-block;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fbfad8;
    background: #2a2a20;
    border: 1px solid #2a2a20;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

#seeResume:hover {
    background: transparent;
    color: #2a2a20;
}


#aboutMe{
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    padding: 15vh 5% 5%;
}

#aboutText{
    width:fit-content;
    max-height: 50%;
    margin: 0 20vmin;
}

#aboutText > div {
    padding: 1vmin 0;
    text-align: left;
}

#about{
    align-self: center;
    display: flex;
    justify-content:space-around;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.center{
    display: flex;
    justify-content: center;
}

#aboutHeader{
    font-size: 1.5em;
}

@media screen and (min-height:calc(1.08*100vw)){

    #main{
        justify-content: center;
    }

    #mainProject{
        flex-direction: column-reverse;
        align-items: center;
        justify-content: space-around;
        height: 90%;
        font-size: 0.95em;
    }

    #containerTextsProject {
        width: 100%;
        max-height: 45%;
        margin:2vmin 3vmin;
    }

    #textsProject > div {
        padding: 2%;
    }

    #picturesProject {
        width: 100%;
        max-height: 40%;
    }

    .arrow{
        height: 11vmax;
        width: 11vmax;
    }

    .arrow:hover{
        height: 13vmax;
        width: 13vmax;
    }

}



@media screen and (max-height:550px) and (min-height:calc(1.08*100vw)){
    #mainProject{
        justify-content: flex-end;
    }
}