
body, html {

}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

div {
    position: relative;
    box-sizing: border-box;

}

@-moz-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -moz-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@-webkit-keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -moz-transform: translateY(-30px);
        -ms-transform: translateY(-30px);
        -webkit-transform: translateY(-30px);
        transform: translateY(-30px);
    }
    60% {
        -moz-transform: translateY(-15px);
        -ms-transform: translateY(-15px);
        -webkit-transform: translateY(-15px);
        transform: translateY(-15px);
    }
}

.arrow {
    position: fixed;
    bottom: 100px;
    left: 50%;
    margin-left: -10px;
    width: 20px;
    height: 40px;
    background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik0yOTMuNzUxLDQ1NS44NjhjLTIwLjE4MSwyMC4xNzktNTMuMTY1LDE5LjkxMy03My42NzMtMC41OTVsMCwwYy0yMC41MDgtMjAuNTA4LTIwLjc3My01My40OTMtMC41OTQtNzMuNjcyICBsMTg5Ljk5OS0xOTBjMjAuMTc4LTIwLjE3OCw1My4xNjQtMTkuOTEzLDczLjY3MiwwLjU5NWwwLDBjMjAuNTA4LDIwLjUwOSwyMC43NzIsNTMuNDkyLDAuNTk1LDczLjY3MUwyOTMuNzUxLDQ1NS44Njh6Ii8+DQo8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNMjIwLjI0OSw0NTUuODY4YzIwLjE4LDIwLjE3OSw1My4xNjQsMTkuOTEzLDczLjY3Mi0wLjU5NWwwLDBjMjAuNTA5LTIwLjUwOCwyMC43NzQtNTMuNDkzLDAuNTk2LTczLjY3MiAgbC0xOTAtMTkwYy0yMC4xNzgtMjAuMTc4LTUzLjE2NC0xOS45MTMtNzMuNjcxLDAuNTk1bDAsMGMtMjAuNTA4LDIwLjUwOS0yMC43NzIsNTMuNDkyLTAuNTk1LDczLjY3MUwyMjAuMjQ5LDQ1NS44Njh6Ii8+DQo8L3N2Zz4=);
    background-size: contain;
}

.bounce {
    -moz-animation: bounce 2s infinite;
    -webkit-animation: bounce 2s infinite;
    animation: bounce 2s infinite;
}

header {
    position: fixed;
    top: 0px;
    left: 0px;
    height: 80px;
    padding: 0;
    background-color: #000;
    text-align: left;
    width: 100%;
    z-index: 1000;
}

#logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
}

#type-logo {margin: 0 auto; position: absolute; width: 90px; left: 50%; margin-left: -50px; top: 20%; z-index: 1000}

#strobo-overlay {width: 100%; height: 100%; display:none;position: absolute; opacity: 0.7; left: 0; top: 0; background-color: transparent; z-index: 999}
#strobo-overlay.white {background-color: #FFF}
#strobo-overlay.black {background-color: #000}

#logo img {
    max-width: 250px;
    margin: 0 auto;
    width: auto;
    height: auto;

    margin: 0;
    margin-right: 20px;
    max-height: 100%;
}

.running #logo img {margin: 0 auto;}

#legal,
#contact,
#quicksettings {
    position: absolute;
    right: 10px;
    top: 25px;
    text-align: right;

}

#settings-actions > div { padding: 5px; margin-left: 60px; width: 40px; display: inline-block; float: left; text-transform: uppercase; font-style: normal; font-weight: 700; cursor: pointer}
#settings-actions .close-settings {float: right; margin-right: 60px; margin-left: auto}
#legal,
#contact {
    top: auto;
    bottom: 25px;
    z-index: 1000
}

#contact {
    text-align: left
}

#contact img {
    margin-left: 10px;
    margin-bottom: -6px
}

#legal, #legal a {
    color: #666;
    font-size: 12px
}

#contact {
    left: 10px;
}

#difficulity_selector {
}

#language_switcher {
}

#language_switcher a,
#difficulity_selector a {
    color: #666;
    padding: 0 5px;
}

#difficulity_selector a.active,
#language_switcher a.active {
    color: #FFF;
}

.preload {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: fixed;
    bottom: 0;
    right: 0;
}

#page-preloader {
    width: 100%;
    /*max-width: 700px;*/
    top: 0;
    left: 0;
    height: 100vh;
    padding: 0;
    position: fixed;
    text-align: center;
    padding-top: 50px;
    background-color: rgba(149, 190, 61, 0.95); /*#94bd3c*/;
    background: #57c2d3;
    overflow: hidden;
}

#loading-text {
    color: #FFF;
    font-size: 0.8rem;
    top: 50%;
    margin-top: 50px;
}

.clearfix {
    clear: both;
    overflow: auto
}

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

.cc-deny {
    color: rgb(200, 200, 200);
    font-size: 0.7em;
}

.cc-allow {
    text-transform: uppercase;
    font-weight: 700;
}

