html {
    -ms-touch-action: pan-x, pan-y;
    touch-action: pan-x, pan-y;
}
body:before {
    content: "";
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: -10; 
}
body {
    font-family: "Lato", Helvetica,Arial,sans-serif;
    font-weight: 400;
    font-size: 16px;    
    font-display: swap;
    -webkit-font-smoothing: antialiased;
    color: #fff;
    margin: 0px;
    min-width: 320px; 
}
#bottom-layer {
    background-color: rgba(0, 0, 0, .5);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1;
}
#container {
    color: #FFF;
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 4vh;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0px;
    font-weight: 300;
    color: white;
}
.title {
    font-size: calc(1em + 4vw);
}
h1 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
}
.hidden { display:none !important; }
.hidden-fade {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 2s, opacity 2s linear;
}
a {
    text-decoration: none;
    color: #5bc0de !important;
}

.entityName {
    text-shadow: 0.5px 0px 1px #000000;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 15px;
}
/* [contenteditable]:focus {
    outline: 1px solid white;
} */
:focus {
    outline: 1px solid white;
}
.blue {
    color: #5bc0de
}

#subtitle {
    padding-top: 1vh;
    font-size: calc(0.7em + 1vw);
}
.block {
    display: block;
}
.inline {
    display: inline;
}
.inline-block {
    display: inline-block;
}

