@font-face {
    font-family: TorusMain;
    src: url(fonts/23.ttf);
}

@font-face {
    font-family: TorusBold;
    src: url(fonts/13.ttf);
}

body{
    margin: 0;
    padding: 0;
    font-family: TorusMain;
}

.body-box{
    position: fixed;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.title-first{
    margin: 0;
    font-family: TorusMain;
    text-align: center;
}

#in-game{
    width: 90%;
    background-color: #f0f0f0;
    padding: 40px 70px;
    border-radius: 20px;
    margin: 40px;
    border: #ffffff32 2px solid;
}

.flex{
    display: flex;
}

.flex2{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

button{
    width: 48%;
    height: 50px;
    min-width: 130px;
    font-family: TorusBold;
    font-size: 150%;
    color: rgb(255, 255, 255);
    background-color: rgb(127, 255, 150);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .1s;
}

button:hover{
    background-color: rgb(177, 255, 191);
}

@keyframes enter-that {
    0%{
        transform: translateX(-10px);
    }
    20%{
        transform: translateX(10px);
    }
    40%{
        transform: translateX(-5px);
    }
    60%{
        transform: translateX(5px);
    }
    100%{
        transform: translateX(0px);
    }
    
}

@keyframes non {
    0%{
    }  
}

.stantions{
    display: flex;
    height: 182px;
    justify-content: center;
}

.stantions img{
    width: 100%;
}
.stantions button{
    max-width: 100px;
    max-height: 100px;
    color: rgb(255, 255, 255);
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.variants button{
    width: 100%;
    height: 70px;
    min-width: 130px;
    font-family: TorusBold;
    font-size: 150%;
    color: rgb(255, 255, 255);
    background-color: rgb(152, 152, 152);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .1s;
}

.variants button:hover{
    background-color: rgb(175, 175, 175);
}

.variants{
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#questionImg{
    min-width: 400px;
    display: block;
    box-shadow: 10px 10px 0px #0000006a;
    max-width: 600px;
    margin-left: auto;
    border-radius: 20px;
}

#inputtext{
    font-family: TorusMain;
    width: 90%;
    height: 50px;
    font-size: 120%;
    border-width: 2px;
    border-color: black;
    border-radius: 10px;
    padding-left: 10px;
}

select{
    font-family: TorusMain;
    height: 25px;
    font-size: 100%;
    border: none;
    border-bottom: 2px solid #000;
    padding: 0;
    border-radius: 0;
    width: min-content;
    text-align: left;
}

select:focus{
    outline: none !important;
}


#line1{
    width: 100px;
    background-color: rgb(172, 172, 172);
    height: 20px;
    border-radius: 10px;
    margin-top: 50px;
}
#line2{
    width: 100px;
    background-color: rgb(172, 172, 172);
    height: 20px;
    border-radius: 10px;
    animation-delay: .2s;
    margin-top: 50px;
}

#line3{
    width: 100px;
    background-color: rgb(172, 172, 172);
    height: 20px;
    border-radius: 10px;
    animation-delay: .4s;
    margin-top: 50px;
}

#line4{
    width: 100px;
    background-color: rgb(172, 172, 172);
    height: 20px;
    border-radius: 10px;
    animation-delay: .6s;
    margin-top: 50px;
}

.activatedline{
    animation: active .2s  ease-in forwards;
}

