html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #f4f4f4;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 14px 14px 0;
}

#note {
    box-sizing: border-box;
    display: block;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 15px 20px;
    resize: none;
    border: 1px solid #d8d8d8;
    border-radius: 2px;
    outline: 0;
    color: #222;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    font: 16px/1.45 Arial, Helvetica, sans-serif;
}

#footer {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    color: #b9b9b9;
    text-align: center;
    font: bold 14px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}

#status {
    position: fixed;
    right: 18px;
    bottom: 7px;
    color: #999;
    font: 12px/1.2 Arial, Helvetica, sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

#status.visible {
    opacity: 1;
}

@media (max-width: 640px) {
    .page {
        padding: 8px 8px 0;
    }

    #note {
        padding: 12px 14px;
        font-size: 16px;
    }

    #footer {
        flex-basis: 40px;
        min-height: 40px;
        font-size: 12px;
        line-height: 1.4;
        white-space: normal;
    }
}
