$global_margins: 1.5vh 1vw;

$buttons_border_width: 1.2px;

$grey_inactive: rgb(110, 110, 110);
$grey_hover: rgb(50, 50, 50);

@font-face {
    font-family: 'Public';
    font-style: normal;
    font-weight: 400;
    src: url('assets/fonts/PublicSans-Regular.ttf') format('TrueType');
}

@font-face {
    font-family: 'Public';
    font-style: normal;
    font-weight: 300;
    src: url('assets/fonts/PublicSans-Light.ttf') format('TrueType');
}

@font-face {
    font-family: 'Ortica';
    font-style: bold;
    font-weight: 300;
    src: url('assets/fonts/Ortica-Bold.woff2') format('woff2');
}




* {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Public', sans-serif;
    font-weight: 400;
}




#content {
    padding: $global_margins;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;

    svg {
        position: absolute;
        height: 50%;
        path {
            cursor: pointer;
        }
    }

    svg#fill {
        fill: white;
        /* mix blend mode est dépendant du stacking context */
        mix-blend-mode: overlay;
        opacity: 0.4;
    }

    svg#stroke {
        position: absolute;
        fill: none;
        stroke: black;
        stroke-width: 1px;
    }
    
    #BG_BG_BG {
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
    
        background-size: 100% 100%;
        background-repeat: no-repeat;
        z-index: -1;
        opacity: 1;
        transition: opacity 0.5s ease-in-out;
    }
    
    #BG_BG_BG_tmp {
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
    
        background-size: 100% 100%;
        background-repeat: no-repeat;
        z-index: -2;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
    }


}

#grain-bg {
    position: absolute !important;
    width: 100vw;
    height: 100vh;
}

#grain-bg > * {
    position: relative;
}


#buttons_container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    margin: $global_margins;
    height: 4vh;
    .niveau_profondeur {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        margin-right: 30px;
        width: 5vw;
        p {
            font-weight: 300;
            cursor: pointer;
        }
        p.selected {
            font-weight: 400;
            text-decoration: underline;
        }
        p:hover {
            font-weight: 400;
        }
    }
    .arrow {
        margin-right: 15px;
        svg {
            height: 27px;
            width: auto;
            fill: white;
            stroke: black;
            stroke-width: 0;
            cursor: pointer;
            margin-top: 4px;
            transition: fill 0.2s ease-out;
        }
        svg:hover {
            fill: $grey_inactive;
        }
        svg:active {
            fill: $grey_hover;
        }
    }
    .arrow:last-of-type {
        margin-right: 0;
        margin-left: 12px;
    }
    .mode {
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: white;
        margin: 0;
        margin-right: 14px;
        padding: 7px 15px;
        padding-left: 10px;
        border-radius: 50px;
        cursor: pointer;
        border: solid 0.8px $grey_inactive;
        color: rgba(0, 0, 0, 0.5);
        transition: border 0.1s ease-out, color 0.1s ease-out;
        font-weight: 300;
        font-size: 1rem;
        svg {
            width: 28px;
            height: auto;
            margin-right: 10px;
            .thick {
                transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
                stroke-width: 0.8;
                stroke: $grey_inactive;
            }
            .thin {
                transition: stroke-width 0.2s ease-out, fill 0.2s ease-out, stroke 0.2s ease-out;
                stroke-width: 0.5;
                stroke: $grey_inactive;
            }
            .circle-fill {
              fill: $grey_inactive;
            }
        }
        p {
            height: fit-content;
            margin-bottom: 3px;
        }
    }
    .mode.active {
        font-weight: 400;
        border: solid $buttons_border_width rgba(0, 0, 0, 1);
        color: rgba(0, 0, 0, 1);
        svg .thick {
            stroke-width: 1.2;
            stroke: rgba(0, 0, 0, 1);
        }
        svg .thin {
            stroke-width: 0.6;
            stroke: rgba(0, 0, 0, 1);
        }
        svg .circle-fill {
          fill: rgba(0, 0, 0, 1);
        }
    }
    .mode:hover {
        color: $grey_hover;
        border-color: $grey_hover;
        svg .thick, svg .thin {
            stroke: $grey_hover;
        }
        svg .circle-fill {
            fill: $grey_hover;
        }
    }
}

#global_nav {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: $global_margins;
    z-index: 1;
    h1 {
        font-family: 'Ortica';
        font-size: 1.7em;
        margin-bottom: 10px;
        margin-left: 5px;
    }
    #menu {
        display: flex;
        #search {
            display: flex;
            align-items: center;
            input[type="search"] {
                height: 34px;
                width: 10vw;
                padding-left: 13px;
                padding-right: 30px;
                padding-bottom: 2px;
                font-family: 'Public';
                font-size: 1em;
                font-weight: 300;
                border-radius: 20px;
                border: solid $grey_inactive $buttons_border_width;
                color: $grey_inactive;
                transition: color 0.2s ease-out;
            }
            input[type="search"]:hover {
                color: $grey_hover;
            }
            input[type="search"]:active {
                color: black;
            }
            button {
                background: none;
                border: none;
                cursor: pointer;
                svg {
                    margin-top: 3px;
                    margin-left: -45px;
                    height: 24px;
                    fill: $grey_inactive;
                    transition: fill 0.2s ease-out;
                }
                svg:hover {
                    fill: $grey_hover;
                }
            }
        }
        .menu_item {
            font-weight: 300;
            display: flex;
            align-items: center;
            cursor: pointer;
            margin: 0 10px;
            padding-bottom: 2px;
            svg {
                height: 24px;
                margin-right: -5px;
            }
        }
        .menu_item:hover {
            font-weight: 400;
        }
    }
}