html, body, .timeline-container {
    background: #f8f8f8 !important;
    min-height: 100vh;
    overflow: hidden;
}

.popup {
    display: block;
    position: fixed;
    top: 55%;
    left: 50%;
    z-index: 20;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    width: 96%;
    max-width: 640px;
    max-height: 96vh;
    margin: 0 -4px 0 0;
    padding: 40px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.1), 0 4px 24px rgba(0,0,0,.15);
    border-radius: 4px;
    vertical-align: top;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
}

.popup.visible {
    top: 50%;
    opacity: 1;
    pointer-events: all;
}

.popup .section-left, .popup .section-right {
    margin: 16px 0 64px 0;
}

@media (min-width: 1000px){

    .popup.sectioned {
        top: 50% !important;
        left: 50%;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        padding: 0;
        border-radius: 0;
        background: #f8f8f8;
    }

    .popup .section-left, .popup .section-right {
        display: inline-block;
        position: absolute;
        top: 47.5%;
        left:0;
        transform: -webkit-translate(0, -50%);
        transform: translate(0, -50%);
        width: 48%;
        height: auto;
        margin: 0;
        padding: 6% 6% 6% 8%;
    }

    .popup .section-right {
        top: 47.5%;
        left: auto;
        right: 8%;
        transform: -webkit-translate(0, -50%);
        transform: translate(0, -50%);
        width: 40%;
        min-height: 0;
        padding: 3%;
        background: #fff;
        border-radius: 4px;
        box-shadow: 0 1px 4px rgba(0,0,0,.1), 0 4px 24px rgba(0,0,0,.15);
    }

}

.popup h1 {
    margin-bottom: 16px !important;
}

.display-as-h1 {
    font-size: 24px;
    margin: 0 auto;
}

.scrollbar-custom::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    padding: 2px;
    background: transparent;
}

.scrollbar-custom::-webkit-scrollbar-track {
    width: 4px;
    height: 4px;
    background: transparent;
}

.scrollbar-custom::-webkit-scrollbar-thumb {
    width: 4px;
    height: 4px;
    margin: 2px;
    background: rgba(0,0,0,.25);
}

.scrollbar-custom::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}

.connection {
    display: block;
    position: relative;
    top:0;
    left:0;
}

.connection.visible:not(.not-yet-established) {
    margin:0 0 40px 0;
}

.connection .banner {
    display: block;
    position: fixed;
    top:-40px;
    left:0;
    z-index: 60;
    width:100%;
    height:40px;
    margin:0 auto;
    padding:12px;
    border: none;
    background: #E64444;
    font-family: "Helvetica Neue", Helvetica Neue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 16px;
    color:white;
    text-align: center;
}

.connection.visible:not(.not-yet-established) .banner {
    top:0;
}

.timeline-container {
    width: 100%;
    height: 100%;
    margin: 0 auto 0 auto;
    padding: 0;
}

.page-inactive-cover {
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    pointer-events: none;

    transition:.1s all ease-in;
    -webkit-transition:.1s all ease-in;
    -moz-transition:.1s all ease-in;
    -o-transition:.1s all ease-in;
}

.child-page .page-inactive-cover {
    content: "";
    background: rgba(0,0,0,.4);
    pointer-events: all;
}

.timeline-container.child-page .events, .timeline-container.child-page .navigation-block {
    pointer-events: none !important
}

