:root {
    --miner-animspeed: 4000ms;
    --fadein-duration: 250ms;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.monospace {
    font-family: 'Fira Mono', Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}

.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }

.bottom-border-dotted {
    border-bottom: 1px dotted #bac1c8;
}

.mempool {
    overflow: hidden;
}
.transaction {
    opacity: 1;
    position: relative;
    display: inline-block;
    min-width: 15px;
    min-height: 15px;
    margin: 3px;
    background-color: #e0e0e0;
    border: 1px dashed #000;
    color: #111;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    text-align: center;
    flex: 1 0 auto;
    padding: 2px;
    line-height: 1.5rem;
    vertical-align: top;
    font-size:0.9rem;
}
.block, .transaction {
    animation: fadein var(--fadein-duration) normal forwards linear;
}
.transaction.out {
    animation: none;
}
.block .transaction,
.blockchain .transaction,
.mempool .transaction {
    float: left;
    width: 30px;
    height: 30px;
    max-width: 30px;
}
.transaction.selected,
#block-in-progress .transaction {
    background-color: #0073b8;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.73);
}

.blockchain .transaction, .transaction.transaction-confirmed {
    background-color: #2d6e68;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.73);
    border-style: solid;
}
.hashing {
    text-overflow: ellipsis;
    overflow: hidden;
}
.slider.slider-horizontal {
    max-width: 100%;
    width: 100%;
    margin-bottom: .5rem;
    display: inline-flex;
}
.slider.slider-horizontal .slider-selection {
    position: absolute;
    background: #41a49d;
}
.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active, .show > .btn-secondary.dropdown-toggle {
    background-color: #000000;
}

.table.blocks td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table-responsive.blocks {
    height: 300px;
    max-height: 300px;
}

.too-slow, .too-fast {
    color: #e41a25;
}
.just-right {
    color: rgb(1, 156, 83);
}

.working {
    position: relative;
    overflow: hidden;
}
.working:before{
    display: block;
    position: absolute;
    content: "";
    left: -200px;
    width: 200px;
    height: 4px;
    bottom: 0;
    background-color: #04a9f4;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, #04a9f4 100%);
    animation: loading 2500ms linear infinite;
}
.card-miner .card-header.working:before {
    animation-duration: var(--miner-animspeed);
}


@keyframes loading {
    from {left: -50%; width: 50%;}
    50% {left: 0; width: 100%;}
    to {left: 100%; width: 50%;}
}

.sidebar .card .card-body dd {
    margin-bottom: 0;
}

.btn-xs, .btn-group-xs > .btn {
    padding: 0.2rem 0.3rem;
    font-size: 0.7rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.card-mempool .card-header {
    background-color: #0c5460;
    color: #FFF;
}

.card-miner {

}
.card-miner .card-header {
    background-color: #0c5460;
    color: #FFF;
}
.card-miner .card-header img {
    filter: invert(1);
}

.card-blockchain {

}
.card-blockchain .card-header {
    background-color: #0c5460;
    color: #FFF;
}

.blockchain {
    z-index: 1;
    position: relative;
    display: block;
    overflow: hidden;
    overflow-x: auto;
    width: 100%;
    padding: 3px 20px 20px 3px;
}
.blockchain, .block {
    white-space: nowrap;
    text-align: left;
    direction: ltr;
}

.block {
    z-index: 2;
    position: relative;
    display: inline-block;
    width: 200px;
    max-width: 200px;
    background-color: #ffffff;
    border: 2px solid #000;
    color: #FFF;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.20);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.73);
}
#block-in-progress .block {
    margin-right: 20px;
    margin-bottom: 20px;
}
#block-in-progress .block,
#block-in-progress .block span.block-nonce {
    border-style: dashed;
}


.block + .block {
    margin-left: 30px;
}
.block + .block:before {
    content: "";
    background-image: url(../svg/chain.svg);
    background-repeat: no-repeat;
    background-position: -40px 0;
    background-size: 120%;
    height: 20px;
    position: absolute;
    left: -32px;
    display: block;
    top: 50%;
    text-align: center;
    padding: 0;
    margin-top: -10px;
    width: 30px;
    transform-origin: center;
    overflow: hidden;
    animation: linkin var(--fadein-duration) normal forwards linear;

}
@keyframes linkin { from { background-position: -40px 0; } to { background-position: 0 0; } }

.block.prototype {
    display: none;
}

.block .block-header {
    border-bottom: 2px solid #000;
    text-align: center;
}
.block .block-header {
    padding: 0;
}
.block-number {
    padding: 3px;
}

.block-signature {
    padding: 5px;
}
.block-number {
    background-color: #459bdd;
    font-weight: bold;
    font-size: 1.1rem;
}
.block-signature {
    background-color: #004b9d;
}

.block .block-body {
    padding: 5px 0;
}

.block .block-body .block-body-row {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.block-prevhash, .block-nonce {
    display: inline-block;
    position: relative;
    margin: 0 5px;
    padding: 3px;
    flex: 1 0 0;
    border-radius: 5px;
    border: 2px solid #000;
    white-space: nowrap;
}
.block-prevhash {
    background-color: #F15A38;
}

.block-nonce {
    background-color: #ff43a6;
}

.block .block-body .block-transactions {
    background-color: #4cb6ab;
    border: 2px solid #000;
    border-radius: 5px;
    margin: 5px 5px 0 5px;
}

.block .block-body .block-transactions .merkle-root {
    background-color: #2d6e68;
    border-top: 1px solid #000;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.73);
    padding: 3px 6px;
}

.transactions-row {
    min-height: 72px;
    display: flow-root;
    justify-content: space-between;
}

.cursor-help,
.transaction,
#real-difficulty,
#avg-block-time-live,
.block .block-header,
.block .block-body .block-transactions,
.block .block-prevhash,
.block .merkle-root,
.block .block-number,
.block .block-signature,
.block .block-nonce {
    cursor: help;
}

.block .block-header,
.block .block-body .block-transactions,
.block .block-prevhash,
.block .merkle-root,
.block .block-number,
.block .block-signature,
.block .block-nonce {
    overflow: hidden;
    text-overflow: ellipsis;
}
label {
    margin-bottom: 0;
}
#output-hashrate, #output-multiplier {
    min-width: 50px;
    margin-left: 10px;
}

table .fit {
    width: 1%;
    white-space: nowrap;
}
.card-footer {
    line-height: 2;
}
.slider-handle {
    background-color: rgba(255,255,255,0.75);
}

@keyframes fadein { from {opacity:0;} to {opacity:1;} }
@keyframes fadeout { from {opacity:1;} to {opacity:0;} }
