/* Post-It Wall Styles */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Indie+Flower&family=Patrick+Hand&family=Permanent+Marker&family=Shadows+Into+Light&display=swap');

/* Font Classes */
.postit-note.postit-font-1 { font-family: 'Caveat', cursive !important; font-size: 20px; }
.postit-note.postit-font-2 { font-family: 'Indie Flower', cursive !important; font-size: 18px; }
.postit-note.postit-font-3 { font-family: 'Shadows Into Light', cursive !important; font-size: 18px; }
.postit-note.postit-font-4 { font-family: 'Permanent Marker', cursive !important; font-size: 16px; }
.postit-note.postit-font-5 { font-family: 'Patrick Hand', cursive !important; font-size: 18px; }
.postit-wall-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.postit-note {
    width: 200px;
    height: auto;
    padding: 15px;
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Marker Felt', sans-serif; /* Fallback */
    font-size: 16px;
    line-height: 1.4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postit-note:hover {
    box-shadow: 4px 6px 10px rgba(0, 0, 0, 0.4);
    z-index: 10;
    /* On hover, slightly lift the note without losing its chaotic rotation entirely */
    transform: scale(1.05) translate(-2px, -2px) !important; 
}

/* Colors */
.postit-note.yellow { background: #fefabc; color: #333; }
.postit-note.pink { background: #ffc4d9; color: #333; }
.postit-note.blue { background: #cceeff; color: #333; }
.postit-note.green { background: #ccffcc; color: #333; }

.postit-content {
    flex-grow: 1;
    overflow-y: auto; /* Prevent overflow if text is too long */
    scrollbar-width: none; /* Hide scrollbar for a cleaner look */
	
    align-content: center;
    text-align: center;
}
.postit-content::-webkit-scrollbar {
    display: none;
}

.postit-meta {
    font-size: 14px;
    text-align: right;
    font-weight: bold;
    margin-top: 10px;
    color: rgba(0,0,0,0.6);
}

/* Form Styles */
.postit-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    max-width: 600px;
}

.postit-form textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    resize: vertical;
}

.postit-color-picker {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.postit-color-picker label {
    cursor: pointer;
}

.postit-success-msg {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

/* Delete Button */
.postit-delete-form {
    position: absolute;
    top: -10px;
    right: -10px;
    margin: 0;
}

.postit-delete-btn {
    background: #ff4d4d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: none; /* Hide by default */
}

.postit-note:hover .postit-delete-btn {
    display: block; /* Show on hover */
}

.postit-delete-btn:hover {
    background: #cc0000;
}
