
#crossword-html {
    cursor: pointer;
    user-select: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    width: 100%;
}

#crossword-html table {
    border-collapse: collapse;
    margin-top: 20px;
}

#crossword-html td {
    width: 30px;
    height: 30px;
    text-align: center;
    text-transform: uppercase;
}


#crossword-html.tableSizeSmall td {
    width: 17px;
    height: 17px;
    font-size: 8px;
}

#crossword-html.tableSizeMedium td {
    width: 19px;
    height: 19px;
    font-size: 9px;
}

#crossword-html.tableSizeLarge td {
    width: 21px;
    height: 21px;
    font-size: 10px;
}

#crossword-html .filled, #crossword-html .filled-secret,  #crossword-html .empty-secret, #crossword-html .missing-secret, #crossword-html .empty-filled {
    border: 1px solid #000000;
    box-sizing: border-box;
}

#crossword-html .filled, #crossword-html .empty-filled {
    background-color: #ffffff;
}

#crossword-html .missing-secret {
    background-color: indianred;
}

#crossword-html .empty {
    border: none;
}

#crossword_page #editor {
    width: 397px;
    height: 562px;
    aspect-ratio: 210 / 297; /* Poměr stran A4 */
    border: 1px solid #000;
    box-sizing: border-box;
    position: relative;
    overflow: hidden; /* Skrytí přetékajícího obsahu */
    margin: 0 auto; /* Vycentrování na stránce */
    background-size: cover;
    background-position: center;
}


#previewTitle, #previewDate {
    cursor: pointer;
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    user-select: none;
    text-align: center;
    padding: 0 28px;
    line-height: 1;
}

#previewQuestions {
    cursor: pointer;
    user-select: none;
    position: absolute;

    left: 50%;
    width: max-content;
    max-width: 83%;
    transform: translateX(-50%);
}

#previewQuestions ol {
    column-count: 1; /* Výchozí počet sloupců */
    column-gap: 30px; /* Mezera mezi sloupci */
    padding: 0 10px;
    display: inline-block;
    text-align: left;
    margin: 0;
}

.previewWarning {
    color: rgba(0, 0, 0, 0.3);
    font-style: italic;
}

.crosswords-message {
    margin: 0 auto;
    width: 250px;
}

#previewQuestions li {
    font-size: inherit;
    line-height: inherit;
    break-inside: avoid;
    page-break-inside: avoid;
}


#previewDate {
    top: 80px
}


#crossword-html .filled-secret {
    background-color: var(--secret-color);
}

#crossword-html .empty-secret {
    background: linear-gradient(rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0.11)), var(--secret-color);
}

#crossword-html .empty-filled {
   background-color: #e3e3e3;
}


#crossword-html .row-counter {
    padding-right: 5px;
    font-family: var(--row-counter-font), sans-serif;
}
