* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #ddd;
    transition: ease-in-out .2s;
}

body.darkmode {
    background: #333;
    color: #eee;
}

.container-title {
    text-align: center;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 10px;
    height: 100px;
    margin: 10px;
}

.container-title.darkmode {
    border: 1px solid #eee;
}

h1 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 2em;
}

h2 {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 10px 5px 10px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main {
    display: grid;
    grid-gap: 10px;
    margin: 10px;
    height: calc(100vh - 158px);
    grid-template:
    "monday tuesday wednesday thursday lastcolumn" 1fr
    "friday saturday sunday notes lastcolumn" 1fr
    / 1fr 1fr 1fr 1fr 1fr;
}

.lastcolumn {
    grid-area: lastcolumn;
    display: grid;
    grid-gap: 10px;
    height: calc(100vh - 158px);
    height: 100%;
    grid-template:
    "month" 7fr
    "menu" 1fr
    / 1fr;
}

#wrap-menu {
    grid-area: menu;
    color: #000;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #fff;
    box-shadow: 0px 2px 2px 2px rgba(0,0,0,0.02);
    z-index: 100;
}

#wrap-menu.darkmode {
    background: #222;
    border: 1px solid #eee;
}

#wrap-menu .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    height: 100%;
}

#wrap-menu .menuitem {
    width: 100%;
    padding: 5px;
    background: #eee;
    text-align: center;
    transition: ease-in-out .2s;
    color: #333;
    font-size: 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wrap-menu.darkmode .menuitem {
    
    background: #000;
    text-align: center;
    color: #ddd;
}

#wrap-menu .menuitem:first-child {
    border-radius: 8px 0px 0px 8px;
}

#wrap-menu .menuitem:last-child {
    border-radius: 0px 8px 8px 0px;
}

#wrap-menu .menuitem:hover {
    background: #ddd;
    transition: ease-in-out .2s;
    cursor: pointer;
}

#wrap-menu.darkmode .menuitem:hover {
    background: #333;
}

.container-credits {
    text-align: center;
    font-size: 12px;
    padding: 1px;
    height: 20px;
    margin: 5px;
}

.container-credits a {
    text-decoration: none;
    color: #000;
    transition: ease-in-out .2s;
}

.container-credits a:hover {
    color: rgb(211, 55, 55);
    transition: ease-in-out .2s;
}

.container-credits a.darkmode {
    color: #fff;
}

.container-credits a.darkmode:hover {
    color: yellow;
}

#wrap-menu.darkmode .menuitem#dark.darkmode {
    background: rgb(252, 252, 77);
    color: #000;
    transition: ease-in-out .2s;
}

#dark.darkmode:hover {
    background: yellow;
    transition: ease-in-out .2s;
    cursor: pointer;
}

ul {
    overflow-y: auto;
}

.wrap {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    border: 1px solid #fff;
    box-shadow: 0px 2px 2px 2px rgba(0,0,0,0.02);
    z-index: 100;
}

.wrap.darkmode {
    background: #222;
    border: 1px solid #eee;
}

#notes {
    border: 2px solid rgb(255, 250, 90);
}

#notes.darkmode {
    border: 2px solid rgb(250, 248, 168);
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    border-radius: 10px;
  }
  
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
  }
  
::-webkit-scrollbar-thumb:hover {
    background: #555;
  }

form {
    display: flex;
    height: 30px;
    margin: 10px;
    align-items: center;
}

input {
    width: calc(100% - 20px);
    background: #eee;
    border: none;
    border-radius: none;
    padding: 8px 16px;
    border-radius: 12px 0 0 12px;
    font-size: 12px;
    -webkit-appearance: none;
    height: 100%;
}

input.darkmode {
    background: #111;
    color: #eee;
}

button {
    width: 36px;
    background: rgb(192, 222, 134);
    border-top: 6px solid #eee;
    border-bottom: 6px solid #eee;
    border-right: 6px solid #eee;
    border-left: none;
    border-radius: 0 12px 12px 0;
    height: 100%;
}

button.darkmode {
    border-color: #111;
}

