/**
 *
 * Design By Dufaure Romain - 2021
 *
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Josefin+Sans&family=Amatic+SC:wght@700&family=Gentium+Book+Basic&display=swap');

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    scroll-behavior: smooth;
    /*cursor: default;*/
}

body {
    font-family: 'Josefin Sans', sans-serif;

    background: #151a1b;
    color: #c9c9c9;

    width: 100vw;
    height: 100vh;

    position: relative;
    overflow-x: hidden;

    margin: 0 !important;

    /*box-shadow: 0 0 10px #d57c40 inset;*/
}

main {
    padding: 0;
    margin: 0;
    overflow: auto;
    overflow-x: hidden;
    /* white-space: nowrap; */
    position: relative;
    display: contents;
}

section, article {
    overflow-x: hidden;
}

u {
    color: #d57c40 !important;
}

#loading-screen {
    z-index: 50000;
    position: absolute;
    background: #151a1b;
    opacity: 1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
}

#loading-screen div {
    position: fixed;
    margin: auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#loading-screen img {
    height:50px;
}

.mobile-nav {
    top: 25px;
    margin-top: 25px;
    position: fixed;
    z-index: 500;
}

.mobile-nav a {
    position: relative;
    margin: 5px 0 5px 0;
    border-radius: 0 10px 10px 0;    
    background: #d57c40 !important;
    width: 50px;
    height: 50px;
    color: #1e2527 !important;
    display: block;
    text-align: center;
    line-height: 48px;
    text-decoration: none;

    box-shadow: 0 0 5px #151a1b;

    transition: all .2s ease-out;
}

.mobile-nav a i {
    vertical-align: middle;
}

.mobile-nav a:hover {
    background: #d57c40;
}

.mobile-nav a:hover .fas {
    color: #151a1b;
}

.mobile-nav a .active {
    width: 60px;
}

.primary-nav {
    padding-top: 0 !important;

    z-index: 1000;

    min-height: 50px;
    line-height: 50px;
    display: flex;

    /*backdrop-filter: blur(2px);*/

    /* border-top: 5px solid #d57c40; */
    /* border-top: 5px solid #d57c40; */
}

.primary-nav a {
    color: #d57c40 !important;
    padding: 0 20px 0 20px;
    margin: auto;
    height: 100%;
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
    border-radius: 0 0 10px 10px;
    text-decoration: none;

    transition: all .2s ease-out;
}

.primary-nav a .background, .social-btns .download .background, .social-btns .social .background {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 0;

    background: #d57c40;
    box-shadow: 0 0 10px #663b1e;

    overflow: hidden;

    transition: all .2s ease-out;
}

.primary-nav a .background {
    width: 100%;
    height: 0;
    border-radius: 0 0 10px 10px;
}

.primary-nav a:hover .background {
    height: 100%;
}

.primary-nav a .text {
    position: relative;
    z-index: 1;
}

.primary-nav a:hover .text {
    color: #151a1b;
}

.primary-nav a:hover {
    background: #d57c40;
    font-size: larger;
}

.shadow-border {
    position: absolute;

    z-index: 9999;

    width: 100vw;
    height: 100vh;

    box-shadow: 0 0 50px #15161b inset;
}

.bottom-shadow-border {
    position: absolute;

    z-index: 9999;

    height: 100px;
    bottom: 0;
    left: 0;
    right: 0;

    box-shadow: inset 0 -50px 50px -50px #d57c40;
    -moz-box-shadow: inset 0 -50px 50px -50px #d57c40;
    -webkit-box-shadow: inset 0 -50px 50px -50px #d57c40;
}

.border-photo {
    width: 250px;
    height: 250px;
    float: left;
    background: #d57c40;
    border: 5px solid #d57c40;
    /*box-shadow: 0 0 10px #663b1e;*/
    margin: 25px;
    border-radius: 100%;
    shape-outside: ellipse(140px 140px at 150px 115px);
    position: relative;
    margin-top: -10px;
}

.photo {
    width: 100%;
    border-radius: 100%;
    margin: auto;
    filter: grayscale(80%);
}

.shadow-photo {
    box-shadow: 0 0 1px #d57c40 inset, 0 0 2px #d57c40 inset, 0 0 5px #d57c40 inset, 0 0 10px #d57c40 inset, 0 0 20px #d57c40  inset;
    width: 100%;
    height: 100%;
    margin: auto;
    border-radius: 100%;
    position: absolute;
    top: 0;
}

.complete-name {
    text-align: left;
}

.complete-name h2 {
    margin-left: 265px;
}