.cc-revoke {
    display: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

.wrapper {

    text-align: center;
    position: relative;
    margin: 0 auto;
    z-index: 1;
    margin-top: 0px;

}

.portrait {
    display: none;
}

html {
    margin: 0px;
    padding: 0px;
}

body {
    margin: 0px;
    padding: 0px;
}
html, body, a{
    font-style: normal;}

#wrapper {
    min-height: 100%;
    height: 100%;
    padding-top: 80px;
    padding-bottom: 65px;
}

#currentstate {
    background: #000;
    height: 100%;
    font-style: normal;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#currentstate.numbers {font-size: 4rem;}
#settings-container { position:absolute;
    top:50%;
    left:50%;
    display:none;
    transform:translate(-50%, -50%);
    color: #000; background: #FFF; padding: 20px 40px;
    text-align: left;
    z-index: 9000;
    -webkit-box-shadow: 0px 0px 50px 2px rgba(255, 111, 0,0.5);
    box-shadow: 0px 0px 50px 2px rgba(255, 111, 0,0.5);


    border-radius: 10px;
}

#start {position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    color: #000; background: #000; padding: 20px 40px; text-align: left;
   }


#currentstate img {
    max-height: 70vh;
    max-width: 96%;
    margin: 0 auto;
    margin-top: 2%;

}

footer {
    position: fixed;
    bottom: 0px;
    left: 0px;
    height: 70px;
    z-index: 1000;
    background-color: #000;
    text-align: center;
    width: 100%;
}

#pause {top: 0px;}

#start, #pause, #start_pause {z-index: 8000}


footer .button {
    margin: 0 auto;
    width: auto;
    width: 100px;
    background: #000;
    z-index: 9999;
}

body {
    color: #FFF;
    font-family:Arial;
    background: #000;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

body.scrollallowed {
    overflow: auto
}

.button {
    padding: 5px 10px;
    border: 1px solid #666;
    cursor: pointer;
    font-size: 1.2rem;
}

/*
footer {
    text-align: center;

    border-top: 0px solid #CCCCCC;
    font-size: 12px;
    padding: 40px 0 40px 0;
    margin-top: 0px;
}

.bg-black {
    background: #000;
}

footer .bg-black {
    padding: 20px 0;
}

footer, footer a {
    color: #FFF;
    text-decoration: none;
}
*/
#page-info {

    margin: 0 auto;
}

#excount {
    color: #57c2d3;
}

#powered:before,
#page-info:before {
    border-top: 1px solid #FFF;
    position: relative;

    left: 50%;

    margin: 40px 0;
    margin-left: -75px;
    width: 150px;
    content: '';
    display: block;
}

#partner {
    margin: 0;
    border-top: 0px solid #CCCCCC;
}

.partner {
    display: inline-block;
    margin: 10px 20px;
}

.partner img {
    height: 80px;
    width: auto;
}

#language-chooser {
    padding-top: 20px;
    font-size: 1rem;
    font-weight: 300;
}

/* MENU */

.flex-center {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
    text-decoration: none;
}

.outer-menu {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    z-index: 1;
    top: 0;

    right: 0px;

    left: auto;

    z-index: 1000;

    width: 40px;

    height: 40px;
}

.outer-menu .checkbox-toggle {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    cursor: pointer;
    width: 40px;
    height: 40px;
    opacity: 0;
}

.outer-menu .checkbox-toggle:checked + .hamburger > div {
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
}

.outer-menu .checkbox-toggle:checked + .hamburger > div:before,
.outer-menu .checkbox-toggle:checked + .hamburger > div:after {
    top: 0;
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg);
}

.outer-menu .checkbox-toggle:checked + .hamburger > div:after {
    opacity: 0;
}

.outer-menu .checkbox-toggle:checked ~ .menu {
    pointer-events: auto;
    visibility: visible;
}

.outer-menu .checkbox-toggle:checked ~ .menu > div {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition-duration: 0.75s;
    transition-duration: 0.75s;
}

.outer-menu .checkbox-toggle:checked ~ .menu > div > div {
    opacity: 1;
    -webkit-transition: opacity 0.4s ease 0.4s;
    transition: opacity 0.4s ease 0.4s;
}

