@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap');

body {
    margin: 0;
    padding: 0;
}

* {
    -webkit-user-drag: none;
}

.contactWindow {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: center;
    z-index: 100;
    align-items: center;
}

.contactWindow>.form {
    width: 70%;
    height: 70%;
    background-color: #F6F2E6;
    padding: 6vh 4vw;
    font-family: 'Josefin Sans',
        sans-serif;
    font-size: 4vw;
    border-radius: 2vw;
    box-shadow: 0px 4px 4px 0px rgba(246, 242, 230, 0.25);
    position: relative;
    flex-direction: column;
}

.form>.closeButton {
    position: absolute;
    top: 0;
    right: 0;
    margin: 2vh 2vw;
    width: 10vh;
    cursor: pointer;
    transition: all ease .3s;
}

.form>.closeButton:hover {
    transform: scale(1.1);
}

.closeButton>img {
    width: 100%;
}

.form>input {
    display: block;
    font-size: 1.7vw;
    margin: 2vw;
    padding: 1vw;
    margin-left: 0;
    font-family: 'Josefin Sans',
        sans-serif;
    border-radius: 1vw;
    border: thin solid #2E2E2E;
}

.form>textarea {
    display: block;
    font-size: 1.7vw;
    margin: 2vw;
    padding: 1vw;
    margin-left: 0;
    font-family: 'Josefin Sans',
        sans-serif;
    border-radius: 1vw;
    border: thin solid #2E2E2E;
    width: 80%;
    height: 30%;
    margin-bottom: 1vw;
}

.form>button {
    width: 20%;
    padding: 1vw;
    margin-left: 0;
    font-family: 'Josefin Sans',
        sans-serif;
    border-radius: 1vw;
    border: thin solid #2E2E2E;
    background-color: #F6F2E6;
    font-size: 1.7vw;
    cursor: pointer;
    transition: background-color ease .3s;
}

#app {
    position: relative;
}

#app>section {
    scroll-snap-align: start;
    position: relative;
}

.section {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: black;
    position: relative;
}

.firstSection {
    background-color: black;
}

.firstSection>.background {
    position: absolute;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
}

.firstSection>.background>canvas {
    width: 100%;
    height: 100%;
    animation: show 4s ease-in-out;
    animation-fill-mode: forwards;
    opacity: 0;
    animation-delay: 2s;
}


.firstSection>.title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: inline;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #fff;
    font-family: 'Josefin Sans',
        sans-serif;

    background-color: black;
    box-shadow: 0 0 5vh 6vw black;
}

.firstSection>.title>.titleHeader {
    font-size: 3rem;
    font-weight: 300;
    white-space: nowrap;
    overflow-x: hidden;
    padding-bottom: 2vh;
    animation: show 1s ease-in-out;
    animation-fill-mode: forwards;
    opacity: 0;
}

.firstSection>.title>.headerHeader {
    animation-delay: 2s;
}

.firstSection>.title>.headerBottom {
    padding-top: 4vh;
    animation-delay: 3s;
}

.firstSection>.title>.typeracer {
    font-weight: 500;
    font-size: 5rem;
    filter: drop-shadow(0 0 0.1rem #fff);
    white-space: nowrap;
    overflow-x: hidden;
    font-family: 'Lora',
        serif;
}

.typeracer::after {
    content: "_";
    transition-property: opacity;
    transition-duration: 0.5s;
    opacity: 0;
    width: 0;
    display: inline-block;
}

.typeracer.racing::after {
    animation: blink 0.7s infinite;
}

.bottomColor {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    position: absolute;
    width: 100%;
    height: 10vh;
    bottom: 0;
    pointer-events: none;
}

.sectionThree {
    display: flex;
    justify-content: space-evenly;
    align-self: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: 'Josefin Sans',
        sans-serif;
    font-size: 5rem;
}

.sectionThree>img {
    height: 40vh;
}

.sectionTwo {
    justify-content: space-evenly;
    align-self: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: 'Josefin Sans',
        sans-serif;
    font-size: 5rem;
}

.topText {
    position: absolute;
    padding-top: 5vh;
    text-align: center;
    font-size: 5rem;
    font-weight: 300;
    white-space: nowrap;
    overflow-x: hidden;
    width: 100%;
    z-index: 2;
}

.bigProjects {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
}

.bigProjects>.leftSide>.inner {
    background-color: black;
    background-position: center;
    background-size: cover;
}

.bigProjects>.rigthSide>.inner {
    background-position: center;
    background-size: cover;
}

.section>div>.fadeOutTitle {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%, -50%);
    padding-top: 20vh;
    z-index: 100;
    color: white;
    font-weight: 500;
    font-size: 6rem;
    width: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    opacity: .9;
    font-weight: bolder;
    display: none;
}

