:root {
  --main-color: #2D3250;
  --bg-color: #424769;
  --fg-color: #f1f1f1;
  --fg-muted-color: #999;
  --header-color: #F6B17A;
  --header-text-color: #2D3250;

  --input-style: solid;
}

body, html {
  margin: 0;
  padding: 0;
  font-size: 10pt;
}

/* Global overrides */

body {
  background-color: var(--main-color);
  color: var(--fg-color);
  font-family: monospace, monospace;
}

a:link { 
  color: var(--fg-color);
  text-decoration:none; 
}
a:visited { 
  color: var(--fg-color);
  text-decoration:none; 
}

/* utils */

.nosee {
  display: none;
}

p {
  line-height: 1.4;
}

/* Structure */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  background-color: var(--bg-color);
}

.content > :first-child {
  margin-top: 0px;
}

.content {
  padding: 5px;
}

/* Header */

header {
  width: 100%;
  max-width: 1200px;
  margin: 0px auto;
  margin-top: 5px;
  background-color: var(--header-color);
  color: var(--header-text-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

header > .logo {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 5px;
}

header a:link { 
  color: var(--header-text-color);
  text-decoration:none; 
}

header a:visited { 
  color: var(--header-text-color);
  text-decoration:none; 
}

header ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

header ul li {
  padding: 0px 5px;
  border-right: 1px solid var(--header-text-color);
}

header ul li:last-child {
  border-right: none;
}

header ul:not(.end) {
  flex: 1;
}

.sel > a, .sel > a:visited {
  color: var(--fg-color);
  text-decoration: none;
}

/* Toasts */
.toast {
  width: 100%;
  max-width: 1190px;
  padding: 5px;
  margin: 0 auto;
}

.toast.toast-error {
  background-color: #f44336;
  color: white;
}

/* forms */

form {
  width: 100%;
  max-width: 600px;
}

input[type=email], input[type=text], input[type=number], input[type=password], input[type=search], input[type=date], input[type=time] {
  border: 1px var(--input-style) var(--bg-color);
  width: 100%;
  padding: 0.7em 0.5em;
  appearance: none;
  border-radius: 0;
  color: var(--fg-color);
  background-color: var(--main-color);
  transition: border-color 0.3s ease;
  margin-bottom: 0.9rem;
}

input[type=email]:focus, input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, input[type=search]:focus, input[type=date]:focus, input[type=time]:focus, textarea:focus {
  outline: none;
  appearance: none;
  border-color: var(--fg-color);
}

textarea {
  height: auto;
  width: 100%;
  resize: none;
  border: 1px var(--input-style) var(--bg-color);
  color: var(--fg-color);
  padding: 0.5em;
  appearance: none;
  border-radius: 0;
  background-color: var(--main-color);
  margin-bottom: 0.9rem;
}

input[type=submit] {
  background-color: var(--main-color);
  border: 1px var(--input-style) var(--bg-color);
  color: var(--fg-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  padding: 0.65em 2em;
  font-size: 1em;
  font-family: inherit;
  user-select: none;
  position: relative;
  z-index: 1;
}

input[type=submit]:hover {
  background-color: var(--bg-color);
  border-color: var(--fg-color);
}

/* List */

.votelinks {
  width: 21px;
}

.votelinks img {
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin-right: 5px;
}

.title {
  font-size: 1.2rem;
  font-weight: bold;
}

.subtext {
  font-size: 0.8rem;
  color: var(--fg-muted-color);
}

.subtext a:hover {
  text-decoration: underline;
}

.sitebit {
  font-size: 0.8rem;
  color: var(--fg-muted-color);
}

.comment p {
  font-size: 10pt;
  margin-top: 0px;
}

table {
  min-width: 400px;
  font-size: 10pt;
}

.login {
  padding: 20px;
  background-color: var(--main-color);
  color: var(--fg-muted-color);
}

.login a:link { 
  color: var(--fg-color);
  text-decoration:underline; 
}

/* footer */

footer {
  text-align: center;
  border-top: 3px solid var(--header-color);
  color: var(--fg-muted-color);
  padding: 10px 0px;
  font-size: 0.8em;
}