* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 800px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.converter {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-area, .output-area {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

textarea {
    height: 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

#output-text {
    background-color: #f9f9f9;
}

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

button {
    padding: 10px 15px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357abd;
}

#clear {
    background-color: #e74c3c;
}

#clear:hover {
    background-color: #c0392b;
}

#copy {
    background-color: #2ecc71;
}

#copy:hover {
    background-color: #27ae60;
}

.copy-message {
    text-align: center;
    margin-top: 10px;
    color: #2ecc71;
    font-weight: bold;
    display: none;
}

.copy-message.show {
    display: block;
    animation: fadeOut 2s forwards;
    animation-delay: 1.5s;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@media (max-width: 600px) {
    .buttons {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
}

.word-count {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    text-align: right;
}