body {
    font-family: monospace;
    padding: 20px;
    background: #f7f7f7;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    margin-bottom: 16px;
}

label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    gap: 8px;
}

select {
    /* remove native styling */
    -webkit-appearance: none;  /* Safari/Chrome */
    -moz-appearance: none;     /* Firefox */
    appearance: none;
}

input[type="number"],
input[type="text"],
select {
    font-family: monospace;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 80px;
    outline: none;
    box-sizing: border-box;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

button {
    margin-top: 12px;
    padding: 6px 14px;
    font-family: monospace;
    font-size: 14px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #222;
    color: #eee;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #333;
}

button:active {
    background: #111;
}

#asciiCat {
    white-space: pre;
    background: #222;
    color: #eee;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    overflow-x: auto;
}

#githubLink {
    margin-top: 20px;
    font-size: 0.9em;
    text-align: center;
}

.table-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

#output-header {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

#copy {
    margin:0; 
    padding:4px 10px; 
    font-size:14px;
}

.table-field input[type="text"] {
    flex: 1;
}
@media (max-width: 640px) {
    body {
        padding: 12px;
    }
    h1 {
        font-size: 1.2em;
    }
    #generate {
        width: 100%;
        padding: 10px;
    }
    #asciiCat {
        font-size: 11px;
        line-height: 1.2;
    }

    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px;
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
    .table-field {
        flex-direction: column;
        align-items: stretch;
    }
    .table-field input[type="text"] {
        width: 100%;
        margin-top: 4px;
    }
}