/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* ===== ANIMATED BACKGROUND ===== */
body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c5364, #1c1c1c);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    color: #ffffff;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== MAIN CONTAINER ===== */
.container {
    width: 95%;
    max-width: 1000px;
    padding: 30px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    transition: 0.3s ease;
}

/* ===== HEADING ===== */
h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* ===== STATS SECTION ===== */
.stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 14px;
    background: rgba(255,255,255,0.05);
    padding: 10px 15px;
    border-radius: 10px;
}

.stats div {
    margin: 5px 10px;
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 20px;
}

#progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f5a0, #00d9f5);
    transition: width 0.3s ease;
}

/* ===== PARAGRAPH BOX ===== */
#paragraph {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 16px;
    min-height: 140px;
    letter-spacing: 0.5px;
}

/* ===== CHARACTER STATES ===== */
.correct {
    color: #00ff88;
}

.wrong {
    color: #ff4d4d;
    text-decoration: underline;
}

/* ===== TEXTAREA ===== */
textarea {
    width: 100%;
    height: 130px;
    border-radius: 12px;
    border: none;
    outline: none;
    padding: 15px;
    font-size: 16px;
    resize: none;
    background: rgba(255,255,255,0.08);
    color: white;
    transition: 0.3s ease;
}

textarea:focus {
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 10px #00f5a0;
}

/* ===== BUTTON ===== */
button {
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(90deg, #00f5a0, #00d9f5);
    color: #000;
    transition: 0.3s ease;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 170, 0.4);
}

/* ===== RESULT SECTION ===== */
#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    text-align: center;
    font-size: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }

    h1 {
        font-size: 24px;
    }

    #paragraph {
        font-size: 14px;
    }
}