@import url('https://fonts.googleapis.com/css?family=Raleway:100,300,400,500,600');

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: none;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body {
    font-family: 'Raleway', sans-serif;
    background: #fff;
    color: #222;
    user-select: none;
}

.map {
    border: 2px solid #e6e4de;
    position: relative;
    overflow: hidden;
    height: 400px;
}

.map .center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map .center:before {
    position: absolute;
    content: ' ';
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ececec;
}

.map .loading {
    position: absolute;
    background: #f4f2ec;
    background-size: 38px;
    width: 100%;
    height: 100%;
    z-index: 20;
}

.map .loading img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 52px;
    width: 52px;
    opacity: 0.35;
    animation: spin 1s linear infinite;
}

.map .loading span {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, 0);
    color: #8b8a86;
    font-size: 13px;
}

.map .error {
    position: absolute;
    background: #f4f2ec;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
}

.map .error span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.map .battery {
    position: absolute;
    background: #a4a39d;
    top: 7.5px;
    left: 7.5px;
    width: 34px;
    height: 16px;
    border-radius: 3px;
    z-index: 1;
}

.map .battery:before {
    position: absolute;
    content: ' ';
    background: #a4a39d;
    width: 4px;
    height: 10px;
    top: 3px;
    right: -3px;
    border-radius: 0 3px 3px 0;
}

.map .battery .capacity {
    position: relative;
    background: #ffffff;
    height: 8px;
    width: 26px;
    margin: 2px;
    padding: 2px;
    border-radius: 2px;
    overflow: hidden;
}

.map .battery .capacity .capacity-bar {
    background: #bcbbb3;
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 2px;
}

.map .battery .capacity-value {
    position: absolute;
    color: #5d5d5d;
    top: 1px;
    left: 42.5px;
    font-size: 12px;
    font-weight: 400;
}

.map[data-view="history"] .now,
.map[data-view="history"] .battery {
    display: none;
}

.map[data-view="history"] .history {
    display: flex;
}

.map[data-view="history"] .details .detail-altitude,
.map[data-view="history"] .details .detail-accuracy {
    display: none;
}

.map[data-view="live"] .details .detail-locations {
    display: none;
}

.map[data-view="live"] .details .detail-activity:after {
    display: none;
}

.map[data-view="history"] .details .detail-locations:after {
    display: none;
}

.gmap {
    background: #ececec;
    width: 596px;
    height: 425px;
    border: none;
    position: relative;
    overflow: hidden;
}

.gm-style iframe + div { 
    border:none!important; 
}

