body { font-family: sans-serif; } .title { text-align: center; } .main-section { max-width: 900px; margin: 5px auto; } .form { display: flex; flex-direction: column; } .form__field { display: flex; align-items: center; margin: 4px; } .form__field .form__label { margin-right: 8px; } .form__input, .textarea { font-size: 1rem; padding: 4px; border: 2px solid #888888; } .form__button { padding: 4px 10px; border: 2px solid #888888; } .form__input:focus, .textarea:focus, .form__button:focus { outline: 2px solid #5d94ff; } .translation { font-size: 1rem; padding: 4px; } .textarea { resize: vertical; height: 5rem; /* Stretch to form width */ width: 100%; } @media screen and (prefers-color-scheme: dark) { body { background-color: #212529; color: #f8f9fa; } .form__input, .form__button, .textarea { background-color: #131618; border-color: #495057; color: #f8f9fa; } }