@font-face
{
    src:url(../fonts/Biko_Regular.otf);
    font-family:'Biko';
}


/* 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,
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;
	font-size: 100%;
	font: inherit;
	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;
}
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;
}

html {
    background-color: #000;
}

.wrapper {
    margin-left: auto;
    margin-right: auto;
    max-width: 540px;
    background-color: #EAEAEA;
    position: relative;
}

.header {
    background-color: #11B198;
    /*height: 65px;*/
    /*padding: 0 2%;*/
    padding: 0 10px;
    color: #1E2435;
}

.header:after {
    content: "";
    display: table;
    clear: both;
}

.header .flags img {
    float: right;
    margin: 5px;
    opacity: 0.4;
    width: 35px;
}

.flags img:hover, .flags img.active {
    opacity: 1;
}


.profile_icon {
    width: 10%;
    padding: 1%;
}

.profile_icon img {
    width: 100%;
}

.settings {
    width: 10%;
    padding: 1%;
}

.settings img {
    width: 100%;
}

.name {
    width: 76%;
    height: 100%;
    text-align: center;
    font-family: Biko;
    font-size: 40px;
    line-height: 65px;
}

.content {
    margin: 0;
    background-color: #EAEAEA;
    font-family: Biko;
    font-size: 26px;
    color: #231F20;
}

.about {
    border-top: #ccc solid 1px;
    border-bottom: #ccc solid 1px;
    margin: 25px 0;
    padding: 0px 40px;
    line-height: 1.25em;
    font-size: 0.8em;
}

.about p {
    margin: 30px 0;
}

.savetovaliste_link, .savetovaliste_link:visited, .savetovaliste_link:link, .savetovaliste_link:hover {
    color: #1a8;
    font-weight: bold;
    text-decoration: none;
}

.home {
    padding: 0px 40px;
}

.ribbon {
    height: 51px;
    background-color: #383938;
    margin-top: 15px;
}

.ribbon > div {
    float: left;
}

.ribbon_left {
    width: 20%;
    height: 100%;
    background-color: #0eb399;
}

.ribbon_right {
    padding-left: 5%;
    height: 100%;
    font-family: Biko;
    color: #FFF;
    line-height: 50px;
}

.test-info {
    padding: 6%;
    line-height: 31px;
}

.test-form ul {
    margin-left: 1%;
}

.test-form li {
    width: 25px;
    text-align: center;
    display: inline-block;
    margin: 0 2%;
}

.nav {
    height: 84px;
    background-image: url('../images/nav_background.png');
    background-repeat: repeat-x;
    text-align: center;
    height: 60px;    
}

.nav a {
    display: inline-block;
    width: 53px;
    height: 53px;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 20px;
    text-indent: -99999px;
    height: 45px;
    width: 45px;
    margin-top: 10px;
    overflow: hidden;
}

.link-about {
    background: url('../images/button_about.svg') no-repeat top;
    background-size: 45px auto;
}
.link-home {
    background: url('../images/button_home.svg') no-repeat top;
    background-size: 45px auto;
}
.link-history {
    background: url('../images/button_history.svg') no-repeat top;
    background-size: 45px auto;
}
.nav a:hover, .nav a.active {
    background-position: bottom;
}



.fl {
    float: left;
}

.clb {
    clear: both;
}

.clear:after {
    content: "";
    display: table;
    clear: both;
}


input[type="radio"].css3radio{
    display: none;
}

label.toggler_r{ /* radio label */
    display: block;
    position: relative;
    padding-left: 0px; /* space to the left of label text */
    padding-bottom: 25px;
    margin-bottom: 0.3em; /* bottom spacing */
    cursor: pointer;
}

label.toggler_r::before{ /* outer round circle */
    content: '';
    display: block;
    position:absolute;
    width: 25px;
    height: 25px;
    /*background: #E7767C;*/
    background: transparent;
    box-shadow: 0 0 3px #E7767C inset;
    border-radius: 25px;
    left: 0px;
    top: 28px;
}

label.toggler_r::after{ /* inner dark circle */
    content: '';
    position:absolute;
    width: 25px;
    height: 25px;
    border-radius: 15px;
    left: 0px;
    top: 28px;
    overflow: hidden;
    transition: all 0.2s;  /* CSS3 transition on dark circle */
}

input[type="radio"]:checked + label.toggler_r::after{ /* inner dark circle when radio is selected */
    background: #E7767C;
    box-shadow: 1px 1px 5px white;
}

label.toggler_y{ /* radio label */
    display: block;
    position: relative;
    padding-left: 0px; /* space to the left of label text */
    padding-bottom: 25px;
    margin-bottom: 0.3em; /* bottom spacing */
    cursor: pointer;
}

label.toggler_y::before{ /* outer round circle */
    content: '';
    display: block;
    position:absolute;
    width: 25px;
    height: 25px;
    /*background: #E7767C;*/
    background: transparent;
    box-shadow: 0 0 3px #C5A433 inset;
    border-radius: 25px;
    left: 0px;
    top: 28px;
}