.content {
    position: absolute;
    width: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.content h1 {
    text-align: center;
    margin: 0 auto;
    font-size: 56px;
    font-weight: 100;
}

.content h2 {
    text-align: center;
    margin: 30px auto;
    display: block;
    font-size: 18px;
    font-weight: 100;
}

.content h1 strong {
    font-weight: 600;
}

.history {
    position: absolute;
    background: #e6e4debf;
    backdrop-filter: blur(2.5px);
    z-index: 3;
    top: 0;
    left: 0;
    display: none;
    text-align: center;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history .history-date {
    font-weight: 300;
    font-size: 15px;
    display: block;
    padding: 12.5px;
    text-transform: capitalize;
}

.history .history-date b {
    font-weight: 500;
}

.history .history-button {
    padding: 8px;
}

.history .history-button:hover {
    background: #2323230d;
}

.history .history-button img {
    height: 22px;
    opacity: 0.75;
}

.history .history-datepicker {
    position: absolute;
    top: 55px;
    right: 5px;
    border-radius: 5px;
    z-index: 3;
}

.history .history-datepicker[data-visible="false"] {
    display: none;
}

.history .history-datepicker:before {
    position: absolute;
    content: ' ';
    top: -20px;
    right: -6.5px;
    transform: translateX(-50%);
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    z-index: 3;
}

.ui-datepicker {
    font-family: 'Raleway', sans-serif!important;
    background: #ffffff !important;
    border: none !important;
    overflow: hidden;
}

.ui-datepicker-header {
    background: #e6e4de !important;
    border: none !important;
}

.ui-datepicker-calendar td, 
.ui-datepicker-calendar th {
    border: none !important;
    background: transparent !important;
}

.ui-state-default {
    border: none !important;
    padding: 5px !important;
    border-radius: 5px;
}

.ui-state-active {
    background: #4a4a49 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.ui-state-highlight {
    background: #ebebeb !important;
    color: #fff !important;
    color: #454545 !important;
}

.ui-state-hover {
    border: none!important;
    background: transparent!important;
}

.ui-datepicker .ui-datepicker-prev span {
    background: url('/img/icons/left-arrow-alt.svg') no-repeat center;
    background-size: 24px;
    top: 16px !important;
}

.ui-datepicker .ui-datepicker-next span {
    background: url('/img/icons/right-arrow-alt.svg') no-repeat center;
    background-size: 24px;
    top: 16px !important;
}

.now {
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    font-size: 12px;
    background: #e6e4debf;
    backdrop-filter: blur(2.5px);
    line-height: 30px;
    color: #5d5d5d;
    padding: 0 10px;
    width: auto;
    text-align: center;
    border-radius: 0 0 0 5px;
}

.now img {
    height: 16px;
    vertical-align: middle;
    margin-top: -2px;
    display: inline-block;
    animation: blinker 1s linear infinite;
    opacity: 0.75;
}

.options {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 1;
}

.options .option {
    margin: 10px;
    display: flex;
    align-items: center;
}

.options .option img {
    margin: 0 2.5px 0 5px;
    height: 18px;
    opacity: 0.75;
}

.options .option span {
    font-size: 12px;
    color: #5d5d5d;
}

.details {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #e6e4debf;
    backdrop-filter: blur(2.5px);
    width: 100%;
    height: auto;
    z-index: 1;
}

.details ul {
    list-style: none;
    margin: 0;
    padding: 0 7.5px;
    text-align: center;
}

.details ul li {
    position: relative;
    display: inline-block;
    margin-right: 15px;
    padding: 5px 0;
}

.details ul li:after {
    position: absolute;
    background: #c3beb1;
    right: -10px;
    content: ' ';
    height: 18px;
    width: 1px;
}

.details ul li:last-child {
    margin-right: 0;
}

.details ul li img {
    height: 18px;
    width: 18px;
    opacity: 0.75;
    vertical-align: top;
}

.details ul li span {
    font-size: 12px;
    color: #5d5d5d;
}

.loading img,
.loading svg {
    display: block;
}

.loading .spinner {
    height: 16px;
    margin: 15px auto 0;
}

.loading svg {
    margin: 0 auto 15px;
    height: 45px;
    width: 45px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #4a4a49;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

@media only screen and (max-width: 650px) {
 
    body {
        margin: 30px 15px;
    }
    
    .content {
        position: relative;
        top: unset;
        left: unset;
        transform: none;
        width: 100%;
    }
    
    .content h1 {
        font-size: 36px;
        color: #0e0e0e;
    }
    
    .content h2 {
        margin-top: 15px;
        font-size: 14px;
        color: #000000;
    }
    
    .map {
        height: 500px;
    }
    
    .gmap {
        width: 100%;
        height: 525px;
    }
    
    .options {
        bottom: 60px;
    }
    
    .details {
        height: 60px;
    }
    
    .details ul {
        padding: 5px 6.5px;
    }
    
    .details ul li {
        padding: 2px 0;
    }
    
    .details ul li:after {
        height: 54px;
        top: 0;
    }
    
    .details ul li span:not([data-value]) {
        margin: 5px 0 2.5px;
        font-weight: 500;
    }
    
    .details ul li span {
        display: block;
        font-size: 10px;
    }
    
}

@keyframes blinker {
    50% {
        opacity: 0.35;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/*
@media (prefers-color-scheme: dark) {
    body {
        background: #000;
    }
    
    .content h1 {
        color: #fff;
    }
    
    .content h2 {
        color: #c5c2c2;
    }
}
*/