.actions {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    padding-top: 15px;
}
.entity-name {
    margin-left: auto;
    margin-right: auto;
}
.action {
    opacity: 0.6;
    -webkit-transition: all 500ms ease-out;
    -moz-transition: all 200ms ease-out;
    -ms-transition: all 200ms ease-out;
    -o-transition: all 200ms ease-out;
    transition: all 200ms ease-out;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.action-div {
    padding: 15px;
}

.action:hover {
    opacity: 1
}
.action.disabled {
    opacity: 0.15;
}
.action:focus {
    outline: 0;
    opacity: 1;
}
.kebob {
    width: 30px;
    height: 30px;
}
.menu-wrap {
    margin-left: 8px;
    position: relative;
    display: inline-block;
}
.menu-drop {
    position: absolute;
    display: block;
    background-color: #f1f1f1;
    min-width: 100px;
    z-index: 1;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    border-radius: 0.25rem;
    border-width: 1px;
}
.menu-item {
    display: flex;
    color: black;
    min-height: 32px;
    -webkit-box-align: center;
    border: none;
    align-items: center;
    text-align: left;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    user-select: none;
    text-decoration: none;
    outline: none;
    flex: 0 0 auto;
    background-color: #f1f1f1;
    transition: background-color 220ms ease 0s, color 220ms ease 0s;
}
.menu-item:hover {
    background-color: lightgrey;
}

/* .menu-wrap:hover .menu-drop {display: block;} */

circle.counter-bg {
    stroke: rgba(255, 255, 255, .13);
}
circle.counter-bg-expired {
    stroke: rgba(255, 0, 0, .25) !important;
}
circle.counter {
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.05s linear;
}
.progress {
    transform: rotate(-90deg);
}
.counter-path {
    stroke: #46b8da;
}
.counter-path .expired {
    stroke: transparent !important;
}
div.counter-wrap {
    position: relative;
}
div.counter-box {
    display: inline-block;
    margin: 0px 14px;
    text-align: center;
}
.counter-wrap {
    width: 140px;
    height: 140px;
    position: absolute;
}
.counter-wrap .layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.multicounter-wrap {
    width: 200px;
    height: 200px;
    position: absolute;
}
.multicounter-wrap .layer {
    height: auto;
    position: relative;
}
.counter-wrap h1,p {
    margin: 0px 0px 0px 0px;
}        
.counter-wrap .center {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.counter-wrap .progress {
    display: inline;
}
.counter-minor {
    font-size: 65%;
    color: #999999;
}
.counter-header {
    font-size: 53px;
    line-height: 1.1;
}
div.entity {
    margin-bottom: 20px;
}
table.laps {
    margin-left: auto;
    margin-right: auto;
    font-size: calc(1em + 0.4vw);
    font-weight: 300;
    min-width: 200px;
    width: auto;
}
table.laps td {
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}
table.laps th {
    font-weight: 400;
}
td.time, th.time {
    width: 40%;
    text-align: right;
}
.timer-digit.inactive, .timer-unit.inactive {
    color: transparent;
}
.timer-unit {
    font-size: 25px;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}
.timer-digit {
    font-size: 40px;
}
.timer-group {
    position: relative;
}
.timer-input {
    position: absolute;
    width: 0px;
    background: transparent;
    color: transparent;
    border-width: 0px;
    border-color: transparent;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    outline: none;
    z-index: -5;
}
.timer-spans {
    z-index: 1;
    border-radius: 5px;
    border: 1px solid white;
    display: inline-block;
    padding: 3px;
    font-size: 40px;

    background: rgba(105, 105, 105, 0.5);
} 
@keyframes blinkingText{
    0%{     color: white;    }
    49%{    color: white; }
    60%{    color: transparent; }
    99%{    color: transparent;  }
    100%{   color: white;    }
}
@keyframes blinkingBorder{
    0%{     border-left: 1px solid white;    }
    49%{    border-left: 1px solid white;    }
    60%{    border-left: 1px solid transparent;    }
    99%{    border-left: 1px solid transparent;    }
    100%{   border-left: 1px solid white;    }
}
.cursor {
    animation: none;
    border-left: 1px solid transparent;
    margin-right: 2px;
}
.cursor.blinking {
    animation: blinkingBorder 1.2s infinite;
}
.btn {
    font-size: 18px;
    color: #fff;
    background-color: #5bc0de;
    border: 1px solid #46b8da;
    border-radius: 4px;
    padding: 6px 12px;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    filter: opacity(90%);
}
.btn:hover {
    filter: opacity(100%);
    -webkit-transition: filter 100ms linear;
    -ms-transition: filter 100ms linear;
    transition: filter 100ms linear;
}
.btn-primary {
    background-color: #5bc0de;
    border: 1px solid #46b8da;
}
.btn-secondary {
    background-color: #929191;
    border: 1px solid #929191;
}
.section {
    margin-top: 50px;
}
.newStopwatch-grp {
    height: auto;
}
.newStopwatch {
    position: relative;
}
.newStopwatch-display {
    margin-left: auto;
    margin-right: auto;
}
.newStopwatch-btn {
    /* position: absolute;
    top: calc(50% - 12px);
    left: calc(50% - 76px); */
}
.section-head {
    display: block;
    margin-left: calc(14vw - 30px);
    text-align: left;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.newTimer-group {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    align-items: center;
    justify-content: center;
    display: grid;
}
.newTimer-input {
    margin: auto;
    display: inline-block;
}
.newTimer-btn {
    display: inline-block;
    padding-top: 25px;
}
footer {
    margin-top: 40px;
    position: relative;
    text-align: center;
    z-index: 2;
}
.copy {
    color: white;
}
.stats {
    color: rgba(191, 191, 191, 0.7);
}
#offset {
    margin-right: 10px;
}
.share-table {
    display: inline-table;
    text-align: left;
}
.share-table td.type {
    padding-right: 3vw;
}
/* .share-table td.link { } */
.empty-session {
    margin: 100px auto;
}

img.qr-image {
    vertical-align: bottom;
    margin-left: 5px;
    margin-right: 5px;
}

/* The Modal (background) */
.modal {
    display: block;
    position: fixed; /* Stay in place */
    z-index: 5; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
    display: flex;
    align-items: center;
}


/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    width: 300px;
    color: black;
}
.modal-header {
    color: black;
}
.unit {
    font-size: 28px;
    padding-right: 4px;
}
.mobile-entity {
    margin-top: 40px;
    margin-bottom: 40px;
    height: 30vh;
}
.mobile-controls {
    display: inline-flex;
    align-items: center;
    vertical-align: top;
    width: 250px;
    margin-top: 32px;
}
.mobile-control {
    width: 50%;
}
.entities {
    scroll-snap-type: y mandatory;
}
.entity {
    scroll-snap-align: start;
    height: auto;
    position: relative;
}
.entity-break {
    height: 0px;
}
.timer-change-modal {
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    z-index: 4; /* Sit on top */
    position: absolute;
    justify-content: center;
    display: flex;
    align-items: center;
}
.blur {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

.timer-change-modal > .content {
    margin: auto;
}

.timer-change-modal > .content > .elapsed {
    margin: 10px auto;
}
.timer-change-modal > .content > .buttons {
    margin-top: 10px;
}
.buttons > button {
    margin: 0px 5px;
}
.error-msg {
    position :fixed; 
    z-index: 100; 
    top: 0px;
    left: 0px;
    width: 100%;
    height:5vh;
    background-color: rgba(82, 16, 16, 0.88); 
    padding-top: 2vh;
}
.advertisement-bottom {
    margin: 30px;
}
.interstitial {
    margin: 30vh auto;
}
.split-unit {
    font-size: 0.65em;
    padding-right: 3px;
}
.split-minor {
    font-size: 0.70em;
    color: #999999;
}
