﻿/* corrections, modifications */

html.debug * {
    outline: 1px dashed #fff !important;
    background-color: rgba(0,2,54,.1) !important;
}

.log {
    box-sizing: border-box;
    margin: var(--f7-timeline-margin-vertical) 0;
    padding: 0 var(--f7-timeline-padding-horizontal);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: calc(var(--f7-timeline-padding-horizontal) + var(--f7-safe-area-left));
    padding-right: calc(var(--f7-timeline-padding-horizontal) + var(--f7-safe-area-right));
}

.log-sides .log-item, 
.log-sides .log-item-right {
    margin-left: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 90px)/ 2 - 50px);
    margin-right: 0;
}

.log-item {
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    padding: 0 0 4px;
}

.log-sides .log-item .date, 
.log-sides .log-item-right .date {
    text-align: right;
}

.log-sides .log-item-left,
.log-sides .log-item:not(.log-item-right):nth-child(2n) {
    flex-direction: row-reverse;
    margin-right: calc(50% - (var(--f7-timeline-divider-margin-horizontal) * 2 + 10px)/ 2 - 50px);
    margin-left: 0;
}

.log-item .date {
    flex-shrink: 0;
    width: 50px;
    text-align: right;
    box-sizing: border-box;
}

.log-item .divider {
    position: relative;
    width: 56px;
    height: 22px;
    /* line-height: 2; */
    color: rgba(0,0,0,.8);
    background: #bbb;
    text-align: center;
    text-shadow: white 1px 1px 1px;
    border-radius: 10px;
    flex-shrink: 0;
    padding: 2px 2px 0;
    margin: 3px 10px;
    box-shadow: 0px 0px 2px 0px #222;
}


.log-item .divider:after
/* , .log-item .divider:before */ {
    content: ' ';
    width: 1px;
    height: 100px;
    top: -20px;
    position: absolute;
    left: 50%;
    background: inherit;
}

.log-item:first-child .divider:after {
    top: 0;
}

.log-item:last-child .divider:after {
    display: none;
}

.log-item .content {
    margin: 2px;
    min-width: 0;
    position: relative;
    flex-shrink: 10;
}

.log-item .inner {
    background: var(--f7-timeline-item-inner-bg-color);
    box-sizing: border-box;
    border-radius: var(--f7-timeline-item-inner-border-radius);
    padding: 2px var(--f7-timeline-padding-horizontal);
    box-shadow: var(--f7-timeline-item-inner-box-shadow);
}

/*
.sc0re .inner {
    text-align: center;
    background-color: #444;
    box-shadow: #000 0px 0px 1px 1px;
    font-weight: 700;
    color: #eee;
    padding: 0 0px;
    height: 40px;
    line-height: 1.25;
    display: inline-block;
    margin-right: 4px;
    min-width: 26px;
    font-family: sans-serif;
    font-size: 2.25em;
}
*/

.left .sc0re {
    float: right;
}
.right .sc0re {
    float: left;
}
.sc0re {
    background-color: #333;
    border-radius: var(--f7-timeline-item-inner-border-radius);
    color: #eee;
    display: inline-block;
    font-family: sans-serif;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    height: 40px;
    margin: 3px 1px;
    min-width: 26px;
    padding: 0px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    width: 24px;
    z-index: 5;
}
.sc0re:after {
    content: ' ';
    width: 80%;
    left: 2px;
    top: 50%;
    height: 1px;
    position: absolute;
    background-color: inherit;
}


.page-content {
    background-color: #44aa44;
}

.md {
    --f7-navbar-large-title-line-height: 1.3;
}


