*,*::after,*::before {
    box-sizing: border-box;
    user-select: none;
    margin: 0;
    padding: 0;
    font-family: "playpen Sans", Tahoma, sans-serif;
}

:root {
    --standard-shadow: 1px 1px 3px 1px black;
    --larger-shadow: 1px 1px 15px 5px black;
    --xlarge-text: clamp(1rem,6dvh,5rem);
    --med-text: clamp(1rem,3dvh,3rem);
    --small-text: clamp(0.7rem,2dvh,1.5rem);
    --colours-highlight: rgba(255, 255, 255, 0.8);
    --colours-midlight: rgba(255,255,255,0.5);
    --colours-lowlight: rgba(0,0,0,0.6);
    --colours-vlowlight: rgba(0,0,0,0.8);
}

html {
    height: 100dvh;
    width: 100dvw;
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.full-size {
    height: 100%;
    width: 100%;
}
.plip-link {
    position: absolute;
    top: 2%;
    left: 2%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.plip-link > img {
    height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    padding: 2px;
    margin-right: 5px;
}
.menu-title {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    font-size: var(--med-text);
}
.main-menu {
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
.backgroundimg {
    position: absolute;
    object-fit: cover;
    height: 100%;
    width: 100%;
    z-index: -1;
}
.main-menu-button-container {
    height: 50%;
    width: 50%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu-button {
    border-radius: 10px;
    background-color: var(--colours-midlight);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 80%;
    font-size: var(--xlarge-text);
    box-shadow: var(--larger-shadow);
    cursor: pointer;
}
.main-menu-button:hover {
    background-color: var(--colours-highlight);
}
.make-window, .buy-window {
    display: flex;
    justify-content: center;
    align-items: center;
}
.quit-to-main {
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: 5%;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 10px;
    background-color: var(--colours-lowlight);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: var(--med-text);
    cursor: pointer;
}
.sub-menu {
    background-color: var(--colours-lowlight);
    height: 80%;
    width: 90%;
    border-radius: 10px;
    box-shadow: var(--larger-shadow);
    overflow: hidden;
}
.buy-window-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0 20px 0;
    overflow-y: scroll;
}
.menu-section {
    background-color: var(--colours-highlight);
    width: 95%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    margin: 0 auto;
    height: fit-content;
    padding-top: 5px;
}
.menu-section-title {
    width: 100%;
    padding-left: 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 10%;
    max-height: 20px;
    font-size: var(--med-text);
}
.menu-item-container {
    width: 100%;
    padding: 15px;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 15px;
}
.menu-item {
    width: 160px;
    height: 180px;
    background-color: var(--colours-vlowlight);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    cursor: pointer;
}
.menu-item-image {
    height: 50%;
    width: auto;
    max-width: 100%;
    pointer-events: none;
}
.menu-item-text {
    height: 30%;
    max-width: 90%;
    text-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    pointer-events: none;
}
.buy-window-menu-item-focus {
    z-index: 21;
}
.oven-image {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: 100%;
    min-width: 400px;
}
.buy-window-button-container, .make-window-button-container {
    position: absolute;
    bottom: 2%;
    height: 9%;
    width: 70%;
    display: flex;
    justify-content: space-between;
}
.buy-window-button, .make-window-button {
    width: 40%;
    height: 100%;
    background-color: var(--colours-midlight);
    box-shadow: var(--standard-shadow);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.buy-window-button:hover, .make-window-button:hover {
    background-color: var(--colours-highlight);
}
.make-added-list {
    width: 100%;
    height: 10%;
    display: flex;
}
.added-list-item {
    height: 90%;
    width: auto;
    max-width: 10%;
    cursor: pointer;
}
.make-board-container, .receive-board-container {
    position: relative;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.make-board-buttons {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
}
.make-board-button {
    position: relative;
    height: 20%;
    width: 60%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    background-color: var(--colours-midlight);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: var(--med-text);
}
.make-board-button:hover {
    background-color: var(--colours-highlight);
}
.make-board-buttons-right {
    align-items: flex-start;
}
.make-board, .receive-board {
    position: relative;
    width: 50%;
    min-width: 400px;
    height: 100%;
    /* opacity: 1; */
    display: flex;
    justify-content: center;
    transition: opacity 200ms ease-in-out;
}
.pizza-board-image, .receive-pizza-board-image, .pizza-oven-image {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: 100%;
}
.pizza-board-layer, .pizza-topping-layer, .receive-pizza-base-layer, .history-pizza-base-layer, .receive-pizza-topping-layer, .history-pizza-topping-layer {
    position: absolute;
    height: 90%;
    width: auto;
    max-width: 90%;
    pointer-events: none;
}
.selected-icon-container {
    position: absolute;
    top: -5%;
    right: -5%;
    width: 50px;
    height: 50px;
    pointer-events: none;
}
.selected-icon {
    background-color: green;
    border-radius: 9999px;
    height: 100%;
    width: auto;
    max-width: 100%;
}
.make-elements-container, .send-elements-container {
    position: relative;
    height: 35%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.make-allsauce-container, .make-allextras-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.sauce-bottle-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sauce-bottle-text {
    position: absolute;
    font-size: var(--xlarge-text);
    pointer-events: none;
}
.sauce-bottle-image, .make-extra-image {
    height: 90%;
    width: auto;
    max-width: 90%;
    cursor: pointer;
}
.make-extra {
    position: relative;
}
.make-extra-image {
    background-color: var(--colours-midlight);
    border-radius: 10px;
}
.make-alltray-container {
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(11,1fr);
    overflow-x: scroll;
    /* overflow-y: hidden; */
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-color: transparent rgba(255,255,255,0.5);
    }
}
.make-alltray-container::-webkit-scrollbar {
    background: transparent;
    border-radius: 4px;
}
.make-alltray-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}
.make-alltray-container::-webkit-scrollbar-corner {
    background: transparent;
}
.make-tray-container {
    position: relative;
    height: 100%;
    max-height: 20dvh;
    min-width: 120px;
    display: flex;
    justify-content: center;
}
.food-tray-image {
    position: relative;
    height: 100%;
    width: auto;
    max-width: 100%;
    cursor: pointer;
}
.food-tray-contents {
    position: absolute;
    height: 100%;
    width: auto;
    max-width: 100%;
    pointer-events: none;
}
.make-window-reset {
    margin: 0 auto;
    margin-top: 10%;
    width: 40%;
    height: 20%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    background-color: var(--colours-midlight);
    font-size: var(--med-text);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.make-window-reset:hover {
    background-color: var(--colours-highlight);
}
.send-pizza-button, .send-pizza-id-display, .final-cook-button {
    height: 30%;
    width: 50%;
    font-size: var(--med-text);
    background-color: var(--colours-midlight);
    box-shadow: var(--standard-shadow);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
}
.send-pizza-button:hover {
    background-color: var(--colours-highlight);
}
.send-pizza-id-display {
    background-color: var(--colours-highlight);
    font-size: var(--xlarge-text);
}
.receive-controls {
    height: 50%;
    flex-direction: column;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
#pizza-id-input {
    width: 50%;
    height: 20%;
    border-radius: 10px;
    background-color: black;
    color: white;
    text-align: center;
    font-size: var(--med-text);
}
.receive-button {
    height: 20%;
    width: 20%;
    background-color: var(--colours-midlight);
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--med-text);
    cursor: pointer;
}
.receive-button:hover {
    background-color: var(--colours-highlight);
}
.buy-window-history, .make-window-history {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    overflow-y: scroll;
    gap: 15px;@supports not selector(::-webkit-scrollbar) {
        scrollbar-color: transparent rgba(255,255,255,0.5);
    }
}
.buy-window-history::-webkit-scrollbar, .make-window-history::-webkit-scrollbar {
    background: transparent;
    border-radius: 4px;
}
.buy-window-history::-webkit-scrollbar-thumb, .make-window-history::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.5);
    border-radius: 10px;
}
.buy-window-history::-webkit-scrollbar-corner, .make-window-history::-webkit-scrollbar-corner {
    background: transparent;
}
.buy-history-element-container, .make-history-element-container {
    position: relative;
    width: 40%;
    min-width: 300px;
    height: 400px;
    max-height: 45%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.full-display-image {
    position:relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.empty-pizza-text {
    position: absolute;
    height: 40%;
    width: fit-content;
    font-size: var(--xlarge-text);
    padding: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-wrap: balance;
    background-color: var(--colours-highlight);
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
}
.pizza-id-display {
    position: absolute;
    bottom: 0;
    height: 10%;
    width: fit-content;
    padding-left: 5%;
    padding-right: 5%;
    border-radius: 10px;
    box-shadow: var(--standard-shadow);
    font-size: var(--xlarge-text);
    background-color: var(--colours-highlight);
    display: flex;
    justify-content: center;
    align-items: center;
}
.close-full-pizza-display-buy, .close-full-pizza-display-make, .trash-button, .close-menu-focus {
    position: absolute;
    top: 5%;
    right: 2%;
    height: 100px;
    max-height: 20%;
    width: 100px;
    max-width: 20%;
    background-color: red;
    border-radius: 9999px;
    border: 3px solid white;
    box-shadow: var(--standard-shadow);
    cursor: pointer;
    z-index: 22;
    display: flex;
    justify-content: center;
    align-items: center;
}
.trash-button {
    top: auto;
    bottom: 5%;
}
.trash-button-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    pointer-events: none;
}
.back-button-image {
    height: 100%;
    width: auto;
    max-width: 100%;
    pointer-events: none;
}
.history-board {
    height: 100%;
    width: auto;
    max-width: 100%;
    border-radius: 10px;
    pointer-events: none;
}
.buy-history-full-display, .make-history-full-display {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 21;
}
.menu-focus-title {
    height: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: var(--med-text);
    color: white;
    text-align: center;
}
.menu-focus-image-container {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
}
.menu-focus-image {
    height: 100%;
    max-height: 400px;
    width: auto;
    max-width: 100%;
}
.menu-focus-description {
    white-space: pre-line;
    width: 80%;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
    font-size: var(--med-text);
    color: white;
}
.isolate-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    opacity: 1;
    background-color: var(--colours-lowlight);
    z-index: 20;
    transition: opacity 200ms ease-in-out;
}
.isolate-backdrop.nobackdrop {
    opacity: 0;
    pointer-events: none;
}
.rotate-dialog {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1000;
}
.rotate-dialog-interior {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}
.dismiss-rotate-dialog {
    position: absolute;
    top: 2%;
    right: 2%;
    height: 10%;
    display: flex;
    border-radius: 10px;
    gap: 5px;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
}
.dismiss-rotate-dialog:hover {
    box-shadow: 0 0 3px 1px white;
}
.dismiss-rotate-dialog img {
    height: 100%;
    width: auto;
    border: 2px solid white;
    padding: 5px;
    border-radius: 6px;
    background-color: darkred;
}
.rotate-text {
    max-width: 60%;
    font-size: var(--med-text);
}
.rotate-arrow {
    height: auto;
    max-height: 20%;
    width: auto;
    transform: rotate(90deg);
}
@media (orientation:portrait) {
    .main-menu-button-container {
        width: 90%;
    }
    .receive-button {
        width: 60%;
    }
}
.downscale {
    scale: 0.3;
    transform: translateY(100%);
    filter: brightness(0.6);
}
.nomatch-message-container {
    width: 100%;
    height: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--colours-highlight);
    border: 2px solid red;
    border-radius: 10px;
    box-shadow: 1px 1px 3px 1px red;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-wrap: balance;
    font-size: var(--med-text);
}
.faded {
    opacity: 0;
}
.enredden {
    background-color: red;
}
.behind {
    display: none;
    z-index: -20;
    pointer-events: none;
}