* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #1B262C;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 800px;
    margin: auto;
    box-shadow: 1px 1px 100px black;
}

a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

header {
    background-color: #0F4C75;
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}



/* Add padding to notes-container to prevent content from being hidden behind input area */
.notes-container {
    background-color: #1B262C;
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    padding-bottom: calc(3rem + 50px); /* Add extra padding at bottom to prevent content from hiding behind input area */
    display: flex;
    flex-direction: column-reverse;
}
.note {
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 80%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-area {
    display: flex;
    padding: 1rem;
    background-color: white;
    border-top: 1px solid #e0e0e0;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 800px; /* Match the max-width of body */
    z-index: 1000;
    box-sizing: border-box;
}

#note-input {
    flex-grow: 1;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    outline: none;
    font-size: 1rem;
    resize: none;

    /* overflow: shown; */
}

#add-note {
    background-color: #4a76a8;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#add-note:hover {
    background-color: #3a5b85;
}

.button-container {
    display: flex;
    gap: 10px;
}

.action-button {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.action-button:hover {
    background-color: white;
    color: #4a76a8;
}

.action-button2 {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.action-button2:hover {
    background-color: rgba(255, 255, 255, 0.265);
    color: #4a76a8;
}

.button-link {
    background-color: transparent;
    color: rgb(0, 0, 0);
    border: 1px solid white;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.button-link:hover {
    background-color: rgb(0, 0, 0);
    color: #4a76a8;
}

.timestamp {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #4a76a8;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}