/* reducing opacity for all top-level disabled widgets */
.Disableable.widget-disabled {
  opacity: 0.5;
}
.Disableable.widget-disabled .Disableable.widget-disabled {
  opacity: initial;
}
.ClickArea.widget-enabled {
  cursor: pointer;
}
.ClickArea.widget-disabled {
  cursor: default;
}
ul.List {
  padding: 0;
  margin: 0;
  list-style: none;
}
.Text.text-empty {
  display: none;
}

.ColorPicker {
  line-height: 16px;
}
.ColorPicker > * {
  display: inline-block;
  position: relative;
  vertical-align: top;
  width: 16px;
  height: 16px;
}
.ColorPicker > *.color-00::after {
  content: '\1F6AB';
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 12px;
  text-align: center;
}
.Widget {
  /* Colors by http://colrd.com/@/pzulaica/ under CC0 license */
}
.Widget.color-1 {
  background-color: #1a1334;
}
.Widget.color-2 {
  background-color: #26294a;
}
.Widget.color-3 {
  background-color: #01545a;
}
.Widget.color-4 {
  background-color: #017351;
}
.Widget.color-5 {
  background-color: #03c383;
}
.Widget.color-6 {
  background-color: #aad962;
}
.Widget.color-7 {
  background-color: #fbbf45;
}
.Widget.color-8 {
  background-color: #ef6a32;
}
.Widget.color-9 {
  background-color: #ed0345;
}
.Widget.color-10 {
  background-color: #a12a5e;
}
.Widget.color-11 {
  background-color: #710162;
}
.Widget.color-12 {
  background-color: #110141;
}

.EditableText.Clickable {
  cursor: initial;
}

.HeaderButton {
  margin: 0;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  outline: none;
}
.HeaderButton.widget-disabled {
  cursor: default;
}

.Modal {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.33);
}
.Modal.ClickArea {
  cursor: default;
}
.Modal > .modal-content {
  position: absolute;
  top: 0;
  left: calc(50% - 180px);
  width: 360px;
  background-color: rgba(0, 0, 0, 0.9);
}
@media (max-width: 375px) and (orientation: portrait) {
  .Modal > .modal-content {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
  }
}
@media (max-width: 667px) and (orientation: landscape) {
  .Modal > .modal-content {
    width: 100%;
    left: 0;
    right: 0;
    bottom: 0;
  }
}

.SleekButton {
  height: 24px;
  line-height: 24px;
  border: none;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.SleekButton.widget-disabled {
  cursor: default;
}

.Sprite {
  position: relative;
  overflow: hidden;
  width: 25px;
  height: 25px;
}
.Sprite::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 75px;
  height: 100px;
  background-image: url(images/sprite.svg?v=0.0.7);
}
.Sprite.plus_20 {
  width: 20px;
  height: 20px;
}
.Sprite.plus_20::after {
  background-position: 0 0;
}
.Sprite.plus_16 {
  width: 16px;
  height: 16px;
}
.Sprite.plus_16::after {
  background-position: -25px 0;
}
.Sprite.delete_16 {
  width: 16px;
  height: 16px;
}
.Sprite.delete_16::after {
  background-position: -50px 0;
}
.Sprite.info_20 {
  width: 20px;
  height: 20px;
}
.Sprite.info_20::after {
  background-position: 0 -25px;
}
.Sprite.check_16_round {
  width: 16px;
  height: 16px;
}
.Sprite.check_16_round::after {
  background-position: -25px -25px;
}
.Sprite.check_16_square {
  width: 16px;
  height: 16px;
}
.Sprite.check_16_square::after {
  background-position: -50px -25px;
}
.Sprite.magnify_plus_16 {
  width: 16px;
  height: 16px;
}
.Sprite.magnify_plus_16::after {
  background-position: -25px -50px;
}
.Sprite.magnify_minus_16 {
  width: 16px;
  height: 16px;
}
.Sprite.magnify_minus_16::after {
  background-position: -50px -50px;
}
.Sprite.hamburger_16 {
  width: 16px;
  height: 16px;
}
.Sprite.hamburger_16::after {
  background-position: -25px -75px;
}

.ZoomButton > .zoom-icon {
  position: absolute;
  top: 4px;
  left: -24px;
  width: 16px;
  height: 16px;
}

.About {
  box-sizing: border-box;
  padding: 6px;
  overflow-y: auto;
}
.About > p {
  margin: 6px 0 0 0;
  line-height: initial;
}
.About > .twitter-follow-button {
  position: absolute !important;
  top: 12px;
  right: 6px;
}

