@import url('https://fonts.googleapis.com/css2?family=Roboto&family=Sevillana&display=swap'); 
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz@9..144&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Roboto&family=Sevillana&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Patrick+Hand&family=Roboto&family=Sevillana&display=swap');

*{
    box-sizing: border-box;
    margin:0;
    padding:0;
}
body{
    background-color: #F38181;
}
header{
    text-align:center;
    margin:5px;
}

h1{
    display:inline-block;
    background-color: #95E1D3;
    border:solid;
    border-width: 2px;
    border-color: black;
    border-radius: 8px;
    padding:calc(1vw + 4px) calc(8px + 3vw);
    margin:4px;
    color:#590DE1;
    word-wrap: break-word;
    font-family: Fraunces;
    font-size: 1.6rem;
    text-shadow: 2px 2px 5px #8682f9;
    
}
main{
    display:flex;
    flex-direction: column;
}
.counter{
    text-align:center;
    font-size: calc(2vw + 3rem);
    padding:5px;
    margin:5px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color:#FCE38A;
    font-weight: 600;
    text-shadow: 2px 2px black;
}
.content{
    background-color: #EAFFD0;
    border-radius: 15px;
    margin: 8px;
    margin-left: calc(5px + 10vw);
    margin-right: calc(5px + 10vw);
    display:flex;
    flex-direction: column;
    padding:10px;
    font-family: 'Patrick Hand', cursive;
    font-size:1.4rem;
    box-sizing: border-box;
    letter-spacing: 1px;
    word-spacing: 3px;
}
.sample-text{
    padding:10px;
    padding-left:calc(2px + 10px);
    background-color: #EAFFD0;

}
.input-text{
    border:solid;
    border-radius: 10px;
    padding:10px;
    background-color: #FCE38A;
    border-color: #a8975c;
    font-family: 'Patrick Hand', cursive;
    font-size:1.4rem;
    width:100%;
    height:10rem;
    margin:auto;
    resize: none;
    letter-spacing: 1px;
    word-spacing: 3px;
}
input-text:focus{
    border-color:black;
}

footer{
    position: fixed;
    bottom:0;
    left:0;
    right:0;
    height:50px;
    padding:10px;
    text-align: center;
    font-weight: 600;
    font-family: Indie Flower , cursive;
}
span{
    background-color: inherit;
}
.correct{
    color:rgb(0, 151, 0);
}
.incorrect{
    color:rgb(255, 0, 0);
    text-decoration: underline;
}
.buttonn{
    cursor: pointer;
    padding:5px;
    margin:5px;
    border-radius: 5px;
    border-width: 2px;
    background-color: rgb(0, 128, 0);
    border-color: #9c8c55;
    color: #ffffff;
    text-shadow: 1px 1px #000000;
    font-weight: 600;
    font-family: cursive;
    transition: all 0.2s ease-in; 
}
.buttonn:hover,
.buttonn:focus{
    background-color: rgba(0, 255, 0,0.8);
}

.main{
    display:flex;
    flex-direction:column;
    align-items: center;
}
.result{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.speed , .accuracy{
    margin: 10px;
    padding:10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border:solid;
    border-radius: 5px;
    background-color: #FCE38A;
}
#speed ,#accuracy{
    font-size: 3rem;
    font-family: Fraunces, cursive;
}