body {
  background-color: white;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0px 10px 10px 10px;
}

h1 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 24px;
  line-height: 0.9;
  margin: 0px 0px 5px 0px;
  color: crimson;
  text-shadow: 3px 3px 3px silver;
}
h2 {
  color: crimson;
  font-size: 18px;
  margin: 10px 0px 5px 0px;
}
h4 {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 0.9;
  margin: 0px 0px 0px 0px;
  color: crimson;
  text-shadow: 1px 1px 1px silver;
  letter-spacing: 1.5px;
  font-variant: small-caps;
}

.navbar ul {
  list-style-type: none;
  font-size: 90%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
}

.navbar li {
  float: left;
  color: white;
}

.navbar li a {
  display: block;
  padding: 5px 0px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  width: 70px;
  text-align: center;
  transition: 0.2s ease;
}

.navbar li a:hover {
  color: white;
  background-color: crimson;
}

.pin-form {
  vertical-align: middle;
}

a.top {
  font-size: 12px;
  font-weight: bold;
  background: crimson;
  color: white;
  width: 40px;
  text-decoration: none;
  text-align: center;
  border-radius: 8px;
  border: 2px solid crimson;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 10px;
  left: 675px;
  transition: background-color 0.25s;
}

a.top:hover {
  background-color: white;
  color: crimson;
  font-size: 13px;
}

a.top:active {
  background-color: silver;
  color: crimson;
}
.right {
  text-align: right;
}

.center {
  text-align: center;
}

.bold {
  font-weight: bold;
}

.fsize90 {
  font-size: 90%;
}
.fsize110 {
  font-size: 110%;
}
.fsize120 {
  font-size: 120%;
}
.fsize125 {
  font-size: 125%;
}

.err {
  color: darkred;
  font-weight: bold;
}

.crimson {
  color: crimson;
}
.yellow {
  color: yellow;
}
.white {
  color: white;
}
.gainsboro-bg {
  background-color: gainsboro;
}
.crimson-bg {
  background-color: crimson;
}
.yellow-bg {
  background-color: yellow;
}
.white-bg {
  background-color: white;
}

.float-left {
  float: left;
}
.float-right {
  float: right;
}
hr.line {
  height: 1px;
  border-width: 0;
  background-color: crimson;
}
.top-line {
  border-top: 1px solid crimson;
  margin: 5px 0px;
}
.btm-line {
  border-bottom: 1px solid crimson;
  margin: 5px 0px;
}

/* form-related */
fieldset {
  padding: 5px;
  min-width: 600px;
  max-width: 900px;
  margin-bottom: 5px;
}
fieldset.entry {
  background-color: aliceblue;
  border: 4px double crimson;
}
fieldset.filter {
  background-color: gainsboro;
  border: 2px solid gray;
}
fieldset.top-clubs {
  background-color: lavenderblush;
  border: 1px solid crimson;
  max-width: 320px;
}
fieldset.entry .nav {
  /* text-align: center; */
  /* padding-bottom: 5px; */
  margin: 1px;
  /* background-color: silver; */
  /* padding: 3px 7px 5px 7px; */
  /* border: 1px solid crimson; */
  /* border-radius: 8px; */
}
.current-filter {
  color: black;
  background-color: gainsboro;
  border: 1px solid gray;
  font-size: 90%;
  font-weight: bold;
  display: block;
  padding: 0px 5px;
}
.entry legend {
  font-size: 125%;
  color: crimson;
}
.filter legend {
  font-size: 125%;
  color: black;
  font-weight: bold;
  text-shadow: 3px 3px 3px white;
}
label.fld {
  font-size: 90%;
  width: 50px;
  float: left;
  font-weight: bold;
}
label.field {
  width: 100px;
  float: left;
  font-weight: bold;
}
label.filter {
  width: 120px;
  float: left;
  font-weight: bold;
  color: black;
}
fieldset p {
  clear: both;
  padding: 2px;
  margin: 0 0 0 0;
}
.width-event {
  width: 60px;
}
.width-notes {
  width: 400px;
}
.width-key {
  width: 60px;
}
.width-value {
  width: 400px;
}
.width-points {
  width: 60px;
}
.width-descr {
  width: 250px;
}

input[type='time'] {
  width: 100px;
}

/* results */
.input-search {
  width: 120px;
}

.input-search:focus {
  background-color: lavenderblush;
}

.results-area {
  background-color: lavenderblush;
  position: absolute;
  z-index: 99;
  width: 650px;
}

.results-list {
  display: inline-block;
  padding: 3px;
  border-bottom: 1px solid silver;
  cursor: pointer;
}

.result.place {
  display: inline-block;
  margin: 1px 0px;
}

.x-delete {
  background-color: lavenderblush;
  color: crimson;
  font-weight: bold;
  font-size: 90%;
  border: 1px solid crimson;
  border-radius: 7px;
  padding: 1px 5px;
  margin: 0px 3px;
  cursor: pointer;
}

.x-delete:hover {
  background-color: crimson;
  color: white;
  border: 1px solid crimson;
}

