@font-face {
    font-family: "Vavont";
    font-style: normal;
    font-weight: normal;
    src: url("/font/vavont_webfont.ttf");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 300;
    src: local("Roboto Light"), local("Roboto-Light"), url("/font/roboto_light.woff") format("woff");
}

@keyframes spin {
    0% {
        text-shadow:0px 0px 2px rgba(245, 245, 240, 0.7);
        transform: scale(0.9) rotate(0deg);
    }

    50% {
        text-shadow: 0 0 3px rgba(245, 245, 240, 0.7);
        transform: scale(1) rotate(180deg);
    }

    100% {
        text-shadow:0px 0px 2px rgba(245, 245, 240, 0.7);
        transform: scale(0.9) rotate(360deg);
    }
}

a {
    color: rgb(146, 104, 101);
    cursor: pointer;
}

body.dark a {
    color: rgb(234, 220, 0);
}

a:visited, a:visited:hover {
    color: rgba(126, 94, 91, 0.9);
}

body.dark a:visited, body.dark a:visited:hover {
    color: rgba(199, 186, 0, 0.9);
}

a:hover {
    color: rgb(126, 84, 81);
    text-decoration: none;
}

body.dark a:hover {
    color: rgba(214, 210, 0, 0.9);
}

a.btn-large:focus, .btn:focus, .close {
    outline: 0;
}

body {
    background-image:
        linear-gradient(rgba(105, 67, 0, 0.1) 0%, transparent 5.5%),
        url(/img/wood.png);

    background-repeat:
        no-repeat,
        repeat;

    background-size:
        auto,
        400px 400px;

    overflow-x: hidden;
    padding: 3vh;
}

body.dark {
    background-color: rgb(0, 0, 0);
    background-image: radial-gradient(circle,
        rgb(40, 40, 40) 65%,
        rgb(20, 20, 20)
    );
    background-attachment: fixed;
}

.breaker {
    clear: both;
}

.btn-large {
    background-image: linear-gradient(
        rgba(255, 250, 245, 0.7),
        rgba(245, 240, 235, 0.75)
    );

    box-shadow:
        rgba(215, 210, 205, 0.2) 0px 1px 0px 0px inset,
        rgba(10, 5, 0, 0.0470588) 0px 1px 2px 0px;

    border-color: rgba(215, 200, 190, 0.95);
    color: rgb(105, 67, 0);
    opacity: 0.9;
    text-shadow: 1px 1px 1px rgba(225, 220, 215, 0.95);
}

body.dark .btn-large {
    background-image: linear-gradient(
        rgba(10, 10, 10, 0.7),
        rgba(15, 15, 15, 0.75)
    );

    box-shadow:
        rgba(40, 40, 40, 0.2) 0px 1px 0px 0px inset,
        rgba(250, 250, 250, 0.0470588) 0px 1px 2px 0px;

    border-color: rgba(50, 50, 50, 0.95);
    color: rgb(200, 200, 180);
    opacity: 1;
    text-shadow: 1px 1px 1px rgba(30, 30, 30, 0.95);
}

.btn-large:hover {
    background: rgba(245, 240, 235, 0.95);
    color: rgb(75, 37, 0);
}

body.dark .btn-large:hover {
    background: rgba(60, 60, 60, 0.95);
    color: rgb(190, 190, 170);
}

