/* CSS Transition */
.jqTimespaceAnimated {
    -webkit-transition: all 1.2s cubic-bezier(0.29, 0.575, 0.465, 1);
    -o-transition: all 1.2s cubic-bezier(0.29, 0.575, 0.465, 1);
    transition: all 1.2s cubic-bezier(0.29, 0.575, 0.465, 1);
}

/* Error Display */
.jqTimespaceError {
    padding: 1rem;
    text-align: center;
    color: #ff6347;
    background: #250000;
}

/* Containers */
.jqTimepsaceContainer,
.jqTimepsaceContainer .jqTimespaceDataContainer {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 0;
    color: #ffffff;
}
.jqTimepsaceContainer .jqTimespaceDataContainer {
    -webkit-box-shadow: 0 6px 5px -5px #000000;
    box-shadow: 0 6px 5px -5px #000000;
    margin: 1rem auto;
    border: 1px solid #5f5f5f;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: #282c34;
}

/* Navigation and Line Guide */
.jqTimepsaceContainer .jqTimespaceLeft,
.jqTimepsaceContainer .jqTimespaceRight {
    z-index: 3;
    position: absolute;
    bottom: 30%;
    margin: 0;
    border: 1px solid #4e515c;
    padding: 0.1rem 0.5rem;
    color: #a0a9bd;
    font-size: 1.6rem;
    line-height: 2rem;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
    opacity: 0.7;
}
.jqTimepsaceContainer .jqTimespaceLeft {
    left: 0;
}
.jqTimepsaceContainer .jqTimespaceRight {
    right: 0;
}
.jqTimepsaceContainer .jqTimespaceLeft:hover,
.jqTimepsaceContainer .jqTimespaceRight:hover {
    background: #555a64;
    opacity: 1;
}
.jqTimepsaceContainer .jqTimespaceLine {
    z-index: 3;
    position: absolute;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    top: 0;
    left: 50%;
    margin: 0;
    padding: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to top, #ffffff 0%, #cacaca 20%, #474747 100%);
    opacity: 0.15;
    cursor: move;
}

/* Timeline */
.jqTimepsaceContainer aside {
    position: relative;
    left: 0;
    margin: 0;
    padding: 0;
    line-break: strict;
    cursor: move;
}
.jqTimepsaceContainer header {
    z-index: 4;
    position: relative;
    background: #282c34;
}
.jqTimepsaceContainer .jqTimespaceTitleClamp {
    z-index: 5;
    display: block;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    opacity: 0;
    cursor: move;
}
.jqTimepsaceContainer header > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    border-bottom: 1px solid #4e515c;
    text-align: center;
}
.jqTimepsaceContainer header > div:last-child {
    border-bottom: 1px solid #4e515c;
    text-align: left;
}
.jqTimepsaceContainer header h1,
.jqTimepsaceContainer header time,
.jqTimepsaceContainer header .jqTimespaceDummySpan {
    display: block;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0.5rem 0;
}
.jqTimepsaceContainer header time {
    padding: 0.2rem 0 0.2rem 0.1rem;
}
.jqTimepsaceContainer header h1 {
    font-size: 1.2rem;
}
.jqTimepsaceContainer header h1:not(:first-child),
.jqTimepsaceContainer header .jqTimespaceDummySpan:not(:first-child) {
    border-left: 1px solid #4e515c;
}
.jqTimepsaceContainer header .jqTimespaceDummySpan {
    background: #22252c;
    opacity: 0.4;
}
.jqTimepsaceContainer header time:not(:first-child) {
    border-left: 1px dashed #4e515c;
}
.jqTimepsaceContainer aside section {
    z-index: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    top: 0;
    min-height: 100%;
}
.jqTimepsaceContainer aside .jqTimespaceColumn {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding-bottom: 20px;
}
.jqTimepsaceContainer aside .jqTimespaceColumn:not(:first-child) {
    border-left: 1px dashed #5f5f5f;
}

/* Event Boxes */
.jqTimepsaceContainer .jqTimespaceEvent {
    z-index: 2;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 1rem 0 0 0;
    padding: 0;
    text-align: left;
}
.jqTimepsaceContainer .jqTimespaceEventRev {
    text-align: right;
}
.jqTimepsaceContainer .jqTimespaceEventBorder {
    z-index: 1;
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    border-left: 1px solid rgba(0, 0, 0, 0);
}
.jqTimespaceEvent:hover + .jqTimespaceEventBorder {
    border-left: 1px dashed #818181;
}
.jqTimespaceEvent p {
    overflow: hidden;
    margin: 0;
    border: 1px solid #5f5f5f;
    border-radius: 0 0.6rem 0.6rem 0;
    padding: 0.3rem 0.5rem;
    line-height: 1.6rem;
    font-size: 1rem;
    white-space: nowrap;
    cursor: pointer;
    background: #282c34;
}
.jqTimespaceEvent p span {
    position: relative;
}
.jqTimespaceEventRev p {
    border-radius: 0.6rem 0 0 0.6rem;
}
.jqTimespaceEvent p:hover,
.jqTimespaceEvent .jqTimespaceEventSelected {
    border: 1px solid #818181;
    background: #5f5f5f;
}
.jqTimespaceNoDisplay p {
    cursor: move;
    background: #22252c;
    opacity: 0.6;
}
.jqTimespaceNoDisplay p:hover {
    border: 1px solid #494e58;
    background: #22252c;
}

/* Display Box */
.jqTimespaceDisplay {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-box-shadow: 0 6px 5px -5px #000000;
    box-shadow: 0 6px 5px -5px #000000;
    margin: 1rem auto;
    border: 1px solid #494e58;
    padding: 0;
    height: 0;
    background: #282c34;
    overflow: hidden;
    -webkit-transition: height 0.4s linear;
    -o-transition: height 0.4s linear;
    transition: height 0.4s linear;
}
.jqTimespaceDisplay > div {
    margin: 0;
    padding: 1.5rem;
    overflow: auto;
}
.jqTimespaceDisplay h1 {
    margin: 0;
    padding: 0.5rem;
    text-align: left;
    font-size: 1.4rem;
}
.jqTimespaceDisplay .jqTimespaceDisplayTime {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    padding-bottom: 0.5rem;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 1.1rem;
}
.jqTimespaceDisplay .jqTimespaceDisplayLeft,
.jqTimespaceDisplay .jqTimespaceDisplayRight {
    width: 0.9rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}
.jqTimespaceDisplay .jqTimespaceDisplayLeft {
    margin-left: 0.5rem;
}
.jqTimespaceDisplay .jqTimespaceDisplayRight {
    margin-left: 1.2rem;
}
.jqTimespaceDisplay .jqTimespaceDisplayLeft:hover,
.jqTimespaceDisplay .jqTimespaceDisplayRight:hover {
    color: #ff7c6b;
}
.jqTimespaceDisplay .jqTimespaceTimeframe {
    display: inline-block;
    margin: 0.2rem 0 0.2rem 1.2rem;
    padding: 0 0.4rem;
    border-left: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    color: #bd4c3d;
}
.jqTimespaceDisplay section {
    margin: 0;
    padding: 0;
    max-width: 70%;
}
.jqTimespaceDisplay section:not(:empty) {
    padding: 0.8rem 0.5rem 0.5rem 0.5rem;
}
@media (max-width: 768px) {
    .jqTimespaceDisplay section {
        max-width: 100%
    }
}
