@font-face {
  font-family: 'OrkneyRegular';
  src: url('/fonts/orkney/Orkney%20Regular.woff2') format('woff2');
  font-display: swap;
}

*, html, body {
  margin: 0;
}

body {
  font-family: 'OrkneyRegular';
}

h1 {
  font-family: 'OrkneyRegular';
  padding: 0;
}

.card h1 {
 padding-bottom: 0.5em;
}

h2, h3 {
  font-family: 'OrkneyRegular';
  padding: 0.7em 0;
}

p {
  margin: 0.7em 0;
  font-family: 'sans-serif', sans-serif;
}

p:first-child {
  margin: 0 0 0.7em 0;
}

a {
  font-family: 'OrkneyRegular';
  font-weight: bold;
  color: #6c0;
  text-decoration: none;
}

a:not([href])::before {
  display: block;
  content:" ";
  margin-top: -50px;
  height: 50px;
  visibility: hidden;
}

.header a {
  color: white;
}

.sidebar li a {
  font-weight: normal;
}

a:hover {
  text-decoration: underline;
}

.wh {
  color: white;
}
.bk {
  color: black;
}
.grey {
 color: #555;
}
.gr {
  color: #af5;
}
.lgr {
  color: #deb;
}
.gold {
  color: #dc4;
}
.silver {
  color: #aaa;
}
.bronze {
  color: #b85;
}
.shamrock {
  color: #0a6;
}
.red {
  color: red;
}

.larger {
  font-size: larger;
}

.smaller {
  font-size: smaller;
}

.nw {
  white-space: nowrap;
}

.cb {
  clear: both;
}

.sans {
  font-family: 'sans-serif', sans-serif;
}

.header {
  width: 1200px;
  height: 50px;
  
  color: white;
  background: #333;
  font-size: 1.25em;

  margin: 0 auto;
  padding: 0;
  left: 50%;
  top: 0;
  position: fixed;
  margin-left: -600px;

  z-index: 999;
}

.header img.logo {
  width: 50px;
  height: 50px;
  margin: 0;
  
  float: left;
}

.header ul {
  padding: 0;
}

.header ul li {
  list-style-type: none;
  display: inline-block;
  line-height: 45px; /* 1.5em */
  border-top: 5px transparent;
  margin: 0 0.5em;
  color: white;
}

.header ul li.active {
  border-top: 5px solid #af5;
  color: #deb;
  height: 45px;
}

.header ul li.title {
  color: #af5;
}

.header ul.right {
  height: 45px;
  float: right;
  border-top: 5px solid transparent;
  margin: 0 10px;
}

.header ul.right li {
  font-size: smaller;
  color: white;
}

button, .header ul.right li.button a {
  color: white;
  background: #5b0;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 0.25em 0.5em;
  margin: 0;
}

button:hover, .header ul.right li.button a:hover {
  text-decoration: none;
  filter: brightness(120%);
  cursor: pointer;
}

.header ul.right li.button.alt a {
  color: white;
  background: transparent;
}


.header ul.right li.disabled {
  color: #666;
}

.header ul.right li.highlight {
  color: #af5;
}

.center {
  margin: 0 auto;
}

#main {
  width: 1200px;
  border: 0;
  margin-top: 60px;
}

.sidebar {
  padding: 10px 0;
  margin: 0;
  width: 175px;
  background: transparent;
  border: 1px solid #ccc; 
  float: left;
  display: block;
  position: fixed;
  top: 60px;
  bottom: 10px;
  overflow: auto;
}

.sidebar > span {
  display: block;
  width: 155px;
  padding: 10px;
  margin: 0;
}

.sidebar span strong
{
  font-weight: bold;
}

.sidebar ul, ul.sub {
  margin: 0;
  padding: 0;
}

.sidebar ul li {
  list-style-type: none;
  background: #f0f0f0;
  width: 175px;
  border-top: 1px solid #ccc;
  padding: 0;
  margin: 0;
}

.sidebar ul li:last-child {
  border-bottom: 1px solid #ccc;
}

.sidebar ul.sub li {
  background: white;
  font-size: smaller;
}

.sidebar ul.sub li:last-child {
  border-bottom: 0;
}

.sidebar ul li a {
  display: block;
  color: #555;
  text-decoration: none;
  border-left: 5px solid transparent;
  padding: 10px 0 10px 5px;
}

.sidebar ul li a[href] {
  color: black;
}

.sidebar ul.sub li a {
  font-family: 'sans-serif', sans-serif;
  padding: 5px 0 5px 5px;
}

.sidebar ul li.active a {
  color: black;
  font-weight: bold;
  border-left: 5px solid #af5;
}

