body {
    background-color: #0f0c1a;
    overflow: hidden;
    display: flex;
    justify-content: center;
    color: white;
    letter-spacing: 1.5px;
    user-select: none;
    background-image: url("assets/bg.jpg");
    background-size: cover;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.5);
}

#main{
    z-index: 10;
    height: 100%;
    width: 100%;
    left: -10%;
    top:0;
    position: absolute;
    display: flex;
    justify-content: center;
}

#game {
    top: 0;
    width: 20%;
    height: 100%;
    background: url("assets/background.png");
    background-position: center;
    background-size: 100% 25%;
    position: absolute;
    display: flex;
    justify-content: center;
    z-index: -1;
    animation: backgroundScroll 10s linear infinite;
    border-left: solid 1rem #0a0812 ;
    border-right: solid 1rem #0a0812 ;
}

@keyframes backgroundScroll {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 0 100%;
    }
}

#rocket{
    padding: 2rem;
    position: absolute;
    background: url("assets/rocket.png") no-repeat;
    background-size: cover;
    width: 130px;
    height: 130px;
    bottom: 2rem;
    animation: rocketIdle 1s linear infinite;
}

@keyframes rocketIdle {
    from {
        bottom: 2.25rem;
    }
    to {
        bottom: 2rem;
    }
}

#progressBar{
    border-radius: 7px;
    width: 1rem;
    height: 60%;
    margin-top: 8%;
    box-shadow: 2px -2px 0.2rem#0a0812;
    margin-right: 32%;
    background-color: #231947;
    position: fixed;
    z-index: 1;
    rotate: 180deg;
}
#progress{
    border-radius: 7px;
    width: 1rem;
    height: 0%;
    background-color: #ff5dff;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease-in-out;
}
#right{
    margin-left: 30%;
}
#questions{
    position: fixed;
    width: 30%;
    height: 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 8%;
    box-shadow: 2px 2px 0.2rem#615883;
    border-radius: 10px;
    background-color: #231947;
    align-items: center;
    z-index: 1;
    font-size: 50px;
}
#answerCon{
    display: flex;
    flex-direction: row;
    gap: 20px;
    width:75%;
}
#answer{
    position: relative;
    bottom: 20px;
    border-radius: 15px;
    height: 30px;
    width:80%;
    text-align: center;
    font-size: 2rem;
    padding: 10px;
    border: none;
}
#submit{
    position: relative;
    border-radius: 10px;
    height: 100%;
    min-width: 50px;
    bottom: 20px;
    width: 10%;
    border: none;
    background-color: rgb(5, 202, 5);
    color: white;
    font-weight: bolder;
    transition: all 0.3s ease-in-out;
}
#submit:hover{
    scale: 1.1;
}
#submit:active{
    background-color: green;
}
#speedIndic{
    position: fixed;
    width: 30%;
    height: 18.5%;
    display: flex;
    margin-top: 28.5%;
    box-shadow: 2px 2px 0.2rem #615883;
    border-radius: 10px;
    background-color: #231947;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}
#marg{
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}
#bar{
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    transform: scaleX(1.2);
    z-index: 1;
}
#speed{
    min-width: 10px;
    max-width: 100px;
    height: 100px;
    background-color: red;
    border-radius: 50%;
    position: absolute;
    transform: scaleX(1.2);
    z-index: 2;
    transition: all 0.3s ease-in-out;
}
@keyframes rainbow {
    0% { background-color: red; }
    16% { background-color: orange; }
    33% { background-color: yellow; }
    50% { background-color: green; }
    66% { background-color: blue; }
    83% { background-color: indigo; }
    100% { background-color: violet; }
}

#midWrap{
    width: 90px;
    height: 100px;
    background-color: #231947;
    border-radius: 50%;
    transform: scaleX(1.2);
    position: absolute;
    margin-top: 30px;
    z-index: 4;
}
#squareWrap{
    position: absolute;
    z-index: 4;
    background-color: #231947;
    margin-top: 60px;
    width: 200px;
    height: 50px;
}

#indic{
    position: absolute;
    z-index: 10;
}
#results{
    position: fixed;
    width: 40%;
    height: 31%;
    z-index: 12;
    border-radius: 20px;
    background-color: #231947;
    padding: 20px;
    margin-top: 20vh;
    box-shadow: 3px 3px 0.2rem#615883;
    display: none;
}
#results *{
    margin-left: 30px;
}
#cover{
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 11;
    display: none;
    background-position: center;
}

#upd{
    position: absolute;
    z-index: 12;
    color: rgba(0, 0, 0, 0);
    right: 15%;
    font-size: 30px;
    font-weight: bold;
}

@keyframes correct{
    0% {
        color: rgba(0, 0, 0, 0);
        translate: 0 15px;
        
    } 50%{
        color: rgba(0, 233, 0, 1);
        translate: 0 0;
    } 75%{
        color: rgba(0, 233, 0, 0.5);
        translate: 0 -5px;
    } 100%{
        color: rgba(0, 0, 0, 0);
        translate: 0 -15px;
    }
}
@keyframes wrong{
    0% {
        color: rgba(0, 0, 0, 0);
        translate: 0 15px;
        
    } 50%{
        color: rgba(233, 0, 0, 1);
        translate: 0 0;
    } 75%{
        color: rgba(233, 0, 0, 0.5);
        translate: 0 -5px;
    } 100%{
        color: rgba(0, 0, 0, 0);
        translate: 0 -15px;
    }
}