body {
    min-height: 100vh;
}

.page-wrapper {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    padding-right: 0.5rem;
    width: fit-content;
    shrink: 0;
}

.sidebar a {
    text-decoration: none;
}

.sidebar button {
    cursor: pointer;
}

.main-content {
    overflow-y: auto;
    width: fit-content;
}

main {
    margin: 1rem;
}

.pictochat-message h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.pictochat-message p {
    margin: 0.75rem 0;
}

.pictochat-message > header {
    font-weight: bold;
}

.pictochat-status {
    margin: 0.5rem 0;
}

/* the "now entering" line: enter phrase in the pictochat yellow, name white */
.pictochat-status .entering {
    color: var(--color-ds-pictochat-enter);
}

.project-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.project-links a {
    text-decoration: none;
}

.project-links button {
    cursor: pointer;
}

.alert {
    width: 468px;
}

/* ds.css pins these boxes to 468px; let them shrink to fit on narrow screens */
@media (max-width: 520px) {
    .pictochat-message,
    .pictochat-status,
    .alert {
        width: auto;
        max-width: 100%;
        margin-inline: 0;
        box-sizing: border-box;
    }
}

/* stack the sidebar on top on mobile */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .sidebar {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.75rem;
        padding-bottom: 0;
        flex-wrap: wrap;
    }
}
