html {
  overscroll-behavior: none;
}

body {
  padding: 0rem;
  margin: 0rem;
}
main {
  height: 100dvh;
}

.top-down-flex {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.right-left-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    min-height: 0;
}

.content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

#tag,
#date {
    display: flex;
    flex-direction: row-reverse;
    writing-mode: vertical-rl;
    button {
      height: 100%;
    }
}

#project,
#priority {
  display: flex;
  button {
    width: 100%;
  }
}

#addButton {
}

#addTask {
  position: absolute;
  top: 50%;
}

form {
  display: flex;
  justify-content: space-around;
}

.content {
  width: 100%;
  padding: 1rem;
}

.top-bar {
  justify-content: space-between;
  margin-bottom: 1rem;
  display:flex
}

.task-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #e5e5e5;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Left section */
.task-left {
  display: flex;
  flex-direction: column;
}

.task-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 6px;
}

.task-tags {
  display: flex;
  gap: 8px;
}

/* Right section */
.task-right {
  display: flex;
  align-items: center;
}

/* Pills */
.task-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}

/* Customize colors externally */
.project-pill { background: #7fff00; }
.tag-pill     { background: #6a8dff; }
.date-pill    { background: #ff00ff; }

/* Priority-based card color */
.priority-high   { border-left: 6px solid red; }
.priority-medium { border-left: 6px solid orange; }
.priority-low    { border-left: 6px solid green; }
.priority-null   { border-left: 6px solid transparent; }
