.findgrid {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    padding: 20px;
    background-color: navajowhite;
    border-radius: 20px;
}

/* Keep each description and its corresponding input on the same row. */
.findgrid form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 5px;
    row-gap: 5px;
    width: 100%;
}

.adgrid {
    display: grid;
    flex: 1 1 0;
    min-width: 0;
    padding: 20px;
    background-color: lightgreen;
    border-radius: 20px;
    text-align: center;
}

.findcriteria {
    display: flex;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
    background-color: antiquewhite;
    border: 0.5px solid grey;
    border-radius: 10px;
    padding: 10px 2px 10px 10px;
    overflow-wrap: anywhere;
}

.inputcriteria {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid grey;
    border-radius: 10px;
    padding: 10px;
}

button {
    font-weight: bold;
    border: none;
    padding-top: 10px;
    padding-bottom: 10px;
    cursor: pointer;
    vertical-align: top;
    transition: opacity 0.5s;
}

button:hover {
    opacity: 0.7;
}

button:active {
    opacity: 0.5;
}

/* Place the submit control below both form columns. */
.submit-div {
    grid-column: 1 / -1;
}

.submit-button {
    background-color: rgb(1 166 83 / var(--tw-bg-opacity, 1));
    border: 2px solid black;
    border-radius: 10px;
    color: black;
    width: 100%;
}

/* The spacer is no longer needed because the submit control spans both columns. */
.blankdiv {
    display: none;
}
