@font-face {
    font-family: 'LT Superior Serif';
    src: url('fonts/LTSuperiorSerif-Regular.woff2') format('woff2'),
         url('fonts/LTSuperiorSerif-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'LT Superior Serif', Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
}

textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

select, button {
    padding: 10px;
    margin-right: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.output {
    margin-top: 20px;
    white-space: pre-wrap; /* Preserve white spaces */
    /* Allow long masked words to break and not overflow the container */
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
    background-color: #efefef;
    padding: 10px;
    border-radius: 5px;
}

/* Ensure form controls respect container width on small screens */
textarea, select, button {
    box-sizing: border-box;
    max-width: 100%;
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    textarea { font-size: 14px; }
}

.page-heading {
    text-align: center;
    margin-bottom: 12px;
}

.page-heading h1 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

.home-button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
    flex-shrink: 0;
}

.home-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.credits {
    max-width: 600px;
    margin: 12px auto 30px;
    text-align: center;
    color: #666;
}
.credits a { color: inherit; text-decoration: underline; }
