@keyframes cosmos {
    from {
        background-position: 0 0, 0 0
    }

    25% {
        background-position: 0 100px, 0 0
    }

    50% {
        background-position: -100px 100px, 0 0
    }

    75% {
        background-position: -100px 0, 0 0
    }

    to {
        background-position: 0 0, 0 0
    }
}

#root {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.toolswitcher {
    /*height: 100%;*/
    text-align: center;
    /*padding-top: 8vh; */
    position: relative;
}

.MuiButton-label-2 {
    display: block !important;
}

.toolswitcher h1 {
    font-size: 5vh;
}

.toolswitcher button.abacus img,
.toolswitcher button.trainer img,
.toolswitcher button.tests img {
    width: 40vh;
    height: 40vh;
}

.abacus,
.trainer,
.tests {
    color: #FFF;
    box-shadow: 1vh 1vh #FFF;
    text-transform: uppercase;
    border-radius: 4vh;
    padding: 4vh;
    border: 0;
    cursor: pointer;
    font-size: 5vh;
    width: 25%;
    min-width: 48vh;
    text-align: center;
    margin: 4vh;
}

.trainer {
    background: #05c727;
}

.abacus {
    background: #ef61ff;
}

.tests {
    background: #ffaf09;
}

.topRightButton,
.topLeftButton {
    position: absolute;
    top: 20px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    outline: none;
    padding: 10px;
    background: transparent;
}

.topRightButton {
    right: 20px;
}

.topLeftButton {
    left: 20px;
}

.topRightButton:hover,
.topLeftButton:hover {
    background: rgba(168, 168, 168, 0.5);
}

.leftGuest {
    top: 0;
    background-image: url(../img/smiles/hello.png);
}

.rightGuest {
    right: 0;
    background-image: url(../img/smiles/hi.png);
}

.leftGuest,
.rightGuest,
.guestTs,
.guestSo {
    position: absolute;
    width: 40vh;
    height: 27vh;
    background-size: 40vh 27vh;
}

.guestTs,
.guestSo {
    bottom: 20px;
}

.guestTs {
    background-image: url(../img/smiles/ts.png);
}

.guestSo {
    background-image: url(../img/smiles/so.png);
}

h2 {
    text-align: center;
}

header h1 {
    text-align: center;
}

header button {
    position: absolute !important;
    right: 120px;
    top: -54px;
}

.settings {
    position: relative;
}

footer {
    position: absolute;
    bottom: 0;
    padding: 20px 20px;
    right: 0;
    text-align: center;
}

footer>button {
    box-shadow: 5px 5px #FFF;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 20px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: #05c727;
    outline: none;
    margin: 5px;
}

section {
    text-align: center;
    padding: 0 40px;
}

section input {
    font-size: 100px;
    width: 60vw;
    border-radius: 20px;
    padding: 5px 20px;
    outline: none;
    border: 1px solid #999;
    text-align: center;
    user-select: text;
}

section>div.example {
    padding: 2vh 12vw;
    color: #FFF;
    font-size: 30vh;
    margin: 2rem 0;
    background:
        /*#15d023*/
        #0527c7;
    border: 6vh solid #CCC;
    /* box-shadow: 6vh 6vh #CCC; */
    display: inline-block;
}

.answer,
.success,
.nosuccess,
.login {
    font-size: 60px;
}

.login input {
    display: block;
    margin-bottom: 20px;
    width: 100%;
    padding: 0;
}

div.success {
    color: darkgreen;
}

div.nosuccess {
    color: darkred;
}

.numbers {
    padding: 10px;
}

.numbers * {
    font-size: 20px;
    color: #FFF;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
}

.numbers span {
    display: inline-block;
}