.btn-primary {
    background-image: linear-gradient(#6389C1, #4369A1);
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}

body.dark .btn-primary {
    background-color: rgb(150, 150, 130);
}

/** Search button hover */
.btn-primary:hover {
    background-color: #4369A1;
}

/** Highlighted button icon color */
.icon-white {
    color: rgba(245, 245, 240, 0.95);
    text-shadow: 1px 1px 1px rgba(105, 67, 0, 1);
}

.spinner {
    animation: spin 2.5s ease-in-out infinite;
    color: rgba(245, 245, 240, 0.8);
    font-size: 35px;
    line-height: 61px;
    position: absolute;
    margin-left: 10%;
    opacity: 0;
    text-shadow: 0 0 1px rgba(245, 245, 240, 0.7);
    transition: opacity .2s ease-in;
}

/** Message shown when app cannot start, like on Safari private mode */
.toast {
    background: rgba(15, 10, 0, 0.6);
    border: 1px solid rgba(15, 10, 0, 0.7);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 5px 1px;
    color: rgb(255, 255, 255);
    font-family: Baskerville, Georgia, serif;
    font-size: 16px;
    padding: 6px;
    text-align: center;
}

#account .info {
    margin-top: 2px;
    position: absolute;
    right: 10px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

#account .purchase {
    border-radius: 5px;
    box-shadow: none;
    box-sizing: border-box;
    display: none;
    font-family: Georgia, Baskerville, serif;
    font-size: 15px;
    line-height: 35px;
    margin-bottom: 5px;
    margin-left: 10px;
    margin-top: 8px;
    padding: 0 25px;
    outline: 0;
    width: auto;
}

#account.google_drive_sync_info #sync .google_drive .purchase,
#account.dropbox_sync_info #sync .dropbox .purchase {
    display: inline-block;
}

#account.registering #account_register {
    transform: translateY(80px);
    transition: transform .3s cubic-bezier(1.00, 0.00, 0.58, 0.68);
}

#account.registering .or {
    transform: translateY(75px);
    transition: transform .3s cubic-bezier(1.00, 0.00, 0.58, 0.74);
}

#account.registering input {
    transform: translateY(-97px);
    transition: transform .3s cubic-bezier(1.00, 0.00, 0.58, 0.68);
}

#account.registering .spinner {
    margin-top:-90px;
    z-index:337;
}

#account .logout, #account .settings {
    box-sizing: border-box;
    transform: translateY(-39px);
    transition: transform .2s ease-out;
    position: absolute;
    top: -600px;
}

#account.authorizing .spinner {
    opacity: 1;
    z-index: 339;
}

#account.authorized .spinner {
    opacity: 0;
}

#account .or {
    text-align: center;
    font-size: 20px;
    font-family: Baskerville, Georgia, serif;
    margin-bottom: 15px;
    color: rgba(105, 67, 0, 0.95);
    text-shadow: 1px 1px 1px rgba(105, 67, 0, 0.2);
}

body.dark #account .or {
    color: rgba(180, 180, 160, 0.95);
    text-shadow: 1px 1px 1px rgba(180, 180, 160, 0.2);
}

#account.error .error_message {
    padding: 9px 14px;
    transition: transform .25s cubic-bezier(1.00, 0.00, 0.58, 0.68) .5s;
    transform: translateX(0);
    display:block;
}

#account.error .error_message label {
    display: inline;
    font-family: Baskerville, Georgia, serif;
    font-size:16px;
    line-height:18pt;
}

#user #account.error .status_updating,
#user.authorized #account.error .status_500,
#user.authorized #account.error .status_503,
#user.authorized #account.error .status_0 { display:none; }

#account.error .error_message .reset_password {
    margin-top:16px;
    cursor:pointer;
    display:none;
}

#account.error .status_403 .reset_password { display:block; }

#account.error .force_logout { display: none; }

#account.error .status_lose_data_warning .force_logout {
    display: block;
    font-size: 16px;
    position: relative;
    top: 8px;
}

#account.error .error_message .reset_password:before {
    text-decoration:underline;
    content: 'Did you forget it?';
}

#account.error .error_message label:before {
    content: 'An unexpected error occurred. Try removing and reinstalling.'; }
#account.error .status_0 label:before {
    content: 'Connection to the sync server was interrupted. Try again?'; }
