* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, #fdfbfb, #ebedee);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

a {
    color: #6c63ff;
    text-decoration: none;
    transition: 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.container {
    margin: 100px auto;
    max-width: 600px;
    padding: 0 20px;
}

header {
    margin-bottom: 30px;
}

h1 {
    text-align: center;
    font-weight: 800;
    font-size: 38px;
    line-height: 1.4;
    color: #6c63ff;
    background: linear-gradient(to right, #a18cd1, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    margin-bottom: 20px;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prompt {
    padding: 16px 20px;
    border: 1px solid rgba(100, 100, 150, 0.2);
    width: 100%;
    flex: 1 1 auto;
    font-size: 16px;
    border-radius: 50px;
    background-color: #fff;
    transition: border-color 0.3s ease;
    color: #444;
}

.prompt:focus {
    outline: none;
    border-color: #6c63ff;
}

.submit-button {
    background: linear-gradient(to right, #b6fbff, #83a4d4);
    color: #fff;
    border: none;
    width: 150px;
    font-size: 16px;
    border-radius: 50px;
    padding: 14px 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: linear-gradient(to right, #83a4d4, #b6fbff);
    transform: scale(1.03);
}

.hint {
    line-height: 1.5;
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.7;
    color: #666;
}

.results {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.75);
    padding: 16px 20px;
    line-height: 1.3;
    border-left: 4px solid #6c63ff;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
    white-space: pre-line;
    animation: fadeIn 0.6s ease;
    margin-top: 8px;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
    color: #777;
    padding-top: 20px;
}

.generating {
    animation: blink-animation 1s steps(5, start) infinite;
    font-style: italic;
    font-weight: 500;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .prompt {
        width: 100%;
    }

    .submit-button {
        width: 100%;
    }
}