@font-face {
    font-family: "gothambook";
    font-style: normal;
    font-weight: normal;
    src: url("../fonts/gothambook.eot");
    src: url("../fonts/gothambook.otf") format("opentype"),
         url("../fonts/gothambook.svg#gothambook") format("svg"),
         url("../fonts/gothambook.ttf") format("truetype"),
         url("../fonts/gothambook.woff") format("woff"),
         url("../fonts/gothambook.woff2") format("woff2");
}

* {
    margin: 0;
    padding: 0;
}

html {
    height: 100%;  /* Grows to the height of the browser viewport. */
}

body {
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    font: 1rem/1 "gothambook", sans-serif;  /* 16px */
    height: 100%;  /* Grows to the height of the browser viewport. */
}

#top-nav {
    background: #555;
    box-sizing: border-box;
    padding: 0 1.875rem;  /* 30px */
    width: 100%;
}

#top-nav-container {
    display: flex;
    list-style: none;  /* Assumes the ID has been assigned to a list. */
    margin: auto;
    max-width: 80rem;  /* 1280px */
}

#top-nav-container > li > a {
    border-bottom: 0.3125rem solid transparent;  /* 5px */
    color: #ccc;
    display: block;
    font-size: 0.875rem;  /* 14px */
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
    text-decoration: none;
}

#top-nav-container > li > a.active {
    border-bottom-color: #fc2;
    color: #fff;
}

#top-nav-container > li > a:hover {
    background: #444;
}

#top-nav-container > li > a:not(.active):hover {
    border-bottom-color: #444;
}

#header {
    background: #002664;
    box-sizing: border-box;
    color: #fff;
    padding: 1.875rem;  /* 30px */
    width: 100%;
}

#header-container {
    align-items: center;
    display: flex;
    margin: auto;
    max-width: 80rem;  /* 1280px */
}

#header-container > a > img {
    display: block;
    height: 5.3125rem;  /* 85px */
    width: 5rem;  /* 80px */
}

#header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 3.125rem;  /* 50px */
}

#header-content > a {
    color: inherit;
    text-decoration: none;
}

#header-content > a > h1 {
    font-size: 2rem;  /* 32px */
}

#header-content > p {
    font-size: 1.25rem;  /* 20px */
    margin-top: 0.625rem;  /* 10px */
}

#header-nav {
    align-items: flex-end;
    background: transparent;
    border-radius: 0.625rem;  /* 10px */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-left: auto;  /* Pushes the container to the right side. */
    max-width: 40rem;  /* 640px */
    padding: 0.9375rem;  /* 15px */
}

#header-nav.logged-in {
    background: rgba(132, 189, 220, 0.1);  /* #84bddc @ 10% */
}

#header-nav > p {
    margin-bottom: 0.625rem;  /* 10px */
}

#header-nav > p:first-of-type {
    font-weight: bold;  /* Isolates the user name (presumably). */
}

#header-nav > p > span {
    display: inline-block;
    margin-left: 0.625rem;  /* 10px */
}

#header-nav > p > span:hover {
    cursor: pointer;
}

#header-nav > button {
    background: #07b;
    border: 0;
    border-radius: 0.625rem;  /* 10px */
    color: #eee;
    display: block;
    font: inherit;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
}

#header-nav > button:focus {
    outline: 0;
}

#header-nav > button:hover {
    background: #18c;
    color: #fff;
    cursor: pointer;
}

#main-nav {
    background: #002664;
    box-sizing: border-box;
    padding: 0 1.875rem;  /* 30px */
    width: 100%;
}

#main-nav-container {
    display: flex;
    list-style: none;  /* Assumes the ID has been assigned to a list. */
    margin: auto;
    max-width: 80rem;  /* 1280px */
}

#main-nav-container > li > a {
    border-bottom: 0.3125rem solid transparent;  /* 5px */
    color: #ccc;
    display: block;
    font-size: 1rem;  /* 16px */
    font-weight: bold;
    padding: 0.75rem 1rem; /* 12px 16px */
    text-decoration: none;
}

#main-nav-container > li > a.active {
    border-bottom-color: #84bddc;
    color: #fff;
}

#main-nav-container > li > a:hover {
    background: #042152;
    border-radius: 0.625rem 0.625rem 0 0;  /* 10px */
}

#main-nav-container > li > a:not(.active):hover {
    border-bottom-color: #042152;
}

#content {
    box-sizing: border-box;
    padding: 1.875rem;  /* 30px */
    width: 100%;
}

#content-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin: auto;
    max-width: 80rem;  /* 1280px */
    position: relative;
}

#content-container a {
    color: #002664;
}

#content-container a:hover {
    color: #84bddc;
}

#content-container a:visited {
    color: #728;
}

#content-container .error {
    background: rgba(221, 17, 51, 0.15);  /* #d13 @ 15% */
    border-radius: 0.625rem;  /* 10px */
    color: #d13;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
}

#content-container .info {
    background: rgba(51, 51, 51, 0.15);  /* #333 @ 15% */
    border-radius: 0.625rem;  /* 10px */
    color: #333;
    padding: 0.9375rem;  /* 15px */
}

#content-container .info > ul {
    list-style: none;
}

#content-container .info > ul > li:not(:last-child) {
    margin-bottom: 0.625rem;  /* 10px */
}

#content-container .info > ul > li > span {
    display: inline-block;
    font-weight: bold;
    margin-right: 0.625rem;  /* 10px */
}

#content-container .success {
    background: rgba(102, 187, 34, 0.15);  /* #6b2 @ 15% */
    border-radius: 0.625rem;  /* 10px */
    color: #6b2;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
}

#content-container .warning {
    background: rgba(255, 187, 0, 0.15);  /* #fb0 @ 15% */
    border-radius: 0.625rem;  /* 10px */
    color: #fb0;
    font-weight: bold;
    padding: 0.9375rem;  /* 15px */
}

#content-container .error:not(:last-child),
#content-container .info:not(:last-child),
#content-container .success:not(:last-child),
#content-container .warning:not(:last-child) {
    margin-bottom: 1.875rem;  /* 30px */
}

#content-container .error > p:not(:last-child),
#content-container .info > p:not(:last-child),
#content-container .success > p:not(:last-child),
#content-container .warning > p:not(:last-child) {
    margin-bottom: 1.25rem;  /* 20px */
}

#content-container .error a,
#content-container .info a,
#content-container .success a,
#content-container .warning a {
    color: inherit;
}

#footer {
    background: #002664;
    box-sizing: border-box;
    color: #fff;
    flex-grow: 1;  /* Grows to the bottom of the browser viewport. */
    padding: 1.875rem;  /* 30px */
    width: 100%;
}

#footer-container {
    display: flex;
    list-style: none;  /* Assumes the ID has been assigned to a list. */
    margin: auto;
    max-width: 80rem;  /* 1280px */
}

#footer-container > li > a {
    color: inherit;
    display: block;
    font-weight: bold;
    text-decoration: none;
}

#footer-container > li > a:hover {
    color: #ccc;
}

#footer-container > li:not(:first-child) > a {
    margin-left: 1.875rem;  /* 30px */
}

.loader {
    align-items: center;
    background: rgba(255, 255, 255, 0.75);  /* #fff @ 75% */
    border-radius: inherit;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.loader > img {
    display: block;
}