#account.error .error_message.status_500 label:before,
#account.error .error_message.status_503 label:before {
    content: 'The cloud service is temporarily offline. Try again later :(';
}
#account.error .status_403 label:before,
#account.error .status_404 label:before {
    content: 'Incorrect email or password. Typo?'; }
#account.registering .status_403 label:before {
    content: 'This email is already taken. If it\'s yours, you may have a typo in your password?'; }
#account.error .status_invalid_email label:before {
    content: 'Doesn\'t look like a correct email address. Typo?'; }
#account.error .status_missing_email label:before {
    content: 'You forgot to enter an email address!'; }
#account.error .status_missing_password label:before {
    content: 'You forgot to enter a password!'; }
#account.error .status_lose_data_warning label:before {
    content: 'Notice: Cloud sync is still in progress, please wait a sec to logout'; }
#account.error .status_password_reset_sent label:before {
    content: 'No problem, check your inbox.'; }
#account.error .status_publish_no_content label:before {
    content: 'Nothing to publish. Try writing something?'; }
#account.error .status_note_too_long label:before {
    content: 'Maximum note length reached. Make a new note?'; }

#user.authorized #account.error .status_404 label:before {
    content: ''; }

#account.error .status_404_tumblr_account_details label:before,
#account.error .status_404_buffer_account_details label:before,
#account.error .status_404_github_account_details label:before,
#account.error .status_404_facebook_account_details label:before,
#account.error .status_404_wordpress_account_details label:before {
    content: 'Could not connect to your account. Try again later?';
}

#account.error .status_404_tumblr_missing_id label:before,
#account.error .status_404_buffer_missing_id label:before,
#account.error .status_404_github_missing_id label:before,
#account.error .status_404_facebook_missing_id label:before,
#account.error .status_404_wordpress_missing_id label:before {
    content: 'Could not get your account details. Try again later?';
}

#actions {
    padding: 10px 0;
    z-index: 0;
}

#made_by {
    margin-bottom: 8px;
    margin-left: 10px;
    margin-top: 17px;
    text-indent: 0;
}

#made_by a {
    color: rgba(255, 250, 245, 0.8);
    margin-right: 4px;
    white-space: nowrap;
}

#made_by a:hover {
    color: rgba(240, 234, 231, 1);
}

#main {
    overflow-x: hidden;
}

#metadata .date .chevron {
    display: inline-block;
    transform: rotate(0deg);
    transition: all 0.15s cubic-bezier(1.00,0.00,0.58,0.68);
    width: 16px;
}

#metadata .section { margin: 6px 0 0 0; }

#metadata.active .section { margin: 6px 0; }

#metadata .section { display: none; }

#metadata.active .date .chevron {
    transform: rotate(90deg) translateX(5px) scale(1.1) translateY(3px);
}

#metadata.active .minimized, #metadata .active_inline {
    display:none;
}

#metadata.active .active_inline { display: inline-block; }

#metadata .date {
    background: rgba(15, 10, 0, 0.6);
    border: 1px solid rgba(15, 10, 0, 0.7);
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 5px 1px;
    box-sizing: border-box;
    color: white;
    font-family: Baskerville, Georgia, serif;
    height: 34px;
    overflow: hidden;
    padding-top: 6px;
    text-indent: 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    z-index: 337;
}

body.dark #metadata .date {
    color: rgb(195, 195, 175);
    background: rgba(66, 66, 66, 0.6);
    box-shadow: none;
}

#metadata .date .value {
    display:inline-block;
    font-size:16px;
    text-overflow: ellipsis;
}

#metadata .date .value:first-letter {
    text-transform: capitalize;
}

#metadata .date.section {
    display: block;
}

