html {
    font-family: "Lato", sans-serif;
    font-size: 14pt;
    color: #202020;
}

#container {
    max-width: 900px;
    margin: auto;
    background: url(/static/bg-gradient.png) #478e95 no-repeat;
    padding-top: 10px;
    padding-bottom: 50px;
}

header {
    display: flex;
    padding: 10px;
}

#logo {
    display: block;
    min-width: 197px;
    height: 66px;
    background: url(/static/logo-small.png);
    background-repeat: no-repeat;
    background-position: center;
}

#user {
    flex-grow: 1;
    line-height: 2;
    text-align: right;
    padding-top: 20px;
    padding-right: 20px;
}

#username {
    padding-right: 1rem;
}

main {
    height: 500px;
    margin-left: -50px;
    margin-right: -50px;
    margin-top: 20px;
    background-image: url(/static/nordbad.jpeg);
    background-position: right center;
    color: #e0e0e0;
    padding: 1.5rem;
    box-sizing: padding-box;
}

section {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    margin-top: 20px;
}

footer {
    font-size: 0.8rem;
    text-align: right;
    color: #e0e0e0;
    margin-top: 20px;
    margin-right: 20px;
}

footer a {
    color: inherit;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: bold;
}

h3 {
    font-size: 1.4rem;
}

p, h1, h2, h3, table, textarea, blockquote, pre, div.buttons {
    margin-top: 1rem;
}

pre {
    font-family: monospace;
}

section > :first-child, main > :first-child, section:first-child {
    margin-top: 0;
}

strong, b {
    font-weight: bold;
}

#montagsbank-container {
    display: flex;
    flex-wrap: wrap;
}

#montagskarte {
    margin: auto;
    width: 230px;
    height: 150px;
    background-image: url(/static/montagskarte.png);
    background-repeat: no-repeat;
    position: relative;
}

#montagskarte-balance {
    border: 1px solid #095057;
    background: #19676e;
    color: #e0e0e0;
    padding: 0.5rem;
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 1.5rem;
}

#montagsbank {
    flex-grow: 1;
    flex-basis: 500px;
    margin-top: 1.2rem;
}

table.form, .stretch {
    width: 100%;
}

table.form td {
     width: 99%;
     padding: 0.5rem 0 0 0;
}

table.form th {
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
    padding-right: 1rem;
}

td.buttons {
    width: auto;
    text-align: right;
}

div.buttons {
    line-height: 2;
}

input, textarea {
    border: 1px solid #095057;
    border-radius: 5px;
    line-height: 1.2;
    padding: 0.3rem;
    box-sizing: border-box;
}

textarea {
    display: block;
    width: 100%;
}

a {
    text-decoration: underline;
    color: #b56926;
    font-weight: bold;
}

a.plain {
    text-decoration: inherit;
    color: inherit;
    font-weight: inherit;
}

button, a.button {
    display: inline-block;
    cursor: pointer;
    line-height: 1.2;
    border: 2px solid #8f4a0d;
    background: #b56926;
    color: #e0e0e0;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    padding: 0.2rem;
    font-weight: bold;
    white-space: nowrap;
}

button.plain {
    border: 0;
    background: inherit;
    color: inherit;
    padding: inherit;
    font-weight: inherit;
}

button::-moz-focus-inner {
    padding: 0 !important;
    border: 0 none !important;
}

form.inline {
    display: inline-block;
}

.options-row, .options-column {
    display: flex;
    margin-top: 1.2rem;
    flex-wrap: wrap;
}

.options-column {
    flex-direction: column;
}

.options-row input, .options-column input {
    display: none;
}

.options-row label, .options-column label, .pagination a, .pagination strong {
    border: 2px solid #b7b7b7;
    background: #e7e7e7;
    padding: 0.3rem;
    flex-grow: 1;
    border-radius: 5px;
    text-decoration: none;
}

.options-row label, .options-column label {
    margin: 3px;
}

.options-row input:checked + label, .options-column input:checked +label, .pagination strong {
    background: #f5b073;
    border-color: #b56926;
}

input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label, span.unchecked, span.checked {
    display: inline-block;
    text-align: left;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid #8f4a0d;
    background: #e7e7e7;
    border-radius: 5px;
    position: relative;
    vertical-align: baseline;
}

input[type="checkbox"]:checked + label:after, span.checked:after {
    content: '✓';
    color: #19676e;
    position: absolute;
    width: 1.2rem;
    height: 1.2rem;
    font-size: 1.6rem;
    line-height: 0.7;
    text-align: center;
}

.error {
    border: 1px solid #8f4a0d;
    background: #f5b073;
    padding: 0.3rem;
}

table.data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0px 3px;
}

table.data td, table.data th {
    padding: 0.3rem;
}

table.data th {
    text-align: left;
    font-weight: bold;
    background: #095057;
    color: #e0e0e0;
}

.numeric {
    text-align: right;
}

.negative {
    background: #d38947;
}

.comment {
    font-size: 0.8rem;
}

.pagination {
    margin-top: 1.2rem;
    text-align: right;
}

.pinpad {
    display: none;
}

.pinpad-row {
    text-align: center;
    margin-bottom: 0.6rem;
}

.pinpad-row button {
    width: 30%;
}

blockquote {
    padding-left: 1rem;
    border-left: 2px solid #8f4a0d;
}

cite {
    margin-top: 0.5rem;
    margin-left: 1rem;
    display: block;
    font-size: 0.8rem;
}

cite:before {
    content: '— ';
}

@media (max-width: 1000px) {
    #container {
        max-width: none;
        width: 100%;
    }

    main {
        margin-left: 0px;
        margin-right: 0px;
        height: auto;
        min-height: 50vw;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 12pt;
    }

    header {
        flex-direction: column;
    }
}

@media (max-width: 400px) {
    .pinpad {
        display: block;
    }

    table.form th {
        white-space: normal;
    }
}

/* vim: set sw=4 sts=4 et tw=72: */
