/* TODO: ...
    - Header menu's background not appearing when linked via anchor tag. Requires at least one scroll action atm.
 
    Aesthetics:
    - fix font-weights
    - Animate "EXE.RCISE | ESICR.EXE" as Exercise expanding right then reflection words. Animate like, a bar scan, for example. Then make pop and scale larger
    - black box background behind brand/logo across website to pop. Make clickable on some.
        - appear/disappear
 
 
    More:
    - can't click logo - competing w/ header-right's z-index
    - ^ couldn't a solution be just put some transparent clickable thing over it?
 */

/*@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');

/* Global variables */
:root {
    --foreground-color: #fff;
    --background-color: #2696E9;
    
/*    --text-background-color: rgba(50, 168, 58, 0.2);*/
    --text-background-color: rgba(252, 186, 3, 0.2);
    --text-hover-color: rgba(1, 1, 1, 0.2);

    /* Same as --text-background-color but different transparancy*/
/*    --active-left-nav-color: rgba(252, 186, 3, 0.67);*/
    --active-left-nav-color-light: rgba(252, 186, 3, 0.67);
    --active-left-nav-color-dark: rgba(252, 186, 3, 1);

/*    --active-left-nav-color: rgba(255,255,0,0.67);*/
    
    /*--light-red: rgba(233,236,27,0.5);*/
    /*--light-red: rgba(241,21,21,0.5);*/
    
    --layer-11: 999;
    --layer-10: 998;
    --layer-9: 997;
    --layer-8: 888;
    --layer-7: 777;
    --layer-0: 000;
        
    --slow-transition: 1.0s;
    --med-transition: 0.5s;
    --fast-transition: 0.3s;
    
    /* Specific values */
    --logo-animation-time: 2.5s;
    
    /* Metrics */
    --section-fade-height: 30px;
}

header {
    z-index: var(--layer-9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 200px;
    /*padding: 15px 50px 15px 150px;*/
    transition: var(--med-transition) ease;
    white-space: nowrap; /* *** stop menu items from obnoxiously wrapping when resizing window */
}

header.sticky:hover {
/*    background: rgba(1, 1, 1, 0.9);*/
    background: linear-gradient(to left, var(--active-left-nav-color-light), transparent);
}

/* Translucent background */
header.sticky:before {
    content: '';
    position: absolute;
    background: linear-gradient(to bottom, var(--background-color), transparent);
    width: 100%;
    height: 80px;
    bottom: 0;
    left: 0;
}

/* TODO: Raise z-index so logo is clickable. This works, but then the navigation menu links aren't clickable, cuz their overlapped... */
header .header-left {
/*    z-index: var(--layer-11);*/
}

/* Adjust so items are around even, vertically, with logo */
header .header-right {
    /* Raise z-index so logo is clickable */
/*    z-index: var(--layer-11);*/
    margin-top: 4px; /* center menu button vertically */
}

header .brand {
    color: var(--foreground-color);
    font-size: 1.5em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
/*    border-right: .15em solid var(--foreground-color);*/
}

.typed-out {
    display: inline-flex; /* display: inline, but within flexbox. we need an inline option so we can animate its width. inline-block does not properly align with other flexbox items */
    overflow: hidden;
    border-left: .15em solid var(--foreground-color);
    border-right: .15em solid var(--foreground-color);
    white-space: nowrap;
    width: 0;
    padding-left: 3.5px; /* Make the reflection symmetric at the "|" line */
    background: var(--text-background-color);
}





header .navigation {
    position: relative;
}

header .navigation .navigation-items a {
    position: relative;
    color: var(--foreground-color);
    font-size: 1.2vw;/*1em;*/
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    /*margin: 0 30px;
    padding: 0 10px;
    background: #000;
    border-radius: 20px;*/
    transition: 0.3s ease;
}

/* Underline looking background */
header .navigation .navigation-items a:before {
    content: '';
    position: absolute;
    background: var(--foreground-color);
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: 0.3s ease;
}

/* Show underline only when hovering */
header .navigation .navigation-items a:hover:before {
    width: 100%;
}




.menu-btn {
    color: rgba(255,255,255,0.0); /* make the menu bar ("fas fa-bars") completely translucent */
}







































/* Middle width settings */
@media (max-width: 1075px) {
    header .header-right {
        padding: 15px 20px;
    }
}

/* Phone width settings */
/*@media (max-width: 850px) {*/
@media (max-width: 750px) {
    header {
        padding: 15px 20px;
    }
    
    /* menu-btn on right side */
    header .header-right {
        justify-content: right;
        margin-top: 1px; /* center menu button vertically */
    }
    
    header .navigation {
        display: none;
    }
    
    header .navigation.active {
        position: fixed; /* no moving when scroll */
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center; /* center horizontally */
        align-items: center; /* center vertically */
        background: rgba(1, 1, 1, 0.5); /* slightly darken screen */
    }
    
    header .navigation .navigation-items a {
        color: #222;
        font-size: 1.2em;
        margin: 10px;
    }
    
    /* underline color white -> black */
    header .navigation .navigation-items a:before {
        background: #222;
    }
    
    /* White Box Background behind Menu Items */
    header .navigation.active .navigation-items {
        background: rgba(255, 255, 255, 95%);
        width: 600px;
        max-width: 600px;
        margin: 20px;
        padding: 40px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 5px;
        box-shadow: 0 5px 25px rgb(1 1 1 / 5 0%);
    }
    
    .menu-btn {
        /*background: url(menu.png) no-repeat;*/
        /*background-size: 150px;
        background-position: center;
        width: 40px;
        height: 40px;*/
        font-size: 2.0em;
        color: #fff;
        cursor: pointer;
        transition: 0.3s ease;
    }
    
    .menu-btn.active {
        z-index: var(--layer-9);
        color: rgba(255,255,255,0.0); /* make the menu bar ("fas fa-bars") completely translucent */
        background: url("./imgs/close.png") no-repeat;
        background-size: 25px;
        background-position: center;
        transition 0.3s ease;
    }
}
