/* Common CSS styles from https://www.joshwcomeau.com/css/custom-css-reset/ */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* User styles: */

body {
    /* Take up the whole view port */
    height: 100vh;
    width: 100vw;

    /* Center anything within the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
}

.content form {
    display: flex;
    flex-direction: column;

    font-family: "Open Sans", sans-serif;
}

form label, form button {
    font-optical-sizing: auto;
    font-weight: bold;
}

form .item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 1ex;
}

form .item label {
    margin-right: 2em;
}

form button {
    margin-top: 1em;
    border-radius: 0.5ex;
    border-width: 0ex;
    padding: 1ex;
}

.message {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    font-family: "Open Sans", sans-serif;
    font-weight: bold;
    padding: 1ex;
    border: thin;
    border-radius: 0.5ex;

    color: white;
}

.message-failure {
    border-color: #db5e56;
    background-color: #db5e56;
}

.message-success {
    border-color: #56db8d;
    background-color: #56db8d;
}
