@media print {
  .pagebreak {
    break-before: always;
    margin: 20px;
  }

  @page {
    size: 793px 1122px;
    margin-top: 0cm;
    margin-bottom: 1cm;
    margin-left: 0cm;
    margin-right: 0cm;
    @bottom-center {
      content: 'Pagina ' counter(page) ' van ' counter(pages);
    }
  }

  .header {
    position: fixed;
  }

  .footer {
    position: fixed;
    bottom: 0px;
  }

  .header-space {
    height: 110px;
  }

  body {
    margin: 0;
  }

  .language-logo {
    position: absolute;
    margin-top: 5px;
    height: 50px;
    position-area: top;
    z-index: 1;
  }

  button.copy-button {
    display: none;
  }
}

@media screen {
  .header {
    position: relative;
  }

  .footer {
    position: relative;
  }

  .language-logo {
    position: absolute;
    margin-top: 5px;
    max-width: 30%;
    max-height: 100px;
    aspect-ratio: initial;
    position-area: top;
    z-index: 1;
  }

  body,
  table {
    /* font-size: 15pt;
    transform: scale(2); */
  }

  html {
    --width-a: 100vw;
    zoom: calc(var(--width-a) / 793px);
  }

  button.copy-button {
    display: flex;
  }
}

body,
table {
  font-family: 'Open Sans', sans-serif;
}

.float-left {
  float: left;
  margin: 15px;
}

.float-right {
  float: right;
  margin: 15px;
}

.assignment-content {
  padding-left: 30px;
  padding-right: 30px;
}

.clear-float {
  clear: both;
}

.separator-thin {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
  clear: both;
}

.assignment-title {
  font-size: 32px;
  font-weight: bold;
}

.header-info-block {
  flex: 1 1 auto;
  flex-basis: 0;
  border: 1px solid black;
  padding: 10px;
}

.header-info-title {
  font-weight: bold;
  text-decoration: underline;
  margin-bottom: 10px;
}

