* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: verdanda;
    background-color: sandybrown;

}

#container {
    background-color: rgba(255, 255, 255, .7);
    width: 70%; min-height: 800px;
    margin: 0px auto; /* centering a block element */
}

h1 {
    background-color: rgba(255, 255, 255, .7);
    padding: 1em 2em;
    text-align: center;

}

h1 span {
    color: #ff3;
    text-shadow: 0px 0px 9px #222;
}

nav {
    border: 2px solid red;
}

nav ul {
    border: 2px solid blue;
    list-style: none;
    text-align: center;
}

nav > ul > li {
    border: 2px solid green;
    display: inline-block;
    height: 60px;
    margin: 8px;
    position: relative; /* allows you to nudge the element */
    /* also allows you to position absolute child */
}

ul.submenu {
    position: absolute; /* position absolute within a relatively positioned parent */
    top: 56px; left: 0px;
    border: 4px solid black;
    display: none;
    /* visibility: hidden; it will hide the element but save the space */
}

nav > ul > li a {
    font-size: 1.4em;
    padding: 8px 12px;
    display: block; /* makes inline element behave more like a block */
    text-decoration: none;
}

nav > ul > li a:hover {
    background-color:#ffc;
}

nav > ul > li:hover ul.submenu {
    display: block;
}


/* ============================================================================ */
/* Styles for Layout 1 */

#container1{
display: flex;
width: 100%; height: 100vh;
background-color: pink;
}
#container1 div.left {
    background-color: #456;
    width: 50%; height: 100%;
    display: flex;
}
#container1 div.right {
    background-color: #789;
    width: 50%; height: 100%;
}
#container1 section.yellow {
    background-color: yellow;
    width: 50%; height: 100%;
}
#container1 section.blue {
    background-color: blue;
    width: 50%; height: 100%;
}
#container1 section.green {
    width: 100%; height: 50%;
    background-color: green;
}
#container1 section.purple {
    width: 100%; height: 50%;
    background-color: purple;
}

/* ===================================== */
/* Layout 2 */

#container2 {
    min-height: 100vh;
    background: pink;
    position: relative;
}

div.yellow, div.green, div.purple {
    position: absolute;
}

div.yellow {
    top: 4px; left: 4px;
    width: 300px;   height: 300px;
    background-color: yellow;
}

div.green {
    top: 4px; right:4px;
    width: 150px;   height: 150px;
    background-color: green;
}

div.purple {
    bottom: 4px; left:4px;
    width: 150px; height: 150px;
    background-color: purple;
}

div.blue {
    width: 450px; height: 350px;
    background-color: blue;
    margin-left: auto; margin-right: auto;
    position: relative; top: 50vh;
    transform: translateY(-50%);
}

/* ============================================*/
/* Layout 3 */

#container3 {
    width: 100%; height: 100vh;
    background-color: white;
}
.blue1 {
    width: 100%; height: 20%;
    background-color: rgb(0, 195, 255);
}
.yellow1 {
    width: 100%; height: 20%;
    background-color: rgb(216, 219, 0);
}
/* ============================================ */
/* Layout 4 */

#container4 {
    width: 100%; height: 100vh;
    display: flex;
}
.c4blue {
    width: 50%; height: 100%;
    background-color: blue;
}
.c4green {
    width: 50%; height: 100%;
    background-color: green;
}

/* ============================================== */
/* Layout 5 */

#container5 {
    width: 100%; height: 100vh;
    display: flex;
}
.c5yellow{
    width: 25%; height: 100%;
    background-color: yellow;
}
.c5green {
    width: 25%; height: 100%;
    background-color: green;
}
.c5purple {
    width: 25%; height: 100%;  
    background-color: purple;
}
.c5blue {
    width: 25%; height: 100%;
    background-color: blue;
}

/*============================================ */
/* Layout 6 */
#container6 {
    width: 100%; height: 25vh;
    display: flex;
}
.c6yellow{
    width: 25%; height: 100%;
    background-color: yellow;
}
.c6green{
    width: 25%; height: 100%;
    background-color: green;
}
.c6purple{
    width: 25%; height: 100%;
    background-color: purple;
}
.c6blue {
    width: 25%; height: 100%;
    background-color: blue;
}
#p6background {
    width: 100%; height: 75vh;
    background-color: red;
}