*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1em;
    color: white;
}

body{
    background-color: #2f2f40;
}

header{
    text-align: center;
    background-color: #2a2a3d;
    padding: 1em;
    border-bottom: 2px solid black;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    font-size: 30px;
}

.main{
    margin: 2em;
    display: flex;
    height: 90vh;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0px 15px rgba(255, 255, 255, 0.521);
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main.loader{
    opacity: 1;
    transform: translateX(0);
}

/*Styling the score board*/
.score-board{
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 0.5em;
    width: 20%;
    background-color: #39394d;
    color: #f8fafc;
    justify-content: center;
    align-items: center;
    border-right: 2px solid rgb(37, 37, 37);
    overflow-y: auto;
}

.scoreCount{
   font-size: 1.2rem;
   display: inherit;
   flex-direction: column;
   gap: 1em;
}

/*Styling the display and description div*/
.display{
    flex: 1;
    background: #42425a;
}

.description, .test-display, .result{
    padding: 1em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.description{
    gap: 0.5em;
}

.test-display, .result{
    display: none;
}

/*Styling the test section*/
.timer{/*Only show when user starts to type something*/
    display: none;   
}

.sentence{
    margin: 0.5em 0;
    padding: 0.2em;
    border-radius: 20px;
    border: 3px solid black;
    width: 100%;
    height: 90%;
    overflow: hidden;
}

li{
    list-style: none;
}

/*Styling result div*/
.result{
    gap: 2em;
}

.result p, h2{
    font-size: 1.5em;
}

/*Styling button*/
button{
    padding: 0.3em;
    border: none;
    border-radius: 20px;
    background-color: black;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.3);
}

button:hover{
    transform: scale(1.1);
    background-color: white;
    color: black;
}

button:active{
    transform: translateZ(5px);
}

/*Styling the color of span*/
span{
    color: grey;
    padding: 3px;
}

/*Making the website responsive*/
@media (max-width: 950px){
    .main{
        flex-direction: column-reverse;
        height: auto;
    }

    .score-board{
        width: 100%;
    }
}