html,
body,
main {
  width: 100vw;
  height: 100vh;
}

main {
  font-family: 'SN Pro', sans-serif !important;
}

div.slide {
  display: flex;
  gap: 0;
  overflow: auto;

  position: fixed;
  height: 100vh;
  width: 100vw;
  padding: 5vh 10vw;

  & > * + * {
    border-left: 1px solid currentColor;
  }

  & > * {
    flex: 1;
    padding: 0 0.5em;
  }

  section {
    font-size: 3.8vmin !important;
    min-width: 0;
  }

  transition: all 600ms;

  color: var(--normal-slide-fg);

  &[data-disable-animations='true'] {
    transition: none;
    opacity: 1;
  }

  :global(> *) {
    opacity: 0;
  }

  &.title-slide {
    background-color: var(--title-slide-bg);
    color: var(--title-slide-fg);

    a {
      color: #ccf;
    }
  }

  &.title-slide {
    color: var(--title-slide-fg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hljs {
    position: relative;
    cursor: pointer;
    border-radius: 0.4em;
    margin: 0.5em 0;
    padding: 0.5em;
    white-space: pre;
    overflow: hidden;
    font-size: 50%;

    &::after {
      position: absolute;
      right: 1em;
      top: 0.5em;
      opacity: 0.6;
      font-size: 60%;
      content: '📋';
    }

    color: #999;
    display: block;
    border-radius: 0.4em;
    background-color: #333;
  }

  ul {
    list-style-type: disc;
  }

  ol {
    list-style-type: decimal;
  }

  img {
    max-width: 80%;
    max-height: 80%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
  }
}

.nav-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 10vh;
}

nav {
  display: flex;
  position: fixed;
  bottom: 1em;
  flex-direction: column;
  justify-content: center;
  left: 5vw;
  right: 5vw;

  > div {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;

    > button {
      opacity: 0;
      outline: none;
      margin: 0.1em;
      padding: 0.1em;
      cursor: pointer;
      border-radius: 0.3em;
      border: 1px solid black;
      background-color: white;
      min-width: 2em;
      text-align: center;
      box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.3);

      background-color: var(--normal-slide-bg);
      color: var(--normal-slide-fg);

      &.title-slide {
        background-color: var(--title-slide-bg);
        color: var(--title-slide-fg);
      }

      &.selected {
        border-width: 2px;
        border-color: red;
      }
    }

    &.files {
      > button {
        margin: 0.5em;
        padding: 0.5em;
      }
    }
  }
}

canvas.laserpointer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}
