body {
    background: #ffffff;
    margin: 0px;
}
body.error {
    background: #ededed left top repeat fixed url("res/bg_tile.jpg");
}

@font-face {
    font-family: DejaVuSans;
    src: url('../res/DejaVuSans.ttf') format('truetype');
}
@font-face {
    font-family: DejaVuSans;
    src: url('../res/DejaVuSans-Oblique.ttf') format('truetype');
    font-style: italic;
}
@font-face {
    font-family: DejaVuSans;
    src: url('../res/DejaVuSans-Bold.ttf') format('truetype');
    font-weight: bold;
}
@font-face {
    font-family: LinBiolinum;
    src: url('res/LinBiolinum.ttf');
}
@font-face {
    font-family: LinBiolinum;
    src: url('res/LinBiolinumI.ttf');
    font-style: italic;
}
@font-face {
    font-family: LinBiolinum;
    src: url('res/LinBiolinumB.ttf');
    font-weight: bold;
}
@font-face {
    font-family: Corbel;
    src: url('res/corbel.ttf');
}
@font-face {
    font-family: Corbel;
    src: url('res/corbelb.ttf');
    font-weight: bold;
}
@font-face {
    font-family: Corbel;
    src: url('res/corbeli.ttf');
    font-style: italic;
}
@font-face {
    font-family: Corbel;
    src: url('res/corbelz.ttf');
    font-weight: bold;
    font-style: italic;
}

/* =======================================
 * Paragraph Styles
 * =======================================
 */
p {
    color: #000;
    font: 16px LinBiolinum;
    text-align: justify;
    margin: 5px;
}
p.footer {
    color: #fff;
    font: 11px LinBiolinum;
    text-align: right;
    
    width: 930px;
    margin-left: auto;
    margin-right: auto;
}
p.center { text-align: center !important; }
p.info {
    color: #666;
    font: italic 11px LinBiolinum;
    text-align: justify;
    margin-left: 15px;
    margin-top: -10px;
}
p.login-alternatives {
    font-weight: bold;
    text-align: center;
}
p.emphasis {
    font-size: 150%;
    font-weight: bold;
    text-align: center;
}

/* =======================================
 * Link Styles
 * =======================================
 */
a, a:visited {
    color: #6666ff;
    text-decoration: none;
    border: none;
}
a:hover, a:active {
    color: #9999ff;
    text-decoration: none;
    border: none;
}
a.user, a:visited.user {
    text-decoration: none;
    border: none;
}
a:hover.user, a:active.user {
    color: #ffffff;
    text-decoration: none;
    border: none;
}
a#next-page, a#prev-page { font: bold 18px Corbel; }
a#next-page { float: right; }
a#prev-page { float: left; }

