/**
 * Mobile First 
 * - Style All Screen Sizes
 * - Then add min-width media query for larger screen
 * - Then override css properties: values
 * - Last rule will override previous rule
 */

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

ul,
ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

sup {
    line-height: 0;
}

.cf::before,
.cf::after {
    content: " ";
    display: table;
}

.cf::after {
    clear: both;
}

html {
   
    font-family:'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', 'DejaVu Sans', Verdana;
    min-height: 100%;
}

body {
    color: #363510;
    min-height: 60%;
    margin: 0;
    background: #000 linear-gradient(to bottom,
        rgba(139,118,59,1.00) 20%,
        rgba(146,197,183,1.00) 80%);
}

.container {
    margin: 0 .625rem;
    overflow: hidden;
}

/**
 * .wrapper margin-top value
 * - Pushes wrapper down
 * - Makes room for fixed nav
 * - em unit based on nherited font-size
 * - 16px * 4.626 = 74px
 */
.wrapper {
    border: 2px solid rgba(148,147,127,1.00);
    border-radius: 20px;
    background: rgba(208,197,149,1.00);
    margin-top: 4.625em;
    margin-bottom: 10px;
}

/**
 * .header-main fixed
 * - wrapper will slide under fixed nav
 * - attach to top, right and left edge of screen
 * - z-index is the stacking order - eg. layers in Photoshop
 * - larger higher in the stack / negative lower in the stack
 * - 100 is an arbitrary location with room below
 */
.header-main {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background: #000 linear-gradient(to bottom,rgba(50,86,61,1.00),rgba(132,152,116,1.00) 100%);
    box-shadow: inset 0 2px 4px rgba(178,178,178,0.80), 0px 4px 6px 0px rgba(33,36,47,0.62);
}

/**
 * .header-main h1
 * - line-height 2 times the inherited font-size
 * - float left - shrink wrap the width around the content
 * - position relative - can be positioned
 * - left: 50% find the left edge of the element and align with 50% left of parent element
 * - translateX move the element based on the element size -50% plus half the size of the hamburger
 * - this will center the h1 in the negative space to the right of the hamburger
 * - not the center of the parent element
 */
.header-main h1 {
    line-height: 2;
    float: left;
    position: relative;
    left: 50%;
    transform: translateX(calc(-50% + 32px));
    margin: 0;
    color:hsl(44.9, 100%, 50%);
    font-family: 'Palatino Linotype', 'Times New Roman';
    font-weight: 200;
    letter-spacing: 4px;
    text-shadow: 0 -2px 2px hsla(57,90%,37%,0.87);
}

.header-main h1 sup {
    font-size: .6em;
}

.nav-main {
    position: relative;
}

/* hide the check box - input type=checkbox*/
.nav-main-menu-toggle {
    display: none;
}

/* style the checkbox's label */
.nav-main-menu-toggle-icon {
    position: fixed;
    z-index: 200;
    width: 65px;
    height: 65px;
    top: 0;
    left: 0;
    cursor: pointer;/*  styles the cursor*/
}

/* position the span in the label - this is the hamburger of the hamburger icon */
.nav-main-menu-toggle-icon span {
    width: 80%;
    top: 50%;
    left: 30%;
    transform: translateY(-50%);
}

/**
 * .nav-main-menu-toggle-icon span
 * - build the hamburger icon
 * - ::before and ::after are pseudo elements
 * - they do not exist in the markup but we can style them
 * - every element that has content has ::before and ::after
 * - each line is 6px tall with a 3px border radius
 */
.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
    border: 2px solid black;
    background-color: #939905;
    height: 6px;/*sets the thickness of hamburger bars*/
    position: absolute;
    content: '';
    transition: all .25s ease-in;
    border-radius: 50%;/* makes oval hamburger bars*/ 
}

.nav-main-menu-toggle-icon span::before {
    width: 100%;
    top: -15px; /*spaces the top bar -15px above the middle bar */
}

.nav-main-menu-toggle-icon span::after {
    width: 100%;
    top: 15px;/*spaces the top bar 15px below the middle bar */
}

/**
 * .element ~ element
 * - is the General sibling combinator
 * - find .nav-main-menu-toggle:checked
 * - when the input is checked...
 * - style the .nav-main-menu-toggle-icon span
 * - a trick to use the input type="checkbox" to trigger changes in our layout
 */

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before,.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span,.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after 
{
    transform: rotate(90deg);
    transition: all .25s ease-in;
}

