* {
  box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    line-height: 1.4;
    color: #333;
}

a {
    color: #000;
}

code {
    font-family: monospace, monospace;
    font-size: 1em;
}

div.nav {
    background-color: #333;
    color: #fff;
    text-align: right;
    line-height: 3em;
}

div.nav img {
    margin-top: 0.5em;
    height: 2em;
}

div.nav a {
    color: #fff;
    text-decoration: none;
}

div.nav span {
    margin: 0 1em;
}

div.nav .left {
    float: left;
}

h2 {
    text-align: center;
}

div.content, div.footer {
    max-width: 50em;
    margin: 2em auto;
}

div.footer {
    font-size: 85%;
    color: #888;
    text-align: center;
}

div.footer a {
    color: #888;
}

/** table **/
table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
/*    border: 1px solid #ccc;*/
}

td, th {
    padding: 0.5em 0.3em;
}

thead th {
    border-bottom: 2px solid #eee;
}

table.striped tr:nth-child(even) {
    background-color: #f8f8f8;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

th {
    text-align: left;
}

/** form **/
form {
    max-width: 20em;
    margin: 0 auto;
}

label {
    font-weight: bold;
}

fieldset {
    border: 0;
}

dt {
    font-weight: bold;
}

input {
    margin-bottom: 1em;
    width: 100%;
    display: block;
}

.text-right {
    text-align: right;
}

button {
    padding: 0.5em 0.7em;
    font-weight: bold;
}

button.error {
    border: 1px solid #b00;
    background-color: #d00;
    color: #fff;
}

button.success {
    background-color: #063;
    border: 1px solid #052;
    color: #fff;
}
