
:root {
    --body-background: hsl(330, 19%, 93%);
    --cold-off-white: hsl(330, 26%, 90%);
    --cold-light-color: hsl(330, 40%, 80%);
    --cold-color: hsl(330, 100%, 27%);
    --hot-color: hsl(247, 100%, 50%);
}

.cold-color {
    color: var(--cold-color);
}

hr {
    border: 1px solid var(--cold-light-color);
    /* border-color: yellow; */
    /* border-style: solid; */
}

body {
    background-color: var(--body-background);
    font-family: Futura, "Century Gothic", sans-serif;
    text-align: center;
    padding: 5vw;

    /* Centered Contents */
    margin: 0;
    box-sizing: border-box;
    min-height: 100dvh;
    justify-content: center;
}

.inst-box, .edit-dishes-dish-box {
    font-size: 1.5rem;
}

.col-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-box, .labels-box {
    display: flex;
    flex-direction: row;
}

#filters-box, #filters-box .col-box {
    width: 100%;  /* So that text to left and right of the slider doesn't flow to multiple lines when there aren't many filters to make the containing box wide enough. */
}

.col-box > *, .row-box > *, .labels-box > * {
    margin: 0.2rem 0;
}

.labels-box {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#dishes-box {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;

}

:root {
    --dish-box-pad-side: 1rem;
    --dish-box-mar: 0.2rem;
}
.dish-box:hover {
    border-color: var(--hot-color);
}
.dish-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    border: 3px solid var(--body-background);  /* invisible */
    margin: var(--dish-box-mar);
    padding: 0.5rem var(--dish-box-pad-side);
}
.dish-box, .ghost-dish-box {
    flex: 1 1 34%;  /* 2 boxes wide. */
}
.ghost-dish-box {
    padding: 0 var(--dish-box-pad-side);
    margin: 0 var(--dish-box-mar);
    height: 0;
}
.dish-box span {
    margin: 0 0.25rem;
}

.all-labels-user-display button {
    display: flex;
    align-items: center;
}

.all-labels-user-display button {
    border-color: currentColor;  /* Don't change to minor-button styling. */
}







/* .button-x {
    height: 0.8rem;  Match .minor-button text size.
}

.dish-del-x-box, .button-x {
    Converts from black to hsl(330, 100%, 27%).
    filter: brightness(0) saturate(100%) invert(8%) sepia(73%) saturate(6267%) hue-rotate(321deg) brightness(89%) contrast(103%);
}

.label-del-button:hover {
    Overrides minor button color change on hover.
    border-color: currentColor;
}

.dish-del-x-box:hover, .minor-button:hover .button-x {
    Converts from black to hsl(247, 100%, 50%).
    filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7451%) hue-rotate(254deg) brightness(98%) contrast(136%);
} */




.del-button-x {
    height: 0.8rem;  /* Matches .minor-button text size. */

    /* Converts from black to hsl(330, 100%, 27%). */
    filter: brightness(0) saturate(100%) invert(8%) sepia(73%) saturate(6267%) hue-rotate(321deg) brightness(89%) contrast(103%);
}
.del-button:hover .del-button-x {
    /* Converts from black to hsl(247, 100%, 50%). */
    filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7451%) hue-rotate(254deg) brightness(98%) contrast(136%);
}
.del-button:hover {
    /* Overrides minor-button border-color change on hover. */
    border-color: currentColor !important;
}





.img-button-container {
    /* Height should match inst-box font-size. */
    height: 1.5rem;
    display: flex;
}
.img-button {
    height: 100%;

    /* Converts from black to hsl(330, 100%, 27%). */
    filter: invert(13%) sepia(60%) saturate(4379%) hue-rotate(314deg) brightness(83%) contrast(113%);
}
.img-button:hover {
    /* Converts from black to hsl(247, 100%, 50%). */
    filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7451%) hue-rotate(254deg) brightness(98%) contrast(136%);
}






.all-labels-user-display button:hover img {
    /* Converts from black to hsl(247, 100%, 50%). */
    /* filter: brightness(0) saturate(100%) invert(8%) sepia(100%) saturate(7451%) hue-rotate(254deg) brightness(98%) contrast(136%); */
}










.understated {
    opacity: 70%;
    font-size: 0.8em;
    font-style: italic;
}

.input-box {
    outline: none;  /* Custom focus styling. */
    padding: 0.2rem 0.4rem;
}

.input-box, .major-button {
    font-size: 1rem;
}

.label-input, .dish-input {
    font-size: 0.8em;
}

.label-input {
    width: 8em;
}

.major-button {
    color: var(--hot-color);
    border: none;
    font-weight: bold;
    border-radius: 0.6rem;
    padding: 0.6rem 1rem;
    background-color: var(--hot-color);
    color: white;
}

.input-box, .minor-button, .toggle-button, .hot-text {
    color: var(--cold-color);
}

.input-box, .minor-button, .toggle-button, .dish-box {
    background-color: white;
}

.input-box, .major-button, .minor-button, .toggle-button {
    box-sizing: border-box;
    margin: 0.2rem;
}

.toggle-button, .dish-box {
    user-select: none;
}

.input-box, .minor-button {
    border: 3px solid var(--cold-color);
}

.toggle-button {
    border: 3px solid var(--cold-color);
}

.minor-button, .toggle-button {
    font-size: 0.8em;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
}

.toggle-button:has(> input:checked), .dish-box.selected-dish {
    background-color: var(--cold-color);
    color: var(--cold-off-white);
}

.major-button, .minor-button, .toggle-button, .hot-text, .dish-box {
    cursor: pointer;
}

.hot-text {
    text-decoration: none;  /* No underline. */
}

.input-box:focus, .minor-button:hover, .toggle-button:hover {
    border-color: var(--hot-color);
}

.hot-text:hover {
    color: var(--hot-color);
}

.major-button:hover {
    background-color: var(--cold-color);
}

hr {
    width: 100%;
}

/* Small screens. */
@media (max-width: 40rem) {
    .row-box {
        flex-direction: column;
    }
}