/* style the UL left 0 width 0 can not be seen */
.nav-main-menu {
    position: fixed;
    z-index: 50;
    top: 4em;
    left: 0;
    width: 0;
    height: calc(100vh - 4em);
    transition:
        width .5s .25s ease-in,
        box-shadow .25s ease-in;
    background: radial-gradient(circle at -10%, rgba(128,203,180,1.00), 50%,rgba(102,139,138,1.00) 75%, rgba(255,255,255,0.00) 75%);
    box-shadow: none;
    overflow:hidden;
   }

/* when input checked show the UL */
.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 60vw;
    box-shadow: 0 0 0 100vw hsla(210,3%,23%,0.00);

}

/* style the anchor */
.nav-main-menu a {
    position: relative;
    display: block;
    font-size: 1.5em;
    line-height: 2;
    font-weight: 300;
    color: hsla(120,74%,14%,1.00);
    text-decoration: none;
    text-indent: 1.25rem;
    margin: 4px 0;
    
    
}

/* create and style the anchor's ::before pseudo element */
.nav-main-menu a::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    transform: translateX(-280%);
    content: "";
    display: inline-block;
    width: 10px;
    background: hsla(187,11%,55%,1.00);
    transition: inherit;
}

/* style anchor :hover */
.nav-main-menu a:hover {
    text-align: center;
    font-style:italic;
    font-weight: bold;
    border-style: inset;
    background-color: rgba(39,125,136,1.00)
    
}

/* style the ::before when :hover on anchor */
.nav-main-menu a:hover::before {
    transform: translateX(100vw);
    opacity: 0;
}

/* End Navigation: Small Screen: 0px and UP */

section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid rgba(46,45,45,1.00);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px ;
    background:rgba(210,225,230,1.00);
}

img {
    width: 100%;
}

footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
    padding: 0 0 20px;
    color: hsla(176,96%,17%,1.00);
}

footer a[href^="javascript"] {
    position: relative;
    color: hsl(0, 0%, 0%);
    display: block;
    line-height: 2em;
    font-size: 0.625em;
    background-color: hsl(0, 0%, 100%);
    border-radius: 3px;
    margin: 0 0 0 10px;
    padding: 0 10px;
    float: right;
    text-decoration: none;
    box-shadow: 0 2px 2px hsl(0, 0%, 0%);
}

footer a[href^="javascript"]:active {
    top: 2px;
    box-shadow: none;
}

/*
Start Media Query
    if screen is 48rem or larger (can use px or em)
    rem is based on font size of root element
        (16px * 48 = 768)
    use the following rules
*/
@media (min-width: 48rem) {

    /*  override margin */
    .container {
        width: 96%;
        max-width: 800px;
        margin: 20px auto;
    }

    /*  override size and position of header */
    .header-main {
        position: static;
        height: 120px;
        border-radius: 10px;
        border: 2px solid hsl(0, 0%, 50%);
        margin: 20px;
    }

    .header-main h1 {
        line-height: 120px;
        font-size: 2.75em;
        transform: translateX(-50%);
    }

    /*  hide the checkbox and the hamburger */
    .nav-main-menu-toggle,
    .nav-main-menu-toggle-icon {
        display: none;
    }

    /*  override and reset to no style */
    .nav-main-menu {
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 0;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        transition: none;
         background:rgba(95,159,140,1.00);
        box-shadow: none;
        overflow: hidden;
        padding: 0 20px;
    }

    /*  override and reset to no style */
    .nav-main-menu-toggle:checked~.nav-main-menu {
        width: auto;
        box-shadow: none;
    }

    /*  override and basic style for navigation large screen */
    .nav-main-menu a {
        position: static;
        display: block;
        text-indent: 0;
        padding: 0 1em;
        border: 2px solid hsla(71,52%,33%,1.00);
        border-radius: 10px;
        transition: all .25s linear;
        box-shadow: 0 0px 4px currentColor;
        background-color: rgba(115,184,199,1.00);
    }

    /*  hide the a:::before */
    .nav-main-menu a::before {
        display: none;
    }

    /*  basic style for navigation large screen */
    .nav-main-menu a:hover {
        text-indent: 0;
        color: hsl(213, 100%, 44%);
        background-color: hsl(0, 0%, 100%);
        box-shadow: 0 0px 0px currentColor;
    }

    .nav-main-menu a:active {
        text-indent: 0;
        color: hsl(213, 100%, 44%);
        background-color: hsl(0, 0%, 100%);
        box-shadow: inset 0 0px 4px currentColor;
    }


    img {
        width: auto;
        float: right;
        margin: 0 0 2px 4px;
    }
}

/* Close: @media (min-width: 48rem) */