/* Base button style */
.btn {
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
}
.btn-blue {
    background: #1e5c9a;
    color: #fff;
}
.btn-red {
    background: #c0392b;
    color: #fff;
}
.btn-grey {
    background: #aaa;
    color: #fff;
}
.btn-disabled,
.btn:disabled {
    background: #aaa !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border: none !important;
    box-shadow: none !important;
}
#send-to-board-btn:disabled {
    background: #aaa !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border: none;
}
#hint-container {
    background: linear-gradient(90deg, #ffe066 0%, #ffb700 100%);
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 #0005, 0 0 12px 2px #fff8;
    padding: 18px 36px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    max-width: 90vw;
}
#hint-display {
    color: #1e5c9a;
    font-size: 2.1em !important;
    font-weight: bold;
    text-shadow: 0 2px 8px #fff, 0 0 2px #0008;
    letter-spacing: 0.04em;
}
#reveal-cell-btn:disabled,
#reveal-letter-btn:disabled {
    background: #aaa !important;
    color: #fff !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}
.cell-config.selected {
    outline: 2.5px solid #1e5c9a;
    z-index: 2;
}
.cell-config {
    width: 32px;
    height: 32px;
    font-size: 1em;
    margin: 1px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #888;
    position: relative;
    transition: background 0.2s, border 0.2s;
}
.cell-config.black {
    background: #222;
    border: 1.5px solid #111;
}
.cell-config .cell-number {
    position: absolute;
    top: 2px;
    left: 4px;
    font-size: 0.6em;
    color: #aaa;
}
.cell-config .cell-letter {
    font-weight: bold;
    font-size: 1em;
    color: #1a1a1a;
}
.cell-config.revealed {
    background: #d0ffd0 !important;
    border: 1.5px solid #2d8f2d;
}
.cell-config {
    width: 36px;
    height: 36px;
    font-size: 1em;
    margin: 1px;
}
#lock-config {
    font-size: 1em;
    padding: 6px 16px;
    margin-bottom: 16px;
    background: #2d8f2d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
#lock-config:disabled {
    background: #aaa;
    cursor: not-allowed;
}
#setup-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
#secret-phrase {
    font-size: 1em;
    padding: 4px 8px;
    width: 300px;
}
#tv-bg {
    min-height: 100vh;
    min-width: 100vw;
    background: radial-gradient(ellipse at center, #0a2a43 0%, #1e5c9a 60%, #0a2a43 100%);
    abackground-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80'); /* fallback se vuoi un'immagine reale */
    background-image: url('sfondo.jpg'); /* fallback se vuoi un'immagine reale */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}

#board-vertical-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
#board-container {
    margin: 20px 0;
}
.hint-label {
    font-weight: bold;
    margin-right: 8px;
}
#hint-container {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#hint {
    font-size: 1em;
    padding: 4px 8px;
    width: 300px;
}
.board-row {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}
.cell {
    width: 80px;
    height: 80px;
    border: 1.5px solid #333;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    margin: 3px;
    position: relative;
}
.cell.black {
    background: #222;
}
.cell .cell-number {
    position: absolute;
    top: 7px;
    left: 10px;
    font-size: 0.5em;
    color: #888;
}
.cell .cell-letter {
    font-weight: bold;
    font-size: 1.3em;
}
