body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline; }

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block; }

ol, ul {
  list-style: none; }

blockquote, q {
  quotes: none; }

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none; }

table {
  border-collapse: collapse;
  border-spacing: 0; }

/*
MIXINS
*/
/*
VARIABLES
*/
.list_roundup {
  border: 1px solid #eee;
  border-bottom-color: #aaa;
  border-right-color: #ddd;
  position: relative;
  margin-bottom: .2em;
  margin-top: .4em;
  overflow: hidden;
  margin: .2em;
  padding-bottom: 0;
  border-radius: 1em;
  -webkit-border-radius: 1em;
  -moz-border-radius: 1em;
  -o-border-radius: 1em; }
  .list_roundup:first-child {
    border: 0; }
  .list_roundup .rename_input {
    position: absolute;
    top: 0;
    left: 0;
    outline: 0px;
    padding: .2em;
    border: 1px dotted #ccc;
    border-radius: 1em;
    -webkit-border-radius: 1em;
    -moz-border-radius: 1em;
    -o-border-radius: 1em; }
  .list_roundup .file_content {
    outline: 0;
    clear: both;
    padding: .5em; }
    .list_roundup .file_content p {
      padding: .1em 0em; }
      .list_roundup .file_content p:last-child {
        min-height: .2em; }
  .list_roundup .file_container {
    display: none; }
    .list_roundup .file_container.open {
      display: block; }
  .list_roundup.trash {
    opacity: 0.3;
    -webkit-opacity: 0.3;
    -moz-opacity: 0.3;
    -o-opacity: 0.3; }
    .list_roundup.trash .list_roundup.trash {
      opacity: 1;
      -webkit-opacity: 1;
      -moz-opacity: 1;
      -o-opacity: 1; }
    .list_roundup.trash a {
      color: #555; }
    .list_roundup.trash .link a.delete, .list_roundup.trash .link a.undelete {
      color: #000; }
  .list_roundup .link {
    font-size: .75em;
    color: #999;
    float: none;
    background-color: transparent;
    padding: .2em .5em;
    min-height: 1.5em;
    overflow: hidden;
    clear: both;
    float: none;
    padding-right: 0;
    padding-left: .5em;
    position: relative;
    margin-bottom: 0em;
    border-radius: 0.75em;
    -webkit-border-radius: 0.75em;
    -moz-border-radius: 0.75em;
    -o-border-radius: 0.75em; }
    .list_roundup .link.directory {
      font-weight: bold; }
    .list_roundup .link a, .list_roundup .link .dirspacer {
      float: left;
      display: block;
      opacity: 0.5;
      -webkit-opacity: 0.5;
      -moz-opacity: 0.5;
      -o-opacity: 0.5; }
    .list_roundup .link .delete, .list_roundup .link .undelete, .list_roundup .link .addChild, .list_roundup .link .read, .list_roundup .link .showChildren {
      font-family: sans-serif;
      font-size: .6em;
      background-color: white;
      border: 1px solid #ddd;
      color: #333;
      width: 1.3em;
      height: 1.3em;
      line-height: 1.4em;
      text-align: center;
      display: block;
      position: relative;
      float: right;
      margin-right: .4em;
      top: .5em;
      margin-top: -.3em;
      border-radius: 100%;
      -webkit-border-radius: 100%;
      -moz-border-radius: 100%;
      -o-border-radius: 100%; }
    .list_roundup .link .undelete {
      width: auto; }
    .list_roundup .link .showChildren {
      float: left; }
    .list_roundup .link:hover .delete, .list_roundup .link:hover .undelete, .list_roundup .link:hover .addChild, .list_roundup .link:hover .read, .list_roundup .link:hover .rename {
      opacity: 1;
      -webkit-opacity: 1;
      -moz-opacity: 1;
      -o-opacity: 1; }

b {
  font-weight: bold; }

i {
  font-style: italic; }

u {
  text-decoration: underline; }

body {
  color: #999;
  font-size: 100%;
  background-color: #fff;
  font-family: monospace;
  line-height: 1.5em; }

.popup_content, .notemarker {
  font-family: Helvetica, Arial, sans-serif; }

#btn_help {
  font-family: 'Arial Black', Impact, sans-serif; }

#failsafe {
  text-align: center; }

