/* "Notebooks" Section */
#notebooks {
    margin-top: 0;
    width: 100%;
    height: 100%;
    background-color: #ff4c88;
    padding: 5px;
    box-sizing: border-box;
    overflow-y: scroll;
    scrollbar-width: none;
}

#notebookHeader {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#addNotebookdiv {
    height: 200px;
    width: 200px;
    margin: 10px 10px 10px 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c8005d;
    padding: 20px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

#addNotebookdiv:hover {
    background-color: #940047;
}

#addNotebookdiv i {
    font-size: 90px;
    color: gainsboro;
}

#notebook-list {
    display: inline-flex;
    flex-wrap: wrap;
    list-style: none;
    margin-left: 50px;
    padding: 0;
    gap: 20px;
    justify-content: space-between;
    text-align: center;
}

.notebook {
    width: 200px;
    height: 200px;
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    background-color: #9f214b;
    box-shadow: 5px 5px 10px 5px #4f1b2c;
    color: #ffd8f8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notebook:hover {
    transform: scale(1.05);
    box-shadow: 5px 5px 20px 5px rgba(0, 0, 0, 0.3);
}

.notebook span {
    font-size: 2em;
    margin-top: 30%;
    flex-grow: 1;
    overflow-y: scroll;
    word-wrap: break-word;
    scrollbar-width: none;
}

.notebook span::-webkit-scrollbar {
    display: none;
}

#editBtn,
#deleteBtn {
    width: 60px;
    padding: 5px 20px;
    margin: 0 5px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: background-color 0.3s ease;
}

#editBtn {
    background-color: rgb(255, 39, 201);
}

#editBtn:hover {
    background-color: #ff8fea;
}

#deleteBtn {
    background-color: #ff6060;
}

#deleteBtn:hover {
    background-color: #75003b;
}

/* Popup */
#notebookpopup {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 650px;
    background-color: rgb(255, 184, 244);
    border: 1px solid #42000e;
    border-radius: 8px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-y: scroll;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    scrollbar-width: none;
}

#notebookpopup::-webkit-scrollbar {
    display: none;
}

#notebook-title {
    height: 40px;
    width: 200px;
    border-radius: 20px;
    font-family: lemon;
    background-color: #ffd6ed;
    border: 2px solid #6a002a;
}

textarea {
    width: 1000px;
    height: 500px;
    margin: 10px 0;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 8px;
    border: 2px solid #6a002a;
    background-color: #ffd6ed;
    font-family: pine;
}

/* Button container */
#btn-container {
    display: flex;
}

/* Buttons in the notebook popup */
#submitBtn, #closeBtn {
    width: 150px;
    padding: 10px;
    margin: 10px;
    border: none;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
    font-family: pine;
    font-weight: 100;
    transition: background-color 0.3s ease;
}

#submitBtn {
    background-color: #ff22b5;
}

#closeBtn {
    background-color: rgb(58, 58, 58);
}

#submitBtn:hover {
    background-color: #ff4db2;
}

#closeBtn:hover {
    background-color: #333;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    #notebooks {
        padding: 10px;
    }

    #addNotebookdiv {
        width: 150px;
        height: 150px;
    }

    .notebook {
        width: 150px;
        height: 150px;
    }

    textarea {
        width: 90%;
        height: 300px;
    }

    #notebookpopup {
        width: 90%;
        height: 90%;
    }

    #notebook-list {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #addNotebookdiv {
        width: 120px;
        height: 120px;
    }

    .notebook {
        width: 120px;
        height: 120px;
    }

    textarea {
        width: 100%;
        height: 250px;
    }

    #notebookpopup {
        width: 95%;
        height: 95%;
    }

    #notebook-title {
        width: 100%;
    }
}
