@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300&family=Oswald&display=swap');

/* Reset et importation */

:root {
    --var-colormain: #000000;
    --var-colorblur: rgba(0, 0, 0, 0.575);
    --var-colorblur-light: rgba(231, 231, 231, 0.747);
    --backdrop-blur: blur(4px);
    --border-gray: solid #424242 .2rem;
    --border-white: solid #a1a1a1 .2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 12pt;
    font-family: 'Lato', sans-serif;
    overscroll-behavior-y: contain;
    height: 7700px;
    overflow-x: hidden!important;
}

body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-track {
    background: rgb(0, 0, 0);
}

body::-webkit-scrollbar-thumb {
    background-color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 0, 0);
    border-radius: 1rem;
}

h1,
h2,
h3,
h4 {
    font-family: 'Oswald', sans-serif;
}

p {
    color: #ffffff;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    image-rendering: pixelated;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

a:visited {
    color: #ffffff;
}

.page {
    transition: opacity 1500ms 500ms;
}

.main {
    transition: opacity 500ms;
    overflow-x: hidden;
}


/* Header */

.header {
    background-color: var(--var-colormain);
    height: 4rem;
    width: 100%;
    position: fixed;
    padding: .5rem;
    z-index: 3;
}

.header__nav {
    position: fixed;
    margin: auto;
    bottom: 0;
    top: 0;
    font-size: 18pt;
    width: 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0%;
    overflow: hidden;
    transition: opacity 500ms, height 500ms, width 500ms 500ms;
}

.header__ul {
    height: 100%;
    display: flex;
}

.header__li {
    width: 100%;
    text-align: center;
    margin: auto;
}

.header__spade {
    width: 10%;
    transition: transform 900ms;
    cursor: pointer;
    user-select: none;
}

.header__spade-reversed {
    transform: translateX(-45vw) translateY(45vh);
    cursor: default;
}

.header__spade-reversed1 {
    transform: translateX(-45vw) translateY(45vh) scale(100) rotate(180deg);
    cursor: default;
}

.header__logo-svg {
    width: 6rem;
    margin-left: 10%;
}

.header__spade-svg {
    width: 2.3rem;
}

.li__svg {
    width: 3rem;
    fill: black;
}

.nav__ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.nav__li {
    width: fit-content;
    cursor: pointer;
}

.nav__language {
    position: absolute;
    flex-wrap: wrap;
    justify-content: center;
    width: 18rem;
    top: 4rem;
    display: flex;
    gap: 0.5rem 1rem;
}

.language__img {
    width: 5rem;
    cursor: pointer;
}

.nav__contact {
    display: flex;
    flex-wrap: wrap;
    position: absolute;
    text-align: center;
    justify-content: center;
    overflow: hidden;
    bottom: 3rem;
    width: 17rem;
}

.contact {
    font-size: 2rem;
    width: 100%;
    color: rgb(51, 51, 51);
}

.contact__cv {
    color: #ffffff;
}

.copyr__li {
    font-size: 12pt;
    text-align: center;
}

.alex__contact {
    margin-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    overflow: hidden;
    animation: scaleup 3000ms forwards;
    animation-play-state: paused;
}

.contact__img {
    width: 3.5rem;
}


/* Classes génériques */

.hidden {
    opacity: 0%!important;
}

.show {
    opacity: 100%;
    width: 100%;
}

.template {
    display: none;
}

p {
    background-color: var(--var-colorblur);
    backdrop-filter: var(--backdrop-blur);
    border-radius: .7rem;
    border: var(--border-gray);
    padding: .5rem;
}


/* Intro */

.intro {
    display: flex;
    flex-direction: column;
    text-align: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 40vh;
    width: 80vw;
    height: 30vh;
    margin: auto;
    transition: opacity 500ms;
}

.button {
    margin: 2rem auto 2rem auto;
    width: 30vw;
    border: var(--border-gray);
    background-color: var(--var-colorblur);
    backdrop-filter: var(--backdrop-blur);
    padding: 1rem;
    color: white;
    text-align: center;
    cursor: pointer;
    animation: fadefrom 500ms;
}

.intro__button {
    margin: auto;
    display: flex;
    gap: 1rem;
}

.skip {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 10vh;
}

.intro__p {
    font-size: 15pt;
    font-weight: 1000;
    text-align: justify;
    margin: auto;
    margin-bottom: 2rem;
    max-width: 40rem;
}


/* Section Accueil */

.section__accueil {
    width: 100%;
    height: 50rem;
    text-align: center;
}

.accueil__h1 {
    margin: auto;
    margin-top: 7rem;
    text-align: center;
    font-size: 30pt;
    margin-bottom: -2rem;
    line-height: 50px;
    width: 85%;
    max-width: 20rem;
}

.accueil__span {
    margin-top: 67vh;
    display: block;
    animation: scaledown 1000ms forwards;
    animation-play-state: paused;
}


/* Section Alex */

.section__alex {
    margin-top: 60vh;
}

.alex__h2 {
    animation: x-slide 1500ms;
    animation-play-state: paused;
    overflow: hidden;
    font-size: 80pt;
    font-weight: 1000;
    text-align: center;
    margin: auto;
    font-family: 'Oswald', sans-serif;
}

.alex__presentation {
    width: 80%;
    margin: auto;
    margin-top: 3rem;
    font-size: 20pt;
    overflow: hidden;
    text-align: center;
}

.presentation__photo {
    width: 12rem;
    border-radius: 6rem;
    margin: auto;
    animation: scaleup 1000ms forwards;
    animation-play-state: paused;
}

.presentation__description {
    margin: auto;
    margin-top: 1rem;
    border-radius: 1.3rem;
    overflow: hidden;
    max-width: 50rem;
    font-size: 20pt;
    font-family: 'Lato', sans-serif;
    background-color: var(--var-colorblur);
    backdrop-filter: var(--backdrop-blur);
    border-radius: .7rem;
    border: var(--border-gray);
    padding: .5rem;
    color: #ffffff;
    animation: fadefrom 1000ms forwards;
    animation-play-state: paused;
}

.alex__softskills {
    margin: auto;
    margin-top: 35vh;
    overflow: hidden;
    display: table;
    animation: scaleup 1000ms forwards;
    animation-play-state: paused;
}

.softskills__span {
    display: block;
    text-align: left;
    font-size: 20pt;
    margin-bottom: -2rem;
}

.softskills__h3 {
    font-size: 60pt;
}

.presentation__description2 {
    width: 80%;
    max-width: 40rem;
    font-size: 20pt;
    margin: auto;
    margin-top: 40vh;
    margin-bottom: 30vh;
    animation: fadefrom 1000ms forwards;
    animation-play-state: paused;
}


/* Compétences et domaines */

.skills__h2 {
    margin-top: 50vh;
    margin-bottom: 10vh;
    font-size: 50pt;
}

.skill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    margin-bottom: 24rem;
}

