/**
 * 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: "Helvetica Neue", Arial, sans-serif;
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        #000
        linear-gradient(
            to bottom,
            rgba(0, 27, 124, 1) 30%,
            rgba(250, 255, 0, 1) 100%
        );
}

.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 white;
    border-radius: 10px;
    background: linear-gradient(
      to bottom,
      hsl(68, 100%, 50%),
      rgb(5, 0, 107)65%);
    margin-top: 4.625em;
    margin-bottom: 10px;

}

/**
 * .header-main fixed
 * - wrapper will slide under fixed nav
 * - attact 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-color: rgb(0, 20, 196);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0px 4px 6px 0px rgba(34, 37, 48, 0.62);
}

/**
 * .header-main h1
 * - line-height 2 times the inherited font-size
 * - float left - shink wrap the width around the content
 * - postion 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: 45%;
     transform: translateX( calc( -50% + 32px ) );
     margin: 0;
     color: #d4ff00;
     font-family: "Myriad Pro Regular", sans-serif;
     font-weight: 200;
     letter-spacing: 4px;
     text-shadow: 0 -2px 2px rgba(0,0,0,0.6);
 }

.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: 64px;
    height: 64px;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* 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: 10%;
    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 {
    background-color: #faff00;
    height: 6px;
    position: absolute;
    content: '';
    transition: all .25s ease-in;
    border-radius: 3px;
}

.nav-main-menu-toggle-icon span::before {
    width: 100%;
    top: -10px;
}

.nav-main-menu-toggle-icon span::after {
    width: 100%;
    top: 10px;
}

/**
 * .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 {
    background-color: transparent;
}

.nav-main-menu-toggle:checked ~ .nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle:checked ~ .nav-main-menu-toggle-icon span::after {
    top: 0;
}

.nav-main-menu-toggle:checked ~ .nav-main-menu-toggle-icon span::before {
    transform: rotate(-360deg);
}

.nav-main-menu-toggle:checked ~ .nav-main-menu-toggle-icon span::after {
    transform: rotate(90deg);
}


/* style the anchor of the current page */
.nav-main-menu-current-menu-item a {
    text-indent: 1.7rem;
    font-weight: 200;
}

.nav-main-menu-current-menu-item a:hover {
    text-indent: 1.7rem;
}

.nav-main-menu-current-menu-item a:hover::before {
  opacity: 1;
}

.nav-main-menu-search input[type="search"] {
/*  remove the default style - Safari */
    font-family: inherit;
    width: 100%;
    height: 44px;
    font-size: 1.4em;
    line-height: 1.8em;
    font-weight: 300;
    background: hsla(0,0%,0%,0.40);
    padding: 2px 0;
    border: none;
    border-left: 2px solid #fff;
    text-indent: .88rem;
    color: #fff;
}

.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}
.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}
.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}
.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}
.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}
.nav-main-menu-search input[type="search"] {
    color: hsla(0,0%,100%,1);
}


.nav-main-menu-search label,
.nav-main-menu-search input[type="submit"] {
    display: none;
}

/* 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 - 3em);
    background-color: hsla(210,3%,23%,0.96);
    box-shadow: none;
    transition:
        width .5s .25s ease-in,
        box-shadow .25s ease-in;
    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.40);

}

/* style the anchor */
.nav-main-menu a {
  position: relative;
  display: block;
  font-size: 1.7em;
  line-height: 1.8em;
  font-weight: 700;
  color: rgb(0, 20, 196);
  text-decoration: none;
  text-indent: 1.25rem;
  margin: 4px 0;
  transition: all .75s ease-in-out;
  transform: rotateX(360deg);
}

/* 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: #fff;
  transition: inherit;
}

/* style anchor :hover */
.nav-main-menu a:hover {
  text-indent: 1.5rem;
  color: rgb(250, 255, 0);
  text-shadow: 0 2px 2px rgb(0, 20, 196);

}

.nav-main-menu a:active {
  text-indent: 1.5rem;
  color: white;
  text-shadow: none;
}

/* style the ::before when :hover on anchor */
.nav-main-menu a:hover::before {
  opacity: 0;
}

