/* 
Fonts
HTML
Body
Header and Footer
Navigation
Headings
Lists
Divs
Buttons
Paragraphs
Form
Page Content
Anchors
Search
Tables
Errors
Session Messages
Auto-suggest styles
 */

/* Fonts */
@font-face {
  font-family: Roboto;
  src: url(fonts/RobotoSlab-VariableFont_wght.ttf);
  font-weight: 375;
}

/* HTML */
html {
  font-family: "Roboto", serif;
}

/* Body */
body {
  margin: 0;
  background-color: ivory;
}

/* Header and Footer */
header {
  background-image: linear-gradient(to right, #0093e9, #80d0c7);
  padding: 1.1rem 3rem;
  margin: 0;
  color: white;
  font-size: 1.4rem;
}

footer {
  background-image: linear-gradient(to right, #0093e9, #80d0c7);
  color: white;
  padding: 1rem 3rem;
}

footer h2 {
  margin-top: 0.5rem;
}

#header,
#footer {
  background: #30395c;
}

/* Navigation */

nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.3rem;
  row-gap: 0.4rem;
  margin-left: 3rem;
  margin-right: 1rem;
  margin-bottom: 0.7rem;
  margin-top: 0.7rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: #455c6c;
}

nav ul {
  padding-left: 3rem;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
}

ul {
  padding-left: 0;
}

/* Headings */
h1 {
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  margin: 0.8rem 0 0.5rem 0;
}

h2 {
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  margin: 2rem 0 0.7rem 0;
}

/* Lists */
.bullet {
  list-style-type: circle;
  margin-left: 1.3rem;
  font-size: 1.1rem;
}

/* Divs */

div h1 {
  margin-top: 1.2rem;
  margin-bottom: 0.9rem;
}

/* Buttons */
button {
  color: white;
  background: #0093e9;
  border: white;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.8rem;
  font-size: 1.2rem;
}

button:hover {
  background: #80d0c7;
  cursor: pointer;
}

button#editFormDisplayButton {
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.7rem;
}

.reset-password-button {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* Paragraph */
p {
  margin-bottom: 1rem;
  margin-right: 3rem;
  max-width: 65rem;
  font-size: 1.1rem;
}

/* Form */

form {
  margin-bottom: 0.8rem;
}

input[type="checkbox" i] {
  margin-top: 1rem;
  height: 5rem;
  width: 5rem;
}

input[type="submit"] {
  background: #0093e9;
  color: #ffffff;
  border: #ffffff;
  border-radius: 0.8rem;
  margin-top: 0.9rem;
  padding: 0.4rem 1rem 0.6rem;
  font-size: 1.2rem;
  box-shadow: none;
  -webkit-appearance: none;
}

input[type="submit"]:hover {
  background-color: hsl(181deg 42% 49%);
  transition: 0.2s;
  cursor: pointer;
}

input[type="text"] {
  width: 30rem;
}

.submit {
  background: #0093e9;
  color: #ffffff;
  border: #ffffff;
  border-radius: 4rem;
  margin-top: 0.5rem;
  padding-left: 4rem;
  padding-right: 4rem;
  font-size: 5rem;
  box-shadow: none;
  border-style: solid;
  -webkit-appearance: none;
}

.submit:hover {
  background: #80d0c7;
}

/* Page Content */
#page-content {
  background: #ddf1ff;
}

/* Anchors */
a {
  color: #0093e9;
}

a:hover {
  color: #80d0c7;
}

/* Search */

#search-area {
  float: right;
}

/* Tables */

table {
  border-collapse: collapse;
  vertical-align: top;
  margin-top: 1.2rem;
}

table.list tr td {
  border: 1px solid #999999;
}

table.list tr th {
  background: #0093e9;
  color: white;
  border: 1px solid #0093e9;
}

tr#headerRow {
  position: sticky;
  top: 0;
}

