:root {
    --app-header-height: 60px;
    --app-footer-height: 90px;
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
}

.ccm-toolbar-visible body,
.ccm-toolbar-visible html {
    height: calc(100% - 48px);
}

header#pageTopic {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--app-header-height);
    background-color: var(--white);
    color: var(--color-primary);
    border-bottom: 1px solid var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    z-index: 1030;
}

.ccm-toolbar-visible header#pageTopic {
    top: 48px;
}

main {
    position: relative;
    top: var(--app-header-height);
    bottom: var(--app-footer-height);
    overflow-y: auto;
    padding: 1rem;
    height: calc(100vh - var(--app-header-height) - var(--app-footer-height));
    background-color: var(--light);
}

.ccm-toolbar-visible main {
    height: calc(100vh - var(--app-header-height) - var(--app-footer-height) - 48px);
}

footer {
    height: var(--app-footer-height);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--light);
    z-index: 1030;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
}

.footer-nav a {
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: var(--dark);
    font-weight: 400;
}

.footer-nav i {
    font-size: 1.5rem;
    display: block;
}

.footer-nav a:focus {
    outline: none;
}

.footer-nav a .badge {
    font-weight: 400;
}

.footer-nav a.active {
    color: var(--highlight);
}