a {
  cursor: pointer; }

#msg {
  position: absolute;
  background-color: #000;
  color: #fff;
  -webkit-opacity: .4;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 50;
  overflow-x: auto;
  font-size: 10px; }

#_cowriter_main {
  color: #333;
  max-width: 900px;
  margin: 0px auto 0px auto;
  /*padding-right: 2rem;*/
  outline: 0px;
  display: block;
  -webkit-overflow-scrolling: touch;
  clear: both;
  background-color: #fff;
  padding: 0px 1em;
  position: relative;
  z-index: 1;
  word-break: normal;
  padding-bottom: 1em; }

#_cowriter_main {
  margin-bottom: 0; }

#functions, #functions2 {
  position: fixed;
  width: 100%;
  top: 0px;
  right: 0px;
  background-color: #f5f5f5;
  overflow: hidden;
  margin: 0 auto;
  z-index: 12;
  border-bottom: 1px solid #999;
  display: none; }

.btn_function, .function_buttons button, #dialog_close {
  line-height: 12px;
  height: 20px;
  border: 1px solid #666;
  padding-bottom: 2px;
  cursor: pointer; }

.function_buttons {
  overflow: hidden;
  text-align: center;
  float: right; }

.breaker {
  float: left;
  padding-left: 4px;
  margin-left: 4px;
  border-left: 1px dotted #999; }

.breaker:first-child {
  border-left: 0px; }

.btn_rect, .btn_square, #find, #replace {
  margin-right: 2px;
  float: left;
  display: block;
  text-align: center;
  padding: 0; }

.btn_rect {
  padding: 0px 6px; }

.btn_square {
  width: 20px; }

#find, #replace {
  color: #999;
  outline: 0;
  text-align: left;
  padding-left: 4px;
  height: 18px;
  width: 75px;
  border: 1px solid #999999; }

#btn_fontbold {
  font-weight: bold; }

#btn_help, #btn_donate {
  font-weight: bold; }

#btn_fontitalic {
  font-style: italic; }

#btn_fontunderline {
  text-decoration: underline; }

#btn_fontstrikethrough {
  text-decoration: line-through; }

#btn_fontplus {
  font-size: 16px;
  line-height: 12px;
  padding-top: -4px;
  margin-left: 4px; }

#btn_fontminus {
  font-size: 9px;
  line-height: 18px; }

#btn_leadingplus {
  text-decoration: underline overline;
  font-size: 5px;
  line-height: 5px;
  padding-top: 3px; }

#btn_newpage {
  font-size: 16px; }

#btn_fullscreen, #btn_sync, #btn_fontsright, #btn_fontsleft, #btn_addnote, #btn_togglenotes, #btn_delnote, #btn_delnote span {
  font-size: 16px; }

#btn_fontsblockquote, #btn_fontscenter {
  line-height: 20px; }

#btn_fontscenter, #btn_uninstall, #btn_open, #btn_fontscenter {
  font-size: 20px; }

#btn_delnote, #btn_addnote {
  position: relative; }

#btn_delnote span {
  position: absolute;
  display: block;
  top: 0;
  left: 5px;
  line-height: 16px; }

#btn_addnote span {
  position: absolute;
  display: block;
  top: 0px;
  left: 0px;
  line-height: 20px;
  font-size: 13px; }

.btn_server {
  color: #ccc; }

.btn_extras {
  display: none; }

#wordcounter, #message, #doctitle, .spaceholder {
  top: 3px;
  font-size: 11px;
  line-height: 20px;
  padding-top: 2px; }

#wordcounter, #message, .spaceholder {
  font-size: 9px; }

