﻿html {
    width: 200%;
    height: auto;
    min-height: 100%;
}

body {
    background-image: linear-gradient(-225deg, #473B7B 0%, #3584A7 50%, #30D2BE 100%);
    background-repeat: no-repeat;
    font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    color: white;
    font-size: 16px;
    margin: 0;
    overflow:scroll;
}

#content-wrapper {
    padding: 25px;
}

#background {
    height: 100%;
    width: 100%;
    position: fixed;
    pointer-events: none;
    opacity:0;
    transition:opacity .5s;
}

body h1 {
    color: rgba(255,255,255,.825);
    margin: 10px 0 10px 0;
}

body h2 {
    color: rgba(255,255,255,.825);
    margin: 10px 0 10px 0;
    position: relative;
    display:inline;
}

h3 {
    margin: 10px 0 10px 0;
}

.info-bubble {
    position: absolute;
    display: inline;
    z-index: 1;
    background-color: #2e8fcc;
    border-radius: 25px;
    text-align: justify;
    width: 39px;
    height: 39px;
    line-height: 39px;
    cursor: pointer;
    transition: all .25s;
    font-size: 25px;
    font-weight: bold;
    overflow: hidden;
    margin: -5px 10px;
    border: 3px dotted #2e8fcc;
}

.info-bubble:after {
    content:"i";
    color: #ffffff;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-style: italic;
    width: 100%;
    height:100%;
    border-radius:0;
    position:absolute;
    left:0;
    top:0;
}

.info-bubble p:first-of-type{
    margin-top:25px;
    margin-bottom:10px;
    text-align: center;
    text-decoration:underline;
}

.info-bubble:hover {
    background-color: #2c3e50;
    width: 385px;
    height: 385px;
    border-radius:25px;
    padding:15px;
}

.info-bubble:hover * {
    color: rgb(255,255,255);
    transition: color 1s;
}

.info-bubble * {
    transition: color 0s;
    color: rgba(255,255,255,0);
    margin:auto;
    line-height:20px;
}

.info-bubble p {
    font-size:12px;
    font-weight:300;
}

#node-controls {
    position: fixed;
    top: 0;
    right: 5%;
    width: 335px;
    padding: 1px 15px 5px 15px;
    border-radius: 0 0 10px 10px;
    background-color: rgba(0,0,0,.3);
    z-index: 3;
    border-left: 4px solid rgba(0,0,0,.15);
    border-right: 4px solid rgba(0,0,0,.15);
    border-bottom: 4px solid rgba(0,0,0,.15);
}

#node-controls:after{
    content: "v.1.6.0";
    position:absolute;
    bottom:5px;
    right:15px;
    font-size:10px;
}

#node-icon {
    margin-right: 18px;
    margin-top:-2px;
    vertical-align: middle;
    height:35px;
    width:31px;
    background-image:url("../Images/NodeIcon.png");
    display:inline-block;
    position:relative;
}

#node-icon:before{
    content:"";
    position:absolute;
    height: 8px;
    width: 8px;
    border-radius: 50%;
    animation: pulse 4s infinite;
    margin:auto;
    left:0;
    right:0;
    top:0;
    bottom:0;
}

#node-icon:after {
    content: "Node is live.\A Status: " attr(data-status);
    position: absolute;
    font-size: 12px;
    line-height: 15px;
    background-color: #2c3e50;
    text-align: left;
    padding: 7px 0 7px 20px;
    border-radius: 6px;
    visibility: hidden;
    width: 175px;
    left: 40px;
    bottom: -5px;
    box-sizing: border-box;
    z-index: 4;
    color: #ffd54d;
    white-space:pre-wrap;
    border: 1px solid rgba(255, 213, 77, .2);
}

#node-icon:hover:after {
    visibility: visible;
}

@keyframes pulse {
    50% {
        box-shadow: 0 0 0 25px rgba(0,0,0,0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0,0,0,0);
    }
}

.node-color-red:before {
    background-color: rgb(255, 0, 0);
    box-shadow: 0 0 0 0 rgb(255, 0, 0);
}

.node-color-green:before {
    background-color: rgb(46, 204, 113);
    box-shadow: 0 0 0 0 rgb(46, 204, 113);
}

.node-color-orange:before {
    background-color: rgb(255, 86, 0);
    box-shadow: 0 0 0 0 rgb(255, 86, 0);
}

#node-ip{
    font-size:10px;
    margin-left:15px;
    vertical-align:middle;
}

