/* ----------------------------

    - Common
        - General
        - Flip
        - Digits
    - StopWatch page
    - Timer page
        - Timer-up page

-----------------------------*/


/* ----------------------------
    Common
-----------------------------*/

/* General */

.clear {
    clear: both;
}

.ui-btn {
    font-size: 30px;
}

/* Digits */

.digit {
    width: 12%;
    height: 100%;
    float: left;
    margin-right: .5%;
    margin-left: .5%;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
}

.digit.small {
    width: 4.5%;
    height: 30%;
    top: 70%;
    margin: 0;
}

.colon {
    background-image: url(../img/stopwatch/14x51/colon.png);
    width: 4.5%;
    height: 100%;
}

.d0 {
    background-image: url(../img/stopwatch/34x51/0.png);
}

.d1 {
    background-image: url(../img/stopwatch/34x51/1.png);
}

.d2 {
    background-image: url(../img/stopwatch/34x51/2.png);
}

.d3 {
    background-image: url(../img/stopwatch/34x51/3.png);
}

.d4 {
    background-image: url(../img/stopwatch/34x51/4.png);
}

.d5 {
    background-image: url(../img/stopwatch/34x51/5.png);
}

.d6 {
    background-image: url(../img/stopwatch/34x51/6.png);
}

.d7 {
    background-image: url(../img/stopwatch/34x51/7.png);
}

.d8 {
    background-image: url(../img/stopwatch/34x51/8.png);
}

.d9 {
    background-image: url(../img/stopwatch/34x51/9.png);
}

.small.d0 {
    background-image: url(../img/stopwatch/10x15/0.png);
}

.small.d1 {
    background-image: url(../img/stopwatch/10x15/1.png);
}

.small.d2 {
    background-image: url(../img/stopwatch/10x15/2.png);
}

.small.d3 {
    background-image: url(../img/stopwatch/10x15/3.png);
}

.small.d4 {
    background-image: url(../img/stopwatch/10x15/4.png);
}

.small.d5 {
    background-image: url(../img/stopwatch/10x15/5.png);
}

.small.d6 {
    background-image: url(../img/stopwatch/10x15/6.png);
}

.small.d7 {
    background-image: url(../img/stopwatch/10x15/7.png);
}

.small.d8 {
    background-image: url(../img/stopwatch/10x15/8.png);
}

.small.d9 {
    background-image: url(../img/stopwatch/10x15/9.png);
}

/* ----------------------------
    StopWatch page
-----------------------------*/

.separator {
    height: 3%;
    position: relative;
}

#stopwatch-wrapper {
    overflow: hidden;
    display: -webkit-box;
    width: 100%;
    padding: 0;
}

#stopwatch-wrapper-frame {
    width: 90%;
    height: 100%;
    margin: auto;
}

#stopwatch-lap-list {
    width: 100%;
    border-collapse: collapse;
}

#stopwatch-lap-list .stopwatch-lap-row td:nth-child(1) {
    width: 35px;
}

#stopwatch-lap-list .stopwatch-lap-row td:nth-child(2) {
    font-size: 1.0em;
    padding-left: 1em;
    padding-right: 0.5em;
}

#stopwatch-lap-list .stopwatch-lap-row td:nth-child(3) {
    font-size: 1.5em;
}

#stopwatch-lap-list .stopwatch-lap-row .mili {
    font-size: 0.6em;
}

#stopwatch-lap-list .stopwatch-lap-row {
    border-top: 1px solid #e9e8e5;
}

#stopwatch-lap-list .stopwatch-lap-row:last-of-type {
    border-bottom: 1px solid #e9e8e5;
}

#stopwatch-navbar-running {
    display: none;
}

#stopwatch-navbar-paused {
    display: none;
}

/* ----------------------------
    Timer page
-----------------------------*/

#timer-keyboard {
    position: relative;
    width: 96%;
    top: 0;
    left: 2%;
    height: 61%;
}

#timer-keyboard .ui-btn.del {
    background-image: url('../img/timer/icon_del.png');
    background-position: center;
    background-repeat: no-repeat;
}

#timer-keyboard .ui-btn.del:active {
    background-image: url('../img/timer/icon_del_active.png');
}

#timer-keyboard .ui-btn {
    color: #6d5e52;
}

#timer-keyboard .ui-btn:active {
    color: #000;
}

#timer-keyboard .ui-btn-inner {
    padding: 5px;
}

#timer-keyboard .ui-btn-text {
    font-size: 1em;
}

/* Timer-up page */

#timer-up-page {
    background-image: url(../img/timer/time_up_background.png);
    height: 100% !important;
    min-height: 100% !important;
    max-height: 100% !important;
    background-size: 100% 100%;
    text-align: center;
    overflow: hidden;
}

#timer-up-stop-btn.ui-btn-up-s {
    background: red;
}