button:hover {
    background: greenyellow;
    color: #000;
    cursor: pointer;
    transition: ease-in-out .2s;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

[contenteditable]:focus {
    outline: 0px solid transparent;
}

ul {
    padding: 0 10px;
}

li {
    list-style: none;
    background: #eee;
    padding: 3px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: ease-in-out .2s;
    margin: 4px 0;
    border-radius: 10px;
    font-size: 14px;
    overflow-wrap: break-word;
}

li span:first-child {
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: calc(20vw - 100px);
    padding: 2px 5px;
}

li.darkmode {
    background: #333;
}

li.checked {
    background: rgb(192, 222, 134);
    color: #000;
}

li:hover {
    background:greenyellow;
    color: #000;
    cursor: pointer;
    transition: ease-in-out .2s;
}

.itemicons {
    display: none;
}

.delete {
    background: rgb(211, 55, 55);
    padding: 3px 6px;
    border-radius: 0 8px 8px 0;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    transition: ease-in-out .2s;
}

.delete:hover {
    background: red;
    cursor: pointer;
    transition: ease-in-out .2s;
}

.move, .back {
    background: #bbb;
    padding: 4px 5px 2px 6px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    transition: ease-in-out .2s;
}

.move:hover, .back:hover {
    background: rgb(213, 213, 255);
    cursor: pointer;
    transition: ease-in-out .2s;
}

.back {
    border-radius: 8px 0 0 8px;
}

.iconslist {
    display: flex;
}

.clear {
    background: rgb(242, 242, 141);
    border-radius: 8px;
    padding: 2px 6px;
    font-size: 9px;
    display: block;
    float: right;
    transition: ease-in-out .2s;
}

.clear.darkmode {
    color: #000;
}

h2 .clear:hover {
    background: rgb(250, 250, 26);
    transition: ease-in-out .2s;
    cursor: pointer;
}

.filter {
    background: rgb(192, 222, 255);
    border-radius: 10px;
    padding: 3px 4px 0px 4px;
    font-size: 8px;
    display: block;
    transition: ease-in-out .2s;
    margin: 0 3px;
    cursor: pointer;
}

.filter.darkmode {
    color: #000;
}

#filter.menuitem.green {
    background: rgb(192, 222, 134);
    color: #000;
}

#filter.menuitem.gray, #maxall.menuitem.gray {
    background: #ddd;
    color: #000;
}

.darkmode #filter.menuitem:hover, .darkmode #maxall.menuitem:hover {
    color: #ddd;
}

#filter.menuitem.black, #maxall.menuitem.black {
    background: #444;
}

h2 .titleList {
    cursor: pointer;
}

.wrapbar {
    height: 10px;
    display: block;
    background: #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    margin: 0 10px 5px 10px;
    padding: 0 4px;
}

.wrapbar.darkmode {
    background: #000;

}

.progressbar {
    background: yellowgreen;
    height: 4px;
    width: 0%;
    transition: ease-in-out .2s;
    border-radius: 5px;
}


@media only screen and (max-width: 600px) {

    .main {
        grid-gap: 20px;
        margin: 10px;
        grid-template:
        "monday"
        "tuesday"
        "wednesday"
        "thursday"
        "friday"
        "saturday"
        "sunday"
        "notes"
        "lastcolumn"
        / 1fr;
        height: auto;
    }

    .lastcolumn {
        grid-template:
        "month" 1fr
        "menu" 1fr
        / 1fr;
    }

    input {
        font-size: 16px;
    }

    .container-title {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .container-credits {
        margin: 20px 5px;
        font-size: 13px;
    }

    li {
        padding: 10px 10px 10px 15px;
        font-size: 16px;
    }

    li:hover {
        background: #eee;
    }

    li.checked:hover {
        background: rgb(192, 222, 134);

    }

    li.darkmode:hover {
        background: #333;
        color: #fff;
    }

    li.darkmode.checked:hover {
        background: rgb(192, 222, 134);
        color: #333;
    }

    li span:first-child {
        overflow-wrap: break-word;
        word-wrap: break-word;
        max-width: calc(100vw - 160px);
        padding: 2px 5px;
    }

    h2 {
        font-size: 21px;
    }

    h2 .clear:hover {
       background: rgb(242, 242, 141);
    }

    .button:hover {
        background: rgb(192, 222, 134);
    }

    form {
        height: 50px;
    }

    .delete, .clear, .back, .move, button {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .itemicons {
        display: flex;
    }

    #wrap-menu .menuitem#maxall {
        display: none;
    }
}