th {
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  padding: 2px 5px;
  text-align: left;
  position: sticky;
  top: 0;
  background: black;
  color: ivory;
}

td.playerName {
  min-width: 18ch;
  max-width: 20ch;
}

td.date {
  min-width: 10ch;
}

@media (max-width: 750px) {
  td.playerName {
    min-width: 9ch;
  }

  td.date {
    min-width: 5ch;
  }

  header {
    padding: 1rem 1.5rem;
  }

  footer {
    padding: 1rem 1.5rem;
  }

  main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  nav {
    margin-left: 1.5rem;
    margin-right: 0.5rem;
  }

  p {
    margin-right: 0;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .input-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .submit {
    font-size: 2.5rem;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
  }
}

table.list tr td {
  border: 1px solid #999999;
}

table.list tr th {
  background: #0093e9;
  color: white;
  text-align: left;
}

dt {
  font-size: 1.6rem;
  margin-top: 0.7rem;
}

.table-header {
  padding: 0.3rem 0.5rem;
}

/* Errors */

.errors {
  display: inline-block;
  border: 2px solid red;
  color: red;
  font-size: 1.5rem;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
}

.errors ul {
  margin-bottom: 0;
}

/* Session Messages */

#message {
  color: #0093e9;
  background: white;
  border: 2px solid #0093e9;
  padding: 0.7rem 3rem;
  margin-bottom: 0.6rem;
}

/* Auto-suggest styles */

ul#suggestions li a {
  display: block;
  background: #ccc;
  color: #000;
  text-decoration: none;
}

ul#suggestions li a:hover {
  background: #aaa;
}

.white-space {
  height: 300px;
}

dd {
  font-size: 1.5rem;
  margin-left: 0;
  margin-top: 0.9rem;
}

strong {
  font-size: 4rem;
}

.objects .listing {
  padding-right: 3rem;
}

li {
  list-style-type: none;
}

.input-box {
  margin-bottom: 1rem;
  height: 2.8rem;
  max-width: 65rem;
  font-size: 1.7rem;
}

.reset-password-button {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.action {
  line-height: 1.2rem;
}

.actions {
  padding-left: 0rem;
}

a.action {
  display: block;
  width: fit-content;
}

table a.action {
  margin-bottom: 0;
}

select {
  font-size: 1.3rem;
  max-width: 90vw;
  display: block;
  margin-bottom: 0.9rem;
}

select:hover {
  cursor: pointer;
}

input {
  font-family: "Roboto", serif;
  font-size: 1.3rem;
  display: block;
}

input:hover {
  cursor: pointer;
}

input[type="checkbox" i] {
  margin-top: 1rem;
  height: 2.2rem;
  width: 2.2rem;
  cursor: pointer;
}

strong {
  font-size: 2rem;
}

.header-link {
  text-decoration: none;
  color: white;
}

#main-menu {
  padding-left: 0rem;
}

a.prominent-link {
  display: inline-block;
  background: #0093e9;
  color: white;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 0.8rem;
  font-size: 1.3rem;
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  margin-bottom: 1.2rem;
}

