:root {
    --red: #D50000;
    --green: #00C853;
}

html {
    width: 100%;
}

body {
    background-color: #FAFAFA;
    color: #121212;
    font-family: 'Helvetica', sans-serif;
    width: 100%;
    margin: 0;
}

#content {
    padding: 1em;
    max-width: 100%;
}

header {
    text-align: center;
}

header h1 {
    font-size: 3em;
}

header h1 .toolbar-button {
    float: right;
}

ul {
    padding: 0;
}

ul hr {
    width: 80%;
    margin-top: 1em;
    margin-bottom: 1em;
}

ul li {
    list-style: none;
    margin-bottom: 0.4em;
    color: #CCCCCC;
}

ul li.status-critical {
    color: var(--red);
    font-weight: bold;
}

ul li.status-error {
    color: var(--red);
}

ul li.status-warning {
    color: darkgoldenrod;
}

ul li.status-normal {

}

ul li .label {
    font-weight: bold;
    margin-right: 1em;
}

#content {
    max-width: 100%;
}

#assets-container {
    width: 100%;
}

.card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 25em;
    padding: 2em;
    margin: 1em;
    border-radius: 4px;
    display: inline-block;
    vertical-align: top;
    background-color: #FFFFFF;
    box-shadow: #CCCCCC 4px 4px 4px;
}

.card.status-critical {
/*    TODO do something with the card */
}

.card header .title {
    text-align: left;
}

.card header .feature {
    /*float: right;*/
}

.card h1.title {
    font-size: 1.5em;
}

.card h2 {
    font-size: 1.3em;
    margin-top: 2em;
}

.card .value {
    float: right;
}

.card .column {
    // TODO
    min-width: 21em;
}

.card .column div {
    width: 100%;
}

.card#ethermine {
    /*width: -webkit-fill-available;*/
}

.card#ethermine div {
    display: inline-block;
}

.card#ethermine #unpaid-balances {
    width: 100%;
    text-align: center;
}

.card#ethermine .balance {
    display: block;
}

.card#ethermine .balance div {
    display: block;
}

.card#ethermine .balance .balance-label {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-size: 1.5em;
}

.card#ethermine .balance .balance-value {
    font-size: 1.3em;
}

.card#ethermine .balance.column {
    display: inline-block;
    width: 49%;
}

.card#ethermine div.chart {
    float: right;
    margin-left: 2em;
/*    margin: 0 1em 1em 1em; */
    width: min(20em, 100%);
/*    max-width: 100%; */
}

.change-up {
    color: var(--green);
}

.change-down {
    color: var(--red);
}

body.dark-mode {
    background-color: #121212;
    color: #FAFAFA;
}

.dark-mode .card {
    background-color: #333333;
    box-shadow: #000000 4px 4px 4px;
}

.hidden {
    display: none;
}

#page-updated-at {
    text-align: end;
    font-style: italic;
    margin: 1em;
}

/*
 Spinner
 */
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}
@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}
/*
End of Spinner
 */

@media screen
and (max-width: 780px) {
    /* TODO make ethermine single column here */
    .card {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .card .column {
        width: 100%;
    }

    .card .chart {
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media screen
and (max-width: 480px) {
    #content {
        padding-left: 0;
        padding-right: 0;
    }
}