section#timeline {
  width: 96%;
  margin: 16px auto;
  position: relative;
}
section#timeline:before {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  top: 20px;
  margin: 0 0 0 -1px;
  width: 2px;
  height: 100%;
  /*height:calc(100% - 70px);*/
  background: rgba(255,255,255,0.33);
}
#timeline article:last-child:before {
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    top: 20px;
    margin: 0 0 0 -1px;
    width: 2px;
    height: 100%;
    /*height: calc(100% - 70px);*/
    background: #44aa44;
}
section#timeline article {
  width: 100%;
  margin: 0 0 20px 0;
  position: relative;
}
section#timeline article:after {
  content: '';
  display: block;
  clear: both;
}
section#timeline article div.inner {
    width: 40%;
    float: left;
    margin: 0;
    border-radius: 6px;
}

/*
section#timeline article div.inner span.date {
  display: block;
  width: 50px;
  height: 30px;
  padding: 4px 2px;
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0 0 0 -30px;
  border-radius: 20px;
  font-size: 6em;
  font-weight: 400;
  line-height: 1.8;
  text-transform: uppercase;
  background: #25303B;
  color: rgba(255,255,255,0.5);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 0 7px #25303B;
}
*/
section#timeline article div.inner span.date,
section#timeline article div.inner span.time {
    display: block;
    width: 48px;
    height: 24px;
    padding: 2px 2px;
    position: absolute;
    top: 0;
    left: 50%;
    margin: 10px 0 0 -28px;
    border-radius: 20px;
    font-size: 1em;
    text-align: center;
    font-weight: 700;
    text-shadow: rgba(255,255,255,.6) 1px 1px 0px;
    line-height: 1.66;
    background: #bbb;
    color: rgba(0,0,0, .66);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 0 2px rgba(0,0,0, .33);
}
section#timeline article div.inner span.date span {
  display: block;
  text-align: center;
}
section#timeline article div.inner span.date span.day {
  font-size: 10px;
}
section#timeline article div.inner span.date span.month {
  font-size: 18px;
}
section#timeline article div.inner span.date span.year {
  font-size: 10px;
}
section#timeline article div.inner h2 {
    padding: 0 2px;
    text-align: center;
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 2.33;
    text-transform: uppercase;
    letter-spacing: -.25px;
    border-radius: 6px 6px 0 0;
    position: relative;
}
section#timeline article div.inner h2:after {
  content: '';
  position: absolute;
  top: 20px;
  right: -5px;
  width: 10px; 
  height: 10px;
  -webkit-transform: rotate(-45deg);
}
section#timeline article div.inner p {
  padding: 10px;
  margin: 0;
  font-size: 14px;
  background: #fff;
  color: #656565;
  border-radius: 0 0 6px 6px;
}
section#timeline article.right div.inner,
section#timeline article div.inner.right {
  float: right;
}
/*section#timeline article.right div.inner h2,
section#timeline article div.inner.right h2 {
}*/
section#timeline article.right div.inner h2:after,
section#timeline article div.inner.right h2:after {
  left: -5px;
}

.swipe-handler {
    height: 16px;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    background: #fff;
    cursor: pointer;
    z-index: 10;
}

.swipe-handler:after {
    content: '';
    width: 36px;
    height: 6px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -3px;
    border-radius: 3px;
    background: #666;
}

.md .tabbar-labels a.tab-link, .md .tabbar-labels a.link {
    border-right: 1px solid var(--f7-treeview-toggle-pressed-bg-color);
}

.md .tabbar .tab-link-highlight, .md .tabbar-labels .tab-link-highlight
{
    display:none;
}

.sc0re,
.inner:not(.no-border) {
    box-shadow: rgba(0,0,0,.1) 0px 0px 5px 1px;
}
.red h2,
.red h2:after {
    background: #e74c3c;
}
.goal h2,
.goal h2:after,
.lightgreen h2,
.lightgreen h2:after {
    background: #2ecc71;
}
.darkgreen h2,
.darkgreen h2:after {
    background: #007700;
}
.yellow h2,
.yellow h2:after {
    background: #eeee00;
}
.orange h2,
.orange h2:after {
    background: #e67e22;
}
.green h2,
.green h2:after {
    background: #1abc9c;
}
.blue h2,
.blue h2:after {
    background: #9b59b6;
}