.text-surligne {
    text-align: left;

    background: linear-gradient(90deg, #d57c40 0%, #d57c40 0%, #d57c40 40%, rgba(0, 0, 0, 0) 100%);

    color: #151a1b;
    /*width: fit-content;*/
    height: 50px;
    line-height: 52px;
    /*padding: 0 10px 0 10px;*/
    /*box-shadow: 0 0 10px #d57c40;*/
    white-space: nowrap;
    font-size: 18px;
}

section#global {
    position: relative;
    scroll-behavior: smooth;
    overflow: hidden;
    height: 100vh;
    padding: 0 100px;
}

section article {
    margin: 45px auto;
}

section.content {
    height: 100vh;
    overflow-y: scroll !important;
    /* margin-right: 18px; */
}

section.content, article.home {
    overflow: auto;
    margin-top: 0;

    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

article.home {
    min-height: 100vh;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.section.content::-webkit-scrollbar, .article.home::-webkit-scrollbar {
    display: none;
}

article {
    padding: 5px !important;
}

article.home .resume {
    width: 100%;
    padding: 50px;
}

.details-content {    
    overflow: hidden;
    position: relative;
}

.square-content {
    background: #1e2527;
    margin: 5px 0;
    z-index: 1;
    /*box-shadow: 0 0 5px #151a1b;*/
    position: relative;
    transition: all .2s ease-out;
    color: #c9c9c9;
    width: 100%;
    opacity: 0;
}

.square-content:not(.default) {
    padding: 5px;
}

.square-content.default:not(.knowledge) {
    padding: 20px;
}

.square-content.knowledge {
    padding: 50px;
}

.square-content .details-title-project, .title-content {
    color: #d57c40;
}

.main-title-content {
    padding: 20px 0;
    text-align: left;
}

.square-content:hover {
    /* transform: translate(-10px) scale(1.05); */
    background: #d57c40;
    box-shadow: 0 0 10px #663b1e;
    z-index: 10;
    text-decoration: none;
}

.square-content:hover * {
    color: #151a1b !important;
}

.square-content:hover .details {
    /*background: linear-gradient(0deg, #d57c40 50%, hsla(24, 64%, 54%, 0.5) 100%);*/
    background: hsla(24, 64%, 54%, 0.95);
    opacity: 1;
}

.square-content:hover .miniature-project {
    transform: scale(1.025);
    border-radius: 35px;
}

.square-content:hover .big-title-project {
    opacity: 0;
}

.square-content .details {
    z-index: 1;
    position: absolute;
    /*background: linear-gradient(0deg, rgba(30,37,39,1) 50%, rgba(30,37,39,0.5) 100%);*/
    background: #1e2527;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 5px;
    opacity: 0;
    box-shadow: 0 0 10px #663b1e;
    transition: all .2s ease-out;
    text-align: center;
    color: #151a1b;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    padding: 20%;
}

.square-content .big-title-project {
    color: #ffffff;
    display: flex;
    position: absolute;
    z-index: 2;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    white-space: nowrap;
    font-size: 40px;
    text-shadow: #000000 0px 5px 9px;
    opacity: 1;
    transition: all .15s ease-out;
}

.portfolio a {
    text-decoration: none !important;
}

.miniature-project {
    width: 100%;
    z-index: -1;
    filter: /* blur(0) */ grayscale(0%);
    /*box-shadow: 0 0 10px #151a1b;*/
    border-radius: 10px;
    transition: all .2s ease-out;
}

.square-content:hover .miniature-project {
    filter: /* blur(1px) */ grayscale(80%);
}

.external-link-icon {
    z-index: 1;
    position: absolute;
    top: 25px;
    /* float: right; */
    right: 25px;
    filter: drop-shadow(0 0px 3px #1e2527);
    border: 5px solid #151a1b8e;
    border-radius: 5px;
    padding: 5px;
}

.social-btns a {
    margin: 5px;
    list-style: none;
    text-align: center;
    text-decoration: none;
    color: #c9c9c9;
    background: #1e2527;
    line-height: 45px;
    transition: all .2s ease-out;
    display: inline-block;
    height: 40px;
    position: relative;
}

.social-btns a:hover {
    color: #151a1b;
    background: #d57c40;
}

.social-btns .social {
    width: 40px;
    border-radius: 100%;
    /*border: 1px solid #d57c40;*/
}

.social-btns .text, .social-btns .fab {
    position: relative;
    z-index: 1;
}

.social-btns .download {
    padding: 0 10px 0 10px;
    white-space: nowrap;
    overflow: hidden;
    margin: -15px 0;
}

.social-btns .download .background {
    width: 0;
    height: 100%;
}

.social-btns .download:hover .background {
    width: 100%;
}

.social-btns .social .background {
    width: 0;
    height: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    line-height: 35px;
    text-align: center;
    color: #c9c9c9;
}

.social-btns .social:hover .background {
    width: 80%;
    height: 80%;
}

article.course h4 {
    backdrop-filter: blur(2px);
    text-align: left;
    height: 50px;
    line-height: 50px;
    /*top: -50px;*/
}

.footer-link {
    color: grey;
    background: none;
    border: 0 none;
    float: right;
}

.footer-link:hover {
    color: grey;
    text-decoration: underline;
}

.modal-content {
    border-radius: 10px;
    box-shadow: 0 0 10px #151a1b;
    color: #c9c9c9;
    background: #151a1b;
    margin: 50px;
}

.modal-body {
    box-shadow: 0 0 50px 15px #151a1b inset;
}

.modal-content, .modal-footer, .modal-header {
    border: 0 none;
}

.modal-title {
    color: #d57c40;
}

.modal-header button {
    color: white;
}

.modal-header button:hover {
    color: #d57c40 !important;
}

.modal-footer button {
    border-radius: 5px;
    padding: 5px 10px;
    color: #c9c9c9;
    background: #1e2527;
    border: 0 none;
    transition: all .2s ease-out;
}

.modal-footer button:hover {
    color: #151a1b;
    background: #d57c40;
}

/* ROM */

.rom-border-radius-standard {
    border-radius: 10px !important;
}

.rom-font-color-standard {
    color: #d57c40 !important;
}

.rom-background-color-standard {
    background: #d57c40 !important;
}

.rom-space-auto {
    white-space: pre-line;
}

/* CURSOR */

.text-bar {
    border-right: 2px solid #c9c9c9;
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    10% {
        opacity: 0;
    }
}


/* SCROLLBAR */

/* width */
::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Track */
::-webkit-scrollbar-track {
    background: #151a1b;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #d57c40;
    transition: all .2s ease-out;
}

::-webkit-scrollbar-thumb:hover {
    box-shadow: 0 0 10px #663b1e;
}

/* MEDIA QUERY */

@media only screen and (max-width: 1400px) {
    
    .border-photo {
        float: none;
        margin: auto;
    }

    .complete-name {
        text-align: center;
    }
    
    .complete-name h2 {
        margin-left: 0;
    }

    .text-surligne {
        text-align: center;
        background: #d57c40;
    }

    .social-btns a {
        margin: auto;
    }

    article.home .resume {
        padding: 20px;
    }

    .square-content:not(.default .square-content) {
        padding: 30px;
    }

    .square-content .details {
        position: unset;
        opacity: 1;
        margin: auto;
        margin-top: 30px;
        box-shadow: none;  
        padding: 0;
        display: block;
        text-align: left;
        color: #cecece;
    }

    .square-content .external-link-icon {
        color: #cecece !important;
    }
    
    .square-content .big-title-project {
        opacity: 0;
        display: none;
    }

    .square-content .miniature-project {
        filter: grayscale(0) !important;
        border-radius: 10px !important;
    }

    .square-content:hover .miniature-project {
        transform: scale(1);
    }
}

@media only screen and (max-width: 1200px) {
    
    body, section#global, section.content {
        height: auto;
    }
    
    body, section#global, section.content, article.home {
        margin-top: auto;
        overflow: auto;
        overflow-x: hidden;
    }

    .primary-nav {
        box-shadow: 0 0 15px #151a1b;
        background: #151a1b;
    }
    
    .primary-nav a.active .text {
        color: #151a1b;
    }

    .primary-nav a.active {
        background: #d57c40;
        font-size: larger;
    }

    article.home .resume {
        padding: 50px;
    }
    
    .border-photo {
        shape-outside: ellipse(140px 140px at 150px 150px);
        margin: 25px ;
        float: left ;
    }

    .complete-name {
        text-align: left;
    }
    
    .complete-name h2 {
        margin-left: 265px;
    }

    .text-surligne {
        text-align: left;
        background: linear-gradient(90deg, #d57c40 0%, #d57c40 0%, #d57c40 40%, rgba(0, 0, 0, 0) 100%);
    }

    .social-btns a {
        margin: 5px;
    }
}

@media only screen and (max-width: 850px) {
    
    .border-photo {
        width: 35%;
        height: 35%;
        shape-outside: ellipse(45% 45% at 125px 125px);
    }
    
    .complete-name h2 {
        margin-left: 205px;
    }

    article.home .resume {
        margin: auto;
        transform: none;
    }
}

@media only screen and (max-width: 790px) {
    
    section#global {
        padding: 0 20px;
    }
    
    .border-photo {
        float: none;
        margin: auto;
        width: 50%;
        height: 50%;
    }

    .complete-name {
        text-align: center;
    }
    
    .complete-name h2 {
        margin-left: 0;
    }

    .text-surligne {
        text-align: center;
        background: #d57c40;
        font-size: 16px;
    }

    .social-btns a {
        margin: auto;
    }

    article.home .resume {
        padding: 20px;
    }
}

@media only screen and (max-width: 500px) {
    
    .border-photo {
        width: 80%;
        height: 80%;
    }

    .footer-link {
        float: left;
    }
}