@keyframes active {
    0%{
        background: linear-gradient(90deg, rgba(0,249,255,1) 0%, rgba(180,180,180,1) 0%);
    }
    10%{
        background: linear-gradient(90deg, rgba(0,249,255,1) 10%, rgba(180,180,180,1) 10%);
    }
    20%{
        background: linear-gradient(90deg, rgba(0,249,255,1) 20%, rgba(180,180,180,1) 20%);
    }
    30%{
        background: linear-gradient(90deg, #2AD2FF 30%, rgba(180,180,180,1) 30%);
    }
    40%{
        background: linear-gradient(90deg, #2AD2FF 40%, rgba(180,180,180,1) 40%);
    }
    50%{
        background: linear-gradient(90deg, #2AD2FF 50%, rgba(180,180,180,1) 50%);
    }
    60%{
        background: linear-gradient(90deg, #2AD2FF 60%, rgba(180,180,180,1) 60%);
    }
    70%{
        background: linear-gradient(90deg, #2AD2FF 70%, rgba(180,180,180,1) 70%);
    }
    80%{
        background: linear-gradient(90deg, #2AD2FF 80%, rgba(180,180,180,1) 80%);
    }
    90%{
        background: linear-gradient(90deg, #2AD2FF 90%, rgba(180,180,180,1) 90%);
    }
    100%{
        background: linear-gradient(90deg, #2AD2FF 100%, rgba(180,180,180,1) 100%);
    }
    /* мне было лень делать по-человечекси, простите */
}
.body-box2{
    position: fixed;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.53);
    animation: showmodal2 .5s ease;
}

.error{
    width: 500px;
    min-height: 400px;
    padding-bottom: 30px;
    background-color: #f0f0f0;
    border-radius: 40px;
    box-shadow: 0px 0px 50px #00000042;
    text-align: center;
    animation: showmodal .5s ease;
    border-bottom-left-radius: 0;
}

.error p{
    margin: 0;
    font-size: 120%;
}

.error button{
    margin-top: 20px;
}

.error img{
    width: 30%;
    margin-top: 40px;
}

@keyframes showmodal{
    0%{
        transform: translateY(200%);
    }
    100%{
        transform: translateY(0%);
    }
}

@keyframes showmodal2{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

.questionsec{
    background-color: #ffffff;
    padding: 20px;
    border-radius: 20px;
}

#questionText{
    margin-top: 0;
}

.hymn h3{
    margin: 2px;
}

.hymn h1{
    margin-top: 0;
}

.downmark{
    border: 0;
    border-bottom: 2px solid rgb(0, 0, 0);
    font-family: TorusBold;
    font-size: 19px;
    text-align: center;
    width: 20px;
    margin: 0;
    height: 20px;
}

.obrazec h2{
    background-color: #ffffff;
    padding: 7px;
    border-radius: 7px;
    margin: 5px;
}

.obrazec h1{
    margin: 0;
}

.obrazec div{
    flex-direction: column;
}

.obrazec{
    display: flex;
}
.checker{
    width: 100%;
}

.imagebutton{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.imagebutton img{
    width: 200px;
    border-radius: 10px;
}

.character{
     width: 100px;
     animation-duration: .5s;
     animation-timing-function: ease-in-out;
     animation-fill-mode: forwards;
}

@keyframes onestant {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(185%);
    }
}

@keyframes twostant {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(370%);
    }
}

@keyframes threestant {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(535%);
    }
}

@keyframes fourstant {
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(710%);
    }
}

.flex2 img{
    transition: transform .2s ease;
}

.flex2 img:hover{
    transform: scale(120%);
    cursor: pointer;
}

.qr{
    z-index: 1000;
    width: 100px;
    top: 20%;
    right: 10%;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 10px;
}

#character-first{
    max-width: 251px;
}

b{
    font-style: italic;
}


.main-flex{
    display: flex;
    flex-direction: row;
}

.one-divscreen{
    width: 60%;
}

.two-divscreen{
    width: 40%;
}

.mbl-btn{
    display: none;
}

.non-mbl-btn{
    display: block;
}

.misterimage{
    height: 100%;
    width: 60%;
}


@media screen and (max-width: 1310px) and (-webkit-min-device-pixel-ratio: 1){
    #questionText{
        font-size: 100%;
    }
}

@media screen and (max-width: 1110px) and (-webkit-min-device-pixel-ratio: 1){
    #questionImg{
        margin: 0;
        width: 100%;
        min-width: 100px;
    }
}


@media screen and (max-width: 810px) and (-webkit-min-device-pixel-ratio: 1){
    .main-flex{
        flex-direction: column;
    }

    body{
        overflow-y: none;
        overflow-x: none;
    }

    .body-box{
        overflow-y: scroll;
        position: fixed;
        display: flex;
        width: 100%;
        height: 100%;
        flex-wrap: wrap;
        text-align: center;
    }

    .one-divscreen{
        width: 100%;
    }

    #in-game{
        padding: 20px;
        margin: 20px;
    }

    .mbl-btn{
        display: block;
        margin-right: auto;
        margin-left: auto;
    }
    
    .non-mbl-btn{
        display: none;
    }

    #age-first{
        display: flex;
        flex-direction: column
    }

    .flex2{
        flex-direction: column;
        align-items: center
    }

    .two-divscreen{
        width: 100%;
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .two-divscreen div{
        width: 225px;
    }

    button{
        min-width: 200px;
        min-height: 88px;
    }

    .qr{
        display: none
    }

    .stantions{
        display: block;
        height: 100%;
        width: 200px;
        margin-right: auto;margin-left: auto;
    }

    .stantions img{
        width: 75%;
    }

    .line{
        display: none;
    }

    .error{
        height: auto;
        display: flex;
        flex-direction: column;
        align-content: center;
        align-items: center;
        justify-content: center;
        padding-bottom: 30px;
    }
    .tabletop{
        align-items: center;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        display: flex;
    }
    #questionImg{
        margin: 0;
        width: 100%;
        min-width: 100px;
    }
    .questionsec{
        min-width: calc(100% - 40px);
    }
    .variants{
        min-width: 100%;
    }
    .misterimage{
        width: 100%;
        height: auto;
    }
    .activatedline{
        display: none;
    }
    .obrazec h2{
        width: 100%;
    }
    .obrazec{
        width: 100%;
    }
    .checker{
        width: 100%;
        display: s;
        margin-right: auto;
        margin-left: auto;
    }
    @keyframes onestant {
    }
    
    @keyframes twostant {
    }
    
    @keyframes threestant {
    }
    
    @keyframes fourstant {
    }

    #questionText{
        font-size: 150%;
    }
}