.crosswordWrap {
    display: inline-block;
    width: 100%;
}

.crosswordDiagram {
    text-align: center;
}

.crossword-container {
    min-height: 100vh;
}

.crossword {
    border-collapse: collapse;
    font-family: "Courier New", Courier, monospace;
    margin: 10px auto;
    background-color: white;
    border-radius: 1rem;
    display: inline-block;
    padding: 1rem;
}

.crossword td {
    border: 1px solid black;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    text-align: center;
    width: 30px;
    height: 30px;
    position: relative;
    box-sizing: border-box;
}

.crossword td input {
    text-align: center;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    margin: 0;
    border: none;
    padding: 0;
}

.crosswordNumber {
    position: absolute;
    top: 0;
    left: 0;
    font-family: sans-serif;
    font-size: 0.5em;
    padding: 2px;
}

.crossword .no-border {
    border: none;
}

.crosswordHintsList {
    list-style: none;
    margin: 0 0 1em 0;
    padding: 1rem;
    background-color: white;
    color: black;
    border-radius: 1rem;
}

/* .js-crosswordHints-across {
    margin-top: 2rem;
}

.js-crosswordHints-down {
    margin-top: 2rem;
} */

.js-crosswordWrap {
    display: flex;
    flex-direction: row;
    background-color: white;
    border-radius: 1rem;
    margin: 2rem 0;
    width: 90%;
    margin: 0 auto;
}

#across-heading,
#down-heading {
    background-color: white;
    color: black;
    /* padding: 2rem; */
    border-radius: 1rem;
    text-align: left;
    margin: 1rem auto;
    max-width: 600px;
}

@media screen and (max-width: 994px) {
    .js-crosswordWrap {
        flex-direction: column;
        align-items: center;
    }

    .crossword-container {
        transform: scale(0.75);
        margin-top: -14rem;
    }

    .crossword {
        margin-top: -4rem;
    }

    #across-heading,
    #down-heading {
        /* width: 90%; */
        padding: 1rem;
    }

    .crosswordHintsList {
        /* width: 90%; */
        padding: 1rem;
    }

    #down-heading {
        bottom: -15%;
    }

    .js-crosswordDiagram::before {
        content: "It’s #Ahmazing Crossword";
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 2rem;
        font-weight: 600;
        font-size: 30px;
        padding-bottom: 1.5rem;
    }
}

@media only screen and (max-width: 500px) {

    .crosswordDiagram {
        padding: 2rem;
    }

    #across-heading,
    #down-heading {
        padding: 1rem;
    }
}

.crosswordHintsList li strong {
    display: inline-block;
    width: 1.9em;
}

.wp-block-acf-activity-crossword {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wp-block-acf-activity-crossword__nav {
    background-color: #005777;
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 0 35px 0 #00000073;
}

.wp-block-acf-activity-crossword__nav > p {
    display: flex;
    width: 100%;
    font-size: 20px;
    color: white;
    line-height: 26px;
    letter-spacing: 2px;
    align-items: center;
    text-transform: uppercase;
}

.wp-block-acf-activity-crossword__nav > :nth-child(1) {
    padding: 2rem;
    white-space: nowrap;
}

.wp-block-acf-activity-crossword__nav > :nth-child(1)::before {
    content: "‹";
}

.wp-block-acf-activity-crossword__nav > :nth-child(2) {
    justify-content: center;
}