.sidebar ul.sub li.active a {
  border-left: 5px solid #deb;
}

.sidebar li a[href]:focus, .sidebar li a[href]:hover
{
  background: #deb;
  border-left: 5px solid #af5;
}

#main.visual {
    position: relative; 
    xheight: 100vh;
    xwidth: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main.visual::before {    
  content: "";
  background: url(/images/running/medals-1200.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center-x;

  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;

  opacity: 0.6;
  filter: grayscale(60%);
}

#main .content {
  padding: 1em;
  margin: 10px 0 0 195px;
  border: 1px solid #ccc;
  font-family: 'sans-serif', sans-serif;
  font-size: 1em;
}

#main .content.noside {
  margin: 0;
  border: 0px;
}

#main.visual .content {
  position: relative;
  xborder: 5px solid green;
  width: 100%;
  padding: 0;
}

#main.visual .content .card {
  border: 1px solid #999;
  margin-top: 1.5em;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.4), 0 12px 40px 0 rgba(0, 0, 0, 0.38);
}

#main.visual .content .card input[type=text], #main.visual .content .card #input[type=password] {
  margin: 0.5rem 0;
}

#main.visual .content .card input[type=checkbox] {
  vertical-align: bottom;
  position: relative;
  display: inline-block;

  padding: 0;
  margin: 0.5rem auto;
}

#main.visual .content .card label {
  display: inline-block;
  padding-left: 0rem;
  text-indent: -0rem;

  width: 85%;

  padding: 0;
  margin: 0.5rem auto;
}

#main.visual .content .card button {
  margin: 1em 0;
}

#main.visual .notices, #main.visual .errors, #main.visual #footer {
  background: white;
  margin: 0;
  padding: 0;
  opacity: 0.9;
}

#main.visual .notices {
  background: #E6F6D1;
}

#main.visual .errors {
  background: #fdc;
}

#main.visual .notices p, #main.visual .errors p {
  padding: 0.25em 0;
}

#main.visual #footer p:last-child {
  margin-bottom: 0;
}

#main .content.center {
  text-align: center;
}

#footer {
  padding: 0.7em;
  margin: 0 0 0 195px;
}

#main .content.noside #footer {
  margin: 0;
}

#footer ul li {
  padding: 5px;
  list-style: none;
}

#footer #corporate {
  column-count: 3;
}

#footer #corporate ul {
  break-inside: avoid;
  margin: 0;
  padding: 0;
}

#footer #corporate ul li p {
  font-size: smaller;
}

.content ul
{
  margin: 0.7em 0;
}

div.grid-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

div.grid img {
 width: 100%;
 height: auto;
 margin-left: 0.5rem;
}

div.centerbox {
  text-align: center;
  margin: 0 auto;
}

div.wrapper-x {
  overflow-x: auto;
}

img.rounded {
  border-radius: 0.25rem;
}

a.monospace {
  font-family: 'monospace', monospace;
}

blockquote.debug {
  font-family: 'monospace';
  font-size: smaller;
  padding: 0.5em;
  margin: 0.5em;
  background: #eee;
}

blockquote.code {
  font-family: 'monospace';
  padding: 0.5em;
  margin: 0.5em;
  background: #eee;
}

table {
  min-width: 80%;
  border: 1px solid #ddd;
  margin: 0.7rem auto;
  text-align: center;
  font-size: small;
}

th {
  padding: 0.125em;
  background: #af3;
  color: black;
  font-weight: bold;
}

th.alt {
 background: #ccc;
}

tr:nth-child(even) th:empty {
  background: white;
}

td {
  font-family: 'sans-serif', sans-serif;
  background: white;
  margin: 0.5em;
  padding: 0.25em;
}

tr:nth-child(odd) td
{
  background: #E6F6D1;
}

td hr, th hr {
  border: 0;
  height: 1px;
  margin: 3px 0;
  background-color: #ccc;
}

span.numeric, td.numeric {
  font-family: 'monospace';
  font-size: small;
  white-space: nowrap;
}

td.numeric strong {
  font-family: 'monospace';
  font-weight: bold;
}

td.strong {
  font-weight: bold;
}
td.error {
  font-weight: bold;
  color: #f00;
}
td.warning {
  font-weight: bold;
  color: #fa0;
}

tr.disabled, tr.disabled td {
  text-decoration: line-through;
  color: #999;
}

a.grayscale, tr.grayscale, td.grayscale {
  color: #999;
}

.shoe-brand {
}

.shoe-edition {
  font-size: smaller;
}

i.em {
  margin: 2px 0;
}

table td>i.fa-solid {
  font-size: 1.25rem;
}

table td>span i.fa-solid {
  font-size: 1rem;
}