#notes, #share .preview {
    -webkit-box-sizing:border-box;
    -webkit-line-break: after-white-space;
    -webkit-nbsp-mode: space;
    -webkit-user-modify: read-write;
    background: transparent;
    border: 0; 
    border-left: 2px solid rgba(161, 76, 70, 0.45);
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    color: rgba(0,0,24,1);
    cursor: text;
    direction: ltr;
    font-family: "Vavont", BlinkMacSystemFont, -apple-system, "Helvetica Neue",
        Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 25px;
    margin-left: 5%;
    outline: 0;
    overflow: auto;
    overflow-x: hidden;
    padding-left: 13px;
    padding-right: 2%;
    padding-top: 32px;
    position: relative;
    resize: none;
    unicode-bidi: embed;
    white-space: pre-line;
    width: 94%;
}

body.dark #notes, body.dark #share .preview {
    border-left: 0;
    padding-left: 2%;
}

#paper {
    background-color: #fff;
    background-image:
        linear-gradient(rgba(53,85,131,0.1) 0%, rgba(255,255,255,0.2) 8%),
        url(/img/paperfibers.png);
    background-position:
        0 -3px,
        0 0;
    background-size:
        100% 25px,
        10% 10%;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(118, 80, 13, 0.9);
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 10px;
    position: relative;
}

body.dark #paper {
    background: rgb(40, 40, 40);
    box-shadow: 0 0 10px rgba(20, 20, 0, 0.9);
}

#paper.standard.size1 {
    background-size: 100% 28px, 10% 10%;
}

#paper.standard.size1 #notes {
    font-size: 17px;
    line-height: 28px;
    padding-top: 33px;
}

#paper.standard.size2 {
    background-size: 100% 30px, 10% 10%;
}

#paper.standard.size2 #notes {
    font-size: 19px;
    line-height: 30px;
    padding-top: 35px;
}

/** Handwriting sizes */

#paper.handwriting.size1 {
    background-size: 100% 27px, 10% 10%;
}

#paper.handwriting.size1 #notes {
    font-size: 22px;
    line-height: 27px;
    padding-top: 34px;
}

#paper.handwriting.size2 {
    background-size: 100% 29px, 10% 10%;
}

#paper.handwriting.size2 #notes {
    font-size: 24px;
    line-height: 29px;
    padding-top: 36px;
}

/** Monospace sizes */

#paper.monospace.size1 {
    background-size: 100% 27px, 10% 10%;
}

#paper.monospace.size1 #notes {
    padding-top: 32px;
    font-size: 15px;
    line-height: 27px;
}

#paper.monospace.size2 {
    background-size: 100% 29px, 10% 10%;
}

#paper.monospace.size2 #notes {
    padding-top: 34px;
    font-size: 17px;
    line-height: 29px;
}

#paper.monospace {
    background-image:
        linear-gradient(rgba(53,85,131,0.1) 0%, rgba(255,255,255,0.3) 8%),
        url(/img/paperfibers.png);
}

#paper.monospace #notes {
    border-left-color: rgba(161, 76, 70, 0.4);
    font-family: Monaco, monospace;
    padding-top:30px;
    font-size:13px;
}

#paper.standard #notes {
    cursor: text;
    font-family: BlinkMacSystemFont, -apple-system, "Helvetica Neue", Roboto,
        Helvetica, sans-serif;
    font-size: 15px;
    padding-top: 29px;
}

#premium h4 {
    font-family: Georgia, Baskerville, serif;
}

#premium .perks {
    padding: 8px;
    padding-bottom: 16px;
    padding-top: 0;
}

#premium .perks i {
    float: left;
    font-size: 2em;
    margin-right: 12px;
    margin-top: 4px;
}

#premium .perks p {
    line-height: 1.8em;
}

#search {
    height: 0px;
    margin-bottom: 0;
    overflow: hidden;
    transition: height .15s linear;
}

#search.active {
    height: 47px;
}

#search.active + #stacks {
    max-height: 600px;
}

#search .search {
    background: rgba(255, 255, 255, 0.5);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: rgba(105, 67, 0, 0.95);
    font-family: Georgia, serif;
    font-size: 12pt;
    padding: 10px;
    text-shadow: 1px 1px 1px rgba(105, 67, 0, 0.2);
    width: 100%;

    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

