@import url(https://fonts.googleapis.com/css?family=Lexend:400&display=swap);
@font-face {
    font-family: Minecraft;
    src: url("https://wiki.cobblemon.com/images/0/07/Minecraft.otf");
}
:root {
    --spicy: #ad5555;
    --sour: #95914e;
    --dry: #506a9f;
    --bitter: #498c49;
    --sweet: #a15192;
    --spicyShadow: #3c1d1d;
    --sourShadow: #37351b;
    --dryShadow: #1a2335;
    --bitterShadow: #1a351a;
    --sweetShadow: #371b32;
}
html, body {
    overscroll-behavior: none;
    margin: 0;
    padding: 0;
}
html {
    font-family: 'Lexend', sans-serif;
    background: url('../imgs/ui/background.png');
    background-attachment: fixed;
    background-size: cover;
    background-color: #282c2a
}

h1 {
    font-family: Minecraft;
    color: white;
    margin: 10px;
}
div.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
div.container .left, div.container .right {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
div.container .left {
    flex-grow: 0;
    flex-shrink: 0;
}
div.container .right {
    flex-grow: 1;
}
@media screen and (min-width: 1300px) {
    div.container {
        flex-direction: row;
        justify-content: space-between;
        overflow: hidden;
        height: 100vh;
        align-items: stretch;
        gap: 0;
    }
    div.container .left, div.container .right {
        overflow: auto;
    }
}

img {
    pointer-events: none;
}

table, th, td {
    border: 2px solid #555;
    border-collapse: collapse;
    background-color: #C6C6C6;
    text-align: center;
    color: #555;
    padding: 8px;
    font-size: 14px;
}
th {
    background-color: #555;
    color: white;
}
th div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
td img {
    width: 32px;
    image-rendering: pixelated;
}

.interface table, .interface th, .interface td {
    border: 2px solid #C6C6C6;
    border-collapse: collapse;
    background-color: #8B8B8B;
    text-align: center;
    color: white;
    padding: 8px;
    font-size: 14px;
}
.interface th {
    background-color: #555;
}

.interface {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #C6C6C6;
    border: 4px solid;
    border-color: #FFF #555 #555 #FFF;
    outline: 4px solid #000;
    padding: 16px;
    image-rendering: pixelated;
    position: relative;
    background-repeat: no-repeat;
    box-sizing: border-box;
    font-family: Minecraft;
    color: #3f3f3f;
    font-size: 30px;
    height: fit-content;
    width: fit-content;
}
.interface-button {
    display: flex;
    width: 64px;
    height: 64px;
    background-image: url('../imgs/ui/button.png');
    background-size: 64px 64px;
    background-repeat: no-repeat;
    align-items: center;
    justify-content: center;
}
.interface-button:hover {
    opacity: 0.7;
}
.interface-button img {
    width: 48px;
    height: 48px;
}
.apricorns-interface {
    flex-direction: column;
    align-items: start;
    gap: 8px;
}
.calculations-interface {
    display: flex;
    flex-direction: column;
}
.info-interface {
    font-size: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.info-text {
    display: flex;
    gap: 15px;
    flex-direction: column;
}
.info-text h2 {
    font-size: 25px;
    padding: 0;
    margin: 0;
}
.cooking-interface {
    padding: 10px 16px 16px 16px;
    height: 360px;
    width: 644px;
    flex-direction: column;
    align-items: start;
    position: sticky;
    top: 0;
    z-index: 1;
}
.cooking-interface-body {
    display: flex;
    width: 604px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-image: url(https://wiki.cobblemon.com/images/9/95/Interface_cooking.gif);
    background-size: 500px 236px;
    background-position: 12px;
    background-repeat: no-repeat;
}
.cooking-interface-ingredients {
    margin-left: 72px;
    margin-top:-12px;
}
.cooking-interface-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    margin-top:4px
}
.cooking-interface-right .item-slot-output {
    margin-top:58px
}
.item-slot-row {
    display: flex;
    flex-direction: row;
}
.item-slot {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.item-slot img {
    image-rendering: pixelated;
    width: 64px !important;
    height: 64px !important;
}
.item-tooltip {
    display: none;
    font-family: Minecraft;
    font-size: 30px;
    letter-spacing: -0.6px;
    text-shadow: 4px 4px #3E3E3E;
    color: #FCFCFC;
    background-color: rgba(16, 1, 16, 0.95);
    padding-inline: 8px;
    border: 4px solid rgba(35, 0, 90, 0.95);
    outline: 4px solid rgba(16, 1, 16, 0.95);
    border-radius: 4px;
    line-height: 48px;
    position: absolute;
    top: 58px;
    width: max-content;
    z-index: 2;
    pointer-events:none
}
.item-slot:hover .item-tooltip {
    display:block;
}

.mini-item {
    position: relative;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mini-item img {
    image-rendering: pixelated;
    width: 32px !important;
    height: 32px !important;
}
.grid {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto;
    grid-row-gap: 5px;
    grid-column-gap: 15px;
}
.grid-item {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.grid-item-large {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}
.grid-hr {
    height: 3px;
    background-color: #3f3f3f;
    grid-column: span 7;
}
.grid-hr-light {
    height: 3px;
    background-color: #a1a1a1;
    grid-column: span 7;
}

.details-tooltip {
    line-height: 40px;
}
.item-slot {
    box-sizing: border-box;
    width: 72px;
    height: 72px;
    border: 4px solid;
    border-color: #373737 #FFF #FFF #373737;
    background-color:#8B8B8B
}
.item-slot-output .item-slot {
    width: 104px;
    height: 104px
}
.item-slot:hover::after {
    content: "";
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, .5);
    position: absolute;
    pointer-events:none
}