:root {
    --bg-color: #313131;
    --complementary-color: #646464;
    --primary-color: #c9d0d4;
    --secondary-color: #7ac8e0;
    --contrast-color: #d46c6c;
}

html {
    margin: 0;
    padding: 0;

    overflow: hidden;
}

body {
    font-family: "Roboto Mono", Arial, Helvetica, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    font-family: 2.5rem;
}

#caret {
    position: absolute;
    border-radius: 50px;
    background: orange;
    animation: blink 1s step-start infinite;
    width: 2px;
    height: 1em;
    transition: left 0.1s ease, top 0.1s ease;
}

@keyframes blink {
    50% { opacity: 0; }
}

.word {
    margin-right: 0.5vw;
}

.word letter {
    margin-right: 1px
}

.correct {
    color: var(--secondary-color);
}

.incorrect {
    color: var(--contrast-color);
}

.untyped {
    color: var(--complementary-color);
}

#typingContainer {
    position: relative;

    margin: 30vh 20vw;
    font-size: 2.5vmin;
}

#typingField {
    height: 20vh;

    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;

    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    
    user-select: none;
}

#contentWrapper {
    display: flex;
    flex-wrap: wrap;

    flex-direction: row;

    transition: transform 0.2s ease;
}

#progressBar {
    background-color: var(--complementary-color);
    position: relative;
    margin: 20px 10px;
    height: 10px;
    width: 100%;
    border-radius: 50px;

    display: flex;
    align-items: left;
}

#progress {
    background-color: var(--secondary-color);
    position: absolute;

    top: 0;
    left: 0;

    border-radius: 50px;
    transition: width 0.3s ease;

    height: 100%;
    width: 0;
}

#incorrect {
    background-color: var(--contrast-color);
    position: absolute;

    top: 0;
    left: 0;

    border-radius: 50px;
    transition: width 0.3s ease;

    height: 100%;
    width: 0;
}

button {
    color:#3f3b3b;
    background-color: #c9d0d4;
}

.pillBtn {
    padding: 10px 25px;
    border: none;
    margin-right: 10px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pillBtn:hover {
    filter: brightness(85%);
    transform: scale(1.05);
    box-shadow: 0, 6px 10px rgba(0,0,0,0.2);
}

html {
    scroll-behavior: smooth;
}