body.dark #search .search {
    color: rgb(10, 10, 0);
    text-shadow: 1px 1px 1px rgba(90, 90, 90, 0.2);
}

body.dark #search .search::-webkit-input-placeholder {
    color: rgb(100, 100, 80);
}

#share, #premium {
    background-image: url(/img/paperfibers.png);
    outline: 0;
    overflow: visible;
}

#share h3, #premium h3 {
    color: rgba(35, 10, 0, 0.95);
    font-family: Georgia, Baskerville, serif;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: -1px 1px 1px rgba(50, 50, 50, 0.2);
}

#share h3 i {
    margin-right: 4px;
}

#share .btn, #premium .btn {
    color: rgba(255, 255, 255, 0.99);
    font-family: Georgia, Baskerville, serif;
    text-shadow: 0 1px rgba(0, 0, 0, 0.5);
}

#share .close {
    color: rgb(0, 0, 0);
}

#share .content {
    padding-left: 10px;
    padding-right: 5px;
    margin-top: -20px;
}

#share .emails::-webkit-input-placeholder {
    padding-top: 0px;
}

#share .emails {
    padding-top:7px;
}

#share[data-style=handwriting] .emails {
    padding-top:6px;
}

#share[data-style=handwriting] .emails::-webkit-input-placeholder {
    padding-top:3px;
}

#share .icon, #premium .icon {
    margin-right:5px;
}

#share .input-block-level {
    background-color: rgba(255, 255, 255, 0);
    background-image:
        linear-gradient(rgba(53, 85, 131, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 8%);
    background-size: 100% 25px;
    background-position: 0 -5px;
    border: 0;
    box-shadow: none;
    color: rgba(0, 0, 24, 1);
    font-family: Vavont, sans-serif;
    font-size: 20px;
    line-height: 25px;
    outline: 0;
    resize: none;
}

#share[data-style=monospace] .input-block-level {
    background-position: 0 -4px;
    font-family: Monaco, monospace;
    font-size: 13px;
}

#share[data-style=standard] .input-block-level {
    background-position: 0 -3px;
    font-family: BlinkMacSystemFont, -apple-system, "Helvetica Neue", Roboto,
        Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 300;
}

#share .line {
    background: rgba(161, 76, 70, 0.3);
    height: 121px;
    margin-left: 3px;
    position: absolute;
    top: 0;
    width: 1px;
}

#share .modal-body, #premium .modal-body {
    padding-bottom: 0;
}

#share[data-style=monospace] .preview {
    font-family: Monaco, monospace;
    font-size: 7px;
    padding-top: 3px;
}

#share[data-style=standard] .preview {
    font-family: BlinkMacSystemFont, -apple-system, "Helvetica Neue", Roboto,
        Helvetica, sans-serif;
    padding-top:2px;
    font-size:7px;
}

#share .title, #premium .title {
    display: inline-block;
    max-width: 65%;
    white-space: nowrap;
}

#share .token-input {
    font-weight: 300;
}

#share .tokenfield {
    background: rgba(225, 228, 233, 0.25);
    padding: 6px;
}

#share .tokenfield.focus {
    border: none;
    box-shadow: none;
}

#share .tokenfield .token {
    background-color: transparent;
}

#share .modal-footer, #premium .modal-footer {
    background-color: rgba(255, 255,255, 0.2);
    border-top: 0;
    box-shadow: none;
    padding-top: 0;
}

