:root {
    color-scheme: light dark;
    /*color: light-dark(black, white);
    background-color: light-dark(white, black);*/
}

html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
}

body {
    font-family: sans-serif;
    padding: 0;
    margin: 20px;
    width: calc(100% - 40px);
    height: 100vh;
}

footer {
    height: 60px;
    padding-bottom: 20px;
    padding-top: 20px;
    text-align: center;
}

nav {
    margin: 10px;
    display: flex;
    justify-content: space-between;
}

form {
    display: flex;
    max-width: 400px;
    flex-direction: column;
    gap: 15px;
}

.error {
    color: darkred;
}

.hidden-field {
    visibility: hidden;
    position: absolute;
}

.hidden {
    display: none;
}

.encrypted {
    color: dimgray;
    font-style: italic;
}

p {
    max-width: 100%;
}

.conversation {
    background-color: light-dark(#acc3ff, #2c43ae);
    cursor: pointer;
    border-radius: 10px;
    padding: 10px;
    margin: 20px;
}

.conversation:hover {
    background-color: light-dark(#c2d3ff, #3c53be);
}
.precontent {
    display: inline;
}

.formatted-created {
    font-style: italic;
    font-weight: normal;
    color: light-dark(rgb(70, 70, 70), gray);
}

.recent-messages.in-conversation {
    gap: 20px;
}

.in-conversation > .message {
    background-color: light-dark(rgb(220, 220, 220), rgb(40, 40, 40));
    padding: 10px;
    border-radius: 5px;
    margin: 10px;
}

.sideways {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.button,
button {
    background-color: light-dark(lightgrey, rgb(40, 40, 80));
    color: light-dark(black, white);
    border-radius: 10px;
    border: none;
    padding: 5px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.button:hover,
button:hover {
    background-color: light-dark(rgb(240, 240, 240), rgb(50, 50, 90));
}

up-modal-box {
    background-color: light-dark(white, black);
    border: light-dark(black, white) 1px solid;
}

.button.danger,
button.danger {
    text-decoration: none;
    background-color: orangered;
    color: white;
    font-weight: bold;
}

.button.danger:disabled,
.button.danger:active,
button.danger:disabled,
button.danger:active {
    text-decoration: none;
    background-color: orangered;
    color: grey;
    font-weight: bold;
}

.notif-overlay {
    padding-top: 40px;
    pointer-events: none;
    position: fixed;
    width: calc(100% - 40px);
    height: 100vh;
    display: flex;
    flex-direction: row-reverse;
    align-items: start;
}

.flash {
    background-color: cornflowerblue;
    color: white;
    padding: 5px;
    width: 300px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-wrap-mode: nowrap;
    border-radius: 15px;
    border: #2c43ae 2px solid;
    cursor: pointer;
    pointer-events: all;
}

.lengthways {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 10px;
}