#doctitle {
  margin-left: 10px;
  outline: 0px;
  color: #666;
  overflow: hidden;
  text-wrap: nowrap;
  display: inline;
  float: left;
  padding-right: 10px;
  font-weight: bold; }

#message {
  text-align: right;
  padding-right: 0px;
  text-wrap: nowrap;
  display: inline;
  float: left;
  padding-left: 0px; }

#wordcounter, .spaceholder {
  float: right;
  margin-right: 10px;
  text-align: right;
  color: #000;
  padding-left: 15px;
  width: 65px; }

#wordcounter {
  float: none;
  text-align: left;
  position: absolute;
  left: 0px;
  top: 0px; }

#dialog {
  position: absolute;
  z-index: 12; }

#dialog #dialog_contents {
  max-height: 200px;
  overflow-y: auto;
  line-height: 20px;
  font-size: 14px;
  color: #333; }

#dialog #dialog_contents a {
  border-bottom: 1px dotted #999;
  display: block;
  float: left;
  margin-bottom: 4px;
  padding-bottom: 4px;
  width: 100%; }

#dialog_mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 12; }

.btn_rect, .btn_square, .note, .note_popup, #find, #replace {
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  background-color: #fff;
  margin: 2px;
  behavior: url(../js/PIE.htc); }

.searchResult {
  background-color: yellow; }

.note {
  background-color: #f5f5f5;
  border: 1px dashed #9CC;
  padding: 0px;
  position: relative;
  display: inline-block;
  cursor: text; }

.note_popup {
  background-color: #fff;
  position: absolute;
  width: 300px;
  top: 50px;
  left: 50px;
  padding: 10px;
  z-index: 2; }

.popup_close {
  position: absolute;
  top: -10px;
  right: -10px;
  height: 20px;
  width: 20px;
  background-color: white;
  -webkit-border-radius: 14px;
  -moz-border-radius: 14px;
  border-radius: 14px;
  border: 2px solid #999;
  line-height: 16px;
  text-align: center;
  font-size: 25px;
  cursor: pointer;
  behavior: url(../js/PIE.htc);
  padding: 0px;
  outline: 0px; }

#dialog_close {
  position: absolute;
  top: -10px;
  right: -10px;
  cursor: pointer;
  padding: 0px;
  outline: 0px;
  font-size: 20px; }

.popup_content {
  cursor: text;
  font-size: 12px;
  color: #000;
  line-height: 1.4em;
  outline: 0; }

#selectFontFamily, #selectFontSize, #selectLeading {
  outline: 0;
  margin-top: 2px;
  height: 20px; }

.open_note, .delete_note {
  position: absolute;
  font-size: 9px;
  cursor: pointer;
  color: #aaa;
  padding: 0px;
  outline: 0px;
  line-height: 10px;
  height: 12px;
  width: 12px;
  text-align: center;
  background-color: white;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  border-radius: 7px;
  border: 1px solid #999;
  content: '+';
  behavior: url(../js/PIE.htc); }

.open_note {
  top: -6px;
  right: -4px; }

.delete_note {
  bottom: -4px;
  border: 2px solid #999;
  right: -5px; }

.notemarker {
  font-style: italic;
  font-size: 10px;
  margin-top: -14px;
  margin-left: -11px;
  cursor: move; }

.tab {
  white-space: pre;
  /*width: 20px; display: inline-block; overflow: hidden;*/ }

#dialog #dialogContent {
  overflow: scroll; }

#dialog a {
  display: block;
  padding-top: 4px;
  padding-bottom: 4px; }

#dialog a:last-child {
  border-bottom: 0; }

#dialog a:hover {
  background-color: yellow; }

#dialog .dialogGroup {
  border-bottom: 1px dotted #ccc;
  padding-bottom: 5px; }

#dialog .dialogGroup:last-child, #dialog a:last-child {
  border-bottom: 0; }

/*#dialog .dialogGroup h2 { font-size: 12px; font-style: italic; }*/
#dialog .dialogGroup {
  margin-bottom: 10px; }

#dialog ul {
  padding-left: 15px;
  display: block; }

