body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* Remove overflow: hidden; to allow the page to scroll normally */
}

#notesContainer {
    position: relative;
    /* Give it a large area so notes can be placed freely */
    width: 2000px; 
    height: 2000px;
    overflow: auto; /* Now you can scroll within the container */
    background: #f0f0f0; /* Optional, just to distinguish the area */
}

#buttonContainer {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#buttonContainer button {
    padding: 10px 15px;
    background-color: #5eaeff;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    flex: 1 1 auto;
}

#buttonContainer button:hover {
    opacity: 0.8;
}

/* #notesContainer .note {
    position: absolute;
    background: #fff8c6;
    border: 1px solid #ccc;
    padding: 10px;
    width: 200px;
    word-wrap: break-word;
    cursor: move;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    /* Remove touch-action to allow default behavior */
    /* Existing styles... */
    /* touch-action: none; Prevent default touch actions on mobile 
} */

.note textarea {
    width: 100%;
    height: 80px;
    border: none;
    resize: none;
    background: transparent;
    outline: none;
    font-size: 14px;
}

.note .controls {
    text-align: right;
    margin-top: 5px;
}

.note .controls button {
    margin-left: 5px;
    background: #ff5e5e;
    border: none;
    color: white;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 3px;
}

.note .controls button.save-btn {
    background: #5eaeff;
}

.note .controls button:hover {
    opacity: 0.8;
}
