:root {
    --background: white;
    --board-background: #eeeeee60;
    --card-background: white;
    --border-color: #eee;
    --font-color: #333;
}

* {
    box-sizing: border-box;
}

header * {
    color: var(--font-color);
}

.kanban-container .list * {
    color: var(--font-color);
}

.image header * {
    color: white;
}

body {
    position: relative;
    max-height: 100vh;
    margin: 0;
    overflow-y: hidden;
    background: var(--background);
    transition: 0.3s;
}

body.image {
    background-image: url(assets/kanban.jpg);
    background-origin: unset;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

header {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.image header {
    border-bottom: 1px solid transparent;
    background-color: #00000078;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.dark-mode {
    /* position: absolute;
            top: 0;
            right: 0; */
    font-size: 1rem;
    opacity: .7;
    /* margin: 1.5rem; */
    /* height: 3rem; */
}

#dark-mode {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.kanban-container {
    display: flex;
    height: calc(100vh - 4rem);
    padding: 0.5rem 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: flex-start;

}

.board {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);

    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0.25rem;
    display: flex;
    flex-direction: column;
    width: 312px;
    min-width: 312px;
    max-height: calc(100% - 1rem);
    background: var(--board-background);
}

.image .board {
    border: 0px solid transparent;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.3);
}

.board:hover {
    /* border: 1px solid green; */
}

.board-title {
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--font-color);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.image .board-title {
    color: white !important;
    background-color: #00000078;
}

.board-title h5 {
    margin: 0;
    display: inline;
    line-height: 1.3;
}

.board button {
    background: white;
    border-radius: 5px;
    padding: 5px 10px;
}

header input[type="checkbox"] {
    accent-color: rgb(41 45 67 / 5%);
}

.board-action {
    transition: 0.3s;
    font-weight: bold;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    color: var(--font-color);

    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.image .board-action {
    color: white !important;
    background-color: #00000078;
}

.list {
    overflow-y: auto;
    padding: 5px;
    min-height: 56px;
}

.card {
    margin-bottom: 0.2rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.6rem;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    background: var(--card-background);
    font-family: '돋음';
    position: relative;
}

.image .card {
    border: 1px solid transparent !important;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.4);
}

.card:hover {
    border: 1px solid green !important;
}

.card-title {
    font-size: 1rem;
    word-break: break-word;
    margin-bottom: 0;
}

.card-title,
.board-title h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-title h5 {
    -webkit-line-clamp: 1;
}

.board-sub-title textarea,
.card>textarea,
.add-board-btn>textarea {
    resize: none;
    width: 100%;
    overflow: hidden;
    font-size: 1.2rem;
    font-family: inherit;
    background: var(--background);
    color: var(--font-color);
}

textarea.text:onfocus {
    /* background: blue; */
}

.project-name {
    background-color: var(--background);
    cursor: pointer;
}

.image .project-name {
    background-color: transparent;
}

.image .project-name:hover {
    background-color: #00000078;
}



.card-content {
    color: #555;
    color: var(--font-color);
}

.shadow {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: rgba(0, 0, 0, 0.2);
}

.shadow .card-title {
    opacity: 0;
}

.hide {
    display: none;
}

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

.trash {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 5rem;
    top: 0;
    z-index: 1000;
}

.trash::before {
    content: 'DRAG HERE TO REMOVE TICKET';
    font-size: 1.6rem;
    color: rgb(236, 58, 58);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-name {
    font-size: 1.825rem;
    border: none;
}

.project-name:focus-visible {
    outline: none;
}

textarea:focus-visible,
input:focus-visible {
    outline: none;
}

.a-link {
    cursor: pointer;
    text-decoration: none;
    text-decoration: dotted !important;
    text-decoration-color: green !important;
}

.add-board-btn,
.add-card-btn {
    cursor: pointer;
    opacity: .7;
}

.board.add-board .board-action {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.image .board-action {
    background: rgba(99, 99, 99, 0.3);
}

.image .board-action:hover {
    background: #00000078;
}

.image .board-action:hover .add-board-btn,
.image .board-action:hover .add-card-btn {
    opacity: .9;
}

.card-tools {
    position: absolute;
    display: none;
    top: -1px;
    right: -1px;
    background-color: rgba(99, 99, 99, 0.3);
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
    font-size: .825rem;
    gap: .5rem;
}

.card-tools .bi {
    cursor: pointer;
}

.card:hover .card-tools {
    display: inline-flex;
}

.card .card-tools .bi-trash:hover {
    color: red;
}

.board-count {
    margin-top: 4px;
}

/* Dropdown Button */
.my-dropdown .dropbtn {
    background-color: transparent;
    color: white;
    padding: 0;
    border: none;
    min-width: 24px;
    min-height: 24px;
    max-width: 24px;
    max-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

/* The container <div> - needed to position the dropdown content */
.my-dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.my-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.image .my-dropdown .dropdown-content a {
    color: white;
}

.image .my-dropdown .dropdown-content {
    background-color: #000000ba;
    border-radius: 2px;
}

/* Links inside the dropdown */
.my-dropdown .dropdown-content a {
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.my-dropdown .dropdown-content a:hover {
    background-color: #0000008e;
}

/* Show the dropdown menu on hover */
.my-dropdown:hover .dropdown-content {
    display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.my-dropdown:hover .dropbtn {
    background-color: rgba(99, 99, 99, 0.3);
}

.my-view-mode label {
    opacity: .7;
    font-size: 1.17em;
}

.my-view-mode .active {
    border-bottom: 3px solid green !important;
    opacity: 1;
}

.cs-detail-view {
    /* background-color: white; */
}

.cs-icon:hover i {
    color: black !important;
}