:root {
    --bg-color: #f0f2f5;
    --header-bg: #ffffff;
    --text-color: #333;
    --shadow: 0 4px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    margin: 0;
    font-weight: 300;
    color: #555;
}

#add-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
    box-shadow: var(--shadow);
}

#add-btn:hover {
    background-color: #45a049;
}

.notes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    box-sizing: border-box;
}

.note {
    aspect-ratio: 1 / 1;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out;
}

.note:hover {
    transform: scale(1.05) rotate(0deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.note textarea {
    background: transparent;
    border: none;
    resize: none;
    font-family: 'Comic Sans MS', 'Comic Sans', 'Apple Chancery', cursive;
    font-size: 18px;
    width: 100%;
    height: 100%;
    outline: none;
    color: #333;
}

.note-actions {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s;
}

.note:hover .note-actions {
    opacity: 1;
}

.note-actions button {
    background: rgba(0,0,0,0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-actions button:hover {
    background: rgba(0,0,0,0.2);
}

.delete-btn {
    color: #d9534f;
}