:root {
  --red: #c5004a;
  --darkred: #7f0036;
  --lightgray: #e0e0e0;
  --gray: #c0c0c0;
  --darkgray: #333;
  --navy: #17050f;
  --blue: #082840;
  --white: #fff;
  --widget-bg: lightblue;
  --font-size: 23px;
}
* {
  box-sizing: border-box;
}
html,
body {
  padding: 0;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: var(--font-size);
  color: var(--darkgray);
  background-color: var(--white);
}
p:last-child {
  margin-bottom: 0;
}
p,
.tmpl-activity li,
img {
  max-width: 37.5em; /* 600px /16 */
}
.tmpl-activity,
.tmpl-tune,
.tmpl-about {
  background-color: var(--lightgray);
}

.video {
  align-items: center;
  min-width: 17vw;
}
video {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
  border: 1px solid black;
  border-radius: 0.25em;
  max-width: 15vw;
  transform: rotateY(180deg);
  display: block;
}
audio {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
  border: 1px solid black;
  border-radius: 0.25em;
  display: block;
}
.recorderbuttons {
  display: flex;
  justify-content: center;
}
.hidden {
  display: none;
}
/* activity list */
/* metronome */
.task-list input[type='checkbox'],
.metronome input[type='checkbox'],
[data-widget='videoSeekList'] input[type='checkbox'] {
  transform: scale(1.8);
  margin-right: 1rem;
}
.metronome input[type='checkbox'] {
  margin-right: 0.3rem;
  margin-left: 0.3rem;
}
.metronome,
.counter {
  width: 8rem;
  height: 1.5rem;
  border: solid 1px black;
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 400;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
.counter {
  width: 6rem;
}
.metronome span,
.counter span {
  color: var(--darkred);
  font-weight: bold;
}
.metronome button,
.counter button,
.timer button,
.video button {
  background-color: var(--widget-bg);
  border-radius: 0.25rem;
}
.seek-video {
  display: inline-block;
}
.random-note,
.random-number,
.seek-video,
.metronome,
.counter,
.timer,
.timer button,
.video * {
  border-radius: 0.25rem;
}
.random-note,
.random-number,
.seek-video,
.metronome label,
.video button {
  font-size: calc(var(--font-size) - 3px);
}
/* timer */
.timer,
.video {
  font-size: 5vw;
  display: flex;
  flex-direction: column;
  border: solid 0.05em black;
  position: fixed;
  right: 0.5em;
  top: 0.5em;
  padding: 0.13em;
  padding-bottom: 0.1rem;
  border-radius: 0.25em;
  font-family: Arial, helvetica, sans-serif;
  z-index: 9999;
  line-height: 0.8;
}
.video {
  top: 3em;
}
.has-timer div#mpt-videotime {
  top: 3.1em;
}
.timer div {
  display: flex;
  justify-content: space-around;
  width: 100%;
}
.timer :first-child {
  margin: 0;
}
.timer button,
.video button {
  font-size: 0.4em;
  margin-left: 0.3em;
}
.timer .time {
  font-size: 0.36em;
  color: var(--darkred);
  margin-top: 0.6em;
  font-weight: lighter;
}
.timer .total {
  font-size: 0.4em;
  color: var(--darkgray);
  margin-top: 0.6em;
}
.timer .elapsed {
  margin-top: 0;
  margin-top: 0.2em;
  margin-left: auto;
  margin-right: auto;
}
.timer .expired {
  color: var(--darkred);
}
.random-note span,
.random-number span {
  font-weight: bold;
  color: var(--darkred);
}
.widget {
  background-color: var(--widget-bg);
}
.tmpl-activity ul {
  padding-inline-start: 0.6rem;
}
p,
.tmpl-activity li,
.tmpl-tune li {
  line-height: 1.85;
}
a[href] {
  color: var(--blue);
}
a[href]:visited {
  color: var(--navy);
}
main {
  padding: 1rem;
}
main :first-child {
  margin-top: 0;
}
header {
  border-bottom: 1px dashed var(--lightgray);
}
header:after {
  content: '';
  display: table;
  clear: both;
}
table {
  margin: 1em 0;
}
table td,
table th {
  padding-right: 1em;
}