.skill__img {
    width: 9rem;
}

.skill__carousel {
    display: flex;
    overflow: hidden;
    width: 66%;
    max-width: 30rem;
    border: var(--border-white);
    background-color: var(--var-colorblur-light);
}

.skill__carousel-item {
    width: 15rem;
    flex: 0 0 100%;
    text-align: center;
    animation: carousel 15s infinite;
}

.carousel-img {
    width: 12rem;
    margin: 1rem;
}

.skill__h3 {
    font-size: 50pt;
}

.skill__p {
    font-size: 18pt;
    width: 80%;
    max-width: 40rem;
    margin: auto;
    text-align: center;
    padding: .5rem;
}

.skill1,
.skill2,
.skill3,
.skill4 {
    animation: scaleup 3000ms forwards;
    animation-play-state: paused;
}

.transition__button {
    margin: auto;
    margin-top: 5rem;
}

.scenetransitions {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    pointer-events: none;
    opacity: 100%;
    transition: opacity 1000ms;
    z-index: 2;
}

.transition__img {
    position: absolute;
    width: 4rem;
    bottom: 3rem;
    right: 3rem;
    user-select: none;
    animation: spin infinite 2000ms linear;
}


/* Projets */

.project::before {
    content: "";
    position: absolute;
    height: 6rem;
    width: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.884) 0%, rgba(0, 0, 0, 0) 100%);
    transform: translateY(-10.975rem);
}