#timeline-wrapper {
    width: calc(100% - 145px);
    height: 400px;
    padding-left: 45px;
    padding-right: 100px;
    margin-bottom: 20px;
    overflow: hidden;
}

#timeline{
    height:100%;
    width:100%;
    position:relative;
    z-index: 0;
}

#timeline:after{
    position: absolute;
    left: 0;
    top: 80%;
    height: 2px;
    background: white;
    content: "";
    width: 100%;
    display: block;
    opacity:.45;
}

#timeline .bibleEvent{
    position:absolute;
    opacity: 1;
    transition: opacity .75s;
    z-index:1;
    cursor:pointer;
    color:rgba(255,255,255,.45);
}

#timeline .bibleEvent.fade{
    opacity:0;
}

#timeline .eventText {
    position: absolute;
    text-align:left;
    white-space:nowrap;
    height:0;
    width:0;
    transition: all .4s;
    -webkit-transform: rotate(-45deg) translate(25px, -11px);
    -moz-transform: rotate(-45deg) translate(25px, -11px);
    -ms-transform: rotate(-45deg) translate(25px, -11px);
    -o-transform: rotate(-45deg) translate(25px, -11px);
}

#timeline .eventYear{
    position:absolute;
    top:15px;
    font-size:14px;
    white-space:nowrap;
    transition: color .4s;
    white-space:nowrap;

    -webkit-transform: rotate(-45deg) translate(-100%, -26px);
    -moz-transform: rotate(-45deg) translate(-100%, -26px);
    -ms-transform: rotate(-45deg) translate(-100%, -26px);
    -o-transform: rotate(-45deg) translate(-100%, -26px);
}

#timeline .eventDot {
    position: absolute;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    background-color: #9daec9;
    transition: all .4s;
    left:-8px;
    top:-7px;
}

#timeline .genesisBlock{
    margin-left:10px;
    color:white;
    font-size:13px;
    padding:4px 10px 4px 10px;
    border-radius:15px;
    background-color:purple;
    border: 2px solid rgb(255, 255, 64);
}

#timeline .eventCounter{
    color:#212e49;
    font-size:10px;
    font-weight:700;
    text-align:center;
    width:100%;
    height:100%;
    line-height:16px;
    transition: color .4s;
}

#timeline .bibleEvent:hover{
    z-index:2;
}

#timeline .bibleEvent:hover:not(.selected) .eventText{
    text-shadow: 0px 0px 4px rgba(0,0,0,.25);
    color:rgba(0,0,0,.45);
}
#timeline .bibleEvent:hover:not(.selected) .eventYear {
    text-shadow: 0px 0px 4px rgba(0,0,0,.25);
    color: rgba(0,0,0,.45);
}

#timeline .bibleEvent:hover:not(.selected) .eventDot {
    transform: scale(1.5) rotate(45deg);
    background-color: #212e49;
    background-image: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,0) 50%, #212e49 50%, #212e49 100%);
}

#timeline .bibleEvent:hover:not(.selected) .eventCounter{
    color:#9daec9;
}

#event-overview {
    position: sticky;
    left: 40%;
    transform: translateX(-30%);
    padding: 1px 20px 5px 20px;
    margin-bottom:20px;
    border-radius: 8px;
    width: 50vw;
    display: block;
    min-height: 120px;
    background-color: rgba(255,255,255,.15);
    transition: border-radius .5s;
    border: 2px dashed rgba(255, 255, 0, .8);
}

#event-logger {
    position: sticky;
    left: 40%;
    transform: translateX(-30%);
    width: 50vw;
    min-height: 120px;
    background-color: rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 20px;
    transition: border-radius .5s;
    border: 2px dashed rgba(20, 255, 0, .8);
}

#event-logger p{
    position:relative;
}

#event-logger .event-wrapper{
    display:block;
    position:relative;
    height:35px;
    line-height:35px;
    font-size:0;
}

#event-logger .event-block-wrapper {
    display: block;
    position: relative;
    height: 55px;
    line-height: 55px;
    font-size: 0;
}

#event-logger .event-wrapper span,
#event-logger .event-block-wrapper span{
    font-size: 16px;
}

#event-overview:hover,
#event-logger:hover{
    border-radius: 16px;
}

#timeline .bibleEvent.selected {
    color: rgba(255, 255, 0, .8);
}

#timeline .bibleEvent.selected .eventDot{
    background-color:rgb(255, 255, 64);
}


/*SWITCH*/
#mining-wrapper,
#animation-wrapper {
    font-size: 0;
    margin-bottom: 10px;
}

