/**************************************
 * Global defaults
 */

* {
    padding: 0;
}

a:link, a:visited {
    color: inherit;
    text-decoration: none;
}

.left, #navbar .left {
    float: left;
}
.center, #navbar .center {
    text-align: center;
}
.right, #navbar .right {
    float: right;
}


/**************************************
 * Banners, overlays, etc.
 */

#banner {
    background-color: #0000bb;
    color: #ffffff;
    display: none;
    text-align: center;
    top: 0;
}

.banner {
    display: none;
    height: 60px;
    left: 0;
    position: fixed;
    right: 0;
    width: 100%;
    z-index: 1100;
}

#overlay {
    background-color: rgba(0, 0, 0, 0.5);
    bottom: 0;
    cursor: progress;
    display: none;
    text-align: center;
    top: 0;
}

.overlay {
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    width: 100%;
    z-index: 1000;
}

#dialog {
    border: outset 5px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 300px;
    padding: 30px;
}


/**************************************
 * Body, structural, and header items
 */

body {
    margin: 0 auto;
    width: 900px;
}

#container {
    height: 100%;
    width: 100%;
}

h1 {
    margin: 0 120px;
    padding: 20px 0 15px;
}

h1.subtitle {
    margin: 20px 0 15px;
    text-align: center;
}

.linkbar {
    display: block;
    padding: 10px 100px;
    vertical-align: top;
}
.linkbar a {
    margin: 0 20px;
}
#navbar a {
    float: left;
}
.linkbar div {
    clear: both;
}

.page_width {
    display: block;
    width: 100%;
}

.horz_stretch {
    display: block;
    width: auto;
}

#sidebar {
    margin-left: -50px;
    padding-right: 50px;
}
#sidebar div {
    border-radius: 10px;
    min-width: 150px;
    padding: 1px 15px 1px 25px;
}

#notify {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    margin: 0 100px;
    padding: 5px 0;
    text-align: center;
    vertical-align: middle;
}

#content {
    height: 100%;
    margin: 0 100px;
    padding-bottom: 30px;
}


/**************************************
 * Footer and hidden contents
 */

#footer {
    clear: both;
    padding: 15px 15px 5px 15px;
}

#copyright {
    font-size: 0.8em;
    text-align: right;
}

#out_cols, #match_url, #ajax, #simple_response {
    display: none;
}


/**************************************
 * Page contents
 */

h2 {
    font-size: 2em;
    margin: 0;
    padding: 25px 0 15px;
    text-align: center;
}

h3 {
    font-size: 1.67em;
    margin: 0;
    padding: 15px 0 5px;
    text-align: left;
}

hr {
    margin-top: 40px;
}

p {
    margin: 0 0 30px 0;
}
th p, td p {
    margin: 0 0 10px 0;
}

p a {
    font-style: italic;
}

/* Preface these with #content to avoid colliding with header objects */
#content table, #content tr {
    border-spacing: 0;
    width: 100%;
}
#content th {
    text-align: left;
}
#content th, #content td {
    padding: 2px 10px 2px 40px;
    text-indent: -30px;
    vertical-align: top;
    width: auto;
}
#content li {
    text-indent: 0;
}

select {
    padding: 3px;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    margin: 0 0 7px 0;
}

/* TODO: Remove these, if we no longer need them.
input[type=text], textarea {
    width: 25em;
}
*/
input[type=email], input[type=password], input[type=text], textarea {
    width: 100%;
}

input[type=number] {
    min-width: 4em;
    text-align: right;
    width: 20%;
}

input[type=button], input[type=submit] {
    padding: 5px 12px;
}

progress {
    width: 100%;
}


/**************************************
 * Special content
 */

.good {
    color: #009900;
}
.bad {
    color: #ff0000;
}
.hint {
    font-size: 67%;
}
ul.errorlist {
    margin: 0;
}

input.fixed {
    border: none;
    display: inline;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    width: auto;
}

input#proceed {
    float: right;
}
