/*******************************************************************************
 *   FRIM logs
 ******************************************************************************/

/******************************************************************************/

body *, body *:before, body *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    outline: none;
}
html, p, div, input, select, textarea {
    font-size: 9pt;
    font-family: 'Nimbus Sans', 'Helvetica Neue', Tahoma, sans-serif;
}
body {
    background-image: url(background.png);
    margin: 0;
    padding: 0;
}
nav {
    
}
nav a {
    display: inline-block;
    margin: 0;
    padding: 5px 5px 3px 5px;
    border: 1px #cccccc solid;
    border-bottom: none;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background: linear-gradient(to bottom, #FDFDFD, #EEEEEE, #FDFDFD);
    font-weight: normal;
    cursor: pointer;
    max-width: 60%;
    text-overflow: ellipsis;
}
nav a img {
    margin: 0 8px;
}
nav a.active {
    position: relative;
    top: 2px;
    background: linear-gradient(to bottom, #F2F5F6, #D9DFE4, #F1F1F1);
    border-color: #ADB9C2;
    padding-top: 9px;
    font-weight: bold;
    border-bottom-right-radius: 2px;
}
nav a + a {
    border-left: none;
}
section {
    background-color: white;
    border: 1px #ADB9C2 solid;
    border-radius: 4px;
}
section>*:first-child, form>header {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
section>*:last-child, form>footer {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
nav + section {
    border-top-left-radius: 0;
}
section header, section footer {
    background-color: #E4E7EA;
    padding: 5px;
    box-shadow: inset 0 0 1px white;
    clear: both;
    border: 1px solid white;
}
section header::after, section footer::after {
    content: "";
    display: block;
    clear: both;
}
section header {
    background: linear-gradient(to bottom, #F1F1F1, #D7DEE3);
    border-bottom: 1px #ADB9C2 solid;
}
section footer {
    background: linear-gradient(to top, #E4E7EA, #D7DEE3);
    border-top: 1px #ADB9C2 solid;
}
section header aside, section footer aside {
    margin: 0;
    clear: both;
}
article {
    padding: 1em;
    background-color: white;
}
aside {
    margin: 1em;
    float: right;
}
h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
}
h1 {
    margin: 0.25em 0;
}
h2 {
    background-color: #EEEFF1;
    margin: 0.25em 0;
    padding: 3px;
    color: #5e5e5e;
    text-align: center;
}
h3 {
    margin: 0.25em 0;
}
img.avatar {
    padding: 4px;
    border: 1px #ADB9C2 solid;
    border-radius: 3px;
    box-shadow: 0 0 8px #c0c0c0;
    background-color: white;
}
a[href] {
    text-decoration: none;
}
pre {
    white-space: pre-wrap;
}
p {
    margin: 0.25em 0;
}

/** Main header **/
body>header h1 {
    display: inline-block;
    background: linear-gradient(180deg, #fba800, #fec200 6px, #fed500);
    box-shadow: inset 0 1px 0 0 #fed300, inset 1px 0 0 0 #fed300, inset -1px 0 0 0 #fed300;
    text-shadow: 1px 1px 0px #eaa35d;
    border: 1px #ecaf0a solid;
    font-size: 145%;
    color: white;
    margin: 0 2px 2px 0;
    padding: 1px 8px 3px 8px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    text-transform: lowercase;
}
body>header>* {
   vertical-align: bottom;
}
body>header button {
    border: solid #adb9c2 1px;
    border-radius: 1;
    background: linear-gradient(180deg, #f6f5f6, #e0e6e9);
    color: #adb9c2;
    text-shadow: 1px 1px 0 white;
    padding: 2px 6px;
    margin: 2px;
    float: none;
}
body>header button:active {
    background: linear-gradient(180deg, #c4d4f0, #c3d8fd);
}

/** User nicknames **/
dfn {
    font-weight: bold;
    color: #5E5E5E;
    font-style: normal;
}
dfn.online {
    color: #329C58;
}
dfn.offline {
    color: #C81B4B;
}

/** Forms **/
form {
    
}
form label {
    margin: 0.25em;
    display: inline-block;
    padding: 0.25em;
}
form table {
    /*margin: 0 0.5em;*/
}
form td {
    width: 50%;
    vertical-align: middle;
    padding: 0.25em 0.5em;
}
form td:first-child {
    text-align: right;
}
form td input, form td select, form td textarea, form>textarea {
    width: 100%;
}
form>textarea {
    border: none;
}
input[type=submit], input[type=reset], input[type=button], button {
    color: white;
    border: 1px #5CA779 solid;
    padding: 3px 7px;
    background: linear-gradient(to bottom, #8EE3B0, #75CA97);
    box-shadow: inset 0 0 1px white;
    text-shadow: 1px 1px 1px #7AA779;
    font-size: 100%;
    border-radius: 2px;
    cursor: pointer;
}
input[type=submit] img, input[type=reset] img, input[type=button] img, button img {
    vertical-align: middle;
}
input[type=submit]:active, input[type=reset]:active, input[type=button]:active, button:active {
    background: linear-gradient(to top, #8EE3B0, #75CA97);
}
input[type=submit]:disabled, input[type=reset]:disabled, input[type=button]:disabled, button:disabled {
    color: #e0e0e0;
    text-shadow: none;
}
header input[type=submit], header input[type=reset], header input[type=button], header button {
    float: right;
    clear: right;
}
input[type=text], input[type=number], input[type=password], select, textarea {
    padding: 3px;
    border: 1px #abadb3 solid;
    border-radius: 2px;
}
select {
    background: linear-gradient(to bottom, #f0f0f0, #e5e5e5);
}
textarea {
    resize: vertical;
    min-height: 5em;
}
::placeholder {
    color: #d0d0d0;
}

/** Tables and styled lists **/
table {
    border-collapse: collapse;
    width: 100%;
}
table[border] {
    border: 1px white solid;
    border-bottom-width: 3px; /* fix for round corners */
    box-shadow: inset 0 0 1px white;
}
table[border] th {
    background-color: #E1E6EC;
    background: linear-gradient(to top, #EEEFF3, #DADFE3);
    border-style: none;
    border-bottom: 1px #C0C0C0 solid;
    text-align: left;
    font-weight: normal;
}
table[border] td {
    border-style: none;
}
dir {
    margin: 1px;
    padding: 0;
    list-style: none;
    background-color: white;
}
dir li, table[border] td, table[border] th {
    padding: 5px 2px;
}
dir li:nth-child(odd), table[border] tr:nth-child(even)>* {
    background-color: #f0f0f0;
}

/** Definition lists **/
dt, dd {
    margin: 1px;
    display: inline-block;
    width: 48%;
}
dt {
    color: #5D5D5D;
    font-weight: bold;
}
dt::before {
    content: '';
    display: block;
}
dt::after {
    content: ': ';
    display: inline;
}
dd::after {
    content: "\A";
    white-space: pre;
}

/** TEMP **/
@media (max-width: 600px) {
    aside {
        float: none;
    }
}