pre,
code {
  font-family: Consolas, Menlo, Monaco, 'Andale Mono WT', 'Andale Mono',
    'Lucida Console', 'Lucida Sans Typewriter', 'DejaVu Sans Mono',
    'Bitstream Vera Sans Mono', 'Liberation Mono', 'Nimbus Mono L',
    'Courier New', Courier, monospace;
  line-height: 1.5;
}
pre {
  font-size: 14px;
  line-height: 1.375;
  direction: ltr;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  -moz-tab-size: 2;
  -o-tab-size: 2;
  tab-size: 2;
  -webkit-hyphens: none;
  -moz-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  padding: 1em;
  margin: 0.5em 0;
  background-color: #f6f6f6;
}
.highlight-line {
  display: block;
  padding: 0.125em 1em;
  text-decoration: none; /* override del, ins, mark defaults */
  color: inherit; /* override del, ins, mark defaults */
}

/* allow highlighting empty lines */
.highlight-line:empty:before {
  content: ' ';
}
/* avoid double line breaks when using display: block; */
.highlight-line + br {
  display: none;
}

.highlight-line-isdir {
  color: #b0b0b0;
  background-color: #222;
}
.highlight-line-active {
  background-color: #444;
  background-color: hsla(0, 0%, 27%, 0.8);
}
.highlight-line-add {
  background-color: #45844b;
}
.highlight-line-remove {
  background-color: #902f2f;
}

/* Logo */
.logo {
  padding: 0.3rem 0.6rem;
  float: left;
}
.logo img {
  width: 2.5rem;
  height: 2.5rem;
}

/* Header */
.home {
  padding: 0 1rem;

  font-size: 1em; /* 16px /16 */
}

/* Nav */
.nav {
  padding: 0;
  list-style: none;
  float: left;
  margin-left: 1em;
}
.nav-item {
  display: inline-block;
  margin-right: 1em;
}
.nav-item a[href]:not(:hover) {
  text-decoration: none;
}
.nav-item-active {
  font-weight: 700;
  text-decoration: underline;
}

/* item list */
.itemlist {
  padding: 0;
  padding-left: 1em;
}
.itemlist-item {
  counter-increment: start-from -1;
}

.itemlist-date {
  word-spacing: -0.5px;
}
.itemlist-link {
  display: inline-block;
  padding: 0.25em 0.1875em; /* 4px 3px /16 */
}
.itemlist-item-active .itemlist-link {
  font-weight: bold;
}
.itemlist-link {
  font-size: 1.1875em; /* 19px /16 */
  font-weight: 400;
}

/* Tags */
.tag {
  display: inline-block;
  vertical-align: text-top;
  text-transform: uppercase;
  font-size: 0.625em; /* 10px /16 */
  padding: 2px 4px;
  margin-left: 0.8em; /* 8px /10 */
  background-color: var(--red);
  color: var(--white);
  border-radius: 0.25em; /* 3px /12 */
  text-decoration: none;
}
a[href].tag,
a[href].tag:visited {
  color: #fff;
}

/* Warning */
.warning {
  background-color: #ffc;
  padding: 1em 0.625em; /* 16px 10px /16 */
}
.warning ol:only-child {
  margin: 0;
}

/* Direct Links / Markdown Headers */
.direct-link {
  font-family: sans-serif;
  text-decoration: none;
  font-style: normal;
  margin-left: 0.1em;
}
a[href].direct-link,
a[href].direct-link:visited {
  color: transparent;
}
a[href].direct-link:focus,
a[href].direct-link:focus:visited,
:hover > a[href].direct-link,
:hover > a[href].direct-link:visited {
  color: #aaa;
}

.task-list li {
  list-style: none;
}
.task-list ul {
  margin-top: 2px;
}
/* responsive videos */

:root {
  --video-aspect: calc(56%);
}
.tmpl-tune .video-embed-wrapper {
  width: 50%;
}
.tmpl-activity .video-embed-wrapper {
  width: 30%;
}
.video-embed {
  width: 100%;
  position: relative;
  height: 0;
  padding-top: var(--video-aspect);
}
.video-embed iframe,
.video-embed object,
.video-embed embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.video-title {
  font-weight: bold;
}