a.payment {
    display: block;
    padding: 5px;
    margin: 15px;
    text-shadow: 0px 1px 0px #bcbcbc;
    outline: none;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border: 1px solid #1c1c1c;
    font: 24px DejaVuSans;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 -1px 0px #1a321a;
    background: linear-gradient(#2ba941 0%, #138f29 100%);
    background: -webkit-gradient(linear, left top, left bottom, from(#2ba941), to(#138f29));
    background: -moz-linear-gradient(top,  #2ba941,  #138f29);
}
a.payment:hover, a.payment:focus {
    box-shadow: 0px 0px 5px #000;
    -webkit-box-shadow: 0px 0px 5px #000;
    -moz-box-shadow: 0px 0px 5px #000;
}
a.cancel {
    display: block;
    padding: 5px;
    margin: 15px;
    text-shadow: 0px 1px 0px #bcbcbc;
    outline: none;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border: 1px solid #1c1c1c;
    font: 24px DejaVuSans;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 -1px 0px #1a321a;
    background: linear-gradient(#df3f3f 0%, #b81f1f 100%);
    background: -webkit-gradient(linear, left top, left bottom, from(#df3f3f), to(#b81f1f));
    background: -moz-linear-gradient(top,  #df3f3f,  #b81f1f);
}
a.cancel:hover, a.cancel:focus {
    box-shadow: 0px 0px 5px #000;
    -webkit-box-shadow: 0px 0px 5px #000;
    -moz-box-shadow: 0px 0px 5px #000;
}

/* =======================================
 * Image Styles
 * =======================================
 */
img { border: none; }
img.button {
    float: left;
    width: 32px;
    height: 32px;
    margin: 5px;
}
img.msg {
    float: left;
    margin-right: 15px;
}
img.slider { margin-bottom: 10px; }
img.sponsor {
    max-width: 180px;
    max-height: 150px;
    padding: 10px 0px;
}
img#dc-footer {
    float: right;
    padding: 0px 5px;
}

/* =======================================
 * Header Styles
 * =======================================
 */
h1 {
    color: #fff;
    font: bold 34px Corbel;
    text-shadow: #606060 1px 1px 2px;
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    vertical-align: middle;
}
h1 a, h1 a:visited, h1 a:hover, h1 a:active { color: #fff; }
h2 { font: bold 26px Corbel; }
h3 {
    font: bold 22px Corbel;
    margin: 5px 0;
}
h4 {
    font: 18px Corbel;
    margin: 5px 0;
}
h5 {
    font: 16px Corbel;
    margin: 5px 0;
}
h6 {
    font: 14px Corbel;
    margin: 0;
}

/* =======================================
 * Div Styles
 * =======================================
 */
div { overflow: auto; }
div.center {
    margin-left: auto;
    margin-right: auto;
}
div.right {
    /* it'd be 870px: 730 + 200 = 930px, which is total, but due to spacings and such, i reduced by 5px. */
    width: 190px;
    float: right;
    text-align: right;
}
div.left {
    width: 775px;
    min-height: 100px;
    float: left;
}
div.error {
    width: 800px;
    margin-left: auto;
    margin-right: auto;
    background: #ffffff;
    
    margin-top: 50px;
    margin-bottom: 50px;
}
div.error p { margin: 15px; }
div.error h1 { margin-top: 20px; }
div.error div.title {
    width: 790px;
    min-height: 64px;
    padding: 5px;
    background: #2f2f81;
}
div#header {
    text-align: center;
    border: none;
    width: 100%;
    padding: 10px 0px 0px 0px;
}
div#main {
    margin-left: auto;
    margin-right: auto;
    width: 970px;
    
    background: transparent;
    border: none;
    margin-bottom: 20px;
}
div#footer {
    border: none;
    width: 100%;
    float: left;
    bottom: 0px;
}
div.icon {
    float: left;
    width: 100px;
    height: 100px;
    text-align: center;
    margin: 3px;
}
div.button { float: left; }
div.file {
    width: 900px;
    border-left: solid 8px;
    
    padding: 5px;
    margin: 5px;
}
div.file p.name { font: bold 16px Corbel; }
div.file span.value { font: bold 20px LinBiolinum; }
div.file img.ext {
    float: left;
    padding: 0px 10px;
}

div.important { background-color: #fff2cb; }
div.feed {
    border-left: solid 8px;
    margin: 10px 0px 40px 0px;
    padding: 0px 5px;
}
div.feed p.title {
    font: bold 20px Corbel;
    margin: 0px;
}
div.feed p.date {
    font: 10px Corbel;
    margin-left: 8px;
    margin-bottom: 10px;
}
div.feed p { margin-left: 8px; }
div.feed p.author {
    font-style: italic;
    margin-left: 0px;
    margin-top: 10px;
}
div.feed.important { background: #ffeac0; }

div.menubox {
    float: right;
    width: 250px;
    border-left: solid 4px;
    padding: 5px;
    margin-left: 10px;
}
div.menubox a { float: left; }

div.course {
    float: left;
    margin: 2px;
    width: 250px;
    padding: 0;
    border-radius: 5px;
}
div.course p.title {
    font: bold 20px Corbel;
    text-align: center;
}
div.course img {
    width: 250px;
    height: 200px;
}

div#index-message {
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    text-shadow: 0 -1px 0px #1a321a;
    font: 13px DejaVuSans;
    text-align: center;
    padding: 10px;
    margin: 15px;
}
div#index-message p {
    color: #ffffff;
    text-align: center;
}
div#index-message.hidden { display: none; }
div.msg-success { background-color: #458746; }
div.msg-info { background-color: #3986ac; }
div.msg-warning { background-color: #c09854;}
div.msg-error { background-color: #b34e4d; }

/* =======================================
 * Nav/UL Styles
 * =======================================
 */
ul {
    color: #000;
    font: 16px LinBiolinum;
    text-align: justify;
    margin: 5px auto;
}
nav {
    width: 95%;
    background: transparent;
    font: 16px LinBiolinum;
    border: none;
    text-align: center;
    float: left;
    padding-bottom: 0;
    text-align: center;
    margin: 15px;
}
nav ul {
    padding: 0;
    list-style: none;
    position: relative;
    display: inline-table;
    margin: 0;
    text-align: center;
}
nav li {
    float: left;
}
nav ul ul {
    display: none;
}
nav ul li:hover {
    text-shadow: 1px 1px 1px #666;
    color: #ffffff;
}
nav ul li:hover > ul {
    display: block;
}
nav ul:after {
    content: "";
    clear: both;
    display: block;
}
nav ul li a {
    display: block;
    padding: 5px 30px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}
nav ul li:hover a {
    color: #ffffff;
}
nav ul ul {
    border-radius: 0px;
    padding: 0;
    position: absolute;
    top: 100%;
}
nav ul ul li {
    float: none; 
    border: none;
    position: relative;
}
nav ul ul ul {
    position: absolute;
    left: 100%;
    top: 0;
}