/* Modern reset + Page positioning */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    font-family: monospace;
}

.wrapper {
    display: block;
    width: 90vw;
    height: 100vh;
    max-width: 800px;
    margin: 0px auto;
    align-content: center;
}

.board {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 20px;
    min-height: 350px;
    margin: 15px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    color: #2c3e50;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Input field container styling */
.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Input text elements styling */
input {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s;
}

input:focus {
    border-color: #3b82f6;
}

/* Button styling */
button {
    padding: 12px 20px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

button:hover {
    background-color: #2563eb;
}

#charCounter {
    font-size: 0.85rem;
    color: #888;
    align-self: center; /* Aligns nicely if using flexbox layout on the form */
}

.header, .footer {
    margin: 5px auto;
    text-align: center;
}

.header {
    font-size: 1.5rem;
}

@media (pointer: coarse), (hover: none) {
    .wrapper {
        width: 95vw !important;
    }
}