/* ---    reset   --- */
/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

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, caption,
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;
    font-size: 100%;
    font-family: 'Roboto', sans-serif;
    -webkit-text-size-adjust: 100%; /* Prevent adjust font size after iOS orientation changes */
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "liga" 1, "kern" 1;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
    background-color: #F3F3F4;
    color: #181F2C;

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}
ol, ul {
    list-style: none;
    text-align: center;
}
blockquote, q {
    quotes: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    text-decoration: none;
}
*:focus {
    outline: none;
}
html, body, main {
    height: 100%;
}

/* ---   layout   --- */

html {
    font-size:62.5%;
}

main {
    margin: 0 auto;
    font-size: 5rem;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main#timerMode {
    background-color: #fff;
}

nav.opacity {
    opacity: 0.1;
}

/* {
    width: 25%;
    float: right;
}*/
li a.button, button {
    color: #fff;
    font-family: inherit;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 5rem;
    display: block;
    letter-spacing: 0.1rem;
    text-align: center;
    background-color: #FF4745;
    /* border-radius: 0.4rem; */
    border: solid 0.1rem #FF4745;
    vertical-align: middle;
    width: 50%;
    margin: 0 auto;
    transition: all 0.1s linear;
}
li a.button {
    line-height: 5.3rem;
}
li a.button:hover, #clear a:hover, #settings:hover {
    background-color: #fff;
    color: #FF4745;
    transition: all 0.1s linear;
    border: 0.1rem solid #FF4745;
}
li a.button span {
    opacity: 0.5;
}

.iconBt {
    display: inline-block;
    top: 0;
    position: relative;
    background-color: #FF4745;
    /* border-radius: 0.4rem; */
    vertical-align: middle;
    width: 5.5rem;
    height: 5.5rem;
    border: solid 0.1rem #FF4745;
    transition: all 0.1s linear;
    text-align: left;
}

@media (max-width: 768px) {
    #clear {
        margin-right: 10px;
    }
} 

.iconBt svg {
    fill: #fff;
    width: 4rem;
    height: 4rem;
    transition: all 0.2s linear;
    margin: 0.7rem 0.75rem 0.4rem;
    position: absolute;
}

.iconBt:hover, .iconBt.active {
    cursor: pointer;
    fill: white;
    background: #fff;
}
.iconBt:hover svg, .iconBt.active svg {
    fill: #FF4745
}

.iconBt svg:hover #centro path {
    fill: #FF4745!important;
}

#tapa {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: transparent;
    display: none;
}
#tapa.active {
    display: block;
}
.wrapperSettings {
    /* width: 35.8rem; */
    height: 0;
    background-color: #fff;
    position: absolute;
    z-index: 9;
    font-size: 1.4rem;
    transition: all .1s linear;
    margin-top: -5rem;
    right: 14rem;
    bottom: 80px;
    pointer-events: none;
}
.wrapperSettings:after {
    height: 0;
    bottom: -1.5rem;
    transition: all .1s linear;
}
.wrapperSettings.active:after {
    position: absolute;
    content: " ";
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    bottom: -.87rem;
    right: 2.25rem;
    transform: rotate(135deg);
    display: block;
    border-right: 0.1rem solid #afafaf;
    border-top: 0.1rem solid #afafaf;
    box-sizing: content-box;
    box-shadow: 1px -1px 2px rgba(0, 0, 0, 0.2);
}
.wrapperSettings.active {
    margin-top: -17.5rem;
    height: auto;
    pointer-events: auto;
    border: 0.1rem solid #afafaf;
    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
    .wrapperSettings.active {
        right: 50%;
        bottom: 130px;
        bottom: 130px;
        transform: translateX(50%);
    }
    .wrapperSettings.active:after {
        right: 50%;
    }
}
.wrapperSettings form {
    margin: 2rem;
    opacity: 0;
}
.wrapperSettings.active form {
    animation-name: showing;
    animation-duration: .05s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
    display: block;
}
.wrapperSettings label {
    font-family: inherit;
    font-size: 1.7rem;
}
.wrapperSettings p {
    white-space: nowrap;
}
.wrapperSettings input, .wrapperSettings select {
    /* border-radius: 0.4rem; */
    border: solid 0.1rem #afafaf;
    background: #fff;
    font-family: inherit;
    font-size: 2rem;
    color: #585858;
    width: 6.5rem;
    margin: 0 .5rem;
    padding: 0 0 0 0.5rem;
    line-height: 34px;
    height: 34px;
}
.wrapperSettings input:focus, .wrapperSettings select:focus {
    border-color: #585858;
    background: #F3F3F4;
}

.wrapperSettings select#durationType {
    font-size: 1.5rem;
    height: 36px;
    position: relative;
    top: -2px;
    width: 100px;
}
.checkboxField {
    text-align: left;
}
.checkboxField label {
    font-size: 14px;
}
#extendedTimeField {
    margin-top: 20px;
    margin-bottom: 28px;
}
.wrapperSettings button {
    font-size: 1.5rem;
    width: 8rem;
    display: inline-block;
    line-height: 3rem;
    transition: all 0.1s linear;
    position: relative;
    top: 10px;
    float: right;
}
.wrapperSettings button:hover, .wrapperSettings button:active, .wrapperSettings button:focus {
    cursor: pointer;
    fill: white;
    color: #FF4745;
    background: #fff;
    border: solid 0.1rem #FF4745;
}
.wrapperSettings p + p {
    margin-top: 1rem;
}
.wrapperSettings input[type='checkbox'] {
    width: auto;
    margin-left: 0;
    height: auto;
}
#timer {
    color: #585858;
    text-align: center;
    font-size: 40rem;
    font-size: 25vw;
    font-family: inherit;
    transition: all 0.3s ease-out;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 640px)
  and (-webkit-min-device-pixel-ratio: 2)
  and (orientation: landscape) {

    #timer {
        font-size: 20vw;
        margin-top: 36px;
    }
}
/* @media (max-width: 768px) {
    #timer {
        height: calc(100% - 20rem);
    }
} */
.hightlight #timer {
    transform: scale(1.2);
}
#timer.negative {
    color: #FF4745;
}
#timer span {
    margin-bottom: 10px;
    position: relative;
    top: -33px;
}

#timer.warning[data-state='running'] {
    animation-name: pulseWarning;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

#timer.negative[data-state='running'] {
    animation-name: pulse;
    animation-duration: 1s;
    animation-iteration-count: infinite;
}

audio {
    text-indent: -10000rem;
}

@keyframes pulse {
    0% {transform: scale(1); color: #F3F3F4}
    50% {transform: scale(1.05);color: #FF4745;}
    100% {transform: scale(1); color: #F3F3F4}
}

@keyframes pulseWarning {
    50% {transform: scale(1.05);}
    100% {transform: scale(1);}
}

@keyframes showing {
    0%   {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hidden {
    display: none;
}


