body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 90%;
}

input {
    padding: 10px;
    width: 80%;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #ccc;
}

.results {
    margin-top: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.result-button {
    margin: 1rem;
    background-color: #fff;
    color: #000;

}

.result-button .thai-word {
    font-size: 26px;
}

.result-button .phonetics {
    font-style: italic;
}

.result-button .english {
    font-size: 26px;
}

.error {
    color: red;
}

.success {
    color: green;
}
