/*

███    ███  █████  ██ ███    ██     ███████ ████████ ██    ██ ██      ███████ ███████ 
████  ████ ██   ██ ██ ████   ██     ██         ██     ██  ██  ██      ██      ██      
██ ████ ██ ███████ ██ ██ ██  ██     ███████    ██      ████   ██      █████   ███████ 
██  ██  ██ ██   ██ ██ ██  ██ ██          ██    ██       ██    ██      ██           ██ 
██      ██ ██   ██ ██ ██   ████     ███████    ██       ██    ███████ ███████ ███████ 
                                              
*/
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* for borders to be included in width calculation */
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

nav {
    background-color: lightgrey;
    height: 50px;
}

nav ul {
    float: left;
    border: 1px solid red;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    display: inline-block;
    text-decoration: none;
    color: black;
    padding: 10px;
}

.active {
    text-decoration: underline;
}

.box {
    background-color: lightblue;
    border: 1px solid red;
}

#redalert {
    height: 200px;
    background-color: lightcoral;
}

#redalert div {
    position: relative; /* parent of h1 */
}

#redalert div h1 {
    position: absolute; /* listens to parent div and not body */
    left: 50%;
    transform: translate(
        -50%,
        50%
    ); /* this changes the origin point to true center vs top left corner origin */
}

body {
    margin: 0;
    font-family: Helvetica, sans-serif;
    background-color: #f4f4f4;
}

a {
    color: #000;
}

/* header */

.header {
    background-color: #fff;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 3;
}

.header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: #fff;
}

.header li a {
    display: block;
    padding: 20px 20px;
    border-right: 1px solid #f4f4f4;
    text-decoration: none;
}

.header li a:hover,
.header .menu-btn:hover {
    background-color: #f4f4f4;
}

.header .logo {
    display: block;
    float: left;
    font-size: 2em;
    padding: 10px 20px;
    text-decoration: none;
}

/* menu */

.header .menu {
    clear: both;
    max-height: 0;
    transition: max-height 0.2s ease-out;
}

/* menu icon */

.header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
}

.header .menu-icon .navicon {
    background: #333;
    display: block;
    height: 2px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
    background: #333;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
}

.header .menu-icon .navicon:before {
    top: 5px;
}

.header .menu-icon .navicon:after {
    top: -5px;
}

/* menu btn */

.header .menu-btn {
    display: block;
}

.header .menu-btn:checked ~ .menu {
    max-height: 240px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
}

/*
██   ██ ███████     ███    ███  ██████  ██████  ██ ██      ███████     ██████  ███████ ██    ██ ██  ██████ ███████ ███████ 
 ██ ██  ██          ████  ████ ██    ██ ██   ██ ██ ██      ██          ██   ██ ██      ██    ██ ██ ██      ██      ██      
  ███   ███████     ██ ████ ██ ██    ██ ██████  ██ ██      █████       ██   ██ █████   ██    ██ ██ ██      █████   ███████ 
 ██ ██       ██     ██  ██  ██ ██    ██ ██   ██ ██ ██      ██          ██   ██ ██       ██  ██  ██ ██      ██           ██ 
██   ██ ███████     ██      ██  ██████  ██████  ██ ███████ ███████     ██████  ███████   ████   ██  ██████ ███████ ███████ 
                                                                                                                           
                                                                                                                           
*/

/* Extra small devices (phones, 600px and down) THIS IS MOBILE DEVICE */
@media only screen and (max-width: 600px) {
    .box {
        width: 100%;
        height: 200px;
    }

    #nav_logo {
        width: 25%;
    }

    #nav_main {
        width: 75%;
    }

    #redalert div h1 {
        top: 80px;
    }

    .header li {
        float: left;
    }
    .header li a {
        padding: 20px 30px;
    }
    .header .menu {
        clear: none;
        float: right;
        max-height: none;
    }
    .header .menu-icon {
        display: none;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) THIS IS ALSO MOBILE DEVICE */
@media only screen and (min-width: 600px) {
    .box {
        width: 100%;
        height: 200px;
    }

    #nav_logo {
        width: 25%;
    }

    #nav_main {
        width: 75%;
    }

    #redalert div h1 {
        top: 80px;
    }
}

/* Large devices (laptops/desktops, 992px and up) THIS IS DESKTOP*/
@media only screen and (min-width: 992px) {
    #nav_logo {
        width: 50%;
    }

    #nav_main {
        width: 50%;
    }

    #redalert {
        display: none;
    }

    #redalert div h1 {
        top: 40%;
    }

    #blue_left,
    #blue_right {
        float: left;
        width: 50%;
    }

    #blue_left .box {
        width: 50%;
        float: left;
        height: 100px; /* this is the height of the boxes*/
    }

    #blue_right .box {
        height: 200px;
    }

    .clearfix {
        clear: both;
    }

    #red_two .box {
        height: 100px; /* this is the same shared height*/
        width: 25%;
        float: left;
    }
}
