/* Fonts */
@font-face {
    font-family: "Alaska-SemiBold";
    src: url("/static/fonts/Alaska-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Alaska-Condensed";
    src: url("/static/fonts/Alaska-Condensed.woff2") format("woff2");
}

/* CSS Variables */
:root {
    --font-body: "Alaska-Semibold";
    --font-ui: "Alaska-Condensed";
    --max-width: none;
    --black: #000000;
    --red: #b74747;
    --gray: #333332;
    --white: #FFFFFF;
    --yellow: #F1ECBF;
    --tan: #fffce3;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    user-select: none;
    font-family: var(--font-body);
    line-height: 1.5;
    background: var(--yellow);
    background-size: 100dvw auto;
    height: 100vh;
    color: var(--gray);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

body #root {
    padding: 1.2rem;
}

body #empty:empty {
    padding: 0;
}

/* Root Container */
#root {
    padding: 1.2rem 0;
    justify-content: center;
    /* gap: 1.5rem; */
    margin: auto;
    max-width: var(--max-width);
    width: -webkit-fill-available;
    flex-grow: 1;
    opacity: 0;
    transition: all 800ms ease-in-out;
}

#root.in {
    opacity: 1;
}

#root section {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    /* margin: 0 0 1rem; */

    .compact & {
        gap: .8rem
    }
    .micro & {
        gap: .9rem
    }
}

#root section:empty {
    display: none;
}

/* Empty State */
#empty {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    position: relative;
    overflow: hidden;
    justify-content: center;
    display: flex;
    flex-grow: 1;
    height: 0;
}

#empty img {
    transition: opacity 800ms ease-in-out;
    opacity: 0;
    transform-origin: center center;
    transform: scale(0.9);
    max-height: 100%;
    align-self: center;
    filter: brightness(2) invert(1);
}

#empty.in {
    opacity: 1;
    height: 100%;
    transform: translateY(-1.2rem);
}

#empty.in img {
    opacity: 1;
    transform: scale(1);
}

/* Order Card */
.order-card {
    outline: none;
    position: relative;
    --progress: 5%;
    break-inside: avoid;
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 600;
    font-size: 42px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    width: 100%;
    background-color: var(--yellow);
    border: dashed 2px var(--red);
    transition: all 800ms linear;
    color: var(--black);
    text-transform: capitalize;
}

.compact .order-card {
    height: 72px;
    font-size: 32px;
}
.micro .order-card {
height: 56px;
    font-size: 22px;
}

.order-card div.right-rail,
.order-card div.left-rail {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* gap: 1rem; */
}

.order-card div.right-rail {
    flex-direction: column;
    gap: 10px;
    align-items: end;
}

.compact .order-card div.right-rail {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.compact .order-card div.right-rail .status {
    font-size: 20px;
}

.compact .order-card div.right-rail .status img {
    width: 15px;
}

.compact .order-card div.right-rail .provider img {
    width: 25px;
}

.micro .order-card div.right-rail {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.micro .order-card div.right-rail .status {
    font-size: 16px;
    gap: 10px;
}

.micro .order-card div.right-rail .status img {
    width: 15px;
}

.micro .order-card div.right-rail .provider img {
    width: 25px;
}

.order-card span.progress {
    width: var(--progress);
    background-color: var(--tan);
    position: absolute;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    transition: all 800ms linear;
}

.order-card span.progress-ticks {
    position: absolute;
    display: flex;
    bottom: 0;
    left: 0;
    justify-content: space-evenly;
    width: 100%;
    height: 10%;
    color: #ccc;
    line-height: 0;
    font-size: 1rem;
    overflow: hidden;
}

.compact .order-card span.progress-ticks {
    height: 20%;
}

.micro .order-card span.progress-ticks {
    height: 20%;
    opacity: 0;
}

.order-card span.status {
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    text-transform: capitalize;
    align-items: center;
    gap: 0.8rem;
}

.order-card span.status img {
    display: block;
    filter: invert(0);
}

.order-card span.provider {
    display: flex;
}

.order-card img {
    filter: invert(1);
}

/* Progress States */
[data-status="Station 1"] {
    --progress: 25%;
}

[data-status="Station 1"] .progress-ticks span.tick-25 {
    color: var(--red) !important;
}

[data-status="Station 2"] {
    --progress: 50%;
}

[data-status="Station 2"] .progress-ticks span.tick-25,
[data-status="Station 2"] .progress-ticks span.tick-50 {
    color: var(--red) !important;
}

[data-status="Station 3"] {
    --progress: 75%;
}

[data-status="Station 3"] .progress-ticks span.tick-25,
[data-status="Station 3"] .progress-ticks span.tick-50,
[data-status="Station 3"] .progress-ticks span.tick-75 {
    color: var(--red) !important;
}

[data-status="Ready"] {
    --progress: 100%;
    border-style: solid;
    box-shadow: 4px 4px 0 0 #75312f;
    color: var(--white);
}

[data-status="Ready"] span.progress {
    background-color: var(--red);
}

[data-status="Ready"] span.progress-ticks {
    color: var(--red);
}

[data-status="Ready"] span.status {
    text-transform: uppercase;
    letter-spacing: 2px;
}

[data-status="Ready"] img {
    filter: invert(0);
}

/* Header & Footer */
header,
footer {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.2rem 0;
    cursor: pointer;
    font-family: var(--font-ui);
    font-style: normal;
    font-weight: 600;
    font-size: 26px;
    line-height: 26px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--black);
    text-align: center;
}

header {
    border-bottom: var(--red) dashed 2px;
}

footer {
    border-top: var(--red) dashed 2px;
    white-space: nowrap;
}