* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.app-container {
    width: 90%;
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: hidden;
    position: relative;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    color: #444;
}

.note-input {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.note-input input,
.note-input textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.note-input button {
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #28a745;
    color: #fff;
    cursor: pointer;
}

.note-input button:hover {
    background-color: #218838;
}

.notes-list {
    margin-top: 220px; /* Adjust based on the height of the input box */
}

.notes-list h2 {
    font-size: 20px;
    color: #444;
    margin-bottom: 10px;
}

#notes-container {
    position: relative;
    min-height: 400px;
}

.note {
    background: #dae904;
    padding: 10px;
    border: 1px solid #c3c3c3;
    border-radius: 4px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    position: absolute;
    cursor: move;
    transform: translate(0, 0);
}

.note-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.note-content {
    margin-bottom: 10px;
}

.note-buttons {
    display: flex;
    justify-content: flex-end;
}

.note-buttons button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    margin-left: 5px;
    cursor: pointer;
}

.note-buttons .edit-button {
    background-color: #007bff;
    color: #fff;
}

.note-buttons .edit-button:hover {
    background-color: #0056b3;
}

.note-buttons .delete-button {
    background-color: #dc3545;
    color: #fff;
}

.note-buttons .delete-button:hover {
    background-color: #c82333;
}
