﻿:root {
    box-sizing: border-box;
    --primary: #e70146;
    --hover-color: #fdd052;
    --dark: #1c2022;
    --light: #fff;
    --grey: #f5f5f5;
    --header-bg: var(--primary);
}

*,
*::after,
*::before {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

.header {
    /*background: var(--header-bg);
    padding-left: 1.5em;*/
    position: sticky;
    top: 0;
}

#logo-container img {
    margin-left: 10px;
    width: calc(3rem + 1vw);
    height: auto;
}

.branding-logo {
    color: var(--light);
    font-size: calc(0.8rem + 1vw);
    text-decoration: none;
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
    background-color: var(--grey);
    /*box-shadow: 0 0 20px 0 rgba(0,0,0,.1);*/
    box-shadow: 0 0 10px 0 var(--dark);
}

.menu {
    display: flex;
    flex-direction: row;
    margin-left: 0;
    margin-right: auto;
}

    .menu li {
        list-style: none;
    }

        .menu li a {
            display: block;
            text-decoration: none;
            color: var(--dark);
            padding: 1em 1.5em;
            font-size: 1rem;
        }

/* Styling submenu */
    .has-dropdown {
    position: relative;
}

.submenu {
    position: absolute;
    left: 0;
    background-color: var(--grey);
    white-space: nowrap;
    padding: 1em 0;
    min-width: 16em;
    /* hide submenus */
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
}

    .submenu > li > a {
        padding: 0.5em 1.5em;
    }

    .submenu .submenu {
        /*left: -100%; if located it on left*/
        left: 100%;
        top: 0;
    }

        .submenu .submenu .submenu {
            left: 100%;
            top: 0;
        }

    .menu > li:hover > a,
    .submenu > li:hover > a {
        /*background-color: hsla(0, 0%, 100%, 0.05);
        color: var(--hover-color);*/
        font-weight: bold;
    }

.menu > li:hover > a {
    /*background-color: hsla(0, 0%, 0%, 0.95);*/
}

/* Arrows */

.arrow {
    width: 0.5em;
    height: 0.5em;
    display: inline-block;
    vertical-align: middle;
    border-left: 0.15em solid currentColor;
    border-bottom: 0.15em solid currentColor;
    transform: rotate(-45deg);
    margin-top: -0.25em;
    transition: transform 100ms ease-in-out;
}

/* Reveal  */
.menu > li:hover > a + .submenu,
.submenu > li:hover > a + .submenu {
    opacity: 1;
    transform: scaleY(1);
}

/* ANIMATE aRROWS */
.menu > li:hover > a > .arrow,
.submenu > li:hover > a > .arrow {
    transform: rotate(225deg);
}

@media only screen and (max-width: 78.75em) {
    .submenu .submenu .submenu {
        left: 100%;
        top: 0.5em;
    }

    .submenu {
        min-width: 16em;
    }
}

@media only screen and (max-width: 58.75em) {
    .menu li a {
        font-size: 1rem;
    }
}

/*screen 800 pixel*/
@media only screen and (max-width: 50em) {
    header {
        /*     position: relative; */
        padding: 1.5em 2em;
    }

    .menu {
        flex-flow: column;
        position: absolute;
        background: var(--light);
        top: 6em;
        left: 0;
        right: 0;
        height: 100vh;
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top center;
        transition: 200ms transform cubic-bezier(0.36, 0.4, 0.42, 1.48) 100ms, 100ms opacity ease-in-out;
        overflow-y: scroll;
    }

        .menu > li > a {
            font-size: 1rem;
            color: var(--dark);
        }

    .submenu > li > a {
        font-size: 1rem;
    }

    .submenu {
        top: 0;
        padding-left: 1.5em;
        border-left: 0.12em dotted hsla(342, 99%, 45%, 0.95);
    }

        .submenu .submenu {
            left: 0;
            top: 0;
        }

            .submenu .submenu .submenu {
                left: 0;
                top: 0;
            }

        .menu > li:hover > a + .submenu,
        .submenu > li:hover > a + .submenu {
            position: relative;
        }

    .hamburger {
        width: 2em;
        height: 0.25em;
        display: block;
        background: var(--dark);
        position: relative;
        cursor: pointer;
        transition: 0.2s transform ease-in-out;
        margin-right: 10px;
    }

        .hamburger::after,
        .hamburger::before {
            content: "";
            position: absolute;
            left: 0;
            background: inherit;
            width: inherit;
            height: inherit;
            transition: 0.2s transform ease-in-out;
            margin-right: 10px;
        }

        .hamburger::after {
            top: 0.65em;
        }

        .hamburger::before {
            bottom: 0.65em;
        }

    .close::after,
    .close::before {
        top: 0;
        transition: 0.2s transform ease-in-out;
    }

    .close::before {
        display: none;
    }

    .close {
        transform: rotate(45deg);
        transition: 0.2s transform ease-in-out;
    }

        .close::after {
            transform: rotate(-90deg);
        }

    /* reveal menu */
    input[type="checkbox"]:checked + .menu {
        position: absolute;
        opacity: 1;
        transform: scaleY(1);
    }
}
/*
main {
     just to make scrollable vertically to see sticky navbar    
    height: 200vh;
}*/

/*ContentPlaceHolder*/
.flex-container {
    display: flex;
    flex-direction: column;
    /*margin-top: 5rem;*/
    margin-bottom: 50px;
    min-height: 100vh;
}

section {
    flex: 1;
    max-width: 100%;
    margin: 50px;
}

    section.content {
        margin: 20px;
    }

/*screen 1440 pixel*/
@media only screen and (min-width: 91em) {
    .flex-container {
        display: flex;
        flex-direction: column;
        margin-bottom: 50px;
        min-height: 100vh;
        max-width: 2000px;
        margin: auto;
        width: 80%;
    }
}

/* footer */
.footer-bottom {
    background: var(--grey);
    width: 100vw;
    padding: 10px 0px;
    text-align: center;
    position: fixed;
    bottom: 0;
    font-size: 0.7rem;
    box-shadow: 0 0 0 0.3px var(--dark);
}    