#timer-up-stop-btn.ui-btn-down-s {
    color: white;
}

#timer-up-stop-btn .ui-btn-text {
    color: #282828;
    text-shadow: none;
    font-size: 0.75rem;
}

#timer-up-stop-btn .ui-btn-inner {
    padding: 0;
}

#timer-navbar-running {
    display: none;
}

#timer-navbar-paused {
    display: none;
}

.ui-mobile, .ui-mobile body {
    border: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

body {
    background: #f8f6ef;
}

.hidden {
    display: none;
}

.ui-content {
    padding: 12px 16px;
    margin: 0;
}

#stopwatch-content-timer {
    overflow: hidden !important;
    position: absolute;
    padding: 0;
    height: auto !important;
    top: 85px;
    bottom: 85px;
}

#stopwatch-content-lap-list {
    padding-top: 0px;
    padding-bottom: 0px;
    margin: 0;
}

#stopwatch-page, #timer-page {
    min-height: 228px !important;
    overflow: hidden;
}

#stopwatch-lap-list {
    color: #eeeeee;
    font-size: 50%;
}

#timer-content {
    position: absolute;
    padding: 0;
    height: auto !important;
    top: 85px;
    bottom: 85px;
}

.btn-active {
    background-color: #4D6D86;
}

.key {
    padding: 1%;
}

.key > button {
    background: black;
    color: #65564B;
    box-shadow: inset 0px 0px 0px 1px #333333;
    text-align: center;
    padding: 0;
    line-height: normal;
    height: auto;
}

.key > button:active {
    background: #65564B;
    color: black;
}

.key > div > img {
    width: 27px;
    height: 15px;
}

#timer-up-total-time {
    position: relative;
    color: white;
    font-size: 1.5em;
}

#timer-up-stop-btn {
    width: 69%;
    height: 1.45em;
    padding: 0;
    margin: auto;
    position: relative;
    border: none;
    box-shadow: 1px 1px 1px #111111;
}

/* Mask page */
#mask-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    z-index: 1;
    background: #000;
}

#flips-container {
    left: 5%;
    top: 0;
    width: 90%;
    height: 30%;
    position: relative;
}

#flip-0 {
    position: absolute;
    left: 0;
    top: 0;
    width: 30%;
    height: 100%;
}

#flip-1 {
    position: absolute;
    left: 50%;
    top: 0;
    width: 30%;
    height: 100%;
    margin-left: -15%;
}

#flip-2 {
    position: absolute;
    right: 0;
    top: 0;
    width: 30%;
    height: 100%;
}

.flip-label {
    width: 100%;
    height: 20%;
    line-height: 100%;
    color: #6d5e52;
    display: -webkit-box;
}

.flip-label p {
    margin: auto;
}

.flip-body {
    width: 100%;
    height: 80%;
    background: grey;
    background-image: url(../img/timer/flip_black_big_bg_scaled.png);
    background-size: 100% 100%;
    position: relative;
    overflow: hidden;
}

.flip-body.active {
    background-image: url(../img/timer/flip_black_big_bg_scaled_active.png);
}

.flip-body-value {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    text-align: center;
}

@media only screen and (device-width: 360px) and (device-height: 360px) and (-tizen-geometric-shape: rectangle) {
    .key > button {
        font-size: 1.7rem;
    }

    .flip-label {
        font-size: .8rem;
    }

    .flip-body-value {
        font-size: 2.5rem;
    }

    #stopwatch-wrapper {
        height: 30%;
    }

    #stopwatch-content-lap-list {
        height: 64% !important;
    }

    #timer-up-total-time {
        top: 69%;
    }

    #timer-up-stop-btn {
        top: 67%;
    }
}

@media only screen and (device-width: 320px) and (device-height: 320px) and (-tizen-geometric-shape: rectangle) {
    .key > button {
        font-size: 1.2rem;
    }

    .flip-label {
        font-size: .6rem;
    }

    .flip-body-value {
        font-size: 2rem;
    }

    #stopwatch-wrapper {
        height: 36%;
    }

    #stopwatch-content-lap-list {
        height: 58% !important;
    }

    #timer-up-total-time {
        top: 67%;
    }

    #timer-up-stop-btn {
        top: 65%;
    }
}

@media only screen and (device-width: 360px) and (device-height: 480px) and (-tizen-geometric-shape: rectangle) {
    .key > button {
        font-size: 2.9rem;
    }

    .flip-label {
        font-size: 1.3rem;
    }

    .flip-body-value {
        font-size: 4rem;
    }

    #stopwatch-wrapper {
        height: 18%;
    }

    #stopwatch-content-lap-list {
        height: 76% !important;
    }

    #timer-up-total-time {
        top: 72%;
    }

    #timer-up-stop-btn {
        top: 73%;
    }
}
