@media (max-width: 1300px) {
    main {
        padding: 0px 32px;
    }

    .main-board {
        flex-direction: column;
    }

    .ctn-task {
        width: 210px;
        justify-content: space-around !important;
    }

    .tasks-box {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 16px;
        border-radius: 0;
    }

    .header-container {
        max-width: 210px;
    }

    .highlight {
        display: none;
    }

    .ctn-drag-area {
        min-height: 0;
    }

    .ctn-no-tasks.d-flex {
        width: 210px;
    }

    .ctn-drag-area {
        display: flex;
    }

    .ctn-no-tasks {
        padding: 0;
    }

    .overlay-detail-task-board {
        width: 95%;
    }

    .overlay-edit-task-board {
        height: 75vh;
        width: 95%;
    }

    .move-to-responsive {
        display: block !important;
    }

    .header-container {
        min-width: 100% !important;
    }
}

@media (max-width: 1000px) {
    main {
        margin-left: 0;
        padding: 0 16px 80px 16px;
    }
}

@media (max-width: 760px) {
    .btn-dark-responsive.d-none {
        display: block !important;
    }

    button.btn-dark {
        display: none;
    }

    .header-board {
        flex-direction: column;
    }

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

    h1.headline {
        margin: 18px 0;
    }

    .header-board-right.d-flex {
        width: 100%;
        margin-bottom: 24px;
    }

    .ctn-input-search {
        width: 100%;
    }

    input#input-search-task {
        width: 100%;
    }

    .sidebar-section {
        position: fixed !important;
    }
}

@media (max-width: 500px) {
    .subtask-icons img,
    .horizontal-line-hover {
        height: 11px;
        transition: opacity 0.3s;
        opacity: 1;
    }

    .task-title-detail {
        font-size: 22px;
    }

    .header-container {
        min-width: 100% !important;
    }

    .tasks-box {
        width: 100%;
    }

    .ctn-no-tasks {
        width: 100% !important;
    }

    .overlay-board {
        width: 100%;
        z-index: 500;
    }
}

@media (max-width: 420px) {
    .task-title-detail {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .ctn-main-Detail-Task {
        overflow-y: scroll;
        scrollbar-width: none;
    }

    .ctn-main-Detail-Task::-webkit-scrollbar {
        display: none;
    }

    .overlay-detail-task-board {
        height: 97vh;
    }

    .gallery-container {
        height: 110px;
        overflow: visible;
    }
}

@media (min-width: 390px) and (max-width: 390px) and 
       (min-height: 844px) and (max-height: 844px) {
  .overlay-detail-task-board {
    height: 75vh;
  }
}

@media (min-width: 344px) and (max-width: 344px) and 
       (min-height: 882px) and (max-height: 882px) {
  .overlay-detail-task-board {
    height: 75vh;
  }
}

@media (min-width: 1024px) and (max-width: 1024px) and 
       (min-height: 600px) and (max-height: 600px) {
  .overlay-detail-task-board {
    height: 95vh;
  }
}