/* --- general --- */

p {
    margin: 0;
}

/* --- layout --- */

#content {
    align-items: center;
    justify-content: center;
}

/* --- border --- */

.border {
    border: 0.5px solid #cbcbcb;
    border-radius: 10px;
    padding: 10px 20px;
}

/* --- text window --- */

#typing-test {
    max-width: 775px;
    transition: width 0.5s;
    width: 75%;
}

#text-window p span {
    color: #cbcbcb;
    font-family: "Roboto Mono";
    font-size: 12pt;
    font-weight: 700;
    line-height: 2em;
    transition-duration: 0.5s;
    transition-property: font-size, line-height;
}

#text-window p span.active {
    animation: blink 1s ease-in-out infinite;
    border-bottom: 2px solid #94aee3;
    color: #94aee3;
}

#text-window p span.correct {
    color: #8cb88e;
}

#text-window p span.incorrect {
    background: #ffd6d1;
    color: #ed556a;
}

#text-window p.disabled {
    opacity: 0.3;
    transition: opacity 0.5s;
}

/* --- input field --- */

#input-field {
    box-sizing: border-box;
    height: 16px;
    opacity: 0;
    z-index: -1;
}

/* --- status bar --- */

#status-bar {
    background-color: #353e43;
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.bar-item {
    gap: 4px;
    justify-content: center;
}

.bar-item p {
    color: #ffffff;
    font-family: "Roboto Mono";
    font-size: 9pt;
    font-weight: 300;
}

#reset-btn {
    background: none;
    border: none;
    transition: transform 0.1s;
}

#reset-btn i {
    color: #cbcbcb;
    font-size: 20px;
    opacity: 0.3;
    transition: transform 0.5s;
}

#reset-btn i:hover {
    cursor: pointer;
    opacity: 1;
    transform: rotate(180deg);
}

#reset-btn:active {
    transform: scale(0.9);
}

/* --- animations --- */

@keyframes blink {
    50% {
        border-bottom-color: transparent;
    }
}

/* --- media queries --- */

@media only screen and (max-width: 499px) {
    #content {
        align-items: flex-start;
        padding-top: 64px;
    }

    #typing-test {
        width: 90%;
    }

    #text-window p span {
        font-size: 11pt;
        line-height: 1.5em;
    }
}
