.board-wrapper {
  max-width: 1440px;
  /* height: 100%; */
  margin: 64px 64px 32px 64px;
}

.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  width: 100%;
}

.board-header h1 {
  font-size: 3rem;
}

.search-field-wrapper {
  position: relative;
  display: inline-flex;
  margin-right: 16px;
}

.search-field {
  border-radius: 10px;
  border: 1px solid #a8a8a8;
  outline: none;
  padding: 10px 14px;
}

.search-devider {
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  border-left: 1px solid #d1d1d1;
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-field:focus {
  border: 1px solid #29abe2;
  outline: none;
}

.search-field::placeholder {
  color: #d1d1d1;
}

.search-field::-webkit-input-placeholder {
  color: #d1d1d1;
}

.search-field:-ms-input-placeholder {
  color: #d1d1d1;
}

.search-field::-ms-input-placeholder {
  color: #d1d1d1;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #2a3647;
  color: white;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.add-btn:hover {
  background-color: #4589ff;
}

.add-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  vertical-align: middle;
}

.board {
  display: flex;
  gap: 16px;
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.column {
  flex: 1;
  min-width: 0;
  margin-top: 16px;
  border-radius: 8px;
}

.column-header {
  display: inline-flex;
  justify-content: space-between;
  width: 100%;
  color: #42526e;
  margin: 16px 0;
}

.column-header img {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.task-wrapper {
  height: 100%;
}

.task {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 16px;
  margin-bottom: 10px;
  overflow-wrap: break-word;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow ease 250ms;
}

.task p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.task h4 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.task:hover {
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1), inset 0 0 0 2px #3b82f6;
}

.overlay-content p {
  max-height: calc(1.2em * 4);
  line-height: 1.2em;
  overflow-y: auto;
}

.overlay-content h1 {
  max-height: calc(1.2em * 2);
  line-height: 1.2em;
  overflow-y: auto;
}

.tag {
  display: inline-block;
  border-radius: 8px;
  font-size: 12px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.user-story {
  background-color: #0057ff;
  color: white;
}

.technical-task {
  background-color: #00cfa5;
  color: white;
}

.task-descr {
  color: #a8a8a8;
  margin: 10px 0 20px 0;
}

.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.progress-bar {
  flex: 1;
  background: #f4f4f4;
  border-radius: 4px;
  height: 6px;
}

.progress {
  background: #3b82f6;
  height: 6px;
  border-radius: 4px;
}

.subtask {
  font-size: 12px;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 12px;
  color: #fff;
  margin-right: -6px;
}

.remaining-person-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 12px;
  color: #fff;
  background-color: #2a3647;
  margin-right: -6px;
}

.empty {
  /* display: inline-block; */
  text-align: center;
  color: #a8a8a8;
  border: 2px dotted #a8a8a8;
  border-radius: 10px;
  background-color: #e7e7e7;
  padding: 10px;
  height: auto;
}

.no-results {
  width: 100%;
  margin-top: 60px;
  text-align: center;
  font-size: 1.5rem;
  color: #42526e;
  font-weight: 700;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 11;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

.visible {
  opacity: 1;
}

.overlay.transparent {
  background: transparent !important;
}

.overlay-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 30px;
  transform: translate(-50%, -50%);
  transition: all 250ms ease-in-out;
}

.overlay-outer {
  width: 100%;
  padding: 0 16px;
}

.overlay-content {
  max-width: 420px;
  width: 100%;
  height: auto;
  border-radius: 30px;
  background-color: #fff;
  padding: 48px 40px;
  margin: 0 auto;
  overflow-wrap: break-word;
}

.transit {
  transform: translate(calc(-50% + 100vw), -50%);
}

.hidden {
  display: none !important;
}

.btn-transparent {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: none;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-overlay {
  border-radius: 8px;
  padding: 6px 24px;
}

.flex {
  display: flex;
  gap: 24px;
}

.overlay-prio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capitalize {
  text-transform: capitalize;
}

.assigned-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 185px;
  overflow-y: auto;
}

.assigned-list li {
  margin-left: 16px;
}

.assigned-person {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.assigned-person .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
}

.subtasks {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 105px;
  overflow-y: auto;
}

.subtask-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  min-width: 0;
}

.subtask-item label {
  margin-left: 8px;
  cursor: pointer;
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.overlay-footer button {
  display: flex;
  align-items: center;
  color: #2a3647;
}

.overlay-devider {
  height: 24px;
  border-left: 1px solid #d1d1d1;
}

.mb-14 {
  margin-bottom: 14px;
}

.mb-20 {
  margin-bottom: 20px;
}

.section-title {
  color: #2a3647;
}

.repo-task-btn {
  display: none;
}

.user-name-board {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-subtask {
  background-image: url(../assets/icons/check_icon_empty.svg);
  height: 16px;
  min-width: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-subtask.checked {
  background-image: url(../assets/icons/check_icon.svg);
}

.board-tasks-container {
  display: flex;
  gap: 24px;
}

.add-task-board {
  overflow: hidden;
  position: absolute;
  height: 100vh;
  width: 100vw;
  background-color: rgb(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11;
  transition: background-color 0.15s ease;
}

.transparent-background {
  background-color: rgb(0, 0, 0, 0.7);
}

.task-overlay {
  background-color: white;
  position: absolute;
  padding: 48px;
  border-radius: 24px;
}

.transition-add-task {
  right: 0% !important;
}

.task-overlay h1 {
  font-size: 3rem;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
}

.close-task {
  height: 32px;
  width: 32px;
  background-image: url(../assets/icons/cancel.svg);
  background-size: 80%;
  border-radius: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.close-task:hover {
  background-color: #d1d1d1;
}

.center_element {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 250ms ease-in-out;
}

.transit {
  transform: translate(calc(-50% + 100vw), -50%);
}

.editTask-container {
  width: 100%;
  max-height: 496px;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.close-edit-conatiner {
  display: flex;
  flex-direction: row-reverse;
}

.saveBtn-Container {
  margin-top: 16px;
}

@media (max-width: 1200px) {
  .board-wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 992px) {
  #content-wrapper {
    margin: 0;
    margin-top: 96px;
    margin-bottom: 108px;
  }
}

@media (max-width: 800px) {
  .board-wrapper {
    margin-left: 64px;
    margin-right: 64px;
  }

  .board {
    display: block;
  }

  .add-task-text {
    display: none;
  }

  .add-btn {
    padding: 12px;
  }

  .add-icon {
    margin-left: 0;
  }

  .task-wrapper {
    display: flex;
    flex-grow: 0;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .task {
    min-width: 250px;
    max-width: 250px;
    margin-bottom: 0;
  }

  .empty {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
  }

  .board-tasks-container {
    flex-direction: column;
    width: 360px;
    max-height: 496px;
    overflow-y: auto;
    padding-right: 8px;
    gap: 16px;
  }

  .divider-vertical {
    display: none;
  }

  .task-controls {
    margin-top: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: baseline;
  }

  .task-control-btns {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 590px) {
  .board-wrapper {
    margin-left: 32px;
    margin-right: 32px;
  }

  .board-header {
    display: block;
  }

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .add-btn-mobile {
    display: block !important;
  }

  .add-btn-desktop {
    display: none;
  }

  .search-field-wrapper-desktop {
    display: none;
  }

  .search-field-wrapper-mobile {
    display: block !important;
    margin: 25px 0;
  }

  .search-field {
    width: 100%;
  }

  .add-btn-desktop {
    display: none;
  }

  .column-header img:first-of-type {
    display: none;
  }

  .repo-task-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .board-wrapper {
    margin-left: 16px;
    margin-right: 16px;
  }

  #content-wrapper {
    padding: 0 16px;
    margin: 60px 0 80px 0;
  }

  .board-header {
    display: block;
  }

  .mobile-header h1 {
    font-size: 2.5rem;
  }

  .add-btn-mobile {
    padding: 10px;
  }

  .board h3 {
    font-size: 17px;
  }

  .overlay-content {
    padding: 24px;
  }

  .sub-item span {
    display: none;
  }

  .tag {
    font-size: 10px;
  }

  .progress {
    height: 5px;
  }

  .subtask {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .board-wrapper {
    margin: 64px 0 32px 0;
  }
}

@media (320px <=width <=800px) {
  .addTask-Container {
    width: 100% !important;
    padding: 0 !important;
  }

  .column:last-child {
    padding-bottom: 32px;
  }

  .no-padding-bottom {
    padding-bottom: 0 !important;
  }

  .no-results {
    margin-top: 30px;
    padding-bottom: 30px;
  }

  .mb-14 {
    margin-bottom: 8px;
  }

  .assigned-list {
    max-height: 100px;
  }

  .subtasks {
    max-height: 70px;
  }

  .overlay-content p {
    max-height: calc(1.2em * 3);
  }
}