ul.inline li {
  display: inline-block;
}

ul.ltn {
  list-style: none;
}

.flag.flag-24 {
  background-image: url('/images/sprite-flags-24x24.png'); 
  width: 24px;
  height: 24px;
  border-radius: 11px;
  opacity: 0.95;
}

i.grayscale {
 filter: grayscale(100%);
 opacity: 0.35;
}

i.semi-grayscale {
 filter: grayscale(30%);
 opacity: 0.8;
}

/*
background-image: linear-gradient(to left, #dddddd, #aad4f6, #00d5ec, #00cf9e, #55bb00);
background-image: linear-gradient(to left, #dddddd, #dac2e0, #ed9fcb, #ff779b, #ff5555);
*/
i.pos-1 { color: #5b0; }
i.pos-2 { color: #00cf9e; }
i.pos-3 { color: #00d5ec; }
i.pos-4 { color: #aad4f6; }
i.pos-5 { color: #dddddd; }
i.pos-6 { color: #dac2e0; }
i.pos-7 { color: #ed9fcb; }
i.pos-8 { color: #ff779b; }
i.pos-9 { color: #f55; }

input[type=checkbox] {
  -moz-appearance:none;
  -webkit-appearance:none;
  -o-appearance:none;
  outline: none;
  content: none;	
}

input[type=checkbox]::before {
  font-weight: bold;
  content: "\2713";
  font-size: 1.1rem;
  line-height: 1.1rem;
  color: transparent !important;
  background: #eee;
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid #666;
  padding: 2px 1px 1px 0px;
  margin: 0 0 0 10px;
  margin: 0.5rem 0;
  text-align: center;
}

input[type=checkbox]:checked::before {
  color: black !important;
  background: #af5;
}

select {
  /* A reset of styles, including removing the default dropdown arrow */
  appearance: none;
  /* Additional resets for further consistency */
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
}

label {
  font-family: 'OrkneyRegular';
}

input[type=text], input[type=password], select {
  border: 1px solid #ccc;
  background: #efc;
  padding: 5px;
  margin: 0.5rem 0 1rem 0;
  width: 90%;
}

input[type=text].error, input[type=password].error, input[type=checkbox].error::before {
  background: #fdc;
  border: 1px solid red;
}

.card {
  border: 0;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 30%;
  padding: 0.5em;
  margin: 0.5em auto;
  background: white;
}


.card.left {
  float: left;
  padding: 0.25em;
  margin: 0.5em auto;
}

.card:nth-child(2n+1) {
  clear: both;
}

.centerbox-detail .card {
  width: 47%;
}

.centerbox-detail .card:nth-child(3n+1) {
  clear: none;
}

.centerbox-detail .card:nth-child(2n+1) {
  clear: both;
}

.ct-line {
  stroke-width: 2px;
}

.ct-point {
  stroke-width: 5px;
}

.ct-area {
  fill-opacity: 0.5;
}

.ct-legend li {
  position: relative;
  padding-left: 1.5rem;
  margin-left: 1rem;
  display: inline-block;
  border: 3px solid transparent;
  font-size: small;
}

.ct-legend li::before {
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: 0;
  content: '';
  border: 3px solid transparent;
  border-radius: 2px;
}

.ct-legend li.inactive::before {
  background: transparent;
}

.ct-legend .ct-legend-inside {
  position: absolute;
  top: 0;
  right: 0;
}

.ct-legend li::before {
  background-color: #ccc;
  border-color: #ccc;
  border-width: 1px;
}

#ct-chart-pr .ct-series.official .ct-line {
  stroke: #6c0;
}
#ct-chart-pr .ct-series.official .ct-point {
  stroke-width: 10px;
  stroke: #6c0;
}
#ct-chart-pr .ct-series.unofficial .ct-line {
  stroke: #af5;
}
#ct-chart-pr .ct-series.unofficial .ct-point {
  stroke-width: 10px;
  stroke: #af5;
}
#ct-chart-pr .ct-series.all .ct-point {
  stroke-width: 10px;
  stroke: #999;
}
#ct-chart-pr .ct-series.training .ct-point {
  stroke: #ccc;
}
#ct-chart-pr .ct-label {
  height: auto;
}

#ct-chart-legend-pr .ct-legend li.ct-series-0::before {
  background-color: #666;
}
#ct-chart-legend-pr .ct-legend li.ct-series-1::before {
  background-color: #999;
}
#ct-chart-legend-pr .ct-legend li.ct-series-2::before {
  background-color: #af5;
}
#ct-chart-legend-pr .ct-legend li.ct-series-3::before {
  background-color: #6c0;
}

