body {
    color: white;
}

.pinboard-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 40px auto; /* Zentriert das Pinboard */
    background-color: #602faa; /* Korkbrett-Farbe */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.note {
    
    background-color: #0C0E17; /* Helle Notizzettel-Farbe */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Leichter Schatten für 3D-Effekt */
    transform: rotate(calc(var(--rotation) * 1deg)); /* Leichte Rotation für Notizen */
    transition: transform 0.2s ease-in-out;
    position: relative; /* Wichtig für die Positionierung des Datums */
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Verteilt den Platz zwischen den Elementen */
}

.note:nth-child(odd) {
    --rotation: -2;
}

.note:nth-child(even) {
    --rotation: 2;
}

.note:hover {
    transform: scale(1.05) rotate(0deg); /* Vergrößern und begradigen beim Hover */
    z-index: 10;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    font-size: 0.8em;
    color: #888;
}

.note-creator {
    font-weight: bold;
    color: #eee;
}

.note-created-date {
    font-style: italic;
    color: #ccc;
}

.note-content {
    flex-grow: 1;
    font-size: 0.9em;
    line-height: 1.4;
}

.note-footer {
    text-align: right;
    font-size: 0.8em;
    color: #666;
    margin-top: 10px;
}


.note.archived {
    opacity: 0.6;
    background-color: #e0e0e0;
    color: black; /* Schriftfarbe auf Schwarz setzen */
}

.note.archived .note-creator,
.note.archived .note-created-date {
    color: black; /* Schriftfarbe für Ersteller und Erstellungsdatum auf Schwarz setzen */
}

.note.archived .note-header {
    border-color: #000000;
}

.note.archived .note-content p { /* Nur den Inhalt der Notiz durchstreichen */
    text-decoration: line-through;
}

.note-actions {
    display: flex;
    justify-content: space-between; /* Buttons an den Enden */
    margin-top: auto; /* Schiebt die Aktionen nach unten */
    padding-top: 10px; /* Abstand zum Inhalt */
}

.note.archived .archive-button {
    display: none;
}

.delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.delete-button:hover {
    background-color: #c82333;
}

.archived-date {
    font-size: 0.7em;
    color: #666;
    position: absolute;
    bottom: 5px;
    right:50%;
    transform: translateX(50%);
    text-decoration: none;
}

.edit-button,
.save-button,
.cancel-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin-left: 5px; /* Abstand zwischen den Buttons */
}

.edit-button:hover,
.save-button:hover,
.cancel-button:hover {
    background-color: #0056b3;
}

.save-button {
    background-color: #28a745;
}

.save-button:hover {
    background-color: #218838;
}

.cancel-button {
    background-color: #6c757d;
}

.cancel-button:hover {
    background-color: #5a6268;
}

.note-content p[contenteditable="true"] {
    border: 1px solid #007bff;
    padding: 5px;
    background-color: #f8f9fa;
    color: black;
}

.hidden {
    display: none;
}

.add-note-button-container {
    text-align: center;
    margin-top: 20px;
}

.add-note-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    margin: 20px auto;
}

.add-note-button:hover {
    background-color: #0056b3;
}

.create-note-container {
    background-color: #0C0E17;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin: 40px auto;
    color: white;
}

.create-note-container h2 {
    color: white;
    margin-bottom: 20px;
    text-align: center;
}

.create-note-container form {
    display: flex;
    flex-direction: column;
}

.create-note-container textarea {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    min-height: 100px;
    resize: vertical;
    font-size: 1em;
}

.create-note-container textarea::placeholder {
    color: #aaa;
}

.create-note-container button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.create-note-container button:hover {
    background-color: #0056b3;
}