label.toggler_y::after{ /* inner dark circle */
    content: '';
    position:absolute;
    width: 25px;
    height: 25px;
    border-radius: 15px;
    left: 0px;
    top: 28px;
    overflow: hidden;
    transition: all 0.2s;  /* CSS3 transition on dark circle */
}

input[type="radio"]:checked + label.toggler_y::after{ /* inner dark circle when radio is selected */
    background: #C5A433;
    box-shadow: 1px 1px 5px white;
}

.test-description {
    width: 92%;
    margin-left: 3%;
}

.test-description > div {
    width: 17%;
    font-size: 20px;
}

.test-description .desc-center {
    margin-left: 17%;
    text-align: center;
    width: 22%;
}
.test-description .desc-right {
    margin-left: 24%;
    text-align: right;
    width: 20%;
}

.start-button-wrapper {
    height: 75px;
    margin-top: 170px;
    margin-bottom: 20px;
}

.start-button {
    display: block;
    width: 80%;
    height: 75px;
    font-size: 2.1em;
    color: #ECEFF3;
    text-align: center;
    vertical-align: middle;
    background-color: #5883C3;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    border: none;
    margin: 0 auto 0 auto;
}

.stop-button {
    font-family: Biko;
    display: block;
    width: 80%;
    height: 75px;
    font-size: 2.1em;
    color: #ECEFF3;
    text-align: center;
    vertical-align: middle;
    background-color: #ED6E63;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    border: none;
    margin: 20px auto 20px auto;
}

.exercise-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.after-exercise-wrapper {
    padding: 6%;
}

.after-exercise-wrapper .time-block {
    float: left;
    width: 50%;
    position: relative;
}

.time-block img {
    width: 100%;
}

.after-exercise-wrapper .buttons-block {
    float: left;
    width: 50%;
    margin-top: 8%;
    font-size: 14px;
}

.time-block span {
    color: #0eb399;
    font-size: 1.8em;
    font-weight: normal;
    left: 31%;
    position: absolute;
    top: 40%;
}

.home_select {
    text-align: center;
    margin: 10%;
}

.home_select img {
    width: 40%;
}

.home_select p {
    margin: 5%;
}

.home_select a {
    color: #231f20;
    text-decoration: none;
    cursor: pointer;
}

#chart {
    font-size: 18px;
    width: 100%; 
    height: 300px;
}

.goal-wrapper {
    margin: 5%;
}

#goal {
    width: 40px;
    height: 40px;
    text-align: center;
    color: #86c440;
    font-size: 22px;
    padding: 0;
    border: #86c440 solid 1px;
}

.goal-button {
    display: inline-block;
    width: 80%;
    height: 40px;
    font-size: 1em;
    color: #ECEFF3;
    text-align: center;
    vertical-align: middle;
    background-color: #86c440;
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
    border: none;
    margin: 0 0 0 auto;
    float: right;
}

/*
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
}
*/

@media only screen and (max-width: 500px) {
 
    .content {
        font-size: 16px;
    }
    
    .about {
        font-size: 16px;
        padding: 0px 10px;
        
    }
    
    .test-form li {
        width: 4.5%;
        text-align: center;
        display: inline-block;
        margin: 0 2%;
    }
    
    label.toggler_r {
        display: block;
        position: relative;
        padding-left: 35%;
        padding-bottom: 37px;
        margin-bottom: 0.3em;
        cursor: pointer;
    }
    
    .test-description > div {
        width: 17%;
        font-size: 0.9em;
    }
    
    .start-button-wrapper {
        height: 75px;
        margin-top: 60px;
        margin-bottom: 20px;
    }
    
    .exercise-image { 
        width: 55%;
    }
    
    .stop-button {
        margin-top: 0px;
    }
    
    label.toggler_y{ /* radio label */
        display: block;
        position: relative;
        padding-left: 35; /* space to the left of label text */
        padding-bottom: 37px;
        margin-bottom: 0.3em; /* bottom spacing */
        cursor: pointer;
    }
    .start-button {
        display: block;
        width: 80%;
        height: 50px;
        font-size: 1.7em;
        color: #ECEFF3;
        text-align: center;
        vertical-align: middle;
        background-color: #5883C3;
        -moz-border-radius: 15px;
        -webkit-border-radius: 15px;
        border-radius: 15px;
        border: none;
        margin: 0 auto 0 auto;
    }
    
    .stop-button {
        font-family: Biko;
        display: block;
        width: 80%;
        height: 50px;
        font-size: 1.7em;
        color: #ECEFF3;
        text-align: center;
        vertical-align: middle;
        background-color: #ED6E63;
        -moz-border-radius: 15px;
        -webkit-border-radius: 15px;
        border-radius: 15px;
        border: none;
        margin: 20px auto 20px auto;
    }
    
    .test-info {
        padding: 4%;
        line-height: 1.2;
    }
    
    #chart {
        font-size: 16px;
        width: 100%; 
        height: 230px;
    }
}