.numbers span.number {
    width: 30px;
    background: #0527c7;
    box-shadow: 5px 5px #FFF;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

.numbers span.word {
    background: #0527c7;
    box-shadow: 5px 5px #FFF;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    padding: 5px 15px;
}

.numbers.large span {
    padding: 10px 30px;
}

.numbers span.item {
    display: inline-block;
    margin: 5px 1px;
    width: 1px;
    /* height: 24px; */
    background: #0527c7;
    box-shadow: 5px 5px #FFF;
    border-radius: 2px;
    text-align: center;
    font-weight: bold;
}

.numbers span.selected {
    background: #FF0;
    color: #0527c7;
}

.numbers span.disabled {
    background: #CCC;
    color: #999;
    cursor: default;
}

.numbers .description {
    color: #0527c7;
    font-weight: bold;
    text-shadow: 1px 1px #FFF;
}

.spoke {
    display: inline-block;
    width: 139px;
    height: 360px;
    background: url(../img/abacus/spoke.png);
    position: relative;
}

.spoke>span {
    display: block;
    position: absolute;
    width: 109px;
    height: 36px;
    left: 14px;
    background: url(../img/abacus/bone.png) no-repeat 50% 50%;
    transition: all 0.8s;
    padding: 5px 15px;
    top: 0;
}

.spoke.num-5>span:nth-child(1),
.spoke.num-6>span:nth-child(1),
.spoke.num-7>span:nth-child(1),
.spoke.num-8>span:nth-child(1),
.spoke.num-9>span:nth-child(1) {
    top: 65px;
}

.spoke>span:nth-child(2) {
    margin-top: 120px;
}

.spoke>span:nth-child(3) {
    margin-top: 160px;
}

.spoke>span:nth-child(4) {
    margin-top: 200px;
}

.spoke>span:nth-child(5) {
    margin-top: 240px;
}

.spoke.num-0>span:nth-child(2),
.spoke.num-5>span:nth-child(2),
.spoke.num-0>span:nth-child(3),
.spoke.num-1>span:nth-child(3),
.spoke.num-5>span:nth-child(3),
.spoke.num-6>span:nth-child(3),
.spoke.num-0>span:nth-child(4),
.spoke.num-1>span:nth-child(4),
.spoke.num-2>span:nth-child(4),
.spoke.num-5>span:nth-child(4),
.spoke.num-6>span:nth-child(4),
.spoke.num-7>span:nth-child(4),
.spoke.num-0>span:nth-child(5),
.spoke.num-1>span:nth-child(5),
.spoke.num-2>span:nth-child(5),
.spoke.num-3>span:nth-child(5),
.spoke.num-5>span:nth-child(5),
.spoke.num-6>span:nth-child(5),
.spoke.num-7>span:nth-child(5),
.spoke.num-8>span:nth-child(5) {
    top: 70px;
}

.counter {
    margin: 0 10vh;
    text-align: center;
    font-size: 18vh;
    padding: 10vh 0;
    border: 6vh solid #CCC;
    /* box-shadow: 6vh 6vh #CCC; */
    overflow: hidden;
    margin: 2rem 0;
}

.counter.c0 {
    background: #F00;
}

.counter.c1 {
    background: #FF0;
}

.counter.c2 {
    background: #0F0;
}

/*Timer*/
.countdown {
    position: relative;
    margin: 20px auto;
    height: 100px;
    width: 100px;
    text-align: center;
}

.countdown-number {
    color: red;
    font-weight: bold;
    font-size: 63px;
    padding: 10px;
}

.countdown svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    transform: rotateY(-180deg) rotateZ(-90deg);
}

.countdown svg circle {
    stroke-dasharray: 314px;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    stroke-width: 4px;
    stroke: red;
    fill: none;
    animation: countdown 10s linear infinite forwards;
}

@keyframes countdown {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 314px;
    }
}

.loginButton {
    padding: 5px 20px;
    border: 1px solid #eee;
    border-radius: 15px;
    display: inline-block;
    align-items: center;
    background: #eef;
    cursor: pointer;
}

@media only screen and (max-width: 600px) {
    .toolswitcher h1 {
        font-size: 3vh;
    }

    .toolswitcher button.abacus img,
    .toolswitcher button.trainer img,
    .toolswitcher button.tests img {
        width: 30vh;
        height: 30vh;
    }

    .abacus,
    .trainer,
    .tests {
        font-size: 3vh;
        padding: 2vh;
        min-width: auto;
        width: 100%;
        margin: 2vh auto;
    }

    .leftGuest,
    .rightGuest,
    .guestTs,
    .guestSo {
        width: 30vh;
        height: 20vh;
        background-size: 30vh 20vh;
    }

    section input {
        font-size: 8vh;
    }

    .numbers * {
        font-size: 16px;
        padding: 4px;
        margin: 3px;
    }

    .numbers span.number,
    .numbers span.word {
        padding: 5px 10px;
    }

    .countdown {
        width: 80px;
        height: 80px;
    }

    .countdown-number {
        font-size: 40px;
    }

    .countdown svg {
        width: 80px;
        height: 80px;
    }

    .counter {
        font-size: 8vh;
        padding: 6vh 0;
    }

    footer {
        padding: 10px;
        position: relative;
    }

    header button {
        top: 10px !important;
        right: 10px !important;
    }

    .login input {
        font-size: 1rem;
    }

    .loginButton {
        width: 100%;
        font-size: 1rem;
    }

    section>div.example {
        font-size: 4vh;
    }

    header button {
        position: initial !important;
    }
    .answerIcon img{
        width: 200px;
        height: 120px;
    }
    section{
        padding: 0;
    }
}