:root {
    --light-text-color: #ccc;
    --completed-puzzle-color: #bdecb6;
    --footer-color: #212529;
}

.main_nav > ul > li > a:hover {
    text-decoration: none;
}

.logo > a:hover {
    color: #E5FCF5;
    text-decoration: none;
}

.backbar {
    width: 100%;
    height: 80px;
    background-color: #111215;
}

.wordsearch-container {
    border-radius: 5px;
    border: 1px solid gray;
    padding: 3px;
    margin: 40px auto;
    margin-top: 70px;
    width: 99%;
    max-width: 600px;
    display: flex;
    justify-content: center;
}

.wordsearch-board {
    justify-content: center;
    margin: 15px auto;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 10px;
}

.wordsearch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
    position: relative;
}

.refresh-info-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 33%;
}

.refresh-info-container:last-child {
    justify-content: flex-end;
}

.top-button-container {
    display: flex;
    align-items: center;
}

.top-button-container button {
    color: rgba(0, 0, 0, 0.65);
    background: lightgray;
    border-radius: 3px;
    font-size: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
    background: lightgray;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
}

.top-button-container button:focus {
    outline: none;
}

.top-button-container button:active {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

#refresh-container {
    margin-right: 10px;
}

#list-container {
    margin-right: 10px;
}

.wordsearch-theme-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
}

#theme-label {
    margin-right: 1.2rem;
    color: rgba(0, 0, 0, 0.65);
    font-size: 1rem;
    font-weight: 600;
}

#theme-title {
    color: rgba(0, 0, 0, 0.65);
    font-size: 1.2rem;
    font-weight: 700;
}

.stopwatch-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 1rem;
    border: 1px solid lightgray;
    border-radius: 4px;
    padding: 0 1rem;
    width: fit-content;
    font-size: 20px;
}

#stopwatch {
    margin-right: 1rem;
}

#pauseButton {
    color: rgba(0, 0, 0, 0.65);
    border-radius: 3px;
    font-size: 16px;
    transition: box-shadow 0.2s, transform 0.2s;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    background-color: white;
}

#pauseButton:focus {
    outline: none;
}

#pauseButton:active {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
}

.wordsearch-title {
    font-size: 1.7rem;
    font-weight: 700;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
    width: 33%;
    text-align: center;
}

.grid-row {
    display: flex;
}

.grid-cell {
    display: flex;
    height: 1.6rem;
    width: 1.6rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    font: "Neue Helvetica";
    border: 1px solid lightgray;
    cursor: pointer;
    box-sizing: border-box;
}

#searchGrid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

#wordBank {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.wordbank-cell {
    margin: 0 1rem;
    font-weight: 600;
}

.crossed-out {
    position: relative;
}

.crossed-out::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 2px solid black; /* Adjust the border properties as needed */
}

.highlight {
    background-color: lightgray;
    border: 1px solid lightgray;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 50px;
    border-radius: 5px;
    width: 70%;
    max-width: 600px;
    max-width: fit-content;
    margin-right: 8%;
    max-height: 70%;
}

.rules-content {
    min-height: 150px;
    overflow-y: auto;
}

.rules-subtitle {
    margin-top: 20px;
}

.rules-list {
    list-style-type: decimal;
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
}

#objective {
    margin-bottom: 30px;
}

#pauseModal {
    background-color: white;
}

#pauseModalContent {
    text-align: center;
    top: 45%;
}

#pauseModalLabel {

    font-size: 40px;
}

#pauseModalBody {
    font-size: 20px;
}

#shareButton {
    background-color: #B8E6C5;
    border: 1px solid gray;
    border-radius: 5px;
    width: fit-content;
    margin: 0 auto;
    padding: 0 1rem;
    font-weight: 700;
    margin-top: 2rem;
}

#shareButton:focus {
    background-color: #9fd8b2;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#listModalTitle {
    text-align: center;
}

.puzzle-buttons {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.puzzle-button {
    margin: 3px;
    width: fit-content;
    padding: 0 1rem;
    height: 2rem;
    background-color: lightgray;
    border-radius: 3px;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid darkgray;
    font-family: 'Clear Sans', 'Helvetica Neue', Arial, sans-serif;
}

.selected-puzzle-button {
    border: 3px solid darkolivegreen;
}

.completed-puzzle-button {
    background-color: #bdecb6;
}

.shows_2_button {
    margin-top: 40px;
    margin-bottom: 30px;
}

@media screen and (max-width: 400px) {
    .refresh-info-container {
        display: block;
    }

    #refresh-container, #list-container {
        margin-bottom: 2px;
    }

    #info-container, #settings-container {
        width: fit-content;
        padding: 3px 6px;
    }
}

.text-center {
    text-align: center;
}