/*! HTML5 Boilerplate v5.0 | MIT License | http://h5bp.com/ */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

textarea {
    resize: vertical;
}

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}


/* ==========================================================================
   Author's custom styles
   ========================================================================== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

h1, h2 {
/*    font-family: 'Dosis', sans-serif;*/
}

#map {
    position: absolute;
    top: 46px;
    right:0;
    bottom: 0;
    left: 0;
}

header, h1 {
    margin: 0;
    padding: 0;
}

h1 {
    display: inline-block;
    vertical-align: middle;
    font-size: 1.6em;
    margin-bottom: 1em;
}

h2 {
    margin-left: 10px;
}

header {
    padding: 15px;
    height: 165px;
    background-color: #fff;
    border-bottom: 3px solid #ccc;
    width: 380px;
}

#side-container {
    display:none;
    width: 0;
    background: #efefef;
    position: relative;
}

#side-container.open {
    width: 410px;
    overflow: scroll;
    display: flex;
    flex-direction: column;
    float: left;
    height: 100%;
}

.toggle {
    position: absolute;
    top: 50px;
    left: 0;
    z-index: 1;
}

.open .toggle {
    position: fixed;
    top: 10px;
    left: 349px;
}

.day {
    display: block;
    font-size:.7em;
    font-weight: 500;
    line-height: 1;
    margin-bottom: .6em;
}

#sections {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.open #sections {
    display: block;
}

#sections a {
    text-decoration: none;
    color: #000;
    padding: .5em 1em;
    border-top: 1px solid #ccc;
    font-size: 1em;
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#sections li:first-child a {
    border-top: none;
}

#sections .strava-link.active {
    background: #ccc;
    font-weight: 900;
}

#sections a:hover {
    background: #ccc;
}

#sections li:last-child a {
    border-bottom: 1px solid #ccc;
}

#stats-box {
    text-align: right;
    vertical-align: middle;
}

#stats-box li {
    display: inline-block;
    text-align: left;
    width: 32.6%;
}

.distance,
.elevation {

}

#stats-box .moving-time {

}

#stats {
    margin: 0;
    padding: 0;
}

#stats .label {
    font-size: .8em;
    text-align: left;
}

#stats .value {
    font-size: 1.2em;
}

.marker-control {
    background-color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    width: 30px;
}

.photo-marker {
    position: absolute;
    cursor: pointer;
    background-image: url(../img/map-photo-marker-white.png);
    background-size: cover;
    background-position: bottom;
    width: 39px;
    height: 37px;
}

.photo-marker img {
    border: 0;
    font-size: 10px;
    line-height: 1.2em;
    margin: 3px;
    width: 33px;
}

.enlarge img {
    width: 76px;
    margin: 4px;
}

.enlarge .photo-marker {
    width: 85px;
    height: 78px;
}

.photo-marker a {
    outline: none;
}

.activity-info-window h3 {
    font-weight: bold;
    margin-bottom: 10px;
    margin-top: 7px;
    font-size: 19px;
    border-bottom: 1px solid #efefef;
    padding-bottom: 10px;
}

.activity-info-window h4 {
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 200;
}

.activity-info-window .value {
    font-size: 20px;
}

.activity-info-window li {
    display: inline-block;
    width: 49%;
    margin-bottom: 10px;
}

.tweet-author-link,
.tweet-metadata a {
    color: #000;
}

.tweet-author-avatar {
    position: static;
    top: auto;
    left: auto;
    float: left;
    margin-right: 8px;
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.tweet-author-avatar .tweet-author-avatar-img {
    border-radius: 50%;
    max-width: 100%
}

.tweet-author-name {
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
}

.tweet-author-screen-name {
    display: block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 300;
    color: #333;
}

.tweet-text {
    margin-top: 6px;
    margin-left: 0;
    font-size: 12px;
    line-height: 18px;
}

.tweet-info-window .tweet-media img {
    max-width: 100%;
}

.tweet-media {
    position: relative;
}

.tweet-media img {
    border-radius: 3px;
    margin-top: 10px;
}

.tweet-media.grid-4 img {
    border-radius: 0;
    width: 50%;
    display: inline-block;
    margin-right: -2px;
}

.tweet-media.grid-3 img {
    border-radius: 0;
    width: 50%;
    display: inline-block;
    margin-right: -2px;
}

.tweet-media.grid-3 a:first-child img {
    width: 100%;
    margin-right: 0;
    margin-bottom: -9px;
}

.tweet-media.grid-2 img {
    border-radius: 0;
    width: 50%;
    display: inline-block;
    margin-right: -2px;
}

.tweet-media.grid-1 img {
    border-radius: 0;
    width: 100%;
    display: inline-block;
}

.tweet-metadata {
    text-align: right;
    margin-top: 5px;
}

.tweet-metadata a {
    font-size: 12px
}

.post-info-window h3 {
    font-size: 150%;
    margin-bottom: 10px;
    font-weight: 500;
}

.post-info-window a {
    display: block;
    text-align: right;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media only screen and (min-width: 35em) {

}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {

}

/* ==========================================================================
   Helper classes
   ========================================================================== */

.hidden {
    display: none !important;
    visibility: hidden;
}

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

.invisible {
    visibility: hidden;
}

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   Print styles
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}