.Task {
  display: inline-block;
  box-sizing: border-box;
  font-size: 12pt;
  background-color: rgba(255, 255, 255, 0.2);
  outline: 1px solid rgba(255, 255, 255, 0.2);
  /* STATES */
  /* HEADER */
  /* SUBTASKS */
}
.Task.priority-2 > .header-container {
  background-color: rgba(96, 96, 96, 0.3);
}
.Task.priority-2 > .tasks-container {
  background-color: rgba(128, 128, 128, 0.3);
}
.Task.priority-3 > .header-container {
  background-color: rgba(96, 96, 96, 0.6);
}
.Task.priority-3 > .tasks-container {
  background-color: rgba(128, 128, 128, 0.6);
}
.Task.zoomed {
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  top: 0;
  left: 0;
  z-index: 1;
  border-top: 2px dashed black;
}
.Task.tiny {
  outline: 1px dashed rgba(255, 255, 255, 0.2);
}
.Task.tiny > * {
  visibility: hidden;
}
.Task > .header-container {
  position: relative;
  height: 24px;
  line-height: 24px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.1);
  color: white;
}
.Task > .header-container > .task-title {
  position: relative;
  width: calc(100% - 24px);
  height: 100%;
  font-weight: bold;
  overflow: hidden;
}
.Task > .header-container > .task-title > * {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  padding-left: 5px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
.Task > .header-container > .task-title .Text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.Task > .header-container > .Button {
  position: absolute;
  width: 24px;
  font-size: 18px;
  font-weight: bold;
  color: white;
}
.Task > .header-container > .controls-button {
  top: 0;
  right: 0;
}
.Task > .header-container > .controls-button > .Sprite {
  position: absolute;
  top: 4px;
  left: 4px;
}
.Task > .header-container > .task-controls {
  position: absolute;
  top: 24px;
  right: 0;
  z-index: 2;
}
.Task.controls-open > .header-container > .controls-button {
  background-color: rgba(0, 0, 0, 0.9);
}
.Task.status-DONE > .header-container {
  background-color: rgba(0, 0, 0, 0.2);
}
.Task.status-DONE > .header-container > .task-title {
  left: 24px;
  width: calc(100% - 48px);
}
.Task.status-DONE > .header-container > .task-title > * {
  padding-left: 0;
}
.Task.status-DONE > .header-container > .done-icon {
  position: absolute;
  top: 4px;
  left: 4px;
}
.Task.status-DONE > .tasks-container {
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 5px, rgba(0, 0, 0, 0.2) 5px, rgba(0, 0, 0, 0.2) 10px);
}
.Task > .tasks-container {
  position: relative;
  height: calc(100% - 24px);
}
.Task > .tasks-container > .task-description {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  font-size: 11pt;
}
.Task > .tasks-container > .task-description > * {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 5px;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.TaskControls {
  padding: 4px 8px 4px 32px;
  background-color: rgba(0, 0, 0, 0.9);
}
.TaskControls > * {
  position: relative;
  display: block;
  width: 80px;
  color: white;
  text-align: left;
}
.TaskControls > * > .Sprite {
  content: '';
  position: absolute;
  top: 4px;
  left: -24px;
  width: 16px;
  height: 16px;
}
.TaskControls > *.Button > * {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.TaskControls > *.E-color-picker {
  margin: 5px 0;
}

.TaskList:not(:empty) {
  height: 100%;
}
.TaskList > .Task {
  float: left;
  width: 100%;
  height: 100%;
}
.TaskList.zoomed > .Task:not(.zoomed) {
  display: none;
}
.TaskList.size-2-1 > .Task {
  width: 50%;
  height: 100%;
}
@media (max-width: 480px) {
  .TaskList.size-2-1 > .Task {
    width: 100%;
    height: 50%;
  }
}
.TaskList.size-2-2 > .Task {
  width: 50%;
  height: 50%;
}
.TaskList.size-3-2 > .Task {
  width: calc(100% / 3);
  height: 50%;
}
@media (max-width: 480px) {
  .TaskList.size-3-2 > .Task {
    height: calc(100% / 3);
    width: 50%;
  }
}
.TaskList.size-3-3 > .Task {
  width: calc(100% / 3);
  height: calc(100% / 3);
}
.TaskList.size-4-3 > .Task {
  width: 25%;
  height: calc(100% / 3);
}
@media (max-width: 480px) {
  .TaskList.size-4-3 > .Task {
    width: calc(100% / 3);
    height: 25%;
  }
}
.TaskList.size-4-4 > .Task {
  width: 25%;
  height: 25%;
}
.TaskList.size-5-4 > .Task {
  width: 20%;
  height: 25%;
}
@media (max-width: 480px) {
  .TaskList.size-5-4 > .Task {
    width: 25%;
    height: 20%;
  }
}
.TaskList.size-5-5 > .Task {
  width: 20%;
  height: 20%;
}

.TasksPage {
  height: 100%;
  font-family: 'Open Sans Condensed', sans-serif;
}
.TasksPage > .header-container {
  height: 32px;
  line-height: 32px;
  background-color: black;
  color: white;
}
.TasksPage > .header-container .HeaderButton {
  width: 20px;
  height: 20px;
}
.TasksPage > .header-container > .app-logo {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 20px;
  height: 20px;
}
.TasksPage > .header-container > .app-title {
  display: inline-block;
  position: absolute;
  top: 6px;
  left: 32px;
  height: 20px;
  line-height: 20px;
  font-size: 20px;
}
.TasksPage > .header-container > .add-task-button {
  position: absolute;
  top: 6px;
  left: calc(50% - 10px);
}
.TasksPage > .header-container > .about-button {
  position: absolute;
  top: 6px;
  right: 6px;
}
.TasksPage > .header-container .about {
  z-index: 2;
}
.TasksPage > .header-container .about > .About {
  top: 32px;
}
.TasksPage > .projects-container {
  height: calc(100% - 32px);
}
.TasksPage > .projects-container > .TaskList {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: gray;
}

html {
  height: 100%;
}
body {
  height: 100%;
  margin: 0;
}
h1,
h2,
h3 {
  margin: 0;
}
