* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    background: #0f1517;
    color: #f8fbfb;
    font-family: Arial, Helvetica, sans-serif;
}

.menuScreen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f1517;
}

.menuHeader {
    position: absolute;
    left: 34px;
    right: 260px;
    top: 24px;
    height: 116px;
    overflow: hidden;
}

.titleBlock {
    float: left;
    max-width: 76%;
}

.eyebrow {
    margin: 0 0 6px;
    color: #76c9bd;
    font-size: 15px;
    font-weight: bold;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 56px;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menuHeader p {
    margin: 8px 0 0;
    overflow: hidden;
    color: #c9d6d2;
    font-size: 20px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.networkStatus {
    float: right;
    max-width: 160px;
    margin-top: 8px;
    overflow: hidden;
    color: #d7bf63;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.25;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menuBoard {
    position: absolute;
    left: 34px;
    right: 260px;
    top: 156px;
    bottom: 28px;
    overflow: hidden;
}

.itemsWrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-size: 0;
}

.menuItem {
    display: inline-block;
    width: 50%;
    height: 50%;
    padding: 9px;
    vertical-align: top;
}

.menuItemInner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid #e7ece6;
    border-radius: 8px;
    background: #f7f6ef;
    color: #111719;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.emptySlot {
    border-color: #263237;
    background: #121b1e;
    box-shadow: none;
}

.emptySlot:after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 14px;
    bottom: 14px;
    border: 1px solid #263237;
    border-radius: 6px;
}

.photoArea {
    position: absolute;
    left: 0;
    top: 0;
    width: 42%;
    height: 100%;
    overflow: hidden;
    background: #315e7d;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.photoPlaceholder {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
    white-space: nowrap;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.hasPhoto .photoPlaceholder {
    display: none;
}

.itemInfo {
    position: absolute;
    left: 42%;
    right: 0;
    top: 0;
    bottom: 0;
    padding: 0;
    overflow: hidden;
}

.itemTitle {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    max-height: 48%;
    overflow: hidden;
    color: #111719;
    font-size: 40px;
    font-weight: bold;
    line-height: 1.04;
}

.itemPrice {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    color: #c84632;
    font-size: 54px;
    font-weight: bold;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.emptyState {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    display: none;
    color: #dce5e2;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}

.emptyState strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 62px;
    line-height: 1;
}

.emptyState span {
    display: block;
    font-size: 24px;
}

.qrDock {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 204px;
    min-height: 242px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid #36454a;
    border-radius: 8px;
    background: #182227;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

.qrTitle {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.1;
}

.qrPanel {
    width: 166px;
    margin: 0 auto;
}

.controlLink {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: #51c2b6;
    color: #101518;
    font-weight: bold;
    text-decoration: none;
}

.rcRoomQrCodeLink,
.rcRoomQrCodeLink * {
    box-sizing: content-box;
}

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin-left: auto;
    margin-right: auto;
    border: solid 8px #ffffff;
    border-radius: 8px;
    background-color: #ffffff;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 0 28px #000000;
    -webkit-transition: opacity 1s ease;
    transition: opacity 1s ease;
    -webkit-transform-origin: center;
    transform-origin: center;
}

.rcTechLabel {
    margin: 0 0 8px 0;
    padding: 4px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background-color: #000000;
    color: #ffffff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.2em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcRoomQrCode {
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.rcRoomQrCode img,
.rcRoomQrCode canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.rcRoomId {
    margin: 8px 0 0 0;
    padding: 4px;
    overflow: hidden;
    border-radius: 0 0 8px 8px;
    background-color: #000000;
    color: #ffffff;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.25em;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.qrHidden .qrDock {
    display: none;
}

body.qrHidden .menuHeader,
body.qrHidden .menuBoard {
    right: 34px;
}

.lean-paint,
.lean-paint .menuScreen {
    background: #0f1517;
}

.lean-paint .menuItemInner,
.lean-paint .qrDock,
.lean-paint .rcRoomQrCodeLink {
    box-shadow: none;
}

.lean-paint .rcRoomQrCodeLink {
    -webkit-transition: none;
    transition: none;
}

.lean-paint .photoPlaceholder {
    text-shadow: none;
}

@media (max-width: 900px),
(orientation: portrait) {
    .menuHeader {
        left: 14px;
        right: 14px;
        top: 14px;
        height: 114px;
    }

    .titleBlock {
        max-width: 100%;
    }

    h1 {
        font-size: 38px;
    }

    .menuHeader p {
        font-size: 17px;
    }

    .networkStatus {
        display: none;
    }

    .menuBoard {
        left: 14px;
        right: 14px;
        top: 140px;
        bottom: 292px;
    }

    body.qrHidden .menuBoard {
        bottom: 14px;
    }

    .qrDock {
        left: 14px;
        right: auto;
        top: auto;
        bottom: 14px;
        width: 154px;
        min-height: 220px;
        padding: 8px;
    }

    .qrTitle {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .qrPanel {
        width: 166px;
        -webkit-transform: scale(0.78);
        transform: scale(0.78);
        -webkit-transform-origin: top left;
        transform-origin: top left;
    }

    .menuItem {
        width: 100%;
        height: 25%;
        padding: 5px 0;
    }

    .photoArea {
        width: 42%;
    }

    .itemInfo {
        left: 42%;
        padding: 0;
    }

    .itemTitle {
        left: 0;
        right: 0;
        top: 0;
        font-size: 28px;
    }

    .itemPrice {
        left: 0;
        right: 0;
        bottom: 0;
        font-size: 38px;
    }

    .photoPlaceholder {
        font-size: 30px;
    }

    .emptyState strong {
        font-size: 40px;
    }

    .emptyState span {
        font-size: 17px;
    }
}

@media (max-height: 580px) and (orientation: landscape) {
    .menuHeader {
        top: 14px;
        height: 96px;
    }

    h1 {
        font-size: 38px;
    }

    .menuHeader p {
        margin-top: 4px;
        font-size: 16px;
    }

    .menuBoard {
        top: 116px;
        bottom: 14px;
    }

    .itemTitle {
        font-size: 32px;
    }

    .itemPrice {
        font-size: 44px;
    }
}
