body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    margin: 0;
    padding: 0;
}

h1 {
    color: #333;
    text-align: center;
    margin-top: 30px;
}

form {
    max-width: 400px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

fieldset {
    border: none;
    padding: 0;
}

label {
    margin-right: 8px;
    font-weight: 500;
}

input[type="text"], .lettera-box {
    width: 30px;
    height: 30px;
    padding: 4px;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 2px solid #0078d4;
    font-size: 18px;
    text-align: center;
    background: #f0f6ff;
    transition: border 0.2s;
}
input[type="text"]:focus, .lettera-box:focus {
    border: 2px solid #005fa3;
    background: #e6f0ff;
}

/* Stile per le checkbox delle lettere da escludere */
#escludi-lett {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 10px;
    margin-bottom: 10px;
}
.check-label {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f6ff;
    border-radius: 4px;
    padding: 2px 0;
    margin: 0;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid #cce2ff;
    width: 54px;
    height: 36px;
    transition: background 0.2s, border 0.2s;
}
.check-label:hover {
    background: #e6f0ff;
    border: 1px solid #0078d4;
}
.check-box {
    accent-color: #0078d4;
    margin-right: 4px;
    width: 16px;
    height: 16px;
}
input[type="submit"], button, .search-btn {
    background: #0078d4;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    vertical-align: middle;
}

input[type="submit"]:hover, button:hover {
    background: #005fa3;
}

#parole-list {
    max-width: 400px;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    min-height: 40px;
}

#escludi-lett {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
