:root {
    --primary: green;
    --dark: #1F2937;
    --darkdark: #111827;
    --light: #F3F4F6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 1px;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul {
    display: inline-block;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin-right: 20px;
}

body {
    background-image: url("images/codebackground.jpg");
    background-size: 95%;
}

text {
    width: 100%;
}

textarea {
    text-align: center;
    position: absolute;
    width: 60%;
    height: 50%;
    left: 20%;
    top: 30%;
    font-size: 18px;
    background-color: rgb(7, 85, 7);
}

a {
    text-decoration: none;
    color: whitesmoke;
}

.container {
    max-width: 1300px;
    margin: auto;
    padding-left: 25px;
    padding-right: 25px;
}

.header {
    background: rgb(0, 0, 0);
}

h1 {
    color: white;
}


script {
    color: green;
}

h2 {
    color: white;
    font-size: 60px;
    text-align: center;
}

.main-controls {
    display: flex;
    align-items: center;
    justify-content: center;
}

button {
    appearance: none;
    background: none;
    outline: none;
    user-select: none;
    cursor: pointer;

    color: var(--light);
    font-size: 1.125rem;
    background-color: var(--primary);
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;

    transition: 0.4s;
}

button:hover {
    opacity: 0.7;
}

button:active {
    background-color: var(--dark);
}
.back{
    align-items: right;
    display: inline-block;
    background: white;
    color: black;
    padding: 8px 30px;
    margin: 30px 0;
    border-radius: 30px;
    transition: background 0.5s;
}
p {
    color: white;
}
.table-header{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: larger;
    color: rgb(0, 148, 0);
}

.wrapper {
    transform: translate(40%, 25%);
    width: 770px;
    padding: 35px;
    background: black;
    border-radius: 10px;
}

.wrapper .content-box {
    padding: 13px 20px 0;
    border-radius: 10px;
    border: 1px solid green;
    margin-top: 10%;
    min-width: 1000px;
    max-height: 500px;
}
.wrapper .input-field{
    z-index: -999;
    opacity: 0;
    position: absolute;
}
.content-box .typing-text{
    max-height: 255px;
    overflow-y: auto;
}

.typing-text::-webkit-scrollbar{
    width: 0;
}

.typing-text p{
    font-size: 21px;
    text-align: justify;
    letter-spacing: 1px;
    word-break:break-all;
}

.typing-text p span{
    position: relative;
}

.typing-text p span.correct{
    color: rgb(11, 224, 57);
}

.typing-text p span.incorrect{
    color: #cb3439;
    background: #ffc0cb;
    outline: 1px solid #fff;
    border-radius: 4px;
}

.typing-text p span.active{
    color: #17a2b8;
}
.typing-text p span.active::before{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background-color: #17a2b8;
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    50%{
        opacity: 1;
    }
}

.content-box .content{
    display: flex;
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid #ccc;
    justify-content: space-between;
}

.content .result-details{
    display: flex;
    width: calc(100% - 140px);
    justify-content: space-between;
    color: white;
    margin-top: 10%;
}

.result-details li{
    display: flex;
    list-style: none;
}

.result-details li span{
    display: block;
    margin-left: 0;
}
