// Simple page layout

.page {
    height: 100%;
    overflow-y: auto;
    // allow scrolling on iOS
    -webkit-overflow-scrolling: touch;

    // disable text selection
    user-select: none;

    &__canvas {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        padding: 10px 20px;
        background: $color-white;
        color: $color-text;
    }

    &__header {
        margin: 45px 0;
        img {
            display: block;
            width: 120px;
            height: 120px;
            margin: 0 auto;
        }

        @include respond-to(md) {
            margin: 100px 0 60px;
        }
    }

    .toolbar {
        .toolbar__label {
            @include respond-to(xs-only) {
                padding-left: 0;
            }
        }
    }

    &__main {
        flex-grow: 1;
        margin: 0 auto 20px;
        max-width: 400px;
        width: 100%;
    }

    &__footer {
        width: 100%;
        text-align: center;
        font-size: $font-size-small;
        color: $color-text-light;
        line-height: 1.5;

        nav {
            ul {
                list-style: none;
                margin: 0;
                padding: 0;
            }
            li {
                display: inline;
                &:after {
                    display: inline-block;
                    content: ' | ';
                    margin: 0 0.5em;
                }
                &:last-child:after {
                    display: none;
                }
            }
            a {
                color: inherit;
                text-decoration: none;
                &:hover,
                &:focus {
                    text-decoration: underline;
                }
            }
        }

        @include respond-to(md) {
            text-align: left;
            nav {
                float: right;
            }
        }
    }
}


