* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    position: relative;
    background-color: #151515;
}

/* Header */
header {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
}

nav {
    background-color: #363636;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header ul {
    display: flex;
    list-style: none;
}

header ul li {
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    transition: all .4s;
}

header ul li:hover {
    background-color: #dddddd2c;
}

header img {
    object-fit: contain;
    height: 2.5rem;
    filter: invert(100%) sepia(0%) saturate(7257%) hue-rotate(284deg) brightness(106%) contrast(101%);
}

header .delete {
    height: 2rem;
}



/* Aside */

aside {
    background-color: #202020;
    width: 28%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: -100%;
    transition: all .6s ease;
    z-index: 99;
}

aside.active{
    left: 0;
}

.asideHead {
    text-align: end;
}

.asideHead img {
    object-fit: contain;
    filter: invert(100%) sepia(0%) saturate(7257%) hue-rotate(284deg) brightness(106%) contrast(101%);
    height: 2.2rem;
    margin: 5px;
    cursor: pointer;

}

aside form {
    width: fit-content;
    height: fit-content;
    margin: auto;
    margin-top: 2rem;
}

aside input,
textarea {
    width: 20rem;
    font-family: sans-serif;
    background-color: #232323;
    color: white;
    border: 1px solid grey;
    outline: none;
    padding: 5px;
}

aside input::placeholder,
textarea::placeholder {
    color: rgb(199, 199, 199);
}

aside input {
    font-size: 18px;
    height: 2rem;
}

aside textarea {
    font-size: 15px;
    height: 15rem;
    margin: 20px 0;
}

aside button {
    font-size: 16px;
    padding: 8px 10px;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    transition: all .3s;
}

aside button[type="submit"] {
    background-color: rgba(255, 255, 255, 0.801);
    color: black;
}

aside button[type="submit"]:hover {
    background-color: white;
}

aside button[type="reset"] {
    background: #323232;
    color: white;
}

aside button[type="reset"]:hover {
    background-color: #404040;
}

aside button:not(:nth-child(2)) {
    margin-right: 10px;
}





/* ------------
        Notes
    ----------- */


section {
    padding: 3rem;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: start;
    gap: 15px;
}

article {
    max-width: 16rem;
    min-width: 12rem;
    min-height: 12rem;
    padding: 15px;
    background: #252525;
    color: #ffffffd1;
    border-radius: 10px;
    font-family: sans-serif;

}

.tools {
    text-align: end;

}

.tools img {
    object-fit: contain;
    height: 1rem;
    filter: invert(100%) sepia(0%) saturate(7257%) hue-rotate(284deg) brightness(106%) contrast(101%);
    cursor: pointer;
    opacity: 0.5;
    visibility: hidden;
    transition: all .2s;
}

article:hover .tools img {
    visibility: visible;
}

.tools img:hover {
    opacity: 1 !important;
}

.tools img:not(:nth-child(2)) {
    margin-right: 8px;
}

article h3 {
    font-size: 1.4rem;
    margin: 10px 0 15px 0;
    font-weight: lighter;
    cursor: default;
    overflow: hidden;
}

article p {
    font-size: 16px;
    line-height: 1.4;
    word-spacing: 2px;
    overflow: hidden;
}



/*------------------
    Responsiveness
 ------------------*/



/* Tablet */
@media (width <=768px) {
    aside {
        width: 100%;
    }

    .asideHead img {
        margin: 5px 3rem;
    }

    section {
        padding: 2.5rem 0.5rem;
    }

    .tools img {
        opacity: 0.5;
        visibility: visible;
    }

    article {
        max-width: 13rem;
    }
}

/* Mobile */


@media (width <=425px) {

    .asideHead img {
        margin: 5px 1.5rem;
    }

    .tools img {
        opacity: 0.5;
        visibility: visible;
    }

    aside {
        width: 100%;
    }

    aside input,
    textarea {
        width: 17rem;
    }

    aside textarea {
        height: 12rem;
    }
}

@media (width <=320px) {

    article {
        min-width: 10rem;
        min-height: 11rem;
    }

    aside input,
    textarea {
        width: 12rem;
    }
}

/* Laptop */
@media (width > 768px) {
    aside {
        width: 40%;
    }

    aside input,
    textarea {
        width: 17rem;
    }
}