body {
    font-family: sans-serif;
    background-color: #f2f2f2;
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 800px;
    text-align: center;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
}

#search-form {
    margin-bottom: 2em;
}

#search-input {
    width: 100%;
    padding: 1em;
    font-size: 1.2em;
    border: 1px solid #ccc;
    border-radius: 25px;
    box-sizing: border-box;
}

#results-container {
    text-align: left;
}

.result-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.result-card h2 {
    margin-top: 0;
    font-weight: bold;
    font-size: 1.5em;
}

.result-card .part-of-speech {
    display: inline-block;
    background-color: #eee;
    color: #555;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 0.5em;
}

.result-card p {
    margin: 0.5em 0;
}

.result-card .synonyms {
    font-style: italic;
    color: #666;
}

.ai-btn {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: bold;
    margin-top: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(110, 142, 251, 0.4);
}

.example-box {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }

    #search-input {
        font-size: 1em;
    }

    .result-card {
        padding: 1em;
    }
}