*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    font-family: "Roboto Mono", monospace;
}

body {
    background-color: #364E6C;
    height: 100vh;
}

p {
    line-height: 30px;
}

h1,
.results label,
button {
    text-transform: uppercase;
}

h1,
#progress,
.results label,
button {
    color: #FFFFFF;
}

.results label,
button {
    font-size: 1.25rem;
}

.overlay,
#user-typing,
button,
.result {
    border-radius: 10px;
}

#dark {
    z-index: 998;
    height: 100vh;
    width: 100vw;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.461);
}

.disappear {
    display: none;
}

.wrapper {
    width: 80vw;
    margin: 0 auto;
}

.overlay {
    display: flex;
    flex-direction: column;

    background-color: #FFFFFF;
    position: absolute;
    top: calc(50vh - (187px / 2));
    left: calc(50vw - (462px / 2));
    padding: 15px;
    z-index: 999;
    transition: transform 2s ease-in-out;
}

.overlay p:last-of-type {
    padding-bottom: 20px;
}

.overlay button {
    justify-self: center;
}

.slideout {
    transform: translateX(100vw);
}

.bolded {
    font-weight: bold;
}

button {
    padding: 10px 40px;
    color: #FFFFFF;
    border: none;
    background-color: #0C356B;
}

header {
    padding: 50px 0 30px;
    text-transform: uppercase;
    font-size: 2.25rem;
}

.text-timer {
    display: flex;
    flex-direction: row;
}

#user-typing {
    margin: 30px 20px 30px 0;
    padding: 20px;
    background-color: #FFFFFF;
    position: relative;
    width: calc(80vw * (10/12));
}

.blackout {
    background-color: #808080 !important;
}

.passage {
    color: #808080;
    font-weight: 400;
}

#typing {
    opacity: 0;
    position: absolute;
    cursor: default;
}

.user-input {
    position: absolute;
    top: 20px;
}

#typed-out {
    font-weight: bold;
    width: 1080px;
}

.incorrect {
    color: red;
}

.incorrect.character {
    background-color: #FFFFFF;
}

#countdown-timer {
    position: relative;
    top: 173px;
    z-index: 50;
    right: 31px;
    font-size: 4.25rem;
    line-height: normal;
    text-align: right;
}

img {
    width: 184px;
    height: max-content;    
    position: relative;
    top: 15px;
}

.results {
    display: flex;
}

.results label {
    padding-right: 40px;
}

.results p {
    padding: 15px 30px;
    background-color: #FFFFFF;
    width: 145px;
}

.results label:last-of-type,
.results button {
    margin-left: 250px;
}