#dialog li {
  position: relative; }

#dialog .folder a, #dialog .file a {
  padding-left: 5px;
  border-radius: 5px;
  -webkit-border-radius: 5px; }

#dialog .ind {
  left: -15px;
  top: 2px;
  width: 10px;
  height: 10px;
  position: absolute; }

#dialog .hilite {
  border: 1px dotted #999;
  background-color: #f5f5f5; }

#dialog .mkdir, #dialog .saveHere {
  float: right;
  font-size: 10px; }

.local {
  color: #999; }

.local.dropbox {
  color: #969; }

#backgroundmask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f5f5;
  z-index: 0; }

#functions {
  background-color: #f5f5f5;
  background: whitesmoke;
  /* Old browsers */
  background: -moz-linear-gradient(top, whitesmoke 0%, #dddddd 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, whitesmoke), color-stop(100%, #dddddd));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, whitesmoke 0%, #dddddd 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, whitesmoke 0%, #dddddd 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, whitesmoke 0%, #dddddd 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, whitesmoke 0%, #dddddd 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f5f5f5', endColorstr='#dddddd',GradientType=0 );
  /* IE6-9 */ }

#functions2 {
  background-color: #f5f5f5;
  display: none;
  /*
  background: -moz-linear-gradient(top,  rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 100%); 
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0.1)), color-stop(100%,rgba(0,0,0,0)));
  background: -webkit-linear-gradient(top,  rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 100%); 
  background: -o-linear-gradient(top,  rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 100%); 
  background: -ms-linear-gradient(top,  rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 100%); 
  background: linear-gradient(to bottom,  rgba(0,0,0,0.1) 0%,rgba(0,0,0,0) 100%); 
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1a000000', endColorstr='#00000000',GradientType=0 ); 
  */ }

.btn_rect, .btn_square {
  background-color: #fff;
  -webkit-box-shadow: inset -1px -1px 1px 0px #ccc, inset 0px 5px 6px 0px #fff, inset 0px 8px 9px 0px #999, 0px 0px 2px 1px #ddd;
  -box-shadow: inset -1px -1px 1px 0px #ccc, inset 0px 5px 6px 0px #fff, inset 0px 8px 9px 0px #999, 0px 0px 2px 1px #ddd;
  text-shadow: 1px 1px 0px #fff;
  filter: dropshadow(color=white, offx=1, offy=1);
  behavior: url(../js/PIE.htc); }

#find, #replace {
  /*box-shadow: inset 0px 8px 9px 0px #999;*/
  line-height: 14px;
  background: -moz-linear-gradient(top, white 27%, #eaeaea 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(27%, white), color-stop(100%, #eaeaea));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, white 27%, #eaeaea 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, white 27%, #eaeaea 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(top, white 27%, #eaeaea 100%);
  /* IE10+ */
  background: linear-gradient(to bottom, white 27%, #eaeaea 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#eaeaea',GradientType=0 );
  /* IE6-9 */ }

.note_popup {
  z-index: 11; }

#dialog, .note_popup {
  position: absolute;
  top: 30px;
  left: 100px;
  width: 300px;
  padding: 15px;
  border: 1px solid #999;
  background-color: #fff;
  -webkit-box-shadow: 0 1px 14px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow: 0 1px 14px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  box-shadow: 0 1px 14px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  behavior: url(../js/PIE.htc); }

/* notes: one marked passage may be several pieces (one per tag it crosses); let them wrap like text */
.note { display: inline; border: 0; border-bottom: 1px dashed #9CC; border-radius: 0; background-color: #eef7f7; cursor: pointer; margin: 0; }
#btn_addnote { position: relative; font-size: 16px; }
#btn_addnote span { position: absolute; display: block; top: 0px; left: 0px; line-height: 20px; font-size: 13px; }

/* the page you are on is a writing area even when it is empty */
#_cowriter_main > .list_roundup:first-child > .file_container.open > .file_content { min-height: calc(100vh - 140px); cursor: text; }
