/* general styling of the page  */
body {
    box-sizing: border-box;
    margin: 0;
    background-color: #282828;
    font-family: "Raleway", sans-serif;
}

/* setting container to flex to take control of how it looks */
.container {
    padding: 5%;
    padding-top: 2%;
    padding-bottom: 2%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    color: white;
}

/* main text container to contain the text  */
.main-container {
    border: 1px solid grey;
    height: 40%;
    background-color: #222;
    border-radius: 8px;
    padding: 2%;
    box-sizing: border-box;
    font-size: 1.4em;
    font-weight: 300;
    line-height: 1.4;
    position: relative;
}

/* text that is displayed after one iteration is completed  */
.bonus-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 30%;
    font-size: 3em;
    letter-spacing: 20px;
    text-align: center;
    visibility: hidden;
}

/* calculated score that is displayed  */
.score {
    height: 10%;
    text-align: center;
    font-size: 3em;
    font-weight: 100;
}

/* encouraging text to user to keep it up  */
.encouraging-text {
    height: 10%;
    text-align: center;
    font-size: 3em;
    font-weight: 100;
    opacity: 0;
}

/* animate the text for effect  */
.encouraging-text-animated {
    animation: 4s encouraging-text-animation ease;
}

/* set simple keyframes to make the text appear floating  */
@keyframes encouraging-text-animation {
    0% {
        opacity: 0;
        transform: scale(0) translateY(50%);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(0%);
    }
    100% {
        opacity: 0;
        transform: scale(1) translateY(-50%);
    }
}

/* all the necessary information about the game  */
.progress {
    height: 5%;
    display: flex;
    justify-content: space-between;
    font-size: 1.3em;
    font-weight: 200;
}

/* container of the input to start typing the content  */
.typing-area {
    height: 7%;
    background-color: #222;
    border-radius: 8px;
}

/* input where user types  */
.typing-area input {
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    font-size: 1.2em;
    font-family: "Raleway", sans-serif;
    padding: 0 2%;
    background-color: #222;
    color: white;
    border: 1px solid grey;
    border-radius: 8px;
    font-weight: 300;
}

/* button container that plays and pause the song  */
.pause {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* streak bar to keep user excited about their streak */
.loading-bar {
    width: 1%;
    height: 2px;
    background-color: #3f51b5;
}

/* a simple bar for design purpose */
.health-bar {
    width: 100%;
    height: 2px;
    background-color: #00600f;
}

/* background for animated background */
#canvas {
    position: absolute;
    z-index: -1;
    height: 100vh;
    width: 100vw;
    visibility: hidden;
}

/* simple button to restart the game  */
.btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 25px;
    font-size: 18px;
    cursor: pointer;
}

/* progress boards given fixed width to stop the fluctuation of widths due to changing speed */
.speed,
.accuracy {
    width: 240px;
}
