body {
  font-family: sans-serif;
  background-color: #f9f9f9;
  margin: 10px;
}

.centered {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.userDiv {
  margin-top: 10px;
  margin-bottom: 10px;
}

#signed-out-view,
#signed-in-view {
  display: none;
}

/* https://www.w3schools.com/howto/howto_css_signup_form.asp */

* {
  box-sizing: border-box;
}

/* Full-width input fields */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: none;
  background: #f1f1f1;
}

input[type="text"]:focus,
input[type="password"]:focus {
  background-color: #ddd;
  outline: none;
}

hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

/* Set a style for all buttons */
button {
  background-color: #04aa6d;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  opacity: 0.9;
}

button:disabled {
  opacity: 0.5;
}

button:hover:not(:disabled) {
  opacity: 1;
}

/* Red variant for cancel and sign out buttons */
.btn-red {
  background-color: #f44336;
}

/* Float paired buttons side by side with equal width */
.btn-half {
  float: left;
  width: 50%;
}

/* Add padding to container elements */
.container {
  padding: 16px;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Stack paired buttons on extra small screens */
@media screen and (max-width: 300px) {
  .btn-half {
    width: 100%;
  }
}

#errormsg {
  color: red;
}

#form {
  border: 1px solid #ccc;
}
