html {
    height: 100%;
}

body {
    margin: 0;
    font-size: 18px;

    min-height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
}

.highlight {
    font-weight: bold;
    color: red;
    text-align: center;
}

.content {
    width: 80%;
    margin: 0 auto;
    line-height: 1.6;
    color: #444;
    padding: 0 10px;
}

h1, h2, h3 {
    line-height: 1.2;
    text-align: center;
}

form {
    /* Center the form */
    margin: 0 auto;
    width: 400px;

    /* Form outline */
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 1em;
}

.hero-img {
    width: 100%;
}

.teacher-profile-img {
    width: 20%;
    float: left;
    margin: 0 15px;
}

/* ul { */
/*     list-style: none; */
/*     padding: 0; */
/*     margin: 0; */
/* } */

form li + li {
    margin-top: 1em;
}

label {
    display: inline-block;
    width: 90px;
    text-align: right;
}

input, textarea {
    font: 1em sans-serif;

    width: 300px;
    box-sizing: border-box;

    border: 1px solid #999;
}

input:focus, textarea:focus {
    border-color: #000;
}

textarea {
    vertical-align: top;
    height: 5em;
}

.button {
    padding-left: 90px;
}

button {
    margin-left: .5em;
}

.footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer {
    grid-row-start: 3;
    grid-row-end: 4;
    padding: 20px;
    background: #517d9d;
    color: white;
}

.footer a:link {
    color: #ffff00;
}

.footer a:visited {
    color: #c0c000;
}

 /* Navigation Menu */
#nav, #nav ul {
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

#nav {
    background-color: #517d9d;
    border-radius: 5px;
    clear: both;
    height: 58px;
    padding: 0 0 0 9px;
    position: relative;
    width: 100%;
}

#nav ul {
    background-color: #517d9d;
    border: 1px solid #517d9d;
    border-radius: 0 5px 5px 5px;
    border-width: 0 1px 1px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: -9999px;
    z-index: 2;
    -moz-transform: scaleY(0);
    -ms-transform: scaleY(0);
    -o-transform: scaleY(0);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    -o-transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -moz-transition: -moz-transform 0.1s linear;
    -ms-transition: -ms-transform 0.1s linear;
    -o-transition: -o-transform 0.1s linear;
    -webkit-transition: -webkit-transform 0.1s linear;
    transition: transform 0.1s linear;
}

#nav li {
    background: url('menu_line.png') no-repeat scroll right 5px transparent;
    float: left;
    position: relative;
}

#nav li a {
    color: #ffff00;
    display: block;
    float: left;
    font-weight: normal;
    height: 30px;
    padding: 23px 20px 0;
    position: relative;
    text-decoration: none;
    text-shadow: 1px 1px 1px #000000;
}

#nav li:hover > a {
    color: #00B4FF;
}

#nav li:hover, #nav a:focus, #nav a:hover, #nav a:active {
    background: none repeat scroll 0 0 #121212;
    outline: 0 none;
}

#nav li:hover ul.subs {
    left: 0;
    top: 53px;
    width: 180px;
    -moz-transform: scaleY(1);
    -ms-transform: scaleY(1);
    -o-transform: scaleY(1);
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}

#nav ul li {
    background: none;
    width: 100%;
}

#nav ul li a {
    float: none;
}

#nav ul li:hover > a {
    background-color: #121212;
    color: #00B4FF;
}

#lavalamp {
    background: url('lavalamp.png') no-repeat scroll 0 0 transparent;
    height: 16px;
    left: 13px;
    position: absolute;
    top: 0px;
    width: 64px;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    -webkit-transition: all 300ms ease;
    transition: all 300ms ease;
}

#lavalamp:hover {
    -moz-transition-duration: 3000s;
    -ms-transition-duration: 3000s;
    -o-transition-duration: 3000s;
    -webkit-transition-duration: 3000s;
    transition-duration: 3000s;
}

#nav li:nth-of-type(1):hover ~ #lavalamp {
    left: 13px;
}

#nav li:nth-of-type(2):hover ~ #lavalamp {
    left: 90px;
}

#nav li:nth-of-type(3):hover ~ #lavalamp {
    left: 170px;
}

#nav li:nth-of-type(4):hover ~ #lavalamp {
    left: 250px;
}

#nav li:nth-of-type(5):hover ~ #lavalamp {
    left: 330px;
}

#nav li:nth-of-type(6):hover ~ #lavalamp {
    left: 410px;
}

#nav li:nth-of-type(7):hover ~ #lavalamp {
    left: 490px;
}

#nav li:nth-of-type(8):hover ~ #lavalamp {
    left: 565px;
}

