html, body {
    margin: 0;
    padding: 0;
}

body {
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

.notes {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.notes__nav {
    padding: 10px;
    background-color: #eee;
    display: flex;
    align-items: flex-end;
}

.nav__title {
    font-weight: bold;
}

.nav__message {
    margin-left: 10px;
    font-size: 12px;
}

.nav__message--notice {
    animation: nav-message-saved 3s ease-in-out forwards;
}

@keyframes nav-message-saved {
    0% {
        opacity: 1;
    }

    10% {
        opacity: 0.7;
    }

    20% {
        opacity: 1;
    }

    30% {
        opacity: 0.7;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    60% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.nav__save {
    margin-left: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notes__content {
    padding: 5px 10px;
    flex: 1;
    border: 0;
    resize: none;
    outline: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: auto;
}

.notes--document .notes__nav {
    color: #fff;
    background-color: #0060df;
}

.notes--document .nav__save {
    background-color: #2f7ee6;
    border: 0;
    color: #fff;
    padding: 2px 10px;
    font-size: 12px;
}

.notes--document .nav__save:active {
    background-color: #215aa5;
}