/* End Navigation: Small Screen: 0px and UP */

section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
    background: #fff linear-gradient( to bottom, rgba(0,0,0,0.80) 0%, rgba(255,255,255,0.60) 5%, rgba(255,255,255,1) 20% );
}

a {

  font-family: 'Yeon Sung';
    font-size: 1.165em;
    transition: 0.4s;

}

a:hover {

    color: rgb(176, 16, 16);
    transition: 0.4s;
    text-shadow: 0 2px 2px rgb(76, 78, 231);


}

a:active {

    color: rgb(230, 224, 94);
    transition: 0.4s;


}

img {

  width: 95%;
  border-radius: 10px;
  border-style: solid;
  border-color: rgb(5, 6, 136);
}

img:hover {

  box-shadow: 0 0 5px 4px rgb(235, 255, 0);
  transition: all 0.15s;
  border-color: rgb(5, 6, 136);
  border-style: solid;

}

img:active {

  box-shadow: 0 0 5px 4px rgb(5, 6, 136);
  transition: all 0.15s;
  border-color: rgb(255, 252, 0);

}

div.article h2 a {
	text-decoration: none;
	display: block;
	text-indent: 34px;
	background: url(images/a-icon-zune.png) no-repeat 0 0;
}

div.article h2 a:hover {
	background-position: 0 -60px;
}

div.article h2 a:active {
	background-position: 0 -120px;
}


footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
	padding: 0 0 20px;
    color: #fff;
}

footer a[href^="//"] {
    position: relative;
    background: rgb(51, 245, 110);
    color: #000;
    display: block;
    line-height: 1.5em;
    font-size: 1.095em;
    background-color: #ff0000;
    border-radius: 9px;
    margin: 0 0 0 10px;
    padding: 0 10px;
    float: right;
    text-decoration: none;
    transition: 0.4s;
    box-shadow: 0 2px 2px #000;

}

footer a[href^="//"]:hover {
    transition: 0.4s;
    background-color: rgb(255, 255, 255);
}

footer a[href^="//"]:active {
    box-shadow: none;
    transition: 0.4s;
    color: rgb(129, 48, 48);
}

/*
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;
    }


    .column {
        float: left;
        padding-left: .625rem;
        padding-right: .625rem;
    }

    .column.full {
        width: 100%;
    }

    .column.two-thirds {
        width: 66.7%;
    }

    .column.half {
        width: 50%;
    }

    .column.third {
        width: 33.3%;
    }

    .column.fourth {
        width: 25%;
    }

    .column.flow-opposite {
        float: right;
    }

    body {
      background:
          #000
          linear-gradient(
              to bottom,
              rgb(5, 0, 107) 50%,
              hsl(68, 100%, 50%) 100%
          )
          fixed;
  }

/*  override size and postion of header */
.header-main {
        position: absolute;
        overflow: hidden;
        min-height: 1200px;
        background: url(images/header.png) no-repeat center center fixed;
        background-size: cover;
        z-index: -1;

        /*margin: 20px;*/
    }

        .wrapper {
          margin-top: calc(100vh + 20px);
          padding-top: 20px;
          background:
          #000
          linear-gradient(
            to bottom,
            rgb(255, 0, 0),
            hsl(68, 100%, 50%));
        }

        .header-main::after {
            content: "";
            position: absolute;
            top: 40%;
            left: 48%;
            transform: rotate(-45deg);
            border-bottom: 6px solid rgba(242,255,0,1);
            border-left: 6px solid rgba(255,0,0,1);
            border-radius: 3px;
            width: 96px;
            height: 96px;
            animation-name: bounce;
            transform-origin: center bottom;
            animation-duration: 2.5s;
            animation-iteration-count: infinite;

        }

        @keyframes bounce {
          from, 20%, 53%, 80%, to {
            animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transform: translate3d(0,0,0) rotate(-45deg);
          }

          40%, 43% {
            animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            transform: translate3d(0, -30px, 0) rotate(-45deg);
          }

          70% {
            animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
            transform: translate3d(0, -15px, 0) rotate(-45deg);
          }

          90% {
            transform: translate3d(0, -4px, 0) rotate(-45deg);
          }
        }

        .header-main h1 {
            font-family: 'Sigmar One', cursive;
            line-height: 1;
            font-size: calc( 95vw * .1250 );
            color: rgb(255, 0, 0);
            text-shadow: 0px 10px 5px hsl(68, 100%, 50%);
            top: 30vh;
            left: 50vw;
            animation-name: bounceInDown;
            animation-duration: 2s;
            animation-fill-mode: both;
        }

        @keyframes bounceInDown {
            from, 0%, 50%, to {
                animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            }

            0% {
                opacity: 0;
                transform: translate3d(-50%, -3000px, 0);
            }

            50% {
               opacity: 0.35;
            }

            to {
                opacity: 0.85;
                transform: translate3d(-50%, -30%, 0);
            }
}


