/* Import Google Font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600;700&display=swap");


/* Loading Container Styles */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Horizontally centers children */
    justify-content: center; /* Vertically centers children */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    z-index: 9999;
}

.loading-container .title{
    font-size: 10vw;
    color: white;
    text-align: center;
}

.loading-container .logo img {
    margin-left: 22%;
    width: 60%;
    height: auto;
    margin-bottom: 20px; /* Keeps spacing below the image */
}

.loading-bar-container {
    width: 80%;
    max-width: 400px;
    text-align: center;
}

.loading-bar {
    width: 100%;
    height: 10px;
    background-color: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress {
    height: 100%;
    width: 0;
    background-color: deepskyblue;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.loading-text {
    font-size: 16px;
    color: #f1f5f9;
}














* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Merriweather", sans-serif;
}

body {
    display: flex;
    padding: 0 10px;
    min-height: 100vh;
    background: #0f172a;
}

::selection {
    color: #fff;
    background: deepskyblue;
}

.wrapper {
    width: 100%;
    padding: 25px;
    background: #0f172a;
    color: #f1f5f9;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.wrapper .input-field {
    opacity: 0;
    z-index: -999;
    position: absolute;
}

.wrapper .content-box {
    padding: 13px 10px 0;
    border-radius: 10px;
    border: 1px solid #bfbfbf;
}

.content-box .typing-text {
    max-height: 80%;
}

.typing-text::-webkit-scrollbar {
    width: 0;
}

.typing-text p {
    font-size: 19px;
    text-align: justify;
    letter-spacing: 1px;
}

.typing-text p span {
    position: relative;
}

.typing-text p span.correct {
    color: lawngreen;
}

.typing-text p span.incorrect {
    color: #cb3439;
    outline: 1px solid #fff;
    background: #ffc0cb;
    border-radius: 4px;
}

.typing-text p span.active {
    color: deepskyblue;
}

.typing-text p span.active::before {
    position: absolute;
    content: "";
    height: 2px;
    width: 100%;
    bottom: 0;
    left: 0;
    opacity: 0;
    border-radius: 5px;
    background: deepskyblue;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    50% {
        opacity: 1;
    }
}

.content-box .content {
    margin-top: 17px;
    display: flex;
    padding: 12px 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #bfbfbf;
    line-break: auto;
}

.content button {
    outline: none;
    border: none;
    width: 105px;
    color: #fff;
    padding: 8px 0;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    background: deepskyblue;
    transition: transform 0.3s ease;
}

.content button:active {
    transform: scale(0.97);
}

.content .result-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.content button{
    margin: 0 auto;
    width: 100%;
}

.result-details li {
    display: flex;
    width: 100%;
    height: 40px;
    list-style: none;
    position: relative;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.result-details li p {
    font-size: 19px;
}

.result-details li span {
    display: block;
    font-size: 20px;
    margin-left: 10px;
}

li span b {
    font-weight: 500;
}

li:not(:first-child) span {
    font-weight: 500;
}

.errors span {
    color: #facc15;
}

.timeLeft span {
    color: #cb3439;
}

.privacy-policy{
    text-decoration: none;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    margin-top: 3vh;
    text-align: center;
}


.privacy-policy a{
    color: white;
    text-decoration: none;
}





.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.time-difficulty-btn, .para-difficulty-btn {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: deepskyblue;
    color: white;
}

.time-difficulty-btn:hover, .para-difficulty-btn:hover {
    background-color: #0056b3;
}