/*  VARIABLES   */  
:root {
    --color-yellow: #fdcd58;
    --color-yellow-hover: #f0c045;
    --color-blue: #6cb6dd;
    --color-blue-hover: #5aa8d2;
    --color-purple: #8b80be;
    --color-purple-hover: #6d629c;
    --color-white: #fff;
    --color-grey-100: #f8f9fa;
    --color-grey-200: #e9ecef;
    --color-grey-300: #dee2e6;
    --color-grey-400: #ced4da;
    --color-grey-500: #adb5bd;
    --color-grey-600: #6c757d;
    --color-grey-700: #495057;
    --color-grey-800: #343a40;
    --color-grey-900: #212529;
    --box-shadow-sm: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
}

/*  RESET   */  
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*  BODY   */  
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background: var(--color-grey-100);
    position: relative;
}

/*  FORM   */       
div#formContainer {
    height: 100%;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 20px;
}
form#addForm {
    width: 100%;
    padding: 20px;
    box-shadow: var(--box-shadow-sm);
}
form#addForm .logo {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}
form#addForm .logo-image img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}
form#addForm .logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-grey-500);
}
form#addForm button.btn {
    background-color: var(--color-purple);
    border: none;
    color: var(--color-white);
    padding: 10px 5px;
}
form#addForm button.btn:hover {
    background-color: var(--color-purple-hover);
    color: var(--color-white);
    padding: 10px 5px;
}
@media (min-width: 768px) {
    div#formContainer {
        padding: 30px;
        align-items: center;
    }
    form#addForm {
        width: 600px;
    }
    form#addForm {
        width: 600px;
    }
}

/*  DASHBOARD   */                
.top-nav {
    background-color: var(--color-grey-900);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    gap: 20px;
    position: fixed;
    top: 0; left: 0; right: 0;
}
.top-nav .logo {
    display:flex;
    align-items: center;
}

.top-nav .logo-image {
    width: 20px;
    height: 20px;
    margin: 5px 10px;
}
.top-nav .logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-white);
    padding-top: 5px;
    letter-spacing: 0.5px;
}
.top-nav .buttons button {
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: 18px;
    margin-right: 20px;
}
.top-nav .buttons button:last-child {
    margin-right: 0;
}
.top-nav .buttons button:hover {
    color: var(--color-grey-100);
}
.board {
    width: 100%;
    height: 100%;
}
.columns {
    width: 100%;
    display: flex;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 75px 0 15px 0;
}
.column {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    padding: 15px;
    border-radius: 0.375rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 16px 0px;
    width: 100%;
}
.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-grey-500);
    font-family: Montserrat, sans-serif;
    text-transform: uppercase;  
    color: var(--color-grey-600);
    letter-spacing: 0.5px;
    font-weight: 400;
}
.column:nth-child(3n + 1) .column-header {
    color: var(--color-purple);
    border-bottom: 1px solid var(--color-purple);
}
.column:nth-child(3n + 2) .column-header {
    color: var(--color-blue);
    border-bottom: 1px solid var(--color-blue);
}
.column:nth-child(3n) .column-header {
    color: var(--color-yellow);
    border-bottom: 1px solid var(--color-yellow);
}
.column-header h2 {
    margin: 0;
    font-size: 1.2em;
    flex-grow: 1;
}
.column-header-icons {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}
.column-header-icons i {
    cursor: pointer;
    font-size: 0.9em;
}
ul.itemList {
    list-style-type: none;
    padding: 0;
    flex-grow: 1;
}
ul.itemList li {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    padding: 10px;
    height: auto;
    min-height: 47px;
    cursor: grab;
    background: var(--color-grey-100);
    border: 1px solid var(--color-grey-200);
    border-radius: 0.375rem;
    color: var(--color-grey-700);
}
ul.itemList li h3 {
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin: 0;
    display: flex;
    justify-items: flex-start;
    align-items: center;
}
ul.itemList li h3.stacked-title {
    position: relative;
    padding: 0 40px 0 0;
}

ul.itemList .stack-highlight {
    border: 2px dashed var(--color-grey-200);
    background-color: transparent;
}
div.stack-count {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
    width: auto;
    min-width: 26px;
    height: 26px;
    background: var(--color-grey-600);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.9em;
    margin-left: 10px;
}
ul.itemList li h3.stacked-title div.stack-count {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
}
div#modalItemText div.entry-container div.entry {
    margin-bottom: 25px;
}
div#modalItemText div.entry-container div.entry:last-child {
    margin-bottom: 0;
}
div#modalItemText div.entry-container div.entry p:last-child {
    margin-bottom: 0;
}
div#modalItemText div.entry-container div.entry h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 5px;
}
div.modal-footer {
    justify-content: flex-start;
}
div.modal-footer .closeBtn {
    background-color: var(--color-purple);
    border: none;
    color: var(--color-white);
    padding: 10px 20px;
    margin-left: auto;
}
div.modal-footer .closeBtn:hover {
    background-color: var(--color-purple-hover);
}
@media (min-width: 768px) {
    .top-nav {
        padding: 15px 35px;
    }
    .columns {
        padding: 90px 20px 20px 20px;
    }
    .column {
        flex: 1 1 0;
        min-width: 400px;
    }
}