.read {
  break-inside: avoid;
  border: 2px solid blue;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.read::before {
  background-image: url('./readme-brands-solid-full.svg');
  float: left;
}

.program {
  break-inside: avoid;
  border: 2px solid green;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.program::before {
  background-image: url('./code-solid-full.svg');
  float: left;
}

.build {
  break-inside: avoid;
  border: 2px solid black;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.build::before {
  background-image: url('./hammer-solid-full.svg');
  float: left;
  content: 'uitdaging';
}

.challenge {
  break-inside: avoid;
  border: 2px solid red;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.challenge::before {
  background-image: url('./lightbulb-regular-full.svg');
  float: left;
}

.codeblock {
  border: 1px solid gray;
  box-shadow: 3px 3px;
  page-break-inside: avoid;
}

.read::before,
.program::before,
.build::before,
.program::before,
.challenge::before {
  background-size: 40px;
  background-repeat: no-repeat;
  background-position: left-top;
  content: '';
  display: inline-block;
  margin-top: 10px;
  margin-right: 10px;
  width: 40px;
  height: 40px;
}

hr {
  clear: both;
}

hr.separator-fat {
  clear: both;
  border-width: 0px;
  border-style: solid;
}

hr.separator-hidden {
  clear: both;
  display: none;
}

.license {
  margin-top: 10px;
  font-size: 8px;
}

.acknowledgements {
  margin-top: 10px;
  font-size: 8px;
}

.tabs-tab-content {
  display: none;
}
.tabs-tab-content.active {
  display: block;
}

.tabs-tabs-header {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
}

.tabs-tab-button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

.tabs-tab-button.active {
  background-color: #ccc;
}

.license {
  break-inside: avoid;
}

.bordered {
  border: 1px solid black;
  padding: 1px;
  background-color: #f8f8ff;
  font-family: 'Courier New', monospace;
  display: inline-block;
  border-radius: 3px;
}

.markdown-example {
  border: 1px solid black;
  padding: 10px;
  background-color: #f8f8ff;
  font-family: 'Courier New', monospace;
  display: inline-block;
  border-radius: 3px;
}

/* 
 * Code blocks
 */

:not(pre) > code:not(.scratch) {
  border: 1px solid black;
  padding: 1px;
  background-color: #f8f8ff;
  font-family: 'Courier New', monospace;
  display: inline-block;
  border-radius: 3px;
}

code[class*='language-'],
pre[class*='language-'] {
  font-size: 10px;
}

pre[class*='language-'] {
  margin: 0px;
}

.highlighted {
  background-color: #ffffb3;
  display: inline-block;
  width: 100%;
  padding: 0px;
  margin: 0px;
  font-weight: bold;
}

.highlighted.error {
  background-color: #ffcccc;
  font-weight: bold;
}

.highlighted.warning {
  background-color: #ffebcc;
  font-weight: bold;
}

.highlighted.info {
  background-color: #d9ffcc;
  font-weight: bold;
}

pre span.line {
  display: inline-block;
}

pre span.line:before {
  display: inline-block;
  content: attr(data-line) '  ';
  border-right: 1px solid #ddd;
  color: #888;
  margin: 0;
  width: 35px;
  padding-left: 5px;
  margin-right: 10px;
  text-align: right;
}

pre span.diff.remove {
  text-decoration: line-through;
  background-color: #ffcccc;
  font-weight: bold;
}

pre span.diff.add {
  font-weight: bold;
  background-color: #d9ffcc;
  font-weight: bold;
}

pre span.diff.remove:before {
  display: inline-block;
  content: attr(data-line) ' -';
  border-right: 1px solid #ddd;
  width: 35px;
  color: #888;
  margin: 0;
  font-weight: bold;
  padding-left: 5px;
  margin-right: 10px;
  text-align: right;
}

pre span.diff.add:before {
  display: inline-block;
  content: attr(data-line) ' +';
  border-right: 1px solid #ddd;
  width: 35px;
  color: #888;
  margin: 0;
  font-weight: bold;
  padding-left: 5px;
  margin-right: 10px;
  text-align: right;
}

pre.shiki .indent {
  display: inline-block;
  position: relative;
  left: var(--indent-offset);
}

pre.shiki .indent:empty {
  height: 1lh;
  vertical-align: bottom;
}

pre.shiki .indent::before {
  content: '';
  position: absolute;
  opacity: 0.15;
  width: 1px;
  height: 100%;
  background-color: currentColor;
}

/* 
 * Grid classes
 */

.grid-border {
  background-color: black;
  border: 1px solid black;
}

.grid-border > .grid-header {
  background-color: lightgrey;
  font-weight: bold;
  padding-left: 10px;
}

.grid-border div:not(.grid-header) {
  background-color: white;
  padding-left: 10px;
}

/* 
 * Copy button
 */
pre:has(code) {
  position: relative;
}

pre button.copy-button {
  position: absolute;
  right: 10px;
  top: 0px;
  height: 20px;
  width: 20px;
  padding: 2px;
  border: 1px solid lightGray;
  background-color: transparent;
  border-radius: 2px;

  & span {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  & .ready {
    background-image: url('./clipboard.svg');
  }

  & .success {
    display: none;
    background-image: url('./clipboard-checked.svg');
  }

  &.copied {
    & .success {
      display: block;
    }

    & .ready {
      display: none;
    }
  }
}

.selected-sprite {
  right: -2px;
  top: -15px;
  position: relative;
  float: right;
  border-radius: 3px;
  padding: 3px;
  box-shadow: 0px 0px 0px 4px hsla(260, 60%, 60%, 0.35);
  border: 2px solid hsla(260, 60%, 60%, 1);
  background: hsla(0, 100%, 100%, 1);
  width: 30px;
}

.sb3-comment-label {
  font-size: 15px;
}

.sb3-comment-label {
  fill: #000 !important;
  /* font-size: 15px; */
}

.sb3-comment-line {
  fill: #000 !important;
}
