/*******************************************************************************
 * Global - Reset
 ******************************************************************************/
* {
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default paddings */
  box-sizing: border-box; /* Ensure padding and borders do not affect the element's width/height */
  text-decoration: none;
  color: #333;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  border: none;
  background-color: inherit;
  text-align:justify;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/*******************************************************************************
 * Global - Header
 ******************************************************************************/

header {
  background-color: #333;
  display: grid;
  grid-template-columns: auto 1fr auto;
  flex-shrink: 0;
  align-items: center;
}

header > div#website_title > a > h1 {
  font-size: 24px;
  font-weight: bold;
}

header > div#website_title > a > h2 {
  font-size: 20px;
  font-weight: bold;
}

header > div > a,
header > div > a > * {
  color:#f9f9f9;
  text-align: center;
}

header > div#goto_home,
header > div#logout {
  margin:1em;
}

header > div#goto_home > a > *,
header > div#logout > a > * {
  font-size: 24px;
}

/*******************************************************************************
 * Global - Main
 ******************************************************************************/

main {
  flex: 1 1 auto;
  overflow: auto;
  background-color: #f9f9f9;
  padding: 1em;
}

/*******************************************************************************
 * Global - Footer
 ******************************************************************************/

footer {
  background-color: #333;
  color:#f9f9f9;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1em;
}

footer * {
  color:#f9f9f9;
}

footer > div#toolbar > a {
  padding: 0.5em 0;
}

/*******************************************************************************
 * Global - Forms
 ******************************************************************************/

form input[type="text"], form input[type="number"] {
  border-radius: 0.5em;
  border: solid 1px lightgrey;
}

form button {
  font-weight: bold;
  border-radius: 0.5em;
  border: solid 1px #333;
  background-color: #333;
  color: #f9f9f9;
  padding: 1em;
}

form button *{
  color: #f9f9f9;
}

/*******************************************************************************
 * Global - Links
 ******************************************************************************/

 a:hover {
  text-decoration: underline;
}