.project {
    background-color: rgba(0, 0, 0, 0.884);
    color: #ffffff;
    width: 100%;
    margin-top: 90vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.project__a {
    display: block;
    color: #ffffff;
    animation: scaleup 3000ms forwards;
    animation-play-state: paused;
    margin: 3rem 1rem 3rem 1rem;
    text-decoration: underline;
}

.project__p {
    animation: fadefrom 3000ms forwards;
    animation-play-state: paused;
    max-width: 50rem;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.project__img {
    margin: auto;
    width: 60vw;
    display: block;
    max-width: 40rem;
    max-height: 80rem;
    animation: scaleup 3000ms forwards;
    animation-play-state: paused;
}

.project__h2 {
    transform: translateY(-150px);
    text-align: center;
    text-transform: uppercase;
    font-size: 60pt;
    margin-bottom: -80px;
    line-height: 75px;
}

.project__h2::after {
    content: url(./src/arrow.png);
    display: block;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    margin-top: -1rem;
    animation: scroll 1500ms infinite;
}

.project__description {
    margin: 2rem;
    text-align: center;
    font-size: 20pt;
}

.project__close {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 4rem;
    margin: 1rem;
}

.npc {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.801);
    color: #ffffff;
    width: 100%;
    bottom: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: 30pt;
    animation: fadefrom 500ms;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.npc__h2 {
    margin-bottom: -1.5rem;
}

.npc__dialog {
    font-size: 13pt;
    max-width: 70rem;
    padding: 1rem;
    margin: auto;
}

.npc__click {
    animation: spadeclick 1500ms infinite;
    width: 2rem;
    margin: auto;
}

.animate {
    animation-play-state: running!important;
}

.video {
    display: none;
    width: 0px;
    height: 0px;
}

.cam {
    display: none;
}

.spadecount {
    position: absolute;
    margin: auto;
    margin-left: .5rem;
    bottom: 0;
    top: 0;
    color: white;
    font-family: 'Oswald', 'sans-serif';
    display: flex;
    align-items: center;
    opacity: 100%;
    transition: opacity 500ms;
}

.spadecount__count {
    font-size: 3rem;
}

.spadecount__img {
    width: 2.5rem;
}

.tutorial {
    position: absolute;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.801);
    color: #ffffff;
    width: 100%;
    bottom: 0;
    padding: 2rem;
    animation: fadefrom 500ms;
}

.tutorial__text {
    background: none;
    backdrop-filter: none;
    border: none;
    font-family: 'Oswald';
    font-size: 15pt;
}

.tutorial__svg {
    width: 5rem;
}

.lock {
    display: none;
    width: 0;
    height: 0;
}

@media (min-width:700px) {
    .accueil__h1 {
        font-size: 50pt;
        max-width: 35rem;
        line-height: 65px;
    }
    .npc__dialog {
        font-size: 16pt;
    }
    .softskills__span {
        font-size: 40pt;
        margin-bottom: -3rem;
    }
    .softskills__h3 {
        font-size: 95pt;
    }
    .project__h2::before {
        content: url(./src/arrow.png);
        position: absolute;
        margin-left: -5rem;
        animation: scroll 1500ms infinite;
    }
    .project__h2::after {
        content: url(./src/arrow.png);
        position: absolute;
        display: inline;
        margin: 0;
        left: auto;
        right: auto;
        margin-left: 2rem;
        animation: scroll 1500ms infinite;
    }
    .skills__h2 {
        font-size: 90pt;
    }
}


/* Animations */

@keyframes x-slide {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

@keyframes y-slide {
    0% {
        height: 0%;
    }
    100% {
        height: 100%;
    }
}

@keyframes scaledown {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes scaleup {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes scaleupY {
    0% {
        transform: scaleY(0.01);
    }
    100% {
        transform: scaleY(1);
    }
}

@keyframes fadefrom {
    0% {
        opacity: 0%;
    }
    100% {
        opacity: 100%;
    }
}

@keyframes carousel {
    0%,
    25% {
        transform: translateX(0%);
    }
    30%,
    50% {
        transform: translateX(-100%);
    }
    55%,
    70% {
        transform: translateX(-200%);
    }
    90%,
    100% {
        transform: translateX(0%);
    }
}

@keyframes spadeclick {
    0% {
        transform: rotate(180deg) translateY(6px);
    }
    50% {
        transform: rotate(180deg) translateY(12px);
    }
    100% {
        transform: rotate(180deg) translateY(6px);
    }
}

@keyframes tutorialswipe {
    0% {
        transform: rotate(0deg) translateX(0px);
    }
    25% {
        transform: rotate(10deg) translateX(128px);
    }
    50% {
        transform: rotate(0deg) translateX(0px);
    }
    75% {
        transform: rotate(0deg) translateY(-32px);
    }
    100% {
        transform: rotate(0deg) translateX(0px);
    }
}

@keyframes scroll {
    0% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes touch {
    0% {
        transform: scale(1.2) rotate(0deg);
    }
    50% {
        transform: scale(.8) rotate(-10deg);
    }
    100% {
        transform: scale(1.2) rotate(0deg);
    }
}

@keyframes scalewiggle {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(.8);
    }
    100% {
        transform: scale(1.2);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/*
              //
             ////             
           ////////           
         ////////////         
       ////////////////       
     ////////////////////     
    //////////////////////    
    //////////////////////    
      //////////////////      
              ///             
             /////  
Réalisé avec passion par Alexandre Sounalet 
*/