
/* reset */
* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}


body {
    font-family: 'Sora', sans-serif;
    background-color:hsl(0, 0%, 7%);
    color:hsl(0, 0%, 100%);
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}
.container {
    display:flex;
    flex-direction:column;
    max-width:900px;
    width:100%;
    gap:1.5rem;
    padding:32px;
}
/* header styling */
.top-bar {
    display:flex;
    justify-content:space-between;
    width:100%;
    align-items:center;

}
.top-bar h1::before {
    content:"⌨️";
    
}
.top-bar h1 {
    font-size:20px;
    font-weight:600;
    color:hsl(0, 0%, 100%);
}

.top-bar p {
    font-size:10px;
    font-weight:400;
    color:hsl(240, 3%, 46%);
    opacity:0.5;
}
.personal-best {
    font-size:10px;
    font-weight:400;
    color:hsl(240, 1%, 59%);

}
.personal-best span {
    color:hsl(0, 0%, 100%);
    font-weight:600;
}


.settings {
    display:flex;
    justify-content:space-between;
    width:100%;
    align-items:center;
   
}
.setting {
    display:flex;
    align-items:center;
    gap:10px;
}
/* Typing area styling */

.typing-area {
    width:100%;
}
.typing-test {
    line-height:1.9;
    font-size:16px;
}

span {
    font-size:12px;
    font-weight:400;
    color:hsl(240, 3%, 46%);
    margin:10px;
    
}

/* wpm, accuracy, time styling */
 #wpm {
 
    color:hsl(0, 0%, 100%);
    font-weight:600;
}
 #accuracy {
    color:hsl(354, 63%, 57%);
    font-weight:600;
}
 #time {
    color:hsl(49, 85%, 70%);
    font-weight:600;
}

label {
    font-size:12px;
    font-weight:400;
    color:hsl(240, 3%, 46%);
}
button {
    background-color:hsl(0, 0%, 7%);
    border:1px solid hsl(240, 3%, 46%);
    border-radius:5px;
    padding:3px 5px;
    font-size:10px;
    font-weight:400;
    color:hsl(240, 3%, 46%);
    cursor:pointer;
}
.easy, .medium {
    color:hsl(0, 0%, 100%);
    opacity:0.8;
   
}
.hard {
    color:hsl(210, 100%, 65%);
    opacity:0.8;
    border:1px solid hsl(210, 100%, 65%);
}
.timed {
    color:hsl(210, 100%, 65%);
    opacity:0.6;
  
}
.passage {
    color:hsl(0, 0%, 100%);
    opacity:0.6;
   
}

.divider {
    border:none;
    height:1px;
    background-color:hsl(240, 3%, 46%);
    opacity:0.2;
    width:100%;
 
}
p .green {
    color:hsl(140, 63%, 57%);
    font-size:16px;
    font-weight:600;
}
.underline {
   text-decoration:underline;
   text-decoration-color:hsl(354, 63%, 57%);
   color:hsl(354, 63%, 57%);
   text-decoration-thickness: 2px;
   font-size:16px;
   font-weight:600;
  
}
p .grey {
    background-color:hsl(240, 1%, 59%);
    font-size:16px;
    font-weight:600;
    opacity:0.9;
}
/* restart button styling */
.restart-btn {
    display:flex;
    justify-content:center;
    margin:0 auto;
    background-color:hsl(0, 0%, 15%);
    border-radius:5px;
    padding:10px 15px;
    font-size:12px;
    font-weight:600;
    border:none;
    gap:5px;
    color:hsl(0, 0%, 100%);
    cursor:pointer;
}

.restart-btn img {
    width:15px;
    height:15px;
}
/* Responsive Design */
@media (max-width:600px) {
    .settings {
        flex-direction:column;
        gap:15px;
    }
}
.attribution {
    display:none;
   
}