@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wght@300&family=Space+Mono:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    /* outline: 1px solid #f00 !important; */
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #5F7161 !important;
}

.container {
    width: 800px;
    padding: 30px;
}

.intro {
    text-align: center;
    font-size: 25px;
    margin: 20px;
    font-family: 'Roboto', sans-serif;
    color: #fff;
    opacity: 1;
    animation: FadeInOut 3s ease-in-out infinite;
}

@keyframes FadeInOut {
    50% {
        opacity: 0;
    }
}

.container .title {
    text-align: center;
    margin: 20px;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 15px;
}

.name-title {
    font-size: 30px;
    color: #5F7161;
    font-weight: 500;
    font-family: 'Space Mono', monospace;
}

.sub-container .name {
    border: none;
    outline: none;
    /* background-color: transparent; */
    height: 50px;
    width: 50%;
    text-align: center;
    font-size: 20px;
    font-family: 'Space Mono', monospace;
    border-bottom: 2px #5F7161 solid;
}


/* ANIMATION FOR CONTAINER CLOSE AND OPEN */

/* #name-modal {
    cursor: pointer;
    max-height: 0;
    transition: all 0.5s ease-in-out;
}

#name-modal.open {
    max-height: 100%;
}

#leaderboard-modal {
    cursor: pointer;
    max-height: 0;
    transition: all 0.5s ease-in-out;
}

#leaderboard-modal.open {
    max-height: 100%;
} */


.name-button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    outline: none;
    border: none;
    box-shadow: none;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    background-color: #5F7161;
    color: #fff;
    cursor: pointer;
    transition: transform 0.5s ease-in;
}

.name-button:hover {
    transform: scale(1.1)
}

.container .input-field {
    z-index: -999;
    position: absolute;
    opacity: 0;
}

.container .sub-container {
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #fff;
}

.container .name-container {
    padding: 0 0 0 0;
    border-radius: 10px;
    background-color: #fff;

    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center;
    display: inline-block;
}

.sub-container .typing-text {
    max-height: 255px;
    overflow-y: auto;
}

.content {
    font-family: 'Roboto', sans-serif;
}

.typing-text::-webkit-scrollbar {
    width: 0;
}

.typing-text p {
    font-family: 'Space Mono', monospace;
    font-weight: 500;
    font-size: 25px;
    text-align: justify;
    letter-spacing: 2px;
    word-break: break-all;
}

/* COLORS FOR THE WORDINGS */
.typing-text p span {
    position: relative;
    color: #6D8B74;
    transition: background-color 0.3s ease-in-out;
}

.typing-text p span.correct {
    color: #5F7161;
    background-color: #C7E8CA;
}

.typing-text p span.incorrect {
    color: red;
    background-color: #FFD4D4;

}


.typing-text p span.active {
    color: #6D8B74;
}

/* Under Score  */
.typing-text p span.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    opacity: 0;
    background-color: #40513B;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

.sub-container .content {
    display: flex;
    margin-top: 17px;
    padding: 12px 0;
    align-items: center;
    border-top: 1px solid #ccc;
    justify-content: space-between;
}

.content .result {
    display: flex;
    width: calc(100% - 140px);
    justify-content: space-between;
}

.content button {
    border: none;
    outline: none;
    width: 105px;
    padding: 8px;
    margin: 0 6px;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    border-radius: 10px;
    background: #5F7161;
    transition: transform 0.5s ease-in-out;
}

.content button:hover {
    transform: scale(1.1);
}

/* CENTERS THE TEXT IN THE COLUMN OF LI's */
.result li {
    height: 22px;
    display: flex;
    list-style: none;
    align-items: center;
}

.result li:not(:first-child) {
    padding-left: 22px;
    border-left: 1px solid #ccc;
}

.result li p {
    font-size: 19px;
}

.result li span {
    display: block;
    font-size: 20px;
    margin-left: 10px;
}

.result li:not(:first-child) span {
    font-weight: 500;
}

.result li b {
    font-weight: 500;
}

.sub-container .leaderboard-title {
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 15px;
    color: #5F7161;
}

table {
    width: 100%;
    margin: 20px 0;
    font-family: 'Roboto', sans-serif;
}

th {
    height: 30px;
    text-align: left;
    width: 50%;
}

th:not(:first-child) {
    text-align: right;
}

td {

    width: 50%;
    height: 30px;
}

td:not(:first-child) {
    text-align: right;
}