:root {
    --primary-color: #fe5f55;
    --white-color: #eef5db;
    --dark-color: #4f6367;
    --secondary-color: #7a9e9f;
    --complete-color-toolbar: #44cf6c;
    --complete-color-content: #a9fdac;
    --complete-color-icon: #6c464e;
    --important-color-content: #ff1d15;
    --important-color-toolbar: #52050a;
    --important-color-icon: #6c464e;
}

* {
    padding: 0;
    margin: 0;
}

body {
    font-size: 42.5%;
    background-color: #151517;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Shrikhand', cursive;
    font-size: 1.4rem;
}

.container {
    display: relative;
    max-width: 100vw;
    background: url(../images/background.png);
    background-repeat: no-repeat;
    background-position: top center;
}

.note-app {
    width: 35rem;
    margin: 0 auto;
    padding: 2rem;
    transition: all 0.6s;
    cursor: pointer;
}

.note-app:hover {
    box-shadow: 2px 2px 5px rgba(255, 255, 255, 0.6);
    transform: translateY(-10px);
}

.note-app input {
    font-family: 'Shrikhand', cursive;
    outline: 0;
    border: 0;
    padding: 2rem;
    width: 30rem;
    font-size: 1.5rem;
    color: #fff;
    background-color: transparent;
    transition: all 1s;
}

.note-app input::placeholder {
    font-size: 2rem;
    color: #fff;
}

.note-app input:hover {
    cursor: cell;
}
.note-app input:focus {
    border-bottom: 2px solid #fff;
}

/* NOTE SECTION*/

.note-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    align-content: space-around;
    min-height: calc(100vh - 163px);
    width: 40rem;
    max-width: 40rem;
    background-color: rgba(157, 217, 210, 0.8);
    box-shadow: 3px 3px 7px rgba(255, 255, 255, 0.7);
}

.notes {
    width: 12rem;
    height: 12rem;
    background-color: #feffa5;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    transition: all 0.5s;
    margin-right: 1rem;
    cursor: move;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.notes:hover .note-footer {
    transform: translateY(0);
}

.note-footer {
    font-size: 1.1rem;
    text-align: right;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.5s;
    transform: translateY(25px);
    font-family: 'Open Sans Condensed', sans-serif;
}

.note-wrapper > .notes:hover {
    transform: scale(1.1) translateY(-10px);
}

.note-toolbar {
    background-color: #b9ba79;
    color: #fff;
    padding: 0.5rem;
    display: flex;
    justify-content: space-between;
    transition: all 0.5s;
}

.note-toolbar i {
    transition: all 0.5s;
}

.note-toolbar i:hover {
    cursor: pointer;
    transform: scale(1.1);
    color: rgba(0, 0, 0, 0.5);
}

.note-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    overflow-wrap: break-word;
    transition: all 0.5s;
}
.note-content:hover {
    cursor: text;
}
.note-content p {
    padding: 4px;
}

/* IS COMPLETE NOTES ICONS STATE*/
.isCompletedIcon {
    color: var(--complete-color-icon);
}
.isCompletedToolbar {
    background-color: var(--complete-color-toolbar);
}

.isCompletedContent {
    background-color: var(--complete-color-content);
}
.isCompletedText {
    text-decoration: line-through;
    font-weight: 500;
}

/* IS IMPORTANT NOTES ICONS STATE */

.isImportantIcon {
    color: var(--important-color-icon);
}
.isImportantToolbar {
    background-color: var(--important-color-toolbar);
}

.isImportantContent {
    background-color: var(--important-color-content);
}
.isImportantText {
    font-weight: 600;
    color: white;
    font-weight: 500;
}

/* MAIN SECTION */

.main {
    max-width: 100vw;
    display: flex;
    justify-content: space-around;
}

.completed-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    align-content: space-around;
    min-height: calc(100vh - 163px);
    max-width: 40rem;
    background-color: rgba(253, 62, 129, 0.9);
    box-shadow: 3px 3px 7px rgba(255, 255, 255, 0.6);
    text-align: center;
    border: 2px;
}
.empty-cells {
    width: 200px;
    height: 200px;
    margin-top: 2px;
}
.empty-cells:not(:last-child) {
    margin-right: 2px;
}

/* DRAG AND DROP SECTION */

.hold {
    border: 2px dashed var(--secondary-color);
}

.hovered {
    border: 2px dashed rgba(0, 0, 0, 0.6);
}

.hover-white {
    border: 2px dashed rgba(255, 255, 255, 0.8);
}
.empty-cells-default {
    width: 200px;
    height: 200px;
    margin: 3px;
}
.empty-trash-cells {
    width: 200px;
    height: 200px;
    margin: 3px;
}
.completed-heading {
    font-size: 2rem;
    color: var(--dark-color);
    text-align: center;
}

/************ MODALS **********************/

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0, 0, 0); /* Fallback color */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
}
.modal-show {
    display: block;
}
.modal-content {
    background-color: transparent;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.modal-body {
    width: 80%;
    height: 60%;
    text-align: center;
    padding: 4rem;
    box-shadow: 5px 10px 100px rgba(255, 255, 255, 0.4);
    position: relative;
    display: flex;
}

.trash-icon-close {
    position: absolute;
    right: 0;
    top: 0;
    color: var(--primary-color);
}
/* EDIT NOTES */

textarea {
    font-family: 'Open Sans Condensed', sans-serif;
    resize: none;
    border: none;
    outline: 0;
    background: rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    font-weight: 300;
    padding: 10px;
}

/* CONTROL PANEL SECTION */

.control-panel {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.trash-icon {
    color: #02a7d7;
    cursor: pointer;
}

.trash-icon:hover {
    animation-name: shake;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

/* SHAKE ANIMATION */

@keyframes shake {
    0% {
        transform: translate(0);
    }
    25% {
        transform: translateX(-5px);
    }
    30% {
        transform: translateX(5px);
    }
    35% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }

    45% {
        transform: translateX(5px);
    }
    50% {
        transform: translateX(5px);
    }
    55% {
        transform: translateX(-5px);
    }
    60% {
        transform: translateX(5px);
    }
    65% {
        transform: translateX(-5px);
    }
    70% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(5px);
    }
}