#share .preview {
    -webkit-user-modify: read-only;
    background-image:
        linear-gradient(rgba(53, 85, 131, 0.2) 0%,
        rgba(255, 255, 255, 0.3) 8%),
        url(/img/paperfibers.png);
    background-color: rgba(255, 255, 255, 0.8);
    background-position: 0 0, 0 0;
    background-size: 100% 10px, 10% 10%;
    border: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.3);
    font-size: 8px;
    height: 121px;
    line-height: 10px;
    margin: 0 auto;
    opacity: 0.9;
    overflow: hidden;
    padding: 0 0 0 4px;
    text-align: justify;
    transition: transform .2s cubic-bezier(1.00, 0.00, 0.58, 0.68) .2s;
}

#stacks {
    list-style: none;
    margin: 0;
    overflow: auto;
}

#stacks .confirm {
    color: rgba(105, 67, 0, 1);
    font-weight: 700;
    margin-right: -150px;
    margin-top: -6px;
    transition: margin-right .15s cubic-bezier(1.00,0.00,0.58,0.68);
}

#stacks .empty {
    display: none;
    font-style: italic;
}

#stacks .stack:first-child, #stacks .selected {
    display:block;
}

#stacks .stack {
    box-sizing: border-box;
    color: rgba(105, 67, 0, 0.9);
    cursor: pointer;
    font-family: Georgia, serif;
    font-size: 16px;
    height: 0;
    line-height: 17px;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    padding: 10px;
    padding-bottom: 0;
    padding-right: 38px;
    padding-top: 0;
    text-overflow: ellipsis;
    text-shadow: 1px 1px 1px rgba(105, 67, 0, 0.2);
    white-space: nowrap;
}

body.dark #stacks .stack {
    color: rgba(167, 167, 147, 0.78);
    text-shadow: 1px 1px 1px rgba(10, 10, 0, 0.3);
}

#stacks .stack:hover {
    background: rgba(105, 67, 0, 0.1);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

body.dark #stacks .stack:hover {
    background: rgba(90, 90, 90, 0.1);
}

#stacks .stack.searchMiss {
    display: none;
}

#stacks .stack.selected, #stacks .selected:hover, #stacks .highlight {
    background-color: rgba(105, 67, 0, 0.9);
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    color: rgba(255, 205, 136, 0.9);
    text-shadow: 1px 1px 1px rgba(105, 67, 0, 0.5);
}

body.dark #stacks .stack.selected,
body.dark #stacks .selected:hover,
body.dark #stacks .highlight {
    background-color: rgba(67, 67, 67, 0.9);
    color: rgba(205, 205, 185, 0.9);
    text-shadow: 1px 1px 1px rgba(7, 7, 7, 0.3)
}

#stacks .stack.added {
    height: 38px;
    opacity: 1;
    padding-bottom: 10px;
    padding-top: 10px;
    transition: height .15s ease-in, padding .15s ease-in,
        opacity .25s ease-in;
}

#stacks .stack.removed {
    background: transparent;
    height: 0;
    opacity: 0;
    padding-bottom: 0;
    padding-top: 0;
    transition: height .15s ease-in, padding .15s ease-in,
        opacity .25s ease-in;
}

@media (max-width: 767px) {
    #stacks .confirm {
        margin-top:-36px;
    }
}

#stacks .confirm.appear {
    margin-right:-34px;
}

#stacks .title {
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

#title_bar {
    -webkit-app-region: drag;
    color: rgba(29, 20, 5, 0.5);
    font-size: 16px;
    left: 0;
    padding: 4px 11px;
    position: absolute;
    right: 0;
    top: 0;
}

#title_bar:hover {
    color: rgba(29, 20, 5, 0.65);
}

#title_bar .fullscreen {
    float: right;
    margin: 0;
}

#title_bar .window_action {
    cursor: pointer;
    margin-right: 5px;
}

#title_bar .window_action:active {
    color: rgba(29, 20, 5, 0.8);
}

#user {
    margin-top:10px;
}

