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

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

* {
    box-sizing: border-box;
}

.qanda-shell {
    min-height: 100vh;
    padding: 28px;
}

.qanda-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: #5d6b64;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0;
}

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

.qanda-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;
}

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

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

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

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

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

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

.question-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.question-item {
    position: relative;
    margin: 0 0 14px 0;
    border: 3px solid #18211d;
    background: #ffffff;
    padding: 16px 18px 16px 86px;
}

.question-rank {
    position: absolute;
    left: 18px;
    top: 16px;
    width: 46px;
    height: 46px;
    border: 3px solid #18211d;
    background: #24736f;
    color: #ffffff;
    font-size: 26px;
    font-weight: bold;
    line-height: 40px;
    text-align: center;
}

.question-text {
    margin: 0 0 12px 0;
    color: #18211d;
    font-size: 30px;
    font-weight: bold;
    line-height: 1.15;
}

.question-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #52605a;
    font-size: 20px;
    font-weight: bold;
}

.poster-name {
    overflow: hidden;
    padding-right: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-count {
    flex: 0 0 auto;
    color: #b4482f;
}

.empty-state {
    border: 3px dashed #8d9993;
    background: #ffffff;
    padding: 34px 20px;
    color: #52605a;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
}

.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 .rcRoomQrCodeLink {
    transition: none;
}

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

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

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

    .question-text {
        font-size: 38px;
    }

    .question-meta {
        font-size: 24px;
    }

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

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

    .qanda-header {
        min-height: 60px;
    }

    .qanda-header h1 {
        font-size: 30px;
    }

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

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

    .total-box {
        width: 190px;
        padding: 8px 10px;
        font-size: 18px;
    }

    .question-item {
        margin-bottom: 8px;
        padding: 10px 12px 10px 62px;
    }

    .question-rank {
        left: 12px;
        top: 10px;
        width: 34px;
        height: 34px;
        font-size: 18px;
        line-height: 28px;
    }

    .question-text {
        margin-bottom: 8px;
        font-size: 18px;
    }

    .question-meta {
        font-size: 15px;
    }

    .join-card {
        padding: 10px;
    }
}

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

    .qanda-header {
        display: block;
    }

    .qanda-header h1 {
        font-size: 38px;
    }

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

    .qanda-layout {
        display: block;
        width: auto;
        padding-top: 18px;
    }

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

    .questions-heading {
        display: block;
        width: auto;
    }

    .questions-heading > div:first-child {
        display: block;
    }

    .total-box {
        display: block;
        margin-top: 12px;
        width: 100%;
    }

    .question-item {
        padding-left: 72px;
    }

    .question-rank {
        width: 38px;
        height: 38px;
        font-size: 20px;
        line-height: 32px;
    }

    .question-text {
        font-size: 22px;
    }

    .question-meta {
        display: block;
        font-size: 17px;
    }

    .poster-name {
        display: block;
        padding-right: 0;
    }

    .vote-count {
        display: block;
        margin-top: 4px;
    }

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

    .join-card {
        max-width: 240px;
        margin: 0 auto;
    }
}
