* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    font-size: 1.5em;
}

body {
    background: linear-gradient(to right, #6f9fe3, #ca7ceb);
}

.container {
    border: 1px solid black;
    border-radius: 15px;
    width: fit-content;
    margin: 10vh auto;
    padding: 20px;
    width: 1000px;
    max-height: 80vh;
}

h2 {
    text-align: center;
    padding: 5px;
}

.list {
    display: flex;
    flex-direction: column;
    list-style: none;
    overflow: auto;
    scrollbar-width: thin;
    max-height: 60vh;
}

.list_item {
    display: flex;
    margin: 5px 0;
}

.list_item li {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    word-break: break-all;
    flex-grow: 1;
}

.list_item p {
    font-size: 0.8em;
}

small {
    font-size: 0.6em;
}

.delete {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 8px;
}

.edit, .archive {
    border: none;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
}

.list_item .delete:hover, .edit:hover, .archive:hover {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

#new_note_form {
    display: flex;
    padding: 10px 0;
}

.column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.crossed_out {
    text-decoration: line-through;
    color: rgba(0, 0, 0, 0.3);
}

.edited {
    background: rgba(255, 255, 255, 0.6);
}

#title {
    padding: 8px;
    font-size: 0.9em;
    border: none;
    border-top-left-radius: 5px;
    outline: none;
}

#main_text {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 0.8em;
    border-bottom-left-radius: 5px;
}

#submit {
    padding: 8px;
    font-size: 0.8em;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

#submit:hover {
    cursor: pointer;
    background: #E1E1E1;
}