body {
    background-color: #1e1e2f;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

textarea {
    width: 90%;
    max-width: 600px;
    height: 100px;
    background-color: #29293d;
    color: #a0ffa0;
    border: 1px solid #4b4b6e;
    border-radius: 5px;
    padding: 10px;
    resize: none;
    font-size: 1em;
}

button {
    background-color: #7c4dff;
    color: #e0e0e0;
    border: none;
    padding: 10px 20px;
    margin: 10px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #5c34b3;
}

#progress-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 20px auto;
}

#progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#4bffde 0%, #7c4dff 0%);
    transform: rotate(-90deg);
}

#progress.animate {
    animation: progress-animation 10s linear;
}

@keyframes progress-animation {
    0% {
        background: conic-gradient(#4bffde 0%, #7c4dff 0%);
    }
    100% {
        background: conic-gradient(#7c4dff 100%, #7c4dff 100%);
    }
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #e0e0e0;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

#pre-result {
    font-size: 1.2em;
    color: #4bffde;
    margin-top: 20px;
}

#result {
    font-size: 3em;
    margin-top: 20px;
    font-weight: bold;
    background: linear-gradient(to right, #e43577, #5937de);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 3s infinite alternate;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

#congratulations {
    font-size: 1.8em;
    margin-top: 10px;
    color: #4bffde;
}

/* Responsive Design */
@media (max-width: 768px) {
    #progress-container {
        width: 200px;
        height: 200px;
    }

    #progress-text {
        font-size: 1.5em;
    }

    textarea {
        width: 95%;
        height: 80px;
        font-size: 0.9em;
    }

    button {
        font-size: 0.9em;
        padding: 8px 16px;
    }

    #pre-result, #result, #congratulations {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    #progress-container {
        width: 150px;
        height: 150px;
    }

    #progress-text {
        font-size: 1.2em;
    }

    textarea {
        width: 100%;
        font-size: 0.8em;
    }

    button {
        font-size: 0.8em;
        padding: 6px 12px;
    }

    #pre-result, #result, #congratulations {
        font-size: 0.9em;
    }
}
