body{
    justify-content: center;
    align-items: center;
    display: flex;
    background-color: black;
    flex-direction: column;
}


.bg{
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    animation: fadein 2.5s;
}

@keyframes fadein {
    from { opacity: 0; }
    to  { opacity: 1; }
}

@keyframes fadeintxt {
    0% { opacity: 0; }
    60% {
        opacity: 0;
        transform: translateY(-5rem);
    }
    100%   {
        opacity: 1;
        transform: translateY(0rem);
    }
}

@keyframes fadeinbio {
    0% { opacity: 0; }
    80% {
        opacity: 0;
    }
    100%   {
        opacity: 1;
    }
}



.welcomespan{

    margin-top: 5rem;
    color:white;
    font-family: "Comfortaa";
    font-size: 100px;
    animation: fadeintxt 2s;

}

.slide-bottom {
    -webkit-animation: slide-bottom 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-bottom 2s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-bottom {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }
}
@keyframes slide-bottom {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    100% {
        -webkit-transform: translateY(100px);
        transform: translateY(100px);
    }
}

.biobox{
    animation: fadeinbio 2s;
    margin-top: 1.5rem;
    text-align: center;
    width: 40%;
    border-radius: 15px;
    background-color: rgb(0 0 44 / 0.19);
    padding: 1rem;
    box-shadow: inset 0px 0px 5px 5px rgb(49 74 59 / 0.69);
}

.mainprojectspanbox{
    animation: fadeinbio 2s;
    margin-top: 1.5rem;
    text-align: center;
    width: 15%;
    border-radius: 15px;
    background-color: rgb(0 0 44 / 0.19);
    padding: 1rem;
    box-shadow: inset 0px 0px 5px 5px rgb(49 74 59 / 0.69);
}

.biospan{
    color: white;
    font-family: "Comfortaa";
    font-size: 1.2rem;
    animation: fadeinbio 2.5s;

}


.mainprojectsbox{
    justify-content: center;
    align-items: center;
    animation: fadeinbio 2.9s;
    width: 100%;
    display: flex;
    margin-top: 1rem;
    flex-direction: column;
}

.projectsbox{
    justify-content: center;
    align-items: center;
    animation: fadeinbio 3.5s;
   // background-color: white;
    width: 95%;
    height: 35rem;
    display: flex;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1.5rem;

}

.images{
    box-shadow: 3px 3px 5px rgb(31 46 35 / 0.69);
    border-radius: 15px;
    width: 32%;
    display: flex;
    animation: out 0.4s  ;
}
.images:hover{
    cursor: pointer;
    animation: in 0.4s forwards ;
}

.mainimage{
    box-shadow: 3px 3px 5px rgb(31 46 35 / 0.69);
    border-radius: 20px;
    width: 50%;
    display: flex;
    animation: out 0.4s  ;
}

.mainimage:hover{
    cursor: pointer;
    animation: in 0.4s  forwards ;
}

@keyframes in {
    0% {
        transform: scale(1.0);
    }
    100% {
        transform: scale(1.03);
    }
}

@keyframes out {
    0% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1.0);
    }
}


.mainprojectspan{
    color: white;
    font-family: "Comfortaa";
    font-size: 1.3rem;
}

.mainprojectdescspan{
    margin-top: 1rem;
    color: white;
    font-family: "Comfortaa";
    font-size: 1.3rem;
    text-align: center;
}

.mainprojectnamespan{
    margin-top: 1rem;
    margin-bottom: 0.7rem ;
    color: white;
    font-family: "fredoka One";
    font-size: 1.3rem;
}

/* image focus quand on click dessus => c'est sur cette classe là que tu mets les animations de quand le gars clique sur l'image */
.focused{
    position: fixed;
    z-index: 10000;
    width: 70%;
    box-shadow: 3px 3px 5px rgb(31 46 35 / 0.69);
    border-radius: 15px;
    top: 15%;
}

.overlay.active {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.funfactbox{
    animation: fadeinbio 2s;
    margin-top: 4.5rem;
    text-align: center;
    width: 40%;
    border-radius: 15px;
    background-color: rgb(0 0 44 / 0.19);
    padding: 1rem;
    box-shadow: inset 0px 0px 5px 5px rgb(49 74 59 / 0.69);
    display: flex;
    flex-direction: column;
}

.funfactspan{
    color: white;
    font-family: "fredoka One";
    font-size: 1.3rem;
    text-decoration: underline;
}

.funfactspan2{
    padding-top: 0.5rem;
    color: white;
    font-family: "Comfortaa";

}


.header{
    animation: fadeinbio 2s;
    position:fixed;
    right: 0;
    background-color: white;
    border-bottom-left-radius: 15px;
    width: 20rem;
    height: 5rem;
    top:0;
    background-color: rgb(0 0 44 / 0.19);
    box-shadow: inset 0px 0px 5px 5px rgb(49 74 59 / 0.69);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;

}

.headersvg{
    width: 55px;
}

.headersvg:hover{
    cursor: pointer;

}


@media (min-width: 200px) and (max-width: 640px){

    .welcomespan{
        font-size: 70px;
        margin-top: 6rem;
    }

    .biobox{
        width: 70%;
    }

    .headersvg{
        width: 40px;
    }

    .header{
        width: 100%;
        box-shadow: none;
        border-bottom: solid 5px rgb(49 74 59 / 0.69);
        border-radius: 0;
        height: 3rem;
        backdrop-filter: blur(5px);
    }

    .mainprojectspan{

        font-size: 1.1rem;
    }

    .mainprojectspanbox{
        width: 37%;
    }

    .mainimage{
        width: 100%;
    }

    .focused{
        width: 95%;
        top: 35%;
    }

    .images{
        width: 100%;
    }

    .projectsbox{
        gap: 0.75rem;
    }

    .funfactbox{
        margin-top: 29rem;
        width: 80%;;
    }

    .mainprojectdescspan{
        font-size: 1rem;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }


}