[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
  display: none !important;
}

body {
  font-family: 'Helvetica Neue', 'Open Sans', sans-serif;
  font-size: 15px;
  overflow-y: scroll;
}

.topright {
  float: right;
  margin-top: 32px;
  margin-bottom: 10px;
  font-weight: 200;
  font-size: 14px;
  -webkit-user-select: none;
}

.content-topright {
  float: right;
  padding: 10px;
  padding-right: 0px;
  font-size: 14px;
  -webkit-user-select: none;
}

.main {
  margin-top: 87px;
  padding-bottom: 67px;
}

.copy {
  font-size: 13px;
  color: #ddd;
  position: absolute;
  right: 0px;
}

.copy a {
  color: #ccc;
}

.spinning {
  -webkit-animation: spin 4s linear infinite;
  -moz-animation: spin 4s linear infinite;
  animation: spin 4s linear infinite;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* outline */

.btn-outline {
  background-color: transparent;
  color: inherit;
  transition: all .5s;
}

.btn-primary.btn-outline {
  color: #428bca;
}

.btn-success.btn-outline {
  color: #5cb85c;
}

.btn-info.btn-outline {
  color: #5bc0de;
}

.btn-warning.btn-outline {
  color: #f0ad4e;
}

.btn-danger.btn-outline {
  color: #d9534f;
}

.btn-primary.btn-outline:hover, .btn-success.btn-outline:hover, .btn-info.btn-outline:hover, .btn-warning.btn-outline:hover, .btn-danger.btn-outline:hover {
  color: #fff;
}

.header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e7e7e7;
  border-top: 1px solid #e7e7e7;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header * h2 {
  display: inline-block;
  color: #5599ee;
  margin-left: -7px;
  "

}

.header * p {
  display: inline-block;
  font-size: 21px;
  font-weight: 200;
}

.todo {
  display: inline-block;
  min-width: 200px;
  margin-left: -10px;
  padding-left: 10px;
  padding-right: 5px;
  border: 1px solid rgba(255, 255, 255, 0.0);
}

.important {
  color: #dd0000 !important;
}

.drag {
  background-color: #eee;
  border-radius: 10px;
}

.over {
  border: 1px solid #ddd;
  border-radius: 10px;
}

.checkbox {
  margin-top: 3px;
}

h5 {
  font-size: 15px;
  font-weight: bold;
  padding-bottom: 5px;
  margin-top: 0px;
  margin-bottom: 0px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.0);
}

h5.over {
  border: none;
  border-radius: 0px;
  border-bottom: 1px solid #ddd;
}

#content:focus {
  border-color: #5599ee;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(85, 153, 238, 0.6);
  outline: 0 none;
}

span.glyphicon {
  margin-right: 8px;
}

pre.content, textarea.content {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-height: 50vh;
  /* 333px; */
  /* height: calc(100vh - 220px); */
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 14px;
  tab-size: 4;
  -moz-tab-size: 4;
  white-space: pre-wrap;
  word-break: normal;
  resize: vertical;
  border-radius: 0;
  padding-top: 8px;
  padding-left: 10px;
}

pre {
  background-color: #f9f9f9;
}

.codecontainer {
  border: 1px solid #ddd;
}

.CodeMirror {
  min-height: 50vh;
  /* 505px; */
  /* height: calc(100vh - 220px); */
}

.gray {
  color: #ccc;
}

.dark-gray {
  color: #aaa;
}

.done {
  text-decoration: line-through;
}

.todoactions {
  white-space: nowrap;
  margin-left: 10px;
}

.line-input {
  border-left: none;
  border-right: none;
  border-top: none;
  box-shadow: none;
  -webkit-box-shadow: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-left: 21px;
  font-size: 15px;
}

.line-input:focus {
  box-shadow: 0px 5px 15px -10px #5cb85c;
  border-bottom-color: #5cb85c;
}

.line-input:focus+span {
  filter: none !important;
}

input:focus::-webkit-input-placeholder {
  opacity: 0;
}

.btn-round {
  border-radius: 50% !important;
  width: 39px;
  height: 39px;
}

.narrow {
  display: none;
}

.todoContainer {
  columns: 2;
}

a, .link {
  cursor: pointer;
  color: #5599ee;
  transition: color .2s ease-in-out;
}

.todo-action {
  color: #ccc;
  margin-right: 0px !important;
  transition: color .2s ease-in-out;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.qr-code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: solid 50px white;
}

@media (hover:hover) {
  .link:hover {
    color: #23527c;
  }
  .todo-action:hover {
    color: #d00;
  }
}

@media (max-width: 700px) {
  .wide {
    display: none !important;
  }
  .narrow {
    display: inline-block;
  }


  h4 {
    font-size: 1.5em;
  }

  h5 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
  }


  .checkboxcontainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  .checkboxcontainer {
    color: #000;
    background-color: #eee;
    min-height: 3em;

    padding-top: 0.75em;
    padding-bottom: 0.7em;

    margin-bottom: 0.7em;

    font-size: 1.3em;
  }
  .checkboxcontainer.done {
    color: #ddd;
    background-color: #999;
  }
  .checkboxlabel {
    width: calc(100% - 100px);
  }
  .addtodo {
    margin-top: 2em;
  }
  .line-input {
    font-size: 1.3em;
  }
  .todoactions {
    float: right;
  }
  .todo {
    width: 100%;
  }
  .todo-action {
    margin-left: 0.5em;
  }
}

@media (max-width: 991px) {
  .todoContainer {
    columns: 1;
  }
}

/* Safari Dark Mode */

html {
  height: 100%;
}

@media (prefers-color-scheme: dark) {
  body {
    color: white;
    background-color: black;
  }
  .header {
    background-color: #151515;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
  }
  .codecontainer {
    border: 1px solid #333;
  }
  .form-control {
    color: white !important;
    background-color: #151515 !important;
  }
  .line-input {
    background-color: black !important;
  }
  textarea.form-control {
    border: 1px solid #333;
  }
  .gray {
    color: #333;
  }
  .dark-gray {
    color: #aaa;
  }
  .drag {
    background-color: #222;
  }
  a:hover {
    color: #accdf7;
  }
  .link:hover {
    color: #accdf7;
  }
}
