/* The goal is to split the window by two side, left and right. */
/* The left side is for the menu and the right side is for the content. */
/* The menu is fixed and the content is scrollable. */
/* The menu is 40% of the window and the content is 60% of the window. */

/* set the root colors */
:root {
    --color-primary_background-darkmode: #101d3d;
    --color-primary_background_hover-darkmode: #29437b7c;
    --color-primary_text_title-darkmode: #d5deee;
    --color-primary_text_global-darkmode: #8798b5;
    --color-primary_text_details-darkmode: #afb7c5;
    --color-primary_text_hover: #5cdecb;
}

html {
    overflow-x: hidden !important;
}

/* set the entiere page background color */
body {
    background-color: var(--color-primary_background-darkmode);

    overflow-x: hidden !important;
    width: 100%;
}

body::-webkit-scrollbar {
    width: 0.5rem;
}

body::-webkit-scrollbar-thumb {
    background-color: #5273b95e;
    border-radius: 4px;
}

body::-webkit-scrollbar-track {
    background-color: rgba(10, 34, 85, 0.682);
}

#rounded-image {
    border-radius: 10rem 10rem 10rem 0rem;
}

.dummy {
    display: block;
    width: 100%;
    height: 6rem;
    background-color: transparent;
}

.light-blob {
    position: absolute;
    width: 30rem;
    height: 30rem;
    background-color: rgb(0, 41, 224); /* Initial light blob color : rgb(0, 29, 160)*/
    border-radius: 50%;
    transform: scale(0);
    overflow: hidden;

    transition: opacity 0.3s ease-in-out;

    /* apply a blur effect */
    filter: blur(100px);
    z-index: 0;
}

.blur-background {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    outline: 0;
    overflow: hidden;
    background-color: var(--color-primary_background-darkmode);
    opacity: 0.6;
    filter: blur(0.5rem);
    overflow: hidden;
}



.wrapper {
    /* this is a better choice to use grid instead of flexbox */
    display: grid;
    grid-template-columns: 30% 70%;
    grid-template-areas: "menu content";
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    border: 0;
    outline: 0;
    height: 100%;
    width: 100%;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: normal;
    overflow-x: hidden;
}

.horizontal-separator {
    /* a simple separator (a bar) that will take the 90% of the max width of their parent div */
    display: block;
    width: 65%;
    height: 0.025rem;
    background-color: var(--color-primary_text_details-darkmode);
    margin: 0 auto;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.top-gradient {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(180deg, #101d3d 0%, #101d3d00 100%);

    z-index: 3;
}

.a-color {
    color: var(--color-primary_text_hover) !important;
    transition: filter 0.2s ease-in-out;
}

.a-color:hover {
    filter: brightness(1.2);
}

.a-underline {
    text-decoration: underline;
}

.a-italic {
    font-style: italic;
}

.a-margin-bot {
    margin-bottom: 0.3rem;
}


.flex-text-to-text {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.big-title {
    display: block;
    color: var(--color-primary_text_title-darkmode);
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0.15rem 0.10rem 0.10rem rgba(0, 0, 0, 0.835);
    width: auto;
    margin-left: -1rem;
    /* add a text border */
    z-index: 1;
    transition: filter 0.2s ease-in-out;
    overflow-x: visible;
}

.big-title::before {
    content: '';
    position: absolute;
    /* get the .big-title width automatically */
    width: 100%;

    height: 1.30rem;
    margin-top: 1.75rem;
    margin-left: 2.0rem;
    background-color: var(--color-primary_text_hover);
    z-index: -1;

    transition: filter 0.2s ease-in-out;
    overflow-x: visible;
}

.big-title:hover {
    filter: brightness(1.2);
}

.big-title::before:hover {
    filter: brightness(1.2), blur(0.1rem);
}


/* ------- Custom Scroll Bar ------- */

.custom-scroll {
    width: 0.5rem;
    height: 100%;
    overflow: auto;

    scrollbar-width: thin;
    scrollbar-color: #333333 #666666;
}


.custom-scroll::-webkit-scrollbar {
    width: 8px;
}


.custom-scroll::-webkit-scrollbar-thumb {
    background-color: #333333;
    border-radius: 4px;
}


.custom-scroll::-webkit-scrollbar-track {
    background-color: #666666;
}

/* -------- handle responsive design -------- */


/* when the content grid overlap the menu one, hide the menu grid. using @media */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
    }
    .wrapper {
        grid-template-columns: 100%;
        grid-template-areas: "content";

        /* adapt the position of the content to make it on top of the page */
        position: relative;
        top: 0;
        width: 100%;
        height: 100%;

    }
    .content {
        /* adapt scale to the new size */
        /* transform: scale(0.8); */
        /* margin-left: -1.5rem; */
        width: 100%;
        height: 100%;

        padding: 0 !important;

        /* add a margin to the content */
        margin: 0 auto;
        margin-top: auto;
    }
    .topbar {
        display: block;
        position: fixed !important;
        overflow: hidden;

        padding: unset !important;
        margin: unset !important;
        right: unset !important;
        border: 0;

        width: 100%;
        height: auto !important;
        background-color: var(--color-primary_background-darkmode);
        background: transparent;
        z-index: 3;
    }
    .social-container {
        /* we want to move social media on the top of the page and display them, but they are in the menu class */
        top: 0;
        left: 0;
        width: auto !important;
        height: 2.5rem;

        padding: 0;
        margin: 0 auto;
        border: 0;

        background: transparent;
        z-index: 3;
        margin-left: 0 !important;
        overflow: hidden;
    }
    #language-button {
        margin-top: 0.8rem;
    }

    /* hide all element of .menu class excect the social-container */
    .menu-hider-responsive {
        display: none;
    }
    .dummy {
        display: none;
    }

    .skills-container {
        max-width: 18rem;
    }

    /* hide linear Bars */
    .linear-bar-container {
        height: 100% !important;
    }
    .linear-bar-placer {
        height: 100% !important;
    }
}


.sized-demo-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;

    transition: all 0.2s ease-in-out;
}

.sized-demo-img:hover {
    filter: brightness(1.2);
    transform: scale(1.005);
}

/* -------- handle Too wide screen -------- */
@media (min-width: 2000px) {
    body {
        background-color: transparent;
        background: linear-gradient(100deg, #000000 0%, #0048ffdb 100%) !important;
    }
    html {
        background-color: transparent;
        background: linear-gradient(100deg, #000000 0%, #0048ffdb 100%) !important;
    }
    .wrapper {
        width: 70%;
    }
    .content {
        width: 70%;
    }
    .menu {
        width: 70%;
    }
}