/*
Author: Tom_Rémond
*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #20262E;
    font-family: Arial, Helvetica, sans-serif;

}

section {
    width: 100%;
    height: 100vh;
    padding: 10vh 10vw;
    position: relative;
}
h1 {
    margin: 0;
}


/* Navigation */
#page-name {
    text-transform: capitalize;
}
#burger-btn, #burger-btn-open {
    height: 40px;
    cursor: pointer;
}

.logo-portfolio {
    height: 30px;
}

#navigation {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #00000040;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    column-gap: 0.5em;
    font-size: 30px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10vh 10vw;
}
#navigation .header-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}
#navigation .header-nav .header-text {
    display: none;
}
#navigation .header-nav .left-part-header-nav {
    display: flex;
    flex-direction: row;
}
#navigation .header-nav .right-part-header-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 15px;
}
#navigation .content-nav {
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
}
#navigation .content-nav ol {
    list-style-type: none;
}
#navigation .content-nav h2 span {
    font-size: 20px;
}
#navigation .content-nav h2 a {
    padding-left: 10px;
}
#navigation .social-medias ul {
    display: flex;
    flex-direction: row;
    column-gap: 10vh;
}

.header-container {
    padding: 10vh 10vw;
    position: absolute;
    width: 100%;
}
.header-content {
    z-index: 1;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
}



/*-----------------------------------------------------------------------------------*/
/*  Home
/*-----------------------------------------------------------------------------------*/
#home .content-container-home {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px solid white;
    position: relative;
}

#home canvas {
    width: 100%;
    height: 100%;
    position: fixed;
}

.info-home {
    z-index: 1;
    margin-top: 30vh;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translate(-50%, 0%);
}
.info-home h2 {
    color: #FFFFFF;
    font-size: 2.6em;
    font-weight: bold;
}
.info-home p {
    color: #FFFFFF;
    font-size: 1.8em;
}
.info-home-links {
    display: flex;
    flex-direction: column;
}
.info-home a {
    color: #FFFFFF;
    font-size: 1.8em;
}

/*-----------------------------------------------------------------------------------*/
/*  Work
/*-----------------------------------------------------------------------------------*/
#work {
    /* for touch screen */
    touch-action: none; 
    padding: 0;
}
#work #projects-appear {
    /* display: none; */
    height: 100%;
    width: 100%;
}
.container-projects {
    min-height: 100%;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-perspective: 1000px;
            perspective: 1000px;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
}
#drag-container, #spin-container {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: auto;
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
}
#drag-container img, #drag-container video {
    -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    line-height: 200px;
    font-size: 50px;
    text-align: center;
    -webkit-box-shadow: 0 0 8px #fff;
            box-shadow: 0 0 8px #fff;
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0005);
    padding: 0 10px !important;
    background-color: #000000bb;
}
#drag-container img:hover, #drag-container video:hover {
    cursor: pointer;
}
#drag-container img:hover, #drag-container video:hover {
    -webkit-box-shadow: 0 0 15px #fffd;
            box-shadow: 0 0 15px #fffd;
    -webkit-box-reflect: below 10px linear-gradient(transparent, transparent, #0007);
}
#drag-container p {
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%) rotateX(90deg);
            transform: translate(-50%,-50%) rotateX(90deg);
    color: #fff;
}
#ground {
    width: 900px;
    height: 900px;
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translate(-50%,-50%) rotateX(90deg);
            transform: translate(-50%,-50%) rotateX(90deg);
    background: -webkit-radial-gradient(center center, farthest-side , #9993, transparent);
}

/*-----------------------------------------------------------------------------------*/
/*  About
/*-----------------------------------------------------------------------------------*/
#about .raccoon-about-container {
    position: relative;
}

#about svg {
    position: absolute;
    top: -200px;
}

#about .eye {
    position: absolute;
    top: 280px;
    width: 20px;
    border-radius: 50px;
}
#about .eye#raccoon-left-eye {
    left: 153px;
}
#about .eye#raccoon-right-eye {
    left: 325px;
}

/*-----------------------------------------------------------------------------------*/
/*  Contact
/*-----------------------------------------------------------------------------------*/

#contact .info-contact {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
}
#contact .info-contact h2 {
    color: #FFFFFF;
    font-size: 2.6em;
    font-weight: bold;
    margin-bottom: 0;
}
#contact .info-contact hr {
    width: 100%;
    border: 2px solid white;
    border-radius: 1px;
}
#contact .info-contact h3 span {
    color: #FFFFFF;
}
#contact .info-contact .social-media-contact span {
    color: #FFFFFF;
}

/*-----------------------------------------------------------------------------------*/
/*  Usefull
/*-----------------------------------------------------------------------------------*/
.no-opacity {
    opacity: 0 !important;
}

/* Loading */
#loading-screen {
    z-index: 100;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    color: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 0.5em;
    font-size: 30px;
    opacity: 1;
    transition: opacity 5s ease-in-out;
    -moz-transition: opacity 5s ease-in-out;
    -webkit-transition: opacity 5s ease-in-out;
}

/*-----------------------------------------------------------------------------------*/
/*  Cursor
/*-----------------------------------------------------------------------------------*/
.cursor {
    position: fixed;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    pointer-events: none;
    left: -100px;
    top: 50%;
    mix-blend-mode: difference; /*for dark and light modes */
    background-color: transparent;
    z-index: 10000;
    border: 2px solid rgb(198, 212, 31);
    height: 30px;
    width: 30px;
    transition: all 250ms ease-out;
}


@media only screen and (max-width: 767px) {
    /*WORK*/
    #work #spin-container {
        width: 100px !important;
        height: 150px !important;
    }
}