body {
    background: url(../images/bg.jpg);
    font-family: Arial, sans-serif;
    color: #fff;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0;
}

p {
    margin: 0;
}

.left {
    float: left;
}

.right {
    float: right;
}

.middle {
    display: table-cell;
    vertical-align: middle;
}

.left-center {
    margin: auto auto auto 0;
}

.right-center {
    margin: auto 0 auto auto;
}

.center {
    margin: auto;
}

.center-vertical {
    margin-top: auto;
    margin-bottom: auto;
}

.hidden {
    display: none;
}

.visible {
    display: table;
}

.nowrap {
    white-space: nowrap;
}

.margin20 {
    margin: 20px;
}

/* Toolbar */

.toolbar {
    margin: 0 auto;
    width: 100%;
    height: 10vh;
    max-height: 55px;
    background: #4fae57;
    text-align: center;
    font-size: calc(14px + 0.5vw);
}

.toolbar-title {
    width: 100%;
}

.toolbar-image {
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin-top: 5px;
    margin-left: 10px;
    margin-right: 10px;
}

.toolbar-image:hover {
    opacity: 0.8;
}

.scorebar {
    font-size: calc(10px + 0.5vw);
    height: 100%;
    display: flex;
}

.scorebar-image {
    width: calc(12px + 0.5vw);
    height: calc(12px + 0.5vw);
    margin-bottom: -3px;
}

.margin10 {
    margin-left: 10px;
    margin-right: 10px;
}

/* Settings */

.settings {
    display: none;
    margin: 0 auto;
    width: 100%;
    max-width: 460px;
    font-size: calc(18px + 0.4vw);
}

.settings-item {
    padding-top: 3vh;
    padding-bottom: 3vh;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
}

.settings-title {
    margin: auto auto auto 10px;
}

/* Menu */

.menu {
    display: table;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 460px;
}

.menu-item {
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.menu-item:hover {
    opacity: 0.8;
}

.menu-item-text {
    white-space: normal;
    display: inline-block;
    vertical-align: middle;
    max-width: 460px;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
}

.menu-item-image {
    white-space: normal;
    display: inline-block;
    vertical-align: middle;
    width: calc(10px + 9.5vh);
}

.menu-image {
    border-radius: 50%;
    width: calc(10px + 7vh);
    height: calc(10px + 7vh);
    margin-left: 0.8vh;
    margin-top: 0.8vh;
    margin-bottom: 0.4vh;
    margin-right: 0.8vh;
}

.menu-title {
    font-size: calc(12px + 1vh);
    font-weight: bold;
}

.menu-comment {
    font-size: 1.7vh;
    opacity: 0.8;
}

/* Results */

.results {
    /*display: table;*/
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 460px;
    font-size: calc(5px + 1.5vh);
    margin-top: 2vh;
}

.results-skills {
    padding: 0;
    padding-left: 20px;
    margin: 0;
    font-size: calc(5px + 1.5vh);
}

.results-title {
    font-size: calc(5px + 2vh);
    text-align: center;
    margin-top: 3vh;
    margin-bottom: 3vh;
}

.results-difficulty {
    float: right;
    font-size: calc(5px + 1.5vh);
}

.results-settings {
    margin-left: 10px;
    margin-right: 10px;
}

.results-button {
    background: #4fae57;
    color: #fff;
    border: 0;
    border-radius: 5px;  
    padding: calc(8px + 0.2vmin) calc(16px + 0.2vmin);
    margin-bottom: 0;
    font-size: calc(8px + 1vmin);
    cursor: pointer;
}

.results-button:hover {
    background: #319039;
}
  
.results-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(20px + 8vh);
    height: calc(20px + 8vh);
    border-radius: 50%;
    margin-right: 2vh;
}

.results-circle-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    font-size: calc(5px + 2vh);
    font-weight: bold;
    color: #000;
    background: #fff;
}

.results-correct {
    color: #4fae57;
}

.results-incorrect {
    color: #f2413b;
}

.results-diagramm {
    display: table;
    margin: 0 auto;
    font-size: calc(5px + 1.5vh);
}

.results-chart {
    max-width: 96%;
    max-height: 30vh;
    margin: 0 auto;
}

/* Timerbar */

.timerbar {
    /*display: table;*/
    margin: 0 auto;
    width: 100%;
    /*max-width: 1200px;*/
    text-align: center;
    font-size: calc(5px + 1.8vh);
}

.timer {
    width: 100%;
    height: 3px;
    background: #333;
}

.timer-line {
    width: 100%;
    height: 3px;
    background: #fff;
}

.game-help {
    margin-top: 2vh;
    margin-bottom: 2vh;
}

/* Game */

.game {
    display: table;
    margin: 0 auto;
    width: 100%;
    height: 60%;
    max-width: 1200px;
    font-size: calc(5px + 1.8vh);
    text-align: center;
}

.game-button {
    background: #01579b;
    color: #fff;
    border: 0;
    border-radius: 5px;  
    padding: calc(2px + 1vmin) calc(2px + 1.5vmin);
    margin: calc(2px + 1vmin);
    font-size: calc(2px + 3vmin);
    cursor: pointer;
}