a.prominent-link:hover {
  background: #80d0c7;
  color: white;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.menu-card {
  background: white;
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-card-title {
  font-family: "Raleway", Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.6rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #0093e9;
  color: #30395c;
}

a.menu-link {
  display: block;
  text-decoration: none;
  color: #0093e9;
  padding: 0.35rem 0;
  font-size: 1.05rem;
}

a.menu-link:hover {
  color: #80d0c7;
}

p.menu-about {
  color: #666;
  font-size: 0.95rem;
  max-width: 50rem;
}

.overdue-card {
  margin-bottom: 1rem;
}

.overdue-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5rem 0;
}

.overdue-table td {
  border: none;
  padding: 0.35rem 0.5rem;
  font-size: 1.05rem;
  vertical-align: top;
}

.overdue-name a {
  text-decoration: none;
}

.overdue-date {
  white-space: nowrap;
  font-size: 0.95rem;
  color: #666;
}

.overdue-past {
  color: #c0392b;
  font-weight: bold;
}

.overdue-action {
  white-space: nowrap;
}

.overdue-action a {
  font-size: 0.9rem;
}

@media (max-width: 750px) {
  .overdue-table td {
    padding: 0.35rem 0.25rem;
  }

  .overdue-name {
    width: 100%;
  }

  .overdue-date {
    display: table-cell;
    font-size: 0.9rem;
    text-align: right;
  }

  .overdue-action a {
    font-size: 0.85rem;
  }
}

ul ul {
  padding-left: 2rem;
}

li.main-menu.list-2 {
  width: fit-content;
  max-width: 95vw;
}

/* Stationary scrolling header */
/* Style the header */
.header {
  padding: 10px 16px;
  background: #555;
  color: #f1f1f1;
  width: 100%;
  border: 1px solid #999999;
  font-size: 4.5rem;
  background: #0093e9;
  color: white;
  font-size: 4rem;
}

#operations {
  padding-left: 0;
}

label {
  display: block;
  margin: 1rem 0 0.5rem;
}

main {
  margin: 0;
  padding-bottom: 2rem;
  padding-left: 3rem;
  padding-right: 3rem;
}

@media (max-width: 750px) {
  main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  #main-menu {
    width: 100%;
  }

  .menu-card {
    padding: 0.9rem 1rem;
  }
}

a.back-link {
  font-size: 1.3rem;
}

dl {
  margin-bottom: 1.6rem;
}

section.actions {
  display: flex;
  gap: 1rem;
}

td.type {
  max-width: 12ch;
}

td.date {
  min-width: 10ch;
}

td {
  padding: 2px 4px 1px;
  border: 1px solid;
}

@media print {
  .hideOnPrint {
    display: none;
  }

  .displayOnPrint {
    display: block;
  }

  td {
    max-width: 29ch;
  }
}

tr#header {
  position: sticky;
  top: 0;
}

td.name {
  width: 18ch;
}

td.name div {
  display: flex;
  justify-content: space-between;
  border: 0px;
}

tr.header-row {
  position: sticky;
  top: 0;
}

button.sweetSpot {
  margin-top: 0.6rem;
  margin-bottom: 0;
  padding: 0.5rem 0.9rem;
  display: inline;
}

div.sweetSpot {
  margin-top: 0.5rem;
}

input.sweetSpot {
  display: inline;
  margin-right: 0.5rem;
}

button.user {
  margin-top: 0.6rem;
  margin-bottom: 0;
  padding: 0.5rem 0.9rem;
  display: inline
}

div.user {
  margin-top: 0.5rem;
}

input.user {
  display: inline;
  margin-right: 0.5rem;
}

textarea {
  width: 63ch;
}

.searchResults li {
  border: 1px solid ivory;
  padding: 0 0.1rem;
}

.searchResults li:hover {
  background-color: white;
  border: 1px solid black;
  cursor: pointer;
}

.user li {
  border: 1px solid ivory;
  padding: 0 0.1rem;
}

.user li:hover {
  background-color: white;
  border: 1px solid black;
  cursor: pointer;
}

#type input[type="checkbox"] {
    margin-right: 2.1rem;
}

#type input[type="checkbox"] {
    margin-top: auto;
    margin-bottom: auto;
}

#type label {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

div#intro {
    display: flex;
    gap: 1.5rem;
}

section#legend {
    max-width: 70ch;
}

.name a {
  display: inline;
}

.clipboard {
  width: 1.5rem;
  height: 1.5rem;
}

.clipboard:hover {
  cursor: pointer;
  background-color: lightgrey;
}

p.copied_message {
  position: fixed;
  left: 40vw;
  top: 2rem;
  z-index: 2;
  background-color: ivory;
  padding: 1rem;
  border: 1px solid black;
  border-radius: 6px;
}

td.name.artifact.edit {
  width: 23rem;
}