#ct-chart-pace .ct-point {
  stroke-width: 5px;
}

#ct-chart-pace .ct-pace .ct-area {
  fill: #af5;
}

#ct-chart-pace .ct-pace-avg .ct-line {
  stroke: #6c0;
}

#ct-chart-pace .ct-top-1-pace-avg .ct-line {
  stroke: #dc4;
}

#ct-chart-pace .ct-top-2-pace-avg .ct-line {
  stroke: #aaa;
}

#ct-chart-pace .ct-top-3-pace-avg .ct-line {
  stroke: #b85;
}

#ct-chart-legend-pace .ct-legend li:nth-child(1)::before {
  background-color: #af5;
}
#ct-chart-legend-pace .ct-legend li:nth-child(2)::before {
  background-color: #6c0;
}
#ct-chart-legend-pace .ct-legend li:nth-child(3)::before {
  background-color: #dc4;
}
#ct-chart-legend-pace .ct-legend li:nth-child(4)::before {
  background-color: #aaa;
}
#ct-chart-legend-pace .ct-legend li:nth-child(5)::before {
  background-color: #b85;
}

#ct-chart-mileage .ct-series.l30 .ct-line, #ct-chart-mileage .ct-series.l30future .ct-line {
  stroke: #af5;
}

#ct-chart-mileage .ct-series.l7 .ct-line, #ct-chart-mileage .ct-series.l7future .ct-line {
  stroke: #6c0;
}

#ct-chart-mileage .ct-series.l30 .ct-area, #ct-chart-mileage .ct-series.l30future .ct-area {
  fill: #af5;
}

#ct-chart-mileage .ct-series.l7 .ct-area, #ct-chart-mileage .ct-series.l7future .ct-area {
  fill: #6c0;
}

#ct-chart-mileage .ct-series.l30future .ct-line {
  stroke: #999;
}

#ct-chart-mileage .ct-series.l7future .ct-line {
  stroke: #666;
}

#ct-chart-mileage .ct-series.l30future .ct-area {
  fill: #999;
}

#ct-chart-mileage .ct-series.l7future .ct-area {
  fill: #666;
}

#ct-chart-legend-mileage .ct-legend li.ct-series-0::before {
  background-color: #af5;
}
#ct-chart-legend-mileage .ct-legend li.ct-series-1::before {
  background-color: #6c0;
}
#ct-chart-legend-mileage .ct-legend li.ct-series-2::before {
  background-color: #999;
}
#ct-chart-legend-mileage .ct-legend li.ct-series-3::before {
  background-color: #666;
}

.map {
  width: 100%;
  height: 400px;
}

.map a.maptiler {
  position: relative;
  top: 380px;
  left: 10px;
  z-index:999;
}

.map a.maptiler img {
  width: 67px;
  height: 20px;
  position: absolute;
}

/*
table#student td:first-child,
table#student td:nth-child(2) ~ td {
  display: none;
}
*/

@media screen and (max-width: 1200px) {
  .header {
    width: 100%;
    left: auto;
    margin: 0;
    font-size: smaller;
  }

  .header ul li.home {
    display: none;
  }
   
  .header ul.right {
    font-size: larger;
   }

  #main {
    width: 100%;

    left: auto;
    position: absolute;
  }

  #main .content {
    margin: 0.5em 0;
    border: 0;
    padding: 0.5em;
  }

  #main.visual .content .card {
    width: 90%;
  }

  #main.visual .content .card {
    width: 90%;
  }

  #main .content img {
    width: 100%;
    height: auto;
  }

  .sidebar {
    float: none;
    width: 100%;
    position: relative;
    top: auto;
    bottom: auto;
    padding: 0;
    border: 0;
  }

  .sidebar span, .sidebar ul, .sidebar ul li {
    width: auto;
  }

  .sidebar ul.sub li {
    display: inline-block;
  }
  .sidebar ul.sub li.active {
    padding-left: 5px;
  }

  #footer {
    margin: 0;
  }

  table {
    border: 0;
  }
  
  table td.numeric {
    font-size: smaller;
  }

  table tr th.collapsible, table tr td.collapsible {
    display: none;
  }

  #main.visual .content .card input[type=checkbox] {
    vertical-align: middle;
  }
}

@media print {
  html, body, #main {
    margin: 0.5rem;
    padding: 0;
  }

  .header, #footer, .noprint, .sidebar {
    display: none;
    visibility: hidden;
  }

  #main {
    width: auto;
  }

  #main .content, h1, h2, h3 {
    margin: 0.25rem 0;
    border: 0;
    padding: 0;
    break-after: avoid-page;
  }
  
  p, ul {
   break-inside: avoid-page;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}
