@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

body {
    background-color: #222;
    font-family: "Poppins", sans-serif;
}

main {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-image: repeating-linear-gradient(
            to right,
            transparent 0 50px,
            #fff1 50px 51px
        ),
        repeating-linear-gradient(
            to bottom,
            transparent 0 50px,
            #fff1 50px 51px
        );
    position: relative;
}
form {
    background-color: #eee;
    width: max-content;
    padding: 5px;
    margin: 10px;
    border-radius: 24px;
    display: flex;
    gap: 10px;
}

form input,
form button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background-color: transparent;
    font-size: large;
    cursor: pointer;
}

form input::-webkit-color-swatch-wrapper {
    padding: 0;
}

form input::-webkit-color-swatch {
    border-radius: 50%;
}

form button {
    position: relative;
}

form button::before {
    content: "Add new note...";
    position: absolute;
    left: 85%;
    top: 10%;
    width: max-content;
    /* height: 16px; */
    color: #efefef;
    background-color: #09f;
    padding: 5px 10px 5px 20px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s linear;
    font-size: 13px;
}

form button:hover::before {
    opacity: 1;
    visibility: visible;
}

#list textarea {
    all: unset;
    color: #d6d6d6;
}

#list .note {
    background-color: #333;
    width: max-content;
    border-top: 30px solid #e6b905;
    border-radius: 10px;
    box-shadow: 0 20px 50px #0004;
    padding: 10px;
    position: absolute;
    top: 60px;
    left: 50px;
}

#list .note.active {
    z-index: 1;
}

#list .note span {
    position: absolute;
    bottom: 100%;
    right: 0;
    height: 30px;
    font-family: cursive;
    font-size: large;
    padding-right: 10px;
    cursor: pointer;
}
