:root {
  --primary-link: #437dc8;
  --primary-text-color: #333;
  --secondary-text-color: #566d8c;
  --ternary-text-color: #566d8c;

  --primary-background: #e0f0fd;
  --secondary-background: #fff;
  --input-background: white;
  --input-text-color: #333;

  --button-background: #96c1ef;

  --primary-border: #ccc;

  @media(prefers-color-scheme: dark) {
    --primary-link: #00aaff;
    --primary-text-color: #ddd;
    --secondary-text-color: #7997cc;
    --ternary-text-color: #577ab2;

    --primary-background: #061929;
    --secondary-background: #182d40;
    --button-background: #0075cf;
  }
}

* {
  padding: 0;
  margin: 0
}

body, input {
  font-family: "century-gothic", sans-serif;
  font-size: 12pt;
}

body {
  padding: 15px;  
  font-weight: 400;

  color: var(--primary-text-color);
  background-color: var(--primary-background);

  @media(min-width: 500px) {
    padding: 40px;
  }
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: 400;
  
}

h1 {
  font-size: 1.6em;

  @media(min-width: 750px) {
    font-size: 2em;
  }
}

h2 {
  font-size: 1.2em;
  /* margin-bottom: 20px; */

  @media(min-width: 500px) {
    font-size: 1.8em;
  }
}

h3 {
  /* margin-bottom: 20px; */
  @media(min-width: 500px) {
    font-size: 1.5em;
    
  }
}

h4 {
  font-size: 1em;
  color: var(--secondary-text-color);

  @media(min-width: 750px) {
    font-size: 1.3em;
  }
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 10px;

  @media(min-width: 650px) {
    flex-direction: row;
  }
}

/* Recommended: Add a class in your HTML when there are multiple header items, e.g. <header class="multi"> */
header.multi {
  justify-content: flex-end;
}

header .logo-and-title {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

header .user-links {
  display: flex;
  flex-direction: row;
  gap: 10px;

  @media(min-width: 650px) {
    flex-direction: column;
  }
}

th {
  text-align: left;
}

/* BLOCKS */

.block, .wide-block {
  max-width: 650px;
  margin: 0 auto;
  background-color: var(--secondary-background);
  padding: 15px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  border-radius: 10px;

  margin-bottom: 10px;

  @media(min-width: 500px) {
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 20px;
  }

  @media(min-width: 1200px) {
    padding: 50px;
  }
}

.inner-block {
  padding: 10px 0;
  
  @media(min-width: 500px) {
    padding: 20px 0;
  }
}

.wide-block {
  max-width: 100%
}

/* LOGO */

#logo-large {
  width: 240px;

  @media(min-width: 500px) {
    width: 350px;
  }
}

.logo-container {
  text-align: center;
  padding: 40px 0;
}

.logo-title, .logo-subtitle, .logo-subsubtitle {
  text-align: center;
  margin-bottom: 20px;
}

.logo-title {
  font-size: 1.3em;
  margin-bottom: 20px;

  @media(min-width: 500px) {
    font-size: 1.8em;
      margin-bottom: 20px;

  }
}

.logo-subtitle {
  font-size: 1.1em;
  line-height: 1.2em;
  color: var(--secondary-text-color);

  @media(min-width: 500px) {
    font-size: 1.5em;
  }
}

.logo-subsubtitle {
  font-size: 1em;
  line-height: 1.2em;
  color: var(--ternary-text-color);

  @media(min-width: 500px) {
    font-size: 1.2em;
  }
}

/* FORMS */

input, button {
  padding: 6px 10px;
  border-radius: 4px;
}

button {
    color: var(--primary-text-color);
    border: 1px solid var(--primary-link);
}

input[type=text], input[type=number], input[type=email], input[type=password] {
  color: var(--input-text-color);
  background-color: var(--input-background);
  border: 1px solid var(--primary-border);

}

input.points {
  width: 3em
}

button {
  background: transparent;
  border: 2px solid var(--button-background);;
  font-weight: 400;
  font-size: 1em;
  cursor: pointer;
}

input[type=submit]:hover, button:hover {
  background-color: var(--button-background);
}

/* SCOREBOARD */

table.scoreboard td, table.scoreboard th {
  font-size: 1em;

  @media(min-width: 650px) {
    font-size: 1.3em
  }

  @media(min-width: 1200px) {
    font-size: 1.6em
  }
}

/* PROFILE */

.change-password-table {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-columns: 200px auto;
  column-gap: 10px;
  row-gap: 10px;

}

.change-password-table .change-password-label {
  grid-area: auto / 1 / auto / 1;
  justify-self: right;
  align-self: center;
}

.change-password-table .change-password-field {
  grid-area: 2 1;
}

.change-password-table .change-password-field input {
  width: 200px;
}

.change-password-table .change-password-submit {
  grid-area: auto / 2 / 5 / 2;
}

/* ADMIN */

.admin-header {
  margin-bottom: 20px;
}

table.admin-table, table.scoreboard {
  border-spacing: 10px;
  margin: -10px;

  @media(min-width: 500px) {
    margin: -20px;
    border-spacing: 20px;
  }
}

table.scoreboard {
  @media(min-width: 1200px) {
    margin: -40px;
    border-spacing: 40px;
  }
}

.admin-table th, table.scoreboard th {
  font-weight: 700;
  text-align: left;
}
.scoreboard th.points, .scoreboard td.points {
  text-align: center;    
}

.admin-table th.actions, .admin-table td.actions,
.scoreboard th.actions, .scoreboard td.actions,
.admin-table th.points, .admin-table td.points {
  text-align: right;
}

.admin-table th.totalpoints, .admin-table td.totalpoints,
.scoreboard th.totalpoints, .scoreboard td.totalpoints {
  text-align: right;
  font-weight: 700;
}

.admin-form {
  /* margin-top: 20px; */

  @media(min-width: 500px) {
    /* margin-top: 40px; */
  }
}
