@font-face {
    font-family: "lato";
    src: url('../fonts/Lato-regular.ttf');
}

:root {
    --bgcol: #322d2e;
    --txcol: #7b7b7b;
    --txhov: #ffffff;
    --specol: #f3cd4c;
}

/** Global styles
*/

* {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
}

body {
    margin: 0px;
    background-color: lightgray;
    color: #303030;
    line-height: 24px;
    font-family: lato, sans-serif;
}

html, body {
    height: 100%;
}

body > main {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

body {
    /*background-image: url('../images/pagerbg_light.png');*/
    background: linear-gradient(135deg, #e6f4f0, #f3faf8);
}

menu {
    list-style: none;
}

menu li {
    display: inline-block;
}

strong, a, a:visited, a:focus, a:hover, a:active  {
    color: #96526b
}

#mainHead {
    background-color: var(--bgcol);
    margin: 0px;
    padding: 8px;
    color: var(--txcol);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

#mainLogo {
    max-width: 296px;
    padding-top: 18px;
    padding-left: 18px;
}

#mainLogo img {
    width: 100%;
}

#mainHead nav a, #mainHead nav a:hover, #mainHead nav a:focus, #mainHead nav a:visited {
    color: var(--txcol);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

#mainHead nav a:hover, #mainHead nav a:focus {
    color: var(--txhov);
}

#mainHead nav a.selected, #mainHead nav a.selected:hover, #mainHead nav a.selected:focus, #mainHead nav a.selected:visited {
    color: #d3312f;
}

menu.openable {
    
}

menu.openable > li {
    position: relative;
    background-color: var(--bgcol);
}

menu.openable > li:before, menu.openable > li:last-child:after {
    content: "|";
    padding-left: 24px;
    padding-right: 24px;
}

menu.openable > li > a {
    font-size: 16px;
}

menu.openable > li menu li a {
    font-size: 14px;
}

menu.openable > li menu {
    display: none;
    position: absolute;
    top: 18px;
    right: 0px;
    background-color: var(--bgcol);
    padding: 8px;
}

menu.openable > li:hover menu {
    display: block;
    width: 250px;
    text-align: left;
    z-index: 50;
}

menu.openable > li menu li {
    display: block;
    text-align: right;
    padding: 4px;
}
#mainContent {
    max-width: 1164px;
    min-width: 512px;
    min-height: 216px;
    margin: auto;
    padding-top: 26px;
    display: flex;
}

#mainFoot {
    background-color: var(--bgcol);
    color: var(--txcol);
    padding: 15px;
}

#mainFoot strong, #mainFoot a, #mainFoot a:visited, #mainFoot a:focus, #mainFoot a:hover, #mainFoot a:active {
    color: var(--specol);
}

#mainFoot menu li a, #mainFoot menu li a:hover, #mainFoot menu li a:focus, #mainFoot menu li a:visited {
    color: var(--txcol);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

#mainFoot menu li a:hover, #mainFoot a:focus {
    color: var(--txhov);
}

#mainContent #news {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 15px;
}

#mainContent #news > *:first-child, #mainContent #news > *:last-child {
    grid-column: 1 / 3;
}

#mainContent #news article, #mainContent #news p {
    background-color: var(--bgcol);
    font-variant: small-caps;
    margin: 0px;
}

#mainContent #news article {
    min-height: 150px;
}

#mainContent #news > * {
    padding: 15px;
}

#mainContent #news article aside {
    font-size: small;
    color: var(--specol);
}

#mainContent #news article main a {
    font-size: 140%;
    color: var(--txcol);
}

#mainContent #news article:hover main a {
    color: var(--txhov);
}

#moneyPage {
    background: #FFFFFF;
    margin-top: 32px;
    padding: 32px;
    position: relative;
}

#moneyPage h1 {
    margin: auto;
    text-align: center;
    font-family: Economica;
    font-weight: bold;
    font-size: 28px;
    font-variant: small-caps;
    text-transform: uppercase;
}

#moneyPage p {
    margin: 0px;
    padding: 12px;
    width: 100%;
    font-style: italic;
    vertical-align: middle;
    line-height: 18px;
}

#moneyPage .totalAmount {
    font-weight: bold;
    font-size: 165%;
    font-family: Economica;
}

#moneyPage .ccAmount {
    font-weight: bold;
    font-size: 125%;
    font-family: Economica;
}

#moneyPage table {
    margin: 0px;
    width: 100%;
    border-collapse: collapse;
}

#moneyPage table td, #moneyPage table th {
    border: 1px solid #e0e0e0;
    border-left: 1px solid #d0d0d0;
    border-right: 1px solid #d0d0d0;
    padding: 3px;
}

#moneyPage table thead th, #moneyPage table tfoot th {
    background-color: #202020;
    font-weight: bold;
    border: 1px solid #202020;
    text-align: center;
    color: #f0f0f0;
}

#moneyPage table tbody tr th, #moneyPage table tbody tr td {
    background-color: #f0f0f0;
}

#moneyPage table tbody tr:nth-child(even) th, #moneyPage table tbody tr:nth-child(even) td {
    background-color: #d0d0d0;
}

#moneyPage table tbody tr td.amount, #moneyPage table tbody tr th.amount {
    font-weight: bold;
    font-size: 120%;
    text-align: right;
    padding-right: 2%;
    width: 15%;
}

#moneyPage table tbody tr td.amountPositive, #moneyPage table tbody tr th.amountPositive {
    color: #40c040;
}

#moneyPage table tbody tr td.amountNegative, #moneyPage table tbody tr th.amountNegative {
    color: #d04040;
}

#moneyPage table thead tr th:first-child, #moneyPage table tfoot tr th:first-child, tbody tr td:first-child {
    width: 15%;
}

#moneyPage .graph-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#moneyPage .graph-container fieldset {
    margin: auto;
    margin-top: 5px;
    margin-bottom: 5px;
}

#moneyPage .graph-container fieldset legend {
    width: 95%;
    text-align: center;
    font-weight: bold;
}

#moneyPage .pie-legend {
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#moneyPage .pie-legend li, #moneyPage .pie-legend li span {
    padding: 5px;
}

#stats {
    color: var(--txcol);
}

#stats slot {
    color: var(--txhov);
}

.collapsible-trigger {
    cursor: pointer;
}

.collapsible-target {
    display: none;
}

.collapsible-target.shown {
    display: revert;
}

.collapsible-ante:not(.shown) {
    display: revert;
}

.collapsible-ante.shown {
    display: none;
}