/*  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 {
        position: relative;
        z-index: 0;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        background-color: transparent;
        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;
    }

/*  basic style for navigation large screen */
    .nav-main-menu li {
        float: left;
        margin: 0 10px 0 0;
    }

    .nav-main-menu .nav-main-menu-search {
        float: right;

    }

    #nav-main-menu-search {
        position: absolute;
        right: 20px;
        width: 140px;
        bottom: 5px;
        height: 41px;
        transition: all .75s;
        border: 10px;
        border-radius: 10px;
    }

    #nav-main-menu-search:focus {
        width: calc( 50% - 175px );
        background: hsla(0,0%,0%,0.80);
        border: 10px;
        border-radius: inherit;
        height: 40px;
    }

    .nav-main-menu a {
        position: relative;
        display: block;
        text-indent: 0;
        color: rgb(250, 255, 0);
        margin: 0;
        border: 2px solid gray;
        border-radius: 10px;
        background: linear-gradient(
            to bottom,
            rgb(251, 120, 0),
            hsl(207, 51%, 33%));
        padding: 0 40px;
        overflow: hidden;
        font-family: 'Girassol', cursive;
    }

  /*  new style for the a::before */
    .nav-main-menu a::before {
        display: block;
        z-index: 1;
        transition: all 0.75s ease-in-out;
        transform: translateX(-920%);
        background: hsla(0,0%,100%,1.00)
    }

  /*  style for navigation large screen */
    .nav-main-menu a:hover {
        text-indent: 0;
        color: #fff;
        text-shadow: 0 4px 4px rgb(131, 1, 1);
        transition: 0.3s;
    }

    a:hover {
      transition: all 0.2s;

    }

    .nav-main-menu a:hover::before {
        background: hsla(0,0%,100%,0.00);
    }

    .nav-main-menu-current-menu-item a:hover::before {
      opacity: 1;
    }

    .nav-main-menu a:active {
        box-shadow: inset 0 0 8px #000;
    }

    .nav-main-menu-current-menu-item a {
        box-shadow: inset 0 0 8px #000;
    }

    img {

        border: none;
        height: 120px;
        width: 120px;
        float: right;
    }

    img:hover {

      box-shadow: 0 0 5px 2px rgba(0, 1, 126, 1);

    }

    footer {
        clear: both;
        overflow: auto;
        margin: 0 20px;
    	padding: 0 0 20px;
        color: #fff;
    }

    footer a[href^="//"] {
        position: relative;
        color: #000;
        display: block;
        line-height: 1.5em;
        font-size: 1.095em;
        background-color: #fff;
        border-radius: 9px;
        margin: 0 0 0 10px;
        padding: 0 10px;
        float: right;
        text-decoration: none;
        transition: 0.4s;
        box-shadow: 0 2px 2px #000;

    }

    footer a[href^="//"]:hover {
        transition: 0.4s;
        color: rgb(1, 32, 101);
        text-shadow: none;
        background-color: rgb(196, 255, 0);
    }

    footer a[href^="//"]:active {
        box-shadow: none;
        transition: 0.4s;
        color: rgb(1, 32, 101);
    }
} /* Close: @media (min-width: 48rem) */