.game-button:hover {
    opacity: 0.9;
}

.game-item {
    width: 100%;
    height: 100%;
}

.game-content {
    display: table-cell;
    vertical-align: middle;
    width: 96%;
}

/* Matrix */

.matrix-help {
    margin-top: 2vh;
    margin-bottom: 2vh;
    font-size: calc(5px + 1.8vh);
}

.matrix-cell4 {
    width: calc(10px + 8vh);
    height: calc(10px + 8vh);
    color: #000;
    cursor: pointer;
}

.matrix-cell5 {
    width: calc(10px + 6.5vh);
    height: calc(10px + 6.5vh);
    color: #000;
    cursor: pointer;
}

.matrix-cell6 {
    width: calc(10px + 5vh);
    height: calc(10px + 5vh);
    color: #000;
    cursor: pointer;
}

.matrix-cell4:hover {
    opacity: 0.9;
}

.matrix-cell5:hover {
    opacity: 0.9;
}

.matrix-cell6:hover {
    opacity: 0.9;
}

.gray-bg {
    background: #ccc;
}

.blue-bg {
    background: #01579b;
}

.green-bg {
    background: #4fae57;
}

/* Arithmetic */

.big-title {
    font-size: calc(24px + 4vw);
    margin-top: 10vh;
    margin-bottom: 10vh;
}

.arithmetic-button {
    background: #01579b;
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: calc(6px + 0.5vmin) calc(10px + 0.5vmin);
    margin: calc(2px + 0.5vmin);
    font-size: calc(5px + 5vmin);
    width: calc(5px + 15vmin);
    cursor: pointer;
}

.arithmetic-button:hover {
    opacity: 0.9;
}

/* Double */

.double-table {
    white-space: normal;
    display: inline-block;
    margin-top: 2vh;
    border-spacing: 0;
}

.double-cell {
    background: #ccc;
    width: calc(5px + 9vh);
    height: calc(5px + 9vh);
    cursor: pointer;
}

.double-round {
    display: inline-block;
    background: #fff;
    width: calc(5px + 7vh);
    height: calc(5px + 7vh);
    border-radius: 50%;
    line-height: calc(5px + 7vh);
}

.double-round:hover {
    opacity: 0.9;
}

.double-image {
    width: calc(5px + 4vh);
    height: calc(5px + 4vh);
    display: inline-block;
    vertical-align: middle;
    filter: brightness(30%) saturate(50%);
}

/* Sorter */

.sorter-help {
    margin-top: 4vh;
}

.sorter-container {
    position: relative;
    width: 100%;
    margin-bottom: 10vh;
}

.sorter-image-big {
    width: calc(10px + 20vh);
    height: calc(10px + 20vh);
}

.sorter-image-small {
    width: calc(10px + 7vh);
    height: calc(10px + 7vh);
    position: absolute;
    left: 50%;
    top: 25%;
    margin-left: calc(-5px - 3.5vh);
    margin-top: 1vh;
    filter: brightness(30%) saturate(50%);
}

.sorter-block {
    white-space: normal;
    display: inline-block;
    width: calc(5px + 8vh);
    height: calc(5px + 8vh);
    margin: 1vh;
    cursor: pointer;
}

.sorter-block:hover {
    opacity: 0.9;
}

.sorter-image {
    width: calc(5px + 8vh);
    height: calc(5px + 8vh);
}

/* Memory */

.memory-table {
    white-space: normal;
    display: inline-block;
    margin-top: 2vh;
}

.memory-cell {
    width: calc(5px + 7vh);
    height: calc(5px + 7vh);
    cursor: pointer;
    background: #ccc;
}

.memory-cell:hover {
    opacity: 0.9;
}

.memory-image {
    width: calc(5px + 3.5vh);
    height: calc(5px + 3.5vh);
    filter: brightness(30%) saturate(50%);
}

/* Help */

.help {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.help-block {
    position: absolute;
    font-size: 18px;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 86%;
    top: 7%;
    left: 50%;
    margin-left: -400px;
    border-radius: 1vmin;
    color: #000;
    z-index: 100;
    background-color: #eeeeee;
}

@media (max-width: 800px) {
    .help-block {
        top: 0;
        left: 0;
        max-width: none;
        max-height: 100%;
        margin-left: 0;
    }
}

.help-content {
    width: 100%;
    height: calc(100% - 50px);
    overflow-y: auto;
}

.help-button {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
    background: #4078c0;
    color: #fff;
    font-size: 18px;
    border-bottom-left-radius: 0.9vmin;
    border-bottom-right-radius: 0.9vmin;
}

.help-button:hover {
    background: #04c;
}

/* Leaders */

.leaders {
    width: 100%;
    border-spacing: 0;
}

.leaders-image {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 5px;
    border-radius: 18px;
}

.leaders-score {
    text-align: right;
}

.leaders-name {
    width: 100%;
}

.leaders-current {
    background: #dddddd;
}