.section>div>.fadeOutTitle.visible {
    animation: showLowered 1s ease-in-out;
    animation-fill-mode: forwards;
    animation-delay: 1.5s;
}

.sectionThree>.smallerProjects>.fadeOutTitle {
    color: black;
    top: 10vh;
}

.bigProjects>.mainComponents {
    width: 50%;
    height: 100%;
    background-color: black;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease-in-out;
    perspective: 1000px;
    cursor: pointer;
}

.bigProjects>.mainComponents>.inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}


.bigProjects>.mainComponents>.inner>.description {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    -webkit-user-select: none;
    user-select: none;
}

.bigProjects>.mainComponents>.inner>.description>.infos {
    display: flex;
    width: 100%;
    text-align: justify;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.bigProjects>.mainComponents>.inner>.description>.image {
    position: absolute;
    z-index: -1;
    height: 100%;
    width: 100%;
}

.bigProjects>.mainComponents>.inner>.description>.image>img {
    width: 100%;
    height: auto;
    text-align: center;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 1272/1311;
    text-align: center;
    object-fit: cover;
}

.bigProjects>.mainComponents>.inner>.description>.infos>.header {
    font-size: 6rem;
    font-weight: 300;
    white-space: nowrap;
    overflow-x: hidden;
    padding-bottom: 2vh;
}

.bigProjects>.mainComponents>.inner>.description>.infos>.bottom {
    font-size: 2rem;
    font-weight: 300;
    width: 70%;
    padding-bottom: 5vh;
    padding-top: 5vh;
    text-align: justify;
    text-align-last: center;
    line-height: 1.5;
}

.bigProjects>.mainComponents>.inner>.hover {
    -webkit-user-select: none;
    user-select: none;
    position: absolute;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
    height: 100%;
    background-color: rgb(2, 2, 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: rotateY(180deg);
}

.bigProjects>.mainComponents>.inner>div {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.bigProjects>.mainComponents>.inner>.hover>.arrowVisit {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bigProjects>.mainComponents>.inner>.hover>.arrowVisit>a {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    color: white;
    text-decoration: none;
    padding-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-size: 3rem;
}

.bigProjects>.mainComponents>.inner>.hover>.arrowVisit>a:hover {
    opacity: .5;
}


.bigProjects>.mainComponents>.inner>.hover>.arrowVisit>a>img {
    height: 10vh;
    width: auto;
    opacity: .7;
}

.links>a {
    display: flex;
    flex-direction: column;
    color: white;
    text-decoration: none;
    text-align: center;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.links>a:hover {
    opacity: .5;
}


.links>a>img {
    height: 5vh;
}

.bigProjects>.leftSide>div {
    transform: rotateY(0);
}


.bigProjects>.leftSide.clicked>div {
    transform: rotateY(180deg);
}

.bigProjects>.rigthSide>div {
    transform: rotateY(360deg);
}

.bigProjects>.rigthSide.clicked>div {
    transform: rotateY(180deg);
}

.smallerProjects {
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    background-color: #0C0D12;
}

.projects {
    width: calc(100vw - 14vw);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.projects>.project {
    position: absolute;
    width: 100%;
    height: 80vh;
    background-color: #F6F2E6;
    border-radius: 14px;
    box-shadow: 0px 4px 4px 0px rgba(246, 242, 230, 0.25);
    color: #2E2E2E;
    display: flex;
    flex-direction: column;
}

.fadeOutProject {
    animation: show .5s ease-in-out reverse;
    animation-fill-mode: forwards;
}

.project>.topSide {
    height: 14vh;
    text-align: right;
    font-size: 1.6vw;
    padding: 2rem;
    padding-bottom: 0;
    opacity: .6;
    -webkit-user-select: none;
    user-select: none;
}

.project>.center {
    display: flex;
    padding-left: 4vw;
    height: 80%;
}

.center>.leftSide {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.leftSide>.firstLine {
    display: flex;
    align-items: center;
    height: 30%;
}

.firstLine>h2 {
    font-size: 5rem;
    display: flex;
    align-items: flex-start;
}

.firstLine>img {
    height: 15vh;
    padding-right: 2vw;
}

.leftSide>.text {
    padding-top: 2vh;
    font-size: 1.5vw;
    width: 90%;
    text-align: justify;
}

.leftSide>.tags::before {
    content: "-";
    -webkit-user-select: none;
    user-select: none;
}

.leftSide>.tags {
    padding-top: 1rem;
    font-size: 1.2vw;
    font-style: italic;
    opacity: .8;
    text-transform: uppercase;
    -webkit-user-select: none;
    user-select: none;
}

.center>.rightSide {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rightSide>img {
    width: 65%;
    margin: 1vw 1vh;
    margin-top: 2vh;
    border-radius: 5%;
    box-shadow: 3px 3px 8px 0px rgb(98 98 98 / 77%);
}

.bottomLinks {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2vh;
    gap: 2vw;
    padding-left: 2vw;
    padding-top: 0;
    height: 25%;
}

.bottomLinks>a {
    background-color: #D9D9D9;
    border-radius: 14px;
    color: #2E2E2E;
    padding: 1vh 1vw;
    text-decoration: none;
    font-size: 1.5vw;
    padding-top: 1.2vh;
    box-shadow: 0px 2px 2px 0px #7a7a7a;
    transition: background-color ease .5s;
    min-width: 7vw;
    text-align: center;
    text-transform: capitalize;
}

.bottomLinks>a:hover {
    background-color: #bfbfbf;
}

.smallerProjects>.button {
    width: 7vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5rem;
}

.smallerProjects>.button>img {
    width: 80%;
    transition: width ease .5s, opacity ease .5s;
}

.smallerProjects>.button:hover>img {
    width: 90%;
}

.smallerProjects>.button:active>img {
    width: 100%;
    opacity: .7;
}

.bottomBar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1rem;
}

.bottomBar>div {
    height: 100%;
    background-color: blue;
    transition: all ease .5s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sectionFour {
    display: flex;
    width: 100%;
    background-color: #0C0D12;
    height: 100vh;
    color: #F6F2E6;
    font-family: 'Josefin Sans',
        sans-serif;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.sectionFour>.header {
    font-size: 10vh;
    width: 80%;
    padding-top: 5vh;
}

.sectionFour>.text {
    width: 80%;
    font-size: 2vw;
    letter-spacing: 0.1rem;
    line-height: 1.5;
}

.sectionFour>.contact {
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    font-size: 2vw;
    font-size: 1.6vw;
}

.contact>p {
    padding-top: 1vh;
}

.contact>button {
    font-size: 1.6vw;
    background-color: #F6F2E6;
    border-radius: 50vw;
    padding: 2vh 2vw;
    border-style: solid;
    cursor: pointer;
    transition: background ease .3s;
}

.contact>button:hover {
    background-color: #D9D9D9;
}

.contact>p>a {
    color: white;
    opacity: .7;
    text-decoration: none;
}

.sectionLeetcode {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-evenly;
    align-items: center;
    font-family: 'Josefin Sans',
        sans-serif;
}

.sectionLeetcode>.leftSide {
    width: 30%;
}

.sectionLeetcode>.leftSide>h2 {
    font-size: max(5vw, 60px);
    font-weight: 300;
    white-space: nowrap;
    overflow-x: hidden;
    padding-bottom: 2vh;
    color: white;
    margin: 0;
}

.sectionLeetcode>.leftSide>img {
    height: 50vh;
}

.sectionLeetcode>.rightSide {
    width: 30%;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sectionLeetcode>.rightSide>.progress {
    width: 100%;
    height: 40vh;
    background-color: #282828;
    box-shadow: 0px 4px 4px 0px rgba(246, 242, 230, 0.1);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
}

.sectionLeetcode>.rightSide>.progress>.line {
    width: 80%;
    height: 10%;
    position: relative;
    color: #eff2f699;
    font-size: 1.5rem;
}

.sectionLeetcode>.rightSide>.progress>.line>.text {
    position: relative;
    height: 60%;
}

.sectionLeetcode>.rightSide>.progress>.line>.text>.category {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1vw;
}

.sectionLeetcode>.rightSide>.progress>.line>.text>.relation {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    padding-right: 1vw;
}

.sectionLeetcode>.rightSide>.progress>.line>.text>.relation>span {
    padding: 0 .5vw;
    font-size: 1.5rem;
    opacity: .7;
    transition: all ease .3s;
}

.sectionLeetcode>.rightSide>.progress>.line>.text>.relation>.solved {
    color: white;
    font-weight: bolder;
}

.sectionLeetcode>.rightSide>.progress>.line>.progressbar {
    width: 95%;
    height: 35%;
    position: relative;
    margin: 2.5%;
    left: 0;
    bottom: 0;
    border-radius: 14px;
    overflow: hidden;
}

.sectionLeetcode>.rightSide>.progress>.line>.progressbar::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    transition: all ease .3s;
    border-radius: 14px;
}

.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pEasy {
    background-color: #2CBB8D40;
}
.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pEasy::after {
    background-color: #00B8A3;
}

.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pMedium {
    background-color: #FFC01E40;
}
.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pMedium::after {
    background-color: #FFC01E;
}

.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pHard {
    background-color: #EF474340;
}
.sectionLeetcode>.rightSide>.progress>.line>.progressbar.pHard::after {
    background-color: #EF4743;
}

.sectionLeetcode>.rightSide>.progress>a {
    font-size: 1.6rem; 
    color: white;
    text-decoration: none;
    transition: all ease .3s;
    padding-top: 1vh;
    padding-right: 1vw;
    display: block;
    width: fit-content;
    position: absolute;
    bottom: -4vh;
    width: 100%;
    text-align: right; 
}

.sectionLeetcode>.rightSide>.progress>a:hover {
    opacity: .7;
}


@keyframes showLower {
    0% {
        opacity: 0;
    }

    100% {
        opacity: .7;
    }
}

@keyframes lightblink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: .5;
    }

    100% {
        opacity: 0;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes show {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes showLowered {
    0% {
        opacity: .9;
        transform: translate(-50%, -50%) scale(1);
    }

    20% {
        opacity: .9;
        transform: translate(-50%, -50%) scale(.8);
    }

    40% {
        opacity: .0;
        transform: translate(-50%, -20vh) scale(.8);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20vh) scale(.8);
    }
}

::-webkit-scrollbar {
    width: 20px;
    background-color: black;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}

::selection {
    background-color: #a8bbbf;
    color: black;
}

@media only screen and (max-width: 1000px) {

    .firstSection>.title>.titleHeader {
        font-size: 7vw;
    }

    .firstSection>.title>.typeracer {
        font-size: 10vw;
    }

    .sectionFour>.text {
        font-size: 2.7vh;
        line-height: 1.2;
    }

    .sectionFour>.header {
        font-size: 11vw;
    }

    .contact>button {
        font-size: 2.7vh;
        padding: 2vh 3vw;
    }

    .contact>.footnote {
        font-size: 2.2vh;
    }

    .sectionTwo {
        height: 200vh;
    }

    .bigProjects {
        flex-direction: column;
    }

    .bigProjects>.mainComponents {
        width: 100%;
    }

    .center>.rightSide {
        display: none;
    }

    .center>.leftSide {
        width: 100%;
    }

    .project>.topSide {
        height: 4vh;
    }

    .leftSide>.firstLine {
        height: 10%;
        margin-bottom: 2vh;
    }

    .firstLine>img {
        height: 7vh;
    }

    .firstLine>h2 {
        font-size: 6vw;
        margin: 0;
    }

    .leftSide>.text {
        font-size: 4vw;
    }

    .leftSide>.tags {
        font-size: 1.5vh;
    }

    .bottomLinks>a {
        font-size: 2.5vh;
        margin-left: 1vh;
    }

    .sectionThree>.header {
        text-align: center;
        width: 80%;
        font-size: 10vw;
    }

    .links>a {
        width: 80vw;
        word-wrap: break-word;
        line-break: anywhere;
    }

    .sectionThree>img {
        width: 50vw;
        height: auto;
        width: 50vw;
    }

    .sectionLeetcode {
        flex-direction: column;
    }

    .sectionLeetcode > .leftSide, .sectionLeetcode > .rightSide {
        width: 80%;
    }

    .sectionLeetcode > .leftSide > img {
        width: 60%;
        height: auto;
        
    }
    .bigProjects>.mainComponents>.inner>.hover>.arrowVisit>a {
        width: 90%;
        word-break: break-all;
    }

    .bigProjects>.mainComponents>.inner>.hover>.arrowVisit {
        width: 100%;
    }


    .contactWindow>.form {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 70%;
        padding: 6vh 4vh;
    }

    .form > .top {
        width: calc(100% - 12vh);
    } 

    .form > * {
        font-size: 4vh !important;
    }

    .form > input {
        padding: 2vh 2vh;
        width: calc(100% - 4vh);
    }

    .form > textarea {
        width: calc(100% - 4vh);
        padding: 2vh 2vh;
    }

    .form > button {
        padding: 2vh 2vh;
        width: auto;
    }

}