.timeline-container .event-child:not(.visible) {
    top: 55% !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.timeline-container .event {
    margin: 0 auto 80px auto;
}

.timeline-container .event.unpublished {
    opacity: 1;
}

.timeline-container .author {
    display: block;
    position: relative;
    top:0;
    left:0;
    max-width: 100%;
    height: 40px;
    margin: 20px 0 16px 0;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline-container .author img {
    display: block;
    position: absolute;
    top:0;
    left:0;
    width: auto;
    height: 100%;
    margin:0;
    border-radius: 20px;
    transform: translateZ(0);
}

.timeline-container .author .name {
    display: inline-block;
    position: relative;
    width: auto;
    height: auto;
    max-width: -webkit-calc(100% - 24px);
    max-width: calc(100% - 24px);
    /*margin: 8px 0 8px 56px;*/
    margin: 8px 0;
    padding: 0;
    color: #666;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.gmph-sign-in {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 30;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    max-width: 240px;
    margin: 0;
    pointer-events: all;
    cursor: pointer;
}

.gmph-sign-in.visible {
    display: block;
}

.timeline-container .user-block {
    display: block;
    position: relative;
    padding: 0;
}

.timeline-container .navigation-block {
    display: block;
    position: static;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    vertical-align: top;
    opacity: 0;
    pointer-events: none;
}

.timeline-container .navigation-block .navigation-title {
    position: fixed;
    top: 36px;
    left: 24px;
    font-size: 22px;
    line-height: 24px;
    margin: 0;
    padding: 0 0 0 48px;
    max-width: 256px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline-container .navigation-block .timelines-open {
    position: fixed;
    top: 36px;
    left: 24px;
    z-index: 5;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    background-image: url(/res/img/menu.png);
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.85;
}

.timeline-container .navigation-block .timelines-open:hover {
    opacity: 1;
}

.timeline-container .timeline-share-open {
    display: block;
    position: fixed;
    top: 24px;
    left: auto;
    bottom: auto;
    right: 24px;
    z-index: 5;
    width: 48px;
    height: 48px;
    background-color: #eee;
    background-image: url(/res/img/invite.png);
    background-size: 24px 24px;
    background-position: 45% 50%;
    background-repeat: no-repeat;
    border-radius: 32px;
    cursor: pointer;
}

.timeline-container .timeline-share-open:hover {
    background-color: #ddd;
}

.user-anonymous .timeline-container .navigation-block .navigation-timeline {
    left: 256px;
    width: -webkit-calc(100% - 440px);
    width: calc(100% - 440px);
}

.user-anonymous .timeline-container .navigation-block .timelines-open, .user-anonymous .timeline-container .navigation-block .timeline-share-open, .user-anonymous .timeline-container .navigation-block .event-new-open {
    opacity: 0;
    pointer-events: none;
}

.user-anonymous .timeline-container .navigation-block .navigation-title {
    max-width: 208px;
    padding: 0;
}

.timeline-container .navigation-block .user-sign-in-refresh {
    display: block;
    position: fixed;
    top: 24px;
    left: auto;
    bottom: auto;
    right: 24px;
    z-index: 5;
    width: 120px;
    height: 48px;
    padding: 16px 24px;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background-color: #8B67FF;
    border-radius: 32px;
    text-align: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
}

.user-anonymous .timeline-container .navigation-block .user-sign-in-refresh {
    opacity: 1;
    pointer-events: all;
}

.user-anonymous .timeline-container .user-sign-in-refresh:hover {
    background-color: #8360f2;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);

}

.timeline-container .navigation-block .navigation-timeline {
    display: block;
    position: fixed;
    top: 24px;
    left: 304px;
    width: -webkit-calc(100% - 416px);
    width: calc(100% - 416px);
    height: 48px;
    margin: 0 auto 0 auto;
    background: #eee;
    border-radius: 24px;
    box-shadow: -24px 0 0 #eee, 24px 0 0 #eee;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline-container .navigation-block .navigation-timeline::after {
    content: "Time travel";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: -webkit-translate(-50%, -50%);
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #888;
    opacity: 1;
    pointer-events: none;

    transition:.15s all ease-out;
    -webkit-transition:.15s all ease-out;
    -moz-transition:.15s all ease-out;
    -o-transition:.15s all ease-out;
}

.timeline-container .navigation-block .navigation-timeline:hover::after, .timeline-container .navigation-block .navigation-timeline.active::after {
    content: "Time travel";
    display: block;
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: -webkit-translate(-50%, -50%);
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #888;
    opacity: 0;
    pointer-events: none;
}

.timeline-container .navigation-block .navigation-timeline .timeline-label {
    display: block;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform: -webkit-translate(-50%, -50%);
    width: auto;
    height: auto;
    margin: 0;
    padding: 0 8px;
    white-space: nowrap;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #222;
    pointer-events: none;
    opacity: 0;

    -webkit-transition: 0s, .1s opacity ease-in-out, .15s top ease-in-out;
    -moz-transition: 0s, .1s opacity ease-in-out, .15s top ease-in-out;
    -ms-transition: 0s, .1s opacity ease-in-out, .15s top ease-in-out;
    -o-transition: 0s, .1s opacity ease-in-out, .15s top ease-in-out;
    transition: 0s, .1s opacity ease-in-out, .15s top ease-in-out;
}

.timeline-container .navigation-block .navigation-timeline:hover .timeline-label, .timeline-container .navigation-block .navigation-timeline.active .timeline-label {
    top: 50%;
    opacity: 1;
}

.timeline-container .navigation-block .navigation-timeline .first-date, .timeline-container .navigation-block .navigation-timeline .last-date {
    display: block;
    position: absolute;
    top: 50%;
    left: 4px;
    bottom: auto;
    right: auto;
    transform: translate(0, -50%);
    transform: -webkit-translate(0, -50%);
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    color: #aaa;
    pointer-events: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    opacity: 1;
}

.timeline-container .navigation-block .navigation-timeline:hover .first-date, .timeline-container .navigation-block .navigation-timeline:hover .last-date, .timeline-container .navigation-block .navigation-timeline.active .first-date, .timeline-container .navigation-block .navigation-timeline.active .last-date {
    opacity: 0.2;
}

.timeline-container .navigation-block .navigation-timeline .last-date {
    left: auto;
    right: 4px;
}

.timeline-container .event-new.visible, .timeline-container .navigation-block.visible {
    top: 50%;
    opacity: 1;
    pointer-events: all;
}

.timeline-container .event-new .event-new-title, .timeline-container .event-new .event-new-content, .timeline-container .event-new .event-new-date {
    min-height: 28px;
    padding-bottom: 10px;
    background: #fff;
}

.timeline-container .event-new .event-new-title {
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 28px !important;
}

.timeline-container .event-new .event-new-content, .timeline-container .event-new .event-new-date {
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
}

.timeline-container .event-new .event-new-date {
    margin: 32px 0;
}

.timeline-container .event-new .event-new-content {
    height: auto;
    min-height: 96px;
    max-height: -webkit-calc(90vh - 300px);
    max-height: calc(90vh - 300px);
    white-space: normal;
    overflow-x: hidden;
    overflow-y: auto;
}

.timeline-container .event-new .event-new-content img {
    max-width: 100%;
    height: auto;
    margin: 8px 0 16px 0;
}

.timeline-container .event-new .event-new-publish-container {
    margin: 0;
}

.timeline-container .event-new .author {
    display: inline-block;
    width: auto;
    margin: 48px 0 0 0;
}

.timeline-container .event-new-signout {
    display: inline-block;
    position: relative;
    width: auto;
    margin: 0 0 0 16px;
    padding: 0;
    color: #999;
}

.event-new-toolbar {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    border-radius: 4px;
    font-size: 0;
}

.event-new-toolbar .toolbar-text {
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    margin: 8px 8px 8px 0;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
    color: #999;
    opacity: 1;
    cursor: default;
    vertical-align: middle;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.event-new-toolbar .toolbar-button {
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    float: right;
    width: 40px;
    height: 40px;
    margin: 0 0 0 8px;
    padding: 8px;
    vertical-align: middle;
    background-color: rgba(255,255,255,.96);
    background-position: center;
    background-size: 24px;
    background-repeat: no-repeat;
    border-radius: 3px;
    border: solid 1px rgba(0,0,0,.1);
    opacity: 0.96;
    transform: translateZ(0);
    cursor: pointer;
}

.event-new-toolbar .toolbar-button:hover {
    opacity: 1;
}

.event-new-toolbar .toolbar-button.images-open {
    background-image: url(/res/img/add-image.png);
    background-size: 24px;
}

.event-new-toolbar .toolbar-button.format-bold {
    background-image: url(/res/img/format-bold.png);
}

.event-new-toolbar .toolbar-button.format-italic {
    background-image: url(/res/img/format-italic.png);
}

.event-new-toolbar .toolbar-button.format-quote {
    background-image: url(/res/img/format-quote.png);
}

.event-new-toolbar .toolbar-button.link {
    background-image: url(/res/img/link.png);
}

.images.popup {
    box-shadow: 0 0 0 2000px rgba(0,0,0,.5);
}

.images.popup .image-list {
    display: block;
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 0;
}

.image-list .image:first-of-type:last-of-type::before {
    content: "No images yet";
    display: block;
    position: absolute;
    top:50%;
    right: -280%;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    width: 180%;
    height: auto;
    margin: 0;
    padding: 24px;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    color: #bbb;
    text-align: center;
    pointer-events: none;
}

.images.popup .image-list .image {
    display: inline-block;
    position: relative;
    top: 0;
    right: 0;
    width: -webkit-calc((100% - 26px)/4);
    width: calc((100% - 26px)/4);
    height: auto;
    margin: 0 4px 8px 4px;
    padding: 0;
    background-color: #ddd;
    border-radius: 2px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,.1);
    overflow: hidden;
    font-size: 0;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.images.popup .image-list .image:hover {
    border-radius: 3px;
    box-shadow: 0 1px 6px rgba(0,0,0,.3);
}

.images.popup .image-list .image:after {
    content: "";
    display: block;
    padding-top: 100%;
}

.images.popup .image-list .image:nth-of-type(4n-3) {
    margin: 0 4px 8px 0;
}

.images.popup .image-list .image:nth-of-type(4n+0) {
    margin: 0 0 8px 4px;
}

.images.popup .image.image-upload {
    padding: 0;
    background-color: #fff;
    background-image: url(/res/img/add-image.png);
    background-size: 40px;
    background-position: 50% 34%;
    background-repeat: no-repeat;
}

.images.popup .image.image-upload .image-upload-input {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer !important;
}

.images.popup .image.image-upload .image-upload-text {
    display: block;
    position: absolute;
    bottom: 22%;
    left: 50%;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #858C9A;
    text-align: center;
    pointer-events: none;
}

.images.popup .image.image-loading {
    padding: 0;
    background-color: #fff;
    background-image: url(/res/img/loading.gif);
    background-size: 32px;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none !important;
}

.timeline-container .event-new-open {
    display: block;
    position: fixed;
    top: auto;
    left: auto;
    bottom: 24px;
    right: 24px;
    z-index: 5;
    width: 64px;
    height: 64px;
    background-color: #8B67FF;
    background-image: url(/res/img/add.png);
    background-size: 36px 36px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
    cursor: pointer;
}

.timeline-container .event-new-open:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,.4);
    background-color: #8360f2;
}

.event-new-publish-container {
    display: block;
    position: relative;
}

.button {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100px;
    height:auto;
    margin: 16px 0 0 0;
    padding: 16px;
    border-radius: 3px;
    border: solid 1px rgba(0,0,0,0);
	font-family: "Helvetica Neue", "HelveticaNeue-Light", "Helvetica Neue Light", Helvetica, Arial, "Lucida Grande", sans-serif !important;
    font-size: 17px;
    color: #fff;
    font-weight: 500;
    text-align: center;
    background: #8B67FF;
    cursor:pointer;
}

.button, .button-light {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button.side-button-left, .button.side-button-right {
    display: block;
    position: static;
    float: left;
    top: auto;
    left: 40px;
    bottom: -40px;
    right: auto;
    vertical-align: bottom;
    width: 45%;
    max-width: 136px;
    margin: 40px 0 0 0;
    padding: 10px 10px 12px 10px;
    background: #aaa !important;
}

.button.side-button-right {
    float: right;
    top: auto;
    left: auto;
    bottom: -40px;
    right: 40px;
    background: #8B67FF !important;
}

.button.side-button-left:hover {
    background: #999 !important;
}

.button.side-button-right:hover {
    background: #8360f2 !important;
}

[contenteditable="true"], [contentedatible=""] {
    display: block;
    position: relative;
    width: 100%;
    min-height: 1em;
    cursor: text;
    white-space: pre-wrap;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif !important;
    font-size: 18px;
    box-shadow: 0 1px 0 #e9e9e9;
    border-bottom: solid 2px rgba(139,103,255 ,0);
    margin: 0 auto 8px auto !important;
    padding: 24px 0 8px 0 !important;
}

[contenteditable="true"].input-single-line, [contentedatible=""].input-single-line {
    overflow: hidden;
    white-space: nowrap;
}

[contenteditable="true"].input-single-line br, [contentedatible=""].input-single-line br {
    display:none;
}
[contenteditable="true"].input-single-line *, [contentedatible=""].input-single-line * {
    display:inline;
    white-space:nowrap;
}

[contenteditable="true"]:first-child, [contentedatible=""]:first-child {
    margin: -8px auto 8px auto !important;
}

[contenteditable="true"]:last-of-type, [contentedatible=""]:last-of-type {
    margin: 0 auto !important;
}

[contenteditable="true"]:focus,[contentedatible=""]:focus {
    box-shadow: 0 1px 0 #fff;
    border-bottom: solid 2px #8B67FF;
}

[contenteditable="true"]:before, [contentedatible=""]:before {
    content: attr(data-placeholder);
    display: block;
    position: absolute;
    top:0;
    left:0;
    opacity: 0.35;
    font-size: 12px;
    font-weight: 500;
    -webkit-text-security: none;

    transition:.15s all ease-in-out;
    -webkit-transition:.15s all ease-in-out;
    -moz-transition:.15s all ease-in-out;
    -o-transition:.15s all ease-in-out;
}

[contenteditable="true"]:empty:before, [contentedatible=""]:empty:before {
    top: 24px;
    font-size: inherit;
    font-weight: inherit;
    opacity: 0.5;
}

.event .button {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 16px 0 -8px;
    padding: 8px;
    background: none !important;
    box-shadow: none !important;
    text-align: left;
}

.button-light {
    font-size: 14px;
    font-weight: 500;
    color: #888 !important;
    background: none !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    border: none !important;
    border-radius: 4px !important;
    color: #8B67FF !important;
}

.button-light:hover {
    background: rgba(0,0,0,.05) !important;
}

.event .button-light {
    margin: 0 8px 0 0 !important;
    background: rgba(0,0,0,.04) !important;
}

.event .button-light:hover {
    background: rgba(0,0,0,.08) !important;
}

.button.disabled {
    opacity: 0.5 !important;
    pointer-events: none;
}

.button, a.button {
    border-bottom: none;
}

.button:not(.button-light):hover, a.button:not(.button-light):hover {
    background: #8360f2;
    border-bottom: none;
}

.cursor-pointer {
    cursor: pointer !important;
}

.timeline-container {
    display: block;
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: auto;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.events {
    display: block;
    position: static;
    top: 0;
    left:0;
    width: 100%;
    height: -webkit-calc(100vh - 88px);
    height: calc(100vh - 88px);
    margin: 88px 0 0 0;
    padding: 12px 12px 24px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    direction: rtl;
    text-align: left;
    opacity: 0;
    pointer-events: none;
}

body.events-ready .events {
    opacity: 1;
    pointer-events: all;
}

body.events-ready:not(.user-anonymous) .events:empty::after {
    content:"Add an event to your timeline with the ‘+’ button";
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%,-50%);
    width: auto;
    max-width: 320px;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5em;
    color: #aaa;
    text-align: center;
    direction: ltr;
    overflow: hidden;
    white-space: normal;
}

.events * {
    direction: ltr;
}

.events .event {
    display: inline-block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 368px;
    max-height: 100%;
    vertical-align: top;
    margin: 0 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    background-color: #fff;
    border-radius: 4px;
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;
    direction: ltr;
}

body:not(.user-anonymous) .events .event {
    cursor: pointer;
}

body:not(.user-anonymous) .events .event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.events .event * {
    direction: ltr;
    text-align: left;
    white-space: normal;
}

.events .event h1 {
    position: static;
    font-size: 20px;
    line-height: 1.5em;
}

.events .event img, .events .event a, .events .event h2, .events .event h3, .events .event h4, .events .event ul, .events .event ol, .events .event li {
    position: static;
}

.events .event p {
    position: static;
    margin-top: 8px;
}

.events .event a {
    opacity: 1;
}

.events .event ul, .events .event ol {
    margin-left: 24px;
}

.events .event img {
    cursor: pointer;
}

.events .event p, .events .event ul, .events .event ol, .events .event blockquote, .events .event code {
    margin-top: 8px;
    font-size: 15px;
}

.events .event .author {
    margin: 8px 0;
}

.timeline-container .event-child {
    padding: 56px;
}

.timeline-container .event-child .event-content .event {
    margin-bottom: 40px;
}

.block {
    display: block;
    overflow: hidden;
}

.sign-in.popup {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    z-index: 50;
}

.sign-in .heading-timeline {
    margin: -8px auto;
    padding: 8px;
}

.sign-in .heading-timeline::before {
    content: "";
    display: block;
    position: absolute;
    bottom: -8px;
    left:0;
    width: 100%;
    height: 16px;
    background-image: url(/res/img/line-illustration.png);
    background-size: 152px auto;
    background-repeat: no-repeat;
    background-position: center left;
}

.sign-in .heading-sign-in {
    margin: 0 auto;
}

.sign-in .heading-about-timeline {
    margin: 80px auto 16px auto;
}

@media (max-width: 999px){
    .sign-in .heading-about-timeline {
        margin: 40px auto 16px auto;
    }
}

.sign-in .display-as-p {
    margin: 16px auto 0 auto !important;
    padding-bottom: 8px !important;
}

.sign-in .sign-in-password {
    -webkit-text-security: disc;
    -webkit-user-select: text;
}

.timelines.popup {
    top: 0;
    left: -400px;
    transform: none;
    -webkit-transform: none;
    height: 100vh;
    max-height: 100vh;
    width: 85vw;
    max-width: 400px;
    border-radius: 0;
    padding: 32px;
}

.timelines.popup.visible {
    top: 0;
    left: 0;
}

.timelines.popup h1:first-of-type {
    padding: 2px 0 24px 40px;
    font-size: 22px;
    line-height: 24px;
}

.timelines.popup h2 {
    padding: 24px 0 0 0;
    color: #888;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.timeline-container .navigation-block .timelines-open {
    position: fixed;
    top: 36px;
    left: 24px;
    z-index: 5;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    background-image: url(/res/img/menu.png);
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.85;
}

.timeline-container .navigation-block .timelines-open:hover {
    opacity: 1;
}

.timelines.popup .timelines-close {
    position: absolute;
    top: 35px;
    left: 28px;
    z-index: 35;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    background-image: url(/res/img/back.png);
    background-size: 24px 24px;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.85;
}

.timelines.popup .timelines-close:hover {
    opacity: 1;
}

.timelines .timeline-list {
    margin: 0 auto;
}

.timelines .menu-item {
    display: block;
    position: relative;
    top:0;
    left:0;
    width: -webkit-calc(100% + 36px);
    width: calc(100% + 36px);
    margin: 12px -18px;
    padding: 16px;
    border: none !important;
    background: rgba(0,0,0,0);
    border-radius: 4px;
    cursor: pointer;
}

.timelines .menu-item:hover {
    background: rgba(0,0,0,.04);
}

.timelines .menu-item .title {
    display: inline-block;
    width: auto;
    margin: 0 16px 0 0;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    color: #333;
    vertical-align: middle;
}

.timelines .menu-item:hover .title {
    color: #000;
}

.timelines .menu-item.timeline-new-open .title {
    color: #8B67FF;
    font-weight: 500;
]    }

.timelines .menu-item.timeline-new-open:hover .title {
    color: #8360f2;
}

.timelines .timeline-list .menu-item .date {
    display: inline-block;
    width: auto;
    margin: 0 16px 0 0;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #888;
    margin: 4px 0 0 0;
    padding: 0 0 2px 0;
    vertical-align: middle;
}

.timelines .timeline-list .menu-item .timeline-delete {
    display: block;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 16px;
}

.color-destructive {
    color: #E64444 !important;
}

.background-grey {
    background-color: #aaa !important;
}

.button.background-grey:hover {
    background-color: #999 !important;
}

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
    display: inline-block;
    position: relative;
    margin: 32px 0 0 0;
    padding: 8px 0 0 40px;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
    content: "";
    position: absolute;
    top: 8px;
    left:0;
    width: 24px;
    height: 24px;
    background-color: #bbb;
    border-radius: 3px;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

[type="checkbox"]:not(:checked) + label:before:hover {
    background-color: #999;
}

[type="checkbox"]:checked + label:before {
    content: "";
    background-color: #8B67FF;
}

[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 24px;
    height: 24px;
    background-image: url(/res/img/tick.png);
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -ms-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

[type="checkbox"]:not(:checked) + label:after {
    opacity: 0;
}

[type="checkbox"]:checked + label:after {
    opacity: 1;
}

.timeline-share .timeline-share-url {
    display: block;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    margin: 16px auto 8px auto;
    padding: 16px;
    background: #eee;
    border-radius: 3px;
    overflow-y: hidden;
    overflow-x: auto;
    white-space: nowrap;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 16px;
    font-weight: 400;
    opacity: 0.3;
    pointer-events: none;
    cursor: pointer;
}

.timeline-share.visible .timeline-share-url.visible {
    opacity: 1;
    pointer-events: all;
}

.timeline-share .timeline-share-url:not(.visible) {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.timeline-share .timeline-share-url::after {
    content: "Copied";
    display: block;
    position: absolute;
    top: 0;
    right: 8px;
    width: 72px;
    height: auto;
    margin: 8px 0;
    padding: 8px 0;
    font-size: 16px;
    line-height: 16px;
    font-family: "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background-color: #8B67FF;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    transition:.15s all ease-out;
    -webkit-transition:.15s all ease-out;
    -moz-transition:.15s all ease-out;
    -o-transition:.15s all ease-out;
}

.timeline-share .timeline-share-url.alert-copied::after {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 800px){

    .popup {
        padding: 32px;
    }

    .button.side-button-left, .button.side-button-right {
        margin-top: 32px;
    }

    .timeline-container .navigation-block .timelines-open, .timeline-container .navigation-block .navigation-title {
        top: 24px;
    }

    .timeline-container .navigation-block .timeline-share-open {
        width: 24px;
        height: 24px;
        background-color: transparent !important;
        border-radius: 0;
        opacity: 0.85;
    }

    .timeline-container .navigation-block .timelines-open:hover {
        opacity: 1;
    }

    .timeline-container .event-new-open {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        background-size: 32px;
    }

    .timeline-container .navigation-block .navigation-timeline {
        top: auto;
        bottom: 16px;
        left: 40px;
        width: -webkit-calc(100% - 144px);
        width: calc(100% - 144px);
    }

    .user-anonymous .timeline-container .navigation-block .navigation-timeline {
        bottom: 16px;
        left: 40px;
        width: -webkit-calc(100% - 80px);
        width: calc(100% - 80px);
    }

    .timeline-container .navigation-block .navigation-timeline::after {
        content:"" !important;
    }

    .timelines.popup {
        padding-top: 24px;
    }

    .timelines.popup .timelines-close {
        top: 28px;
    }

    .timeline-container .navigation-block .user-sign-in-refresh {
        top: 16px;
        left: auto;
        bottom: auto;
        right: 16px;
        height: 40px;
        width: 104px;
        padding: 11px 16px 13px 16px;
    }

    .events {
        height: -webkit-calc(100vh - 60px);
        height: calc(100vh - 60px);
        margin: 60px 0 0 0;
        padding: 12px 8px 80px 8px;
    }

    .events .event {
        max-width: 312px;
        margin: 0 8px;
    }

    .images.popup {
        padding: 24px;
    }

    .images.popup .image-list {
        margin-bottom: 0;
    }

    .images.popup .image.image-upload {
        background-size: 32px;
        background-position: 50% 50%;
    }

    .images.popup .image.image-upload .image-upload-text {
        display: none;
    }

}

@media (max-width: 520px) {

    .event-new .event-new-toolbar {
        text-align: left;
        direction: rtl;
    }

    .event-new-toolbar .toolbar-text {
        display: none;
    }

    .event-new-toolbar .toolbar-button {
        float: none;
        margin: 0 8px 0 0;
    }

}

@media (max-width: 352px){

    .timeline-container .navigation-block .navigation-timeline {
        display: none !important;
    }

    .events {
        padding: 12px 8px 16px 8px;
    }

}
