.site-background {
    background-image: url("../!/palette/cypress.png");
}
.search-engine {
    position: relative;
    padding: 4px;
}
.search-engine > * {
    color: white;
    text-shadow: 2px 2px black;
    display: inline-block;
}
.search-engine > p {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
}
.search-engine > div {
    position: absolute;
    right: 6px;
    top: 8px;
}

.palette-navigation {
    font-size: 0;
    margin: 8px 0;
}
.tab-switcher, .page-controls {
    width: 50%;
    font-size: 16px;
    color: white;
    text-shadow: 2px 2px black;
    display: inline-block;
    text-align: center;
}
.tab-switcher > button {
    width: 20%;
    padding: 4px;
    margin: 0 4px;
}
.page-controls > div {
    display: none;
}
.page-controls > div > button {
    width: 20%;
}
.page-controls > div > * {
    display: inline-block;
    padding: 4px;
    margin: 0 4px;
}

.display-palettes {
    text-align: center;
    height: 538px;
    display: none;
}
.display-page-blocks {
    display: none;
}
.display-page-items {
    display: none;
}
.item {
    display: inline-block;
    width: 96px;
    height: 96px;
    background-image: url("../!/icon-cypress.png"), url("../!/palette/menu.png");
    background-size: 80% 80%, 80% 80%;
    background-repeat: no-repeat;
    background-position: top right, bottom left;
    margin: 4px;
    image-rendering: -moz-crisp-edges;
    image-rendering: optimizeSpeed;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: pointer;
}
.direct-upload {
    display: none;
    text-align: center;
    padding: 4px;
    margin-top: 8px;
}
.direct-upload > label {
    color: white;
    text-shadow: 2px 2px 0 black;
}
.direct-upload > input {
    color: white;
    text-shadow: 2px 2px 0 black;
    background-color: black;
    padding: 4px;
    border-radius: 8px;
}
.item-menu {
    display: none;
    padding: 4px;
    margin-top: 8px;
}
.i-m-h {
    position: relative;
    font-size: 32px;
    color: white;
    text-shadow: 2px 2px black;
}
.menu-name {
    font-style: italic;
    color: #ff6;
}
.menu-id {
    position: absolute;
    top: 0;
    right: 6px;
}
.menu-id > button {
    font-size: 16px;
    height: 24px;
    width: 24px;
    vertical-align: center;
}
.i-m-t {
    font-size: 0;
    text-align: center;
    margin: 8px 0;
}
.i-m-t > div {
    width: 50%;
    display: inline-block;
}
.i-m-t > div > button {
    font-size: 16px;
    padding: 2px;
    margin: 2px;
}
.i-m-b {
    font-size: 0;
}
.menu-render, .menu-recipe {
    width: 50%;
    display: inline-block;
    vertical-align: center;
}
.menu-render {
    padding: 4px 0;
}
.menu-item {
    background-image: var(--item-1);
    background-size: 100% 100%;
    width: 90%;
    aspect-ratio: 1/1;
    margin: auto;
}
.menu-craft {
    background-color: black;
    border-top: 2px solid #91b6b3;
    border-left: 2px solid #91b6b3;
    border-bottom: 2px solid #648aa8;
    border-right: 2px solid #648aa8;
    width: 90%;
    aspect-ratio: 1/1;
    margin: auto;
}
.menu-craft > div {
    display: inline-block;
    background-image: var(--item-1);
    background-size: 90% 90%;
    background-position: center;
    background-repeat: no-repeat;
    width: calc(100% / 3);
    aspect-ratio: 1/1;
}
.menu-smelt {
    width: 30%;
    aspect-ratio: 1/3;
    margin: auto;
}
.menu-smelt > div {
    display: inline-block;
    background-size: 90% 90%;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1/1;
}
.menu-smelt > div:first-child {
    background-image: var(--item-1);
}
.menu-smelt > div:last-child {
    background-image: var(--item-smelt);
}
.menu-smelt > div:nth-child(odd) {
    background-color: black;
    border-top: 2px solid #91b6b3;
    border-left: 2px solid #91b6b3;
    border-bottom: 2px solid #648aa8;
    border-right: 2px solid #648aa8;
}
.menu-smelt > div:nth-child(even) {
    background-image: url("../!/palette/smelt.png");
}
.menu-freeze {
    width: 90%;
    aspect-ratio: 3/1;
    margin: auto;
}
.menu-freeze > div {
    display: inline-block;
    background-size: 90% 90%;
    background-position: center;
    background-repeat: no-repeat;
    width: calc((100% / 3) - 3px);
    aspect-ratio: 1/1;
}
.menu-freeze > div:first-child {
    background-image: var(--item-1);
}
.menu-freeze > div:last-child {
    background-image: var(--item-freeze);
}
.menu-freeze > div:nth-child(odd) {
    background-color: black;
    border-top: 2px solid #91b6b3;
    border-left: 2px solid #91b6b3;
    border-bottom: 2px solid #648aa8;
    border-right: 2px solid #648aa8;
}
.menu-freeze > div:nth-child(even) {
    background-image: url("../!/palette/freeze.png");
}

.cursor-tooltips {
    display: none;
    position: fixed;
    font-family: 'ext1605';
    color: #ff6;
    text-shadow: 2px 2px black;
    background-color: #0008;
    padding: 4px;
    top: -32px;
    left: 0px;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .display-palettes {
        height: auto;
    }
}
@media screen and (max-width: 622px) {
    .search-engine {
        text-align: center;
    }
    .search-engine > * {
        display: block;
    }
    .search-engine > div {
        position: relative;
        margin-bottom: 8px;
    }
    .tab-switcher, .page-controls {
        display: block;
        width: 100%;
    }
    .tab-switcher {
        margin-bottom: 8px;
    }
}