#user button, #user .button, #user .logout {
    background-image: linear-gradient(#5379B1, #4369A1);
    box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 5px 1px;
    box-sizing: border-box;
    border: 1px solid rgba(53, 85, 131, 0.9);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.99);
    cursor: pointer;
    display: block;
    font-family: Baskerville, Georgia, serif;
    font-size: 18px;
    line-height: 38px;
    margin-bottom: 15px;
    margin-top: 0px;
    outline: 0;
    overflow: hidden;
    padding: 2px 0;
    text-align: center;
    text-shadow: 0 1px rgba(0, 0, 0, 0.3);
    user-select: none;
    width: 100%;
}

body.dark #user button,
body.dark #user .button,
body.dark #user .logout {
    background-image: linear-gradient(rgb(191, 179, 11), rgb(195, 180, 0));
    border: 1px solid rgba(45, 45, 45, 0.9);
    color: rgba(20, 20, 20, 0.99);
    text-shadow: 0 1px rgba(250, 250, 250, 0.3);
}

#user button:active, #user .button:active, #user .logout:active {
    background-image: linear-gradient(#4369A1, #6389C1);
    transform: translateY(1px);
}

#user input, #user textarea, #user .settings {
    background: rgba(15, 10, 0, 0.6);
    border: 0;
    border-radius: 4px;
    box-shadow: rgba(10, 5, 0, 0.2) 1px 1px;
    color: #fff;
    cursor: text;
    font-family: Baskerville, Georgia, serif;
    font-size: 16px;
    list-style: none;
    margin-bottom: 5px;
    margin-top: 0;
    outline: 0;
    overflow: hidden;
    padding: 5px 0px;
    text-indent: 10px;
    width: 100%;
}

body.dark #user input {
    background: rgba(66, 66, 66, 0.6);
    box-shadow: rgba(5, 5, 5, 0.2) 1px 1px;
    color: rgb(190, 190, 170);
}

body.dark #user .settings {
    background: rgba(31, 31, 31, 0.6);
}

#user #account_register {
    position: relative;
    z-index: 1025;
}

#user #sync .option {
    text-indent: 0;
    white-space: nowrap;
}

#user .address {
    max-width: 50%;
}

#user.authorized .button.noauth, #user.authorized button.noauth {
    display:none;
}

#user .error_message {
    background: rgba(0,0,0,0.6);
    border: 0;
    border-radius: 3px;
    box-shadow: rgba(0,0,0,0.2) 1px 1px;
    box-sizing: border-box;
    color: #fff;
    cursor: text;
    display: none;
    font-family: Baskerville, Georgia, serif;
    font-size: 16px;
    line-height: 18pt;
    margin-bottom: 10px;
    outline: 0;
    padding: 16px 1px;
    text-align: center;
    transform: translateX(500px);
    width: 100%;
}

#user .option .fa {
    margin-left: 8px;
}

#user .registering #account_register.button:active {
    position: relative;
    top: 1px;
    transform: translateY(80px);
    transition: 0s;
}

#user .settings {
    border: 1px solid rgba(10, 5, 0, 0.6);
    box-shadow: 4px 3px 3px rgba(10, 5, 0, 0.2);
    margin-top: 0;
    padding-bottom: 3px;
    padding-top: 8px;
}

#user .settings label {
    font-size: 12pt;
    font-weight: 700;
}

#user .settings label.style {
    margin-bottom: 1px
}

#user .settings .icon-ok {
    bottom: 44px;
    font-size: 16px;
    position: absolute;
    right: 8px;
    text-shadow: 0 0 1px rgba(0,0,0,0.9);
}

#user .settings li.option {
    border-top: 1px solid rgba(240, 230, 210, 0.4);
    padding-bottom: 8px;
    padding-left: 1px;
    padding-right: 1px;
    padding-top: 8px;
}

#user .settings li.option:first-child {
    border-top: 0;
    padding-top: 0;
}

#user .settings li.option.handwriting {
    font-family: Vavont;
    font-size: 18px;
    padding-bottom: 6px;
}

#user .settings li.option.handwriting .icon-ok {
    top:10px;
}