/* grid 4 across */
.grid-4 {
  display: grid;
  grid-template-columns: 0.8fr 3fr 0.8fr 3.5fr;
}
.grid-4 div {
  margin-bottom: 5px;
}

/* table */
table {
  border: 4px double crimson;
  border-collapse: collapse;
  margin-bottom: 20px;
}
table.plain {
  border: none;
  border-collapse: collapse;
  margin-bottom: 0px;
}
table.plain tr:hover {
  background-color: none;
}
table.plain td {
  border: none;
}
caption {
  color: white;
  background-color: #333;
  font-weight: bold;
}
th {
  border: 1px solid gray;
  padding: 2px 5px;
  color: black;
  background-color: gainsboro;
}
th.no-border {
  border: none;
  padding: 2px 5px;
  color: black;
  background-color: gainsboro;
}
tr:hover {
  background-color: lightpink;
}
td {
  border: 1px solid gray;
  padding: 2px 5px;
}
td.no-border {
  border: none;
  padding: 2px 5px;
  background-color: lavenderblush;
}
td.finish {
  border: 1px solid silver;
  text-align: center;
}
td.pts {
  border: 1px solid silver;
  width: 35px;
  text-align: right;
}

/* help */
.help {
  background-color: lavenderblush;
  color: black;
  font-size: 90%;
  border: 1px solid black;
  width: 600px;
}
.help ul {
  margin: 3px 10px 8px -10px;
}
.help ul ul {
  margin: 3px 10px 3px -10px;
}

/* top teams report */
.top-teams-title {
  font-size: 90%;
  box-sizing: border-box;
  display: inline-block;
  color: white;
  background-color: #333;
  font-weight: bold;
  padding: 2px 6px;
  width: 500px;
  margin-top: 10px;
  text-align: center;
}
.top-teams-heading {
  font-weight: bold;
  font-size: 85%;
  color: crimson;
  border-bottom: 1px solid crimson;
  text-align: center;
}
.top-teams-points {
  box-sizing: border-box;
  display: inline-block;
  width: 60px;
}
.top-teams-club {
  box-sizing: border-box;
  display: inline-block;
  width: 440px;
}

/* events maintenance page */
.event {
  font-size: 90%;
  /* font-weight: bold; */
  color: white;
  background-color: #333;
  padding: 2px 12px;
  width: 650px;
  margin-top: 10px;
}
.result {
  margin-left: 5px;
}
.points {
  display: inline-block;
  text-align: right;
  width: 40px;
}
fieldset .place {
  display: inline-block;
  text-align: center;
  width: 40px;
}
fieldset .place-club {
  font-weight: bold;
}
/* .club {
  display: inline-block;
  width: 50px;
} */
.club-name {
  display: inline-block;
  width: 450px;
}

/* buttons */
.btn {
  /* font-size: 90%; */
  font-weight: bold;
  background-color: lightyellow;
  color: black;
  border: 1px solid crimson;
  border-radius: 7px;
  min-width: 50px;
  margin: 0px 2px;
  transition: 0.2s ease;
}
.btn:hover {
  color: white;
  background-color: crimson;
}

button.fw {
  width: 125px;
  float: left;
  margin-right: 20px;
}

.btn-filter {
  font-size: 60%;
  font-weight: bold;
  vertical-align: middle;
  background-color: lightyellow;
  color: black;
  border: 1px solid crimson;
  border-radius: 7px;
  margin: 0px 2px;
  transition: 0.2s ease;
}
.btn-filter:hover {
  color: white;
  background-color: crimson;
}

.btn-dataset {
  font-size: 95%;
  font-weight: bold;
  background-color: lightyellow;
  color: black;
  border: 1px solid crimson;
  border-radius: 7px;
  margin: 6px;
  width: 60px;
  transition: 0.2s ease;
}
.btn-dataset:hover {
  color: white;
  background-color: crimson;
}

/* reports */
section.reports {
  display: block;
  margin-left: 25px;
  line-height: 2;
}
.report-link {
  display: inline-block;
  width: 125px;
  color: black;
  font-weight: bold;
  padding: 2px 10px;
  transition: 0.2s ease;
  border: none;
}
.report-link:hover {
  color: white;
  background-color: crimson;
}
.report-descr {
  display: inline-block;
  width: 400px;
  padding: 2px 10px;
  border: none;
}
.report-descr:hover {
  color: white;
  background-color: crimson;
}
table.rpt-table {
  min-width: 450px;
}

/* autocomplete */
/*the container must be positioned relative:*/
.autocomplete {
  position: relative;
  display: inline-block;
  width: 800px;
}

.autocomplete input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 16px;
}

.autocomplete input[type='text'] {
  background-color: #f1f1f1;
  width: 600px /*100%*/;
}

.autocomplete input[type='submit'] {
  background-color: DodgerBlue;
  color: #fff;
  cursor: pointer;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
}

/* footer */
footer {
  font-size: 90%;
  color: gray;
  margin-top: 25px;
}
footer hr {
  height: 1px;
  border-width: 0;
  background-color: crimson;
}
