@font-face {
  font-family: "Spectrum";
  src: url("./zx-spectrum-font/expanded/zxSpectrumExpanded.woff2");
  size-adjust: 130%;
}

@font-face {
  font-family: "SpectrumInverted";
  src: url("./zx-spectrum-font/expandedInverted/zxSpectrumExpandedInverted.woff2");
  size-adjust: 130%;
}

.hidden {
  display: none;
}

.container {
  display: flex;
  justify-content: center;
}

.flex-around {
  display: flex;
  justify-content: space-around;
}

.reveal ul {
  list-style-type: square;
}

section:not(.stack):not(.first) {
  background: #ddd;
  padding: 15px 10px 15px 10px;
  /*https://pixelcorners.lukeb.co.uk/?radius=10&multiplier=5*/
  clip-path: polygon(
    0px calc(100% - 35px),
    5px calc(100% - 35px),
    5px calc(100% - 25px),
    10px calc(100% - 25px),
    10px calc(100% - 15px),
    15px calc(100% - 15px),
    15px calc(100% - 10px),
    25px calc(100% - 10px),
    25px calc(100% - 5px),
    35px calc(100% - 5px),
    35px 100%,
    calc(100% - 35px) 100%,
    calc(100% - 35px) calc(100% - 5px),
    calc(100% - 25px) calc(100% - 5px),
    calc(100% - 25px) calc(100% - 10px),
    calc(100% - 15px) calc(100% - 10px),
    calc(100% - 15px) calc(100% - 15px),
    calc(100% - 10px) calc(100% - 15px),
    calc(100% - 10px) calc(100% - 25px),
    calc(100% - 5px) calc(100% - 25px),
    calc(100% - 5px) calc(100% - 35px),
    100% calc(100% - 35px),
    100% 35px,
    calc(100% - 5px) 35px,
    calc(100% - 5px) 25px,
    calc(100% - 10px) 25px,
    calc(100% - 10px) 15px,
    calc(100% - 15px) 15px,
    calc(100% - 15px) 10px,
    calc(100% - 25px) 10px,
    calc(100% - 25px) 5px,
    calc(100% - 35px) 5px,
    calc(100% - 35px) 0px,
    35px 0px,
    35px 5px,
    25px 5px,
    25px 10px,
    15px 10px,
    15px 15px,
    10px 15px,
    10px 25px,
    5px 25px,
    5px 35px,
    0px 35px
  );
  /*
  box-shadow: 10px 10px #888;
  border-radius: 10px;
  */
}

.reveal pre code {
  padding: 10px;
  max-height: 530px;
}

.float-left {
  float: left;
}
.float-right {
  float: right;
}

.end-credit-parent {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.end-credit {
  font-size: 70%;
}

.end-credit p {
  margin: 0 !important;
}

.end-credit img {
  height: 170px;
}

.attribution {
  font-size: 60%;
  font-style: italic;
  background: #eee;
}

table.borders td,
table.borders th {
  border: 2px solid black !important;
}

.no-border {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

div.attribution {
  font-style: italic;
  font-size: 40%;
}

.note {
  font-style: italic;
  font-size: 80%;
}

div.footer {
  font-family: initial;
  z-index: 1;
  font-size: 16px;
  font-style: italic;
  position: absolute;
  bottom: 1em;
  text-align: center;
  background: #ddd;
  box-shadow: 5px 5px #888;
  border-radius: 5px;
  padding: 10px !important;
}

.reveal section:not(.first) h1,
.reveal section:not(.first) h2,
.reveal section:not(.first) h3,
.reveal section:not(.first) h4,
.reveal section:not(.first) h5,
.reveal section:not(.first) h5 {
  font-family: "Spectrum", Impact, sans-serif;
}

.reveal {
  font-family: "Spectrum", Impact, sans-serif;
}

.reveal code {
  font-family: "Spectrum", Impact, sans-serif;
  background-color: #444;
  color: #ccc;
}

.reveal pre code {
  font-family: inherit;
}

.alert {
  font-weight: bold;
  background-color: #444;
  color: #ccc;
  animation: flash 1.1s step-start infinite;
}

@keyframes flash {
  50% {
    background-color: #ccc;
    color: #444;
  }
}