#user .settings li.option.monospace .icon-ok {
    bottom:7px;
}

#user .settings li.option.standard {
    border-top: 1px solid rgba(240, 230, 210, 0.4);
    font-family: BlinkMacSystemFont, -apple-system, "Helvetica Neue", Roboto,
        Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
}

#user .settings li.option.monospace {
    border-top: 1px solid rgba(240, 230, 210, 0.4);
    font-family: Monaco, monospace;
    font-size: 13px;
    letter-spacing: 1px;
}

#user .settings ul {
    border: 1px solid rgba(240, 230, 210, 0.4);
    border-radius: 6px;
    box-shadow: inset 0px 0px 1px 1px rgba(240, 230, 210, 0.1);
    color: rgba(255, 250, 245, 1);
    list-style-type: none;
    margin: 9px;
    overflow: hidden;
    padding-left: 0;
    padding-top: 11px;
    position: relative;
    cursor:pointer;
}

#user .settings .change_background {
    cursor: pointer;
}

#user .settings .icon-ok {
    display:none;
}

#user .settings .label_option {
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    margin-left: 3px;
    user-select: none;
}

#user .settings .label_options {
    position: absolute;
    right: 10px;
    user-select: none;
    white-space: nowrap;
}

#user .settings .label_option:active,
#user .settings .change_background:active {
    color: rgba(255, 255, 255, 0.3);
}

#user #premium_background {
    border-width: 0;
    display: block;
    height: 0;
    margin: 0 auto;
    padding: 0 12px;
    transition: all 0.2s cubic-bezier(1, 0, 0.58, 0.68);
}

#user #metadata {
    display: none;
}

#user.authorized #metadata {
    display: block;
}

#user #style.monospace li.monospace .icon-ok,
#user #style.standard li.standard .icon-ok,
#user #style.handwriting li.handwriting .icon-ok {
    display: block;
}

#user #sync .remote i { display: none; }
#user #sync .remote.indeterminate .transition,
#user #sync .remote.off i.icon-check-empty,
#user #sync .remote i.info,
#user #sync .remote.on i.icon-check {
    display: inline-block;
}

#user.authorized .noauth {
    display:none;
    transform: translateX(500px);
    transition: transform .3s cubic-bezier(1.00, 0.00, 0.58, 0.68);
}

#user #email {
    position: relative;
}

#user #email .toggle_settings {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: none;
    margin-top: 11px;
    position: absolute;
    right: 10px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
    top: -1px;
    z-index: 338;
}

#user.authorized #email .toggle_settings {
    display:inline-block;
}

#user.authorized .email {
    cursor: pointer;
    border: 1px solid rgba(15, 10, 0, 0.7);
    box-shadow: rgba(0,0,0,0.3) 2px 2px 5px 1px;
    box-sizing: border-box;
    padding: 16px 32px 16px 0;
    position: relative;
    text-overflow: ellipsis;
    transition: margin .25s cubic-bezier(1.00,0.00,0.58,0.68) .31s;
    user-select: none;
    z-index: 337;
}

body.dark #user.authorized .email {
    box-shadow: none;
}

#user .options .email {
    font-weight: 700;
}

#user.authorized .options .logout, #user.authorized .options .settings {
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform .2s ease-out;
    position: relative;
    top: 0;
}

@media print {
    #notes, #paper {
        background: #fff;
        border: 0px;
        box-shadow: none !important;
        color: #000 !important;
        height: auto !important;
    }

    a {
        color: #000 !important;
    }

    #stacks, #nav, #user {
        display:none;
    }
}

@media (max-width:767px) {
    #stacks {
        max-height: 100px;
    }
}

@media (max-width:980px) {
    .settings_heading {
        visibility: hidden;
    }
}

@media (max-width:1015px) {
    #style .icon-ok,
    #user .credits,
    #user #sync .info {
        display: none !important;
    }
}

