/**
 * @file
 * CSS Styling for app.
 */

html {
    color: #bbb;
    background-color: #222;
    background-image: url("../images/annie-spratt-6a3nqQ1YwBw-unsplash.jpg");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    font-size: 16px;
}

body,
button,
caption,
fieldset,
input,
legend,
option,
select,
textarea,
td,
th {
    max-width: 100%; /* Fixes forms and tables to be responsive */
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.5em;
}

.page-header {
    padding: 1px 0.5em 1em;
    background-color: #000;
    box-shadow: 0 5px 10px 4px #111;
}

.site-name {
    padding: 0.5em 0 0;
    font-size: 2.2em;
    font-weight: bold;
}

.site-name a {
    text-decoration: none;
    color: #999;
}

.main-navigation {
    margin: 1.2em 0 0;
    padding-right: 1em;
}

.main-navigation a.nav-link {
    text-decoration: none;
    color: #999;
}

.portfolio-navigation {
    padding: 0.2em 0;
}

.portfolio-navigation a.nav-link {
    display: inline-block;
    margin: 0 0.1em;
    padding: 0.1em 0.8em;
    text-decoration: none;
    color: #999;
    border-radius: 0.5em;
    background-color: #111;
}

.hidden,
.element-invisible {
    position: absolute !important;
    overflow: hidden;
    clip-path: circle(0);
    width: 1px;
    height: 1px;
}

.alert {
    padding: 0.5em;
    font-weight: bold;
}

.alert.alert-notice {
    color: #000;
    background-color: #80eb6f;
}

.alert.alert-success,
.alert.alert-info {
    color: #000;
    background-color: #ff0;
}

.alert.alert-danger {
    color: #fff;
    background-color: #b40000;
}

div.layout-content {
    padding: 0 5px 1em;
}

form {
    padding: 0 0 1.5em;
}

label.required::after {
    content: " *";
    color: #f2ad09;
    font-weight: bold;
}

table {
    width: 98%;
    margin: 0 auto 1em;
}

td {
    padding: 3px 6px;
}

.portfolio td.title {
    padding: 0 0 1px;
}

.portfolio h2 {
    margin: 0;
    padding-bottom: 0.1em;
    border-bottom: 1px solid #444;
}

.portfolio tr.totals {
    color: #ddd;
}

.portfolio th,
.holding td {
    border: 1px solid #555;
    background: #1b2220;
}

.portfolio th.kpi,
.holding td.kpi {
    border-color: #a73;
    background: #0d1816;
}

.portfolio th.empty,
td.empty {
    border: none;
    background: inherit;
}

.portfolio td.center,
.portfolio td.novalue {
    text-align: center;
}

.portfolio td.numbers {
    text-align: right;
}

.portfolio td.bold {
    font-weight: bold;
}

.portfolio td.negative {
    color: #fb4444;
    background: #1a1616;
}

.portfolio td.positive {
    color: #3ce63c;
    background: #121a16;
}

.transaction-form {
    margin: 1em 0;
}

.transaction-form div {
    margin-bottom: 1em;
    padding-left: 1em;
}

.transaction-form label {
    display: block;
    margin-bottom: 0.2em;
}

@media only screen and (min-width: 480px) {
    div.layout-content {
        padding: 0 1em 1em;
    }
}
