html,
body {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background: #f4f5f2;
    color: #18211d;
    font-family: Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

.vote-shell {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    padding: 28px;
    width: 100%;
}

.vote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    border-bottom: 4px solid #18211d;
}

.eyebrow {
    margin: 0 0 6px 0;
    color: #5e6b65;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0;
}

.vote-header h1,
.results-heading h2 {
    margin: 0;
    line-height: 1;
}

.vote-header h1 {
    font-size: 48px;
}

.room-status {
    text-align: right;
    font-size: 16px;
}

.room-status span,
.room-status a {
    display: block;
    color: #18211d;
    text-decoration: none;
}

.vote-layout {
    display: table;
    width: 100%;
    table-layout: fixed;
    display: flex;
    min-height: 0;
    padding-top: 26px;
}

.results-panel {
    display: table-cell;
    vertical-align: top;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 28px;
}

.results-heading {
    display: table;
    width: 100%;
    table-layout: fixed;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.results-heading > div:first-child {
    display: table-cell;
    vertical-align: bottom;
}

.results-heading h2 {
    font-size: 30px;
}

.total-box {
    display: table-cell;
    width: 170px;
    min-width: 170px;
    padding: 12px 16px;
    border: 3px solid #18211d;
    background: #ffffff;
    color: #18211d;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.results-list {
    margin: 0;
    padding: 22px 0 0 0;
    list-style: none;
}

.result-item {
    margin: 0 0 14px 0;
}

.result-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.result-name {
    overflow: hidden;
    color: #18211d;
    font-size: 26px;
    font-weight: bold;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-value {
    flex: 0 0 auto;
    margin-left: 18px;
    color: #4c5752;
    font-size: 18px;
    font-weight: bold;
}

.bar-track {
    position: relative;
    height: 34px;
    border: 3px solid #18211d;
    background: #ffffff;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    transition: width 180ms ease;
}

.join-panel {
    display: table-cell;
    width: 250px;
    vertical-align: top;
    flex: 0 0 250px;
}

.join-card {
    border: 4px solid #18211d;
    background: #ffffff;
    padding: 18px;
    text-align: center;
}

.join-card h2 {
    margin: 0 0 14px 0;
    font-size: 28px;
    line-height: 1;
}

.qr-panel {
    text-align: center;
}

.control-link {
    display: block;
    border: 3px solid #18211d;
    color: #18211d;
    padding: 20px 10px;
    text-decoration: none;
    font-weight: bold;
}

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

.rcRoomQrCodeLink {
    display: block;
    width: 150px;
    margin: 0 auto;
    border: solid 8px #fff;
    border-radius: 8px;
    color: #fff;
    background-color: #fff;
    text-align: center;
    transition: opacity 1s ease;
    text-decoration: none;
}

.rcTechLabel {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    font-weight: bold;
    margin: 0 0 8px 0;
    padding: 4px;
    letter-spacing: 0.2em;
    border-radius: 8px 8px 0 0;
}

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

.rcRoomId {
    background-color: #000;
    color: #fff;
    font-family: monospace;
    font-size: 16px;
    padding: 4px;
    margin: 8px 0 0 0;
    letter-spacing: 0.25em;
    border-radius: 0 0 8px 8px;
}

body.lean-paint .bar-fill {
    transition: none;
}

body.lean-paint .vote-shell {
    padding: 16px;
}

body.lean-paint .vote-header {
    min-height: 56px;
}

body.lean-paint .vote-header h1 {
    font-size: 32px;
}

body.lean-paint .vote-layout {
    padding-top: 12px;
}

body.lean-paint .results-heading {
    margin-bottom: 10px;
}

body.lean-paint .results-heading h2 {
    font-size: 24px;
}

body.lean-paint .total-box {
    width: 170px;
    padding: 9px 12px;
    font-size: 18px;
}

body.lean-paint .result-item {
    margin-bottom: 13px;
}

body.lean-paint .results-list {
    padding-top: 28px;
}

body.lean-paint .result-label-row {
    margin-bottom: 5px;
}

body.lean-paint .result-name {
    font-size: 22px;
}

body.lean-paint .result-value {
    margin-left: 12px;
    font-size: 16px;
}

body.lean-paint .bar-track {
    height: 36px;
}

body.lean-paint .join-card {
    padding: 10px;
}

@media (min-width: 1500px) {
    .vote-shell {
        padding: 42px;
    }

    .vote-header h1 {
        font-size: 64px;
    }

    .results-heading h2 {
        font-size: 42px;
    }

    .result-name {
        font-size: 38px;
    }

    .result-value {
        font-size: 28px;
    }

    .bar-track {
        height: 58px;
    }

    .join-panel {
        width: 300px;
        flex-basis: 300px;
    }
}

@media (max-height: 650px) {
    .vote-shell {
        padding: 12px;
    }

    .vote-header {
        min-height: 50px;
    }

    .vote-header h1 {
        font-size: 32px;
    }

    .results-heading {
        margin-bottom: 10px;
    }

    .vote-layout {
        padding-top: 10px;
    }

    .results-heading h2 {
        font-size: 24px;
    }

    .total-box {
        width: 170px;
        padding: 9px 12px;
        font-size: 18px;
    }

    .result-item {
        margin-bottom: 13px;
    }

    .results-list {
        padding-top: 28px;
    }

    .result-name {
        font-size: 22px;
    }

    .result-value {
        margin-left: 12px;
        font-size: 16px;
    }

    .result-label-row {
        margin-bottom: 5px;
    }

    .bar-track {
        height: 36px;
    }

    .join-card {
        padding: 8px;
    }

    .join-card h2 {
        margin-bottom: 8px;
        font-size: 22px;
    }
}

@media (max-width: 760px), (orientation: portrait) {
    .vote-shell {
        padding: 14px;
    }

    .vote-header {
        display: block;
        min-height: 72px;
    }

    .vote-header h1 {
        font-size: 32px;
    }

    .room-status {
        margin-top: 10px;
        text-align: left;
    }

    .vote-layout {
        display: block;
        width: auto;
        padding-top: 12px;
    }

    .results-panel {
        display: block;
        width: auto;
        padding-right: 0;
    }

    .results-heading {
        display: block;
        width: auto;
        margin-bottom: 10px;
    }

    .results-heading h2 {
        font-size: 22px;
    }

    .total-box {
        display: block;
        margin-top: 8px;
        padding: 8px 10px;
        width: 100%;
        font-size: 18px;
    }

    .result-item {
        margin-bottom: 14px;
    }

    .results-list {
        padding-top: 28px;
    }

    .result-label-row {
        display: block;
        margin-bottom: 4px;
    }

    .result-name {
        font-size: 20px;
    }

    .result-value {
        display: block;
        font-size: 15px;
        margin-left: 0;
    }

    .bar-track {
        height: 30px;
    }

    .join-panel {
        display: block;
        width: auto;
        margin-top: 12px;
    }

    .join-card {
        max-width: 220px;
        margin: 0 auto;
        padding: 10px;
    }

    .join-card h2 {
        margin-bottom: 8px;
        font-size: 20px;
    }

    .qr-panel {
        height: 124px;
        overflow: hidden;
    }

    .rcRoomQrCodeLink {
        transform: scale(0.56);
        transform-origin: top center;
    }
}