#mining-wrapper span,
#animation-wrapper span{
    vertical-align: middle;
    margin-right: 15px;
    font-size: 15px;
}

.switch {
    position: relative;
    height: 1.5rem;
    font-size: 0;
    width: 3rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}
.switch input {
    position: absolute;
    top: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    margin: 0;
    left: 0;
}
.switch input:checked {
  z-index: 1;
}

.switch .toggle-outside {
    height: 100%;
    border-radius: 2rem;
    padding: 0.25rem;
    overflow: hidden;
    transition: 0.25s ease all;
    background: #fff;
    position: absolute;
    width: 100%;
    left: 0;
    box-sizing: border-box;
}

.switch .toggle-inside {
    border-radius: 5rem;
    background: #4a4a4a;
    position: absolute;
    transition: 0.25s ease all;
    height: 1rem;
    width: 1rem;
}

.switch input:checked ~ .toggle-outside .toggle-inside {
    left: 0.25rem;
    background: rgba(0,0,0,0.2);
}
.switch input ~ input:checked ~ .toggle-outside .toggle-inside {
    left: 1.75rem;
    background: #2ecc71;
}

/*SWITCH END*/

/*RANGE SLIDER*/

.range-slider {
    display:inline-block;
    vertical-align:middle;
    width:125px;
}

#difficulty-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: #fff;
    outline: none;
    padding: 0;
    margin: 0;
}

.range-slider:after {
    content: "A high difficulty can be very CPU demanding.";
    background-image: url("../Images/WarningIcon.png");
    background-repeat: no-repeat;
    background-position: 8px;
    position: absolute;
    font-size: 12px;
    line-height: 15px;
    background-color: #2c3e50;
    text-align: center;
    padding: 7px 0 7px 20px;
    border-radius: 6px;
    visibility: hidden;
    width: 175px;
    left: 52%;
    bottom: 0;
    box-sizing: border-box;
    z-index: 4;
    color: #ffd54d;
    border: 1px solid rgba(255, 213, 77, .2);
}

.range-slider:hover:after{
    visibility:visible;
}

#difficulty-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2c3e50;
  cursor: pointer;
  transition: background .2s;
}

#difficulty-slider::-webkit-slider-thumb:hover,
#difficulty-slider:active::-webkit-slider-thumb {
  background: #1abc9c;
}

#difficulty-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #2c3e50;
  cursor: pointer;
  transition: background .2s;
}
#difficulty-slider::-moz-range-thumb:hover,
#difficulty-slider:active::-moz-range-thumb {
  background: #2ecc71;
}

#difficulty-slider::-moz-range-track {
  background: #fff;
  border: 0;
}

/*RANGE SLIDER END*/

/*BUTTON*/

#node-button {
    height: 2rem;
    padding: 5px 30px 5px 30px;
    text-align: center;
    background-color: #2c3e50;
    border-radius: 1rem;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 23px;
    white-space: nowrap;
    min-width: 50px;
    margin:10px 0 10px 0;
    transition: background-color .2s;
    width:100%;
}

#node-button:hover{
    background-color: #2ecc71;
    cursor:pointer;
}

#node-button:active,
#node-button:focus{
    background-color:#4c9bb3;
}

.block {
    cursor: zoom-in;
    display: inline-block;
    transform: translateX(40px) translateY(-13px);
    z-index: 4;
}

.block:hover{
    z-index:5;
}

.block:hover div {
    height: 250px;
    width: 250px;
    color: white;
    outline:1px solid rgba(255,255,255,.5);
    opacity:1;
}

.block:hover .right {
    font-size: 100px;
    line-height: 250px;
}

.block div {
    position: absolute;
    transition: all .5s;
    height: 25px;
    width: 25px;
    vertical-align: middle;
    text-align: left;
    word-wrap: break-word;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    color: transparent;
    font-size: 16px;
    line-height: 20px;
    opacity:.5;
}

.block div p{
    margin:0;
}

.block .top {
    background: rgb(47, 105, 204);
    transform: rotate(-45deg) skew(15deg, 15deg) translate(50%, -100%);
}

.block .left {
    background: rgb(63, 114, 203);
    transform: rotate(15deg) skew(15deg, 15deg) translate(-100%, 50%);
}

.block .right {
    background: rgb(24, 63, 129);
    transform: rotate(-15deg) skew(-15deg, -15deg);
    white-space: nowrap;
    text-align: center;
    font-size: 14px;
    line-height: 25px;
    padding: 0;
    color: white;
}