.outer-menu .checkbox-toggle:hover + .hamburger {
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.outer-menu .checkbox-toggle:checked:hover + .hamburger > div {
    -webkit-transform: rotate(225deg);
    transform: rotate(225deg);
}

.outer-menu .hamburger {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 40px;
    height: 40px;
    padding: 0.5em 0.5em;
    background: #94bd3c;
    border-radius: 0 0.12em 0.12em 0;
    cursor: pointer;
    -webkit-transition: box-shadow 0.4s ease;
    transition: box-shadow 0.4s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.outer-menu .hamburger > div {
    position: relative;
    -webkit-box-flex: 0;
    flex: none;
    width: 100%;
    height: 2px;
    background: #fefefe;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.outer-menu .hamburger > div:before,
.outer-menu .hamburger > div:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: inherit;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

.outer-menu .hamburger > div:after {
    top: 10px;
}

.outer-menu .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    outline: 1px solid transparent;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.outer-menu .menu > div {
    width: 200vw;
    height: 200vw;
    color: #fefefe;
    background: #94bd3c;
    border-radius: 50%;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    -webkit-box-flex: 0;
    flex: none;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    overflow: hidden;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.outer-menu .menu > div > div {
    text-align: center;
    max-width: 90vw;
    max-height: 100vh;
    opacity: 0;
    -webkit-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
    overflow-y: auto;
    -webkit-box-flex: 0;
    flex: none;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
}

.outer-menu .menu > div > div > ul {
    list-style: none;
    padding: 0 1em;
    margin: 0;
    display: block;
    max-height: 100vh;
}

.outer-menu .menu > div > div > ul > li {
    padding: 0;
    margin: 1em;
    font-size: 1.6rem;
    display: block;
}

.outer-menu .menu > div > div > ul > li > a {
    position: relative;
    display: inline;
    cursor: pointer;
    -webkit-transition: color 0.4s ease;
    transition: color 0.4s ease;
}

.outer-menu .menu > div > div > ul > li > a:hover {
    color: #e5e5e5;
}

.outer-menu .menu > div > div > ul > li > a:hover:after {
    width: 100%;
}

.outer-menu .menu > div > div > ul > li > a:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: -0.15em;
    left: 0;
    width: 0;
    height: 2px;
    background: #e5e5e5;
    -webkit-transition: width 0.4s ease;
    transition: width 0.4s ease;
}

/* END MENU */

svg.icon {
    fill: #FFF;
    height: 40px;
    width: auto;
}

/* VISION */
.bear img,
.icon svg {
    height: 120px;
    width: auto;
}

.stroop,
.rectangle {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    font-size: 60px;
    font-size: 20.5vw;
    font-weight: 700;
}


.numbers .text {     font-size: 45vw; }

.f-red svg {
    fill: #FF0000;
}

.f-blue svg {
    fill: #0000FF;
}

.f-yellow svg {
    fill: #FFFF00;
}

.f-green svg {
    fill: #00FF00;
}

.arrow.left {
    transform: rotate(180deg);
}

.arrow.up {
    transform: rotate(270deg);
}

.arrow.down {
    transform: rotate(90deg);
}

.arrow.right {
    transform: rotate(0deg);
}

.bg-red {
    background-color: #FF0000;;
}

.bg-blue {
    background-color: #0000FF;
}

.bg-yellow {
    background-color: #FFFF00;
}

.bg-green {
    background-color: #00FF00;
}

.t-red {
    color: #FF0000;
}

.t-blue {
    color: #0000FF;
}

.t-yellow {
    color: #FFFF00;
}

.t-green {
    color: #00FF00;
}

.mode__bear .vision #workout #result-image {
    padding: 20px 0
}

.mode__bear.fullscreen .vision #workout #result-image {
    padding: 100px 0
}


input[type="number"] {font-size: 15px; text-align: center; margin: 5px; width: 80px;}
.control {
    display: inline-block;
    position: relative;
    padding-left: 25px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 15px;
    margin-left: 5px
}
.control input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.control__indicator {
    position: absolute;
    top: -2px;
    left: 0;
    height: 20px;
    width: 20px;
    background: #e6e6e6;
}
.control--radio .control__indicator {
    border-radius: 50%;
}
.control:hover input ~ .control__indicator,
.control input:focus ~ .control__indicator {
    background: #ccc;
}
.control input:checked ~ .control__indicator {
    background: #FF9C36;
}
.control:hover input:not([disabled]):checked ~ .control__indicator,
.control input:checked:focus ~ .control__indicator {
    background: #FF9C36;
}
.control input:disabled ~ .control__indicator {
    background: #e6e6e6;
    opacity: 0.6;
    pointer-events: none;
}
.control__indicator:after {
    content: '';
    position: absolute;
    display: none;
}
.control input:checked ~ .control__indicator:after {
    display: block;
}
@media screen and (max-width: 600px) {

    #settings-container {
       padding: 10px;
    }


    .numbers .text {     font-size: 250px; }
    header {
        height: 60px;
    }

    #wrapper {
        padding-top: 60px;
        padding-bottom: 60px
    }

    #logo img {
        max-width: 180px
    }

    #quicksettings {
        top: 15px;
    }
    .controls {
        display: flex;
    }

    .radio {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 5px;
    }
    #legal,
    #contact {
        top: auto;
        bottom: 5px;
        z-index: 1000
    }
    #contact {
        bottom: 20px
    }

    #contact, #legal {
        width: 100%;
        text-align: center
    }

    #contact img {
        margin-left: 10px;
        margin-bottom: -6px
    }

    #legal, #legal a {
        color: #666;
        font-size: 12px
    }

    #contact {
        left: 10px;
    }

    .arrow {
        bottom: 120px
    }

    #language_switcher a,
    #difficulity_selector a {
        color: #666;
        padding: 0px;
        font-size: 12px;
    }

}