html {
  position: fixed;
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}

body {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  color: #fff;
  background: #222 no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

a,
a:hover,
a:visited,
a:active,
td span {
  padding: .1vw .4vw;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  border-radius: 36px;
  outline: 0;
  background: rgba(0, 0, 0, .2);
}

#canvas_display,
#video_display {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  overflow: hidden;
}

#slides_display {
  line-height: 1;
  display: flex;
  /*
    visibility: hidden;
*/
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-around;
  width: 100vw;
  height: 100vh;
  margin: 0;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Konqueror */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  -webkit-touch-callout: none;
  /* Safari*/
  -khtml-user-select: none;
}

#slides_display p i {
  font-size: 20vmin;
  /*
    font-style: normal;
    display: inline-block;
    width: 6vw;
    height: 6vw;
    margin: -.6vw;
    padding: 1.8vw .9vw 0 .9vw;
    text-align: center;
    border-radius: 5vw;
    background: rgba(0,0,0,.2);
*/
  color: #b8583c;
}

#slides_display span {
  margin-right: 1.6vw;
  margin-left: 1.6vw;
  cursor: pointer;
  /*
    white-space: nowrap;
*/
}

#slides_display span i {
  font-style: normal;
  display: inline-block;
  width: 6vw;
  height: 6vw;
  margin: -.6vw;
  padding: 1.8vw .9vw 0 .9vw;
  text-align: center;
  border-radius: 5vw;
  background: rgba(0, 0, 0, .2);
}

#slides_display span i:nth-child(2) {
  margin-right: 1.6vw;
}

/*
#slides_display span i:nth-child(2)::after
{
    margin-left: 1vw;

    content: ' : ';
}
*/
#slides_display table {
  font-family: Droid Sans Mono;
  font-size: 1.2vw;
  display: flex;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  height: 66vh;
  padding: 0 25%;
  border-collapse: collapse;
  -webkit-overflow-scrolling: touch;
}

#slides_display table span {
  margin: 0;
  cursor: pointer;
}

#slides_display table tr {
  vertical-align: text-bottom;
}

#slides_display table td {
  padding: 8px 12px;
  white-space: nowrap;
  border-bottom: #fff 1px solid;
}

#slides_display table td:nth-child(2) {
  text-align: right;
}

#slides_display table tr:nth-last-child(1) td {
  border-bottom: none;
}

@media only screen and (orientation: portrait) and (max-width: 1024px) {
  #slides_display span {
    white-space: normal;
  }

  #slides_display span i {
    font-size: 6vw;
    line-height: 6vw;
    margin: 0;
    padding: 3vw;
    border-radius: 7vw;
  }

  #slides_display span i:nth-child(1) {
    display: inline-block;
  }

  #slides_display span i:nth-child(2) {
    display: inline;
  }

  #slides_display span i:nth-child(2)::after {
    margin-right: 0;
    content: '\a';
    white-space: pre;
  }

  #slides_display table {
    font-size: 4vw;
    min-width: unset;
    padding: 0;
  }

  #slides_display table td {
    width: auto;
    vertical-align: middle;
    white-space: normal;
  }

  #slides_display table td span,
  #slides_display table td a {
    padding: .4vw 3.2vw;
  }
}

#slides_display span img {
  max-width: 72vw;
  max-height: 50vh;
  margin-bottom: 10vh;
}

#video_display {
  transition: opacity 1s;
  display: block;
  width: 100vw;
  height: 100vh;
}

#video_display video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slides_mobile_display {
  height: calc(100% - 72px) !important;
}

@media only screen and (orientation: landscape) {
  .slides_mobile_display {
    height: 100% !important;
  }
}

#sidebar {
  font-family: 'Droid Sans Mono', 'monospace';
  font-size: 18px;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 30px;
  height: 100%;
  white-space: nowrap;
  text-indent: 8px;
  background: none;
}

#sidebar span:nth-child(1) {
  position: absolute;
  top: 0;
  width: 100%;
  margin-left: -8px;
  padding-bottom: 4px;
}

#sidebar span.txt {
  display: none;
  overflow-y: scroll;
  height: 100vh;
  padding: 0 8px;
  white-space: pre-wrap;
}

/*
#sidebar span:nth-child(2) i
{
    position: absolute;

    height: 32px;
    margin-top: 48px;

    background: #f00;
}
*/
@keyframes out {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.flare_out {
  -webkit-animation: out .25s ease-in;
  animation: out ease-in .25s 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

@keyframes in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.flare_in {
  -webkit-animation: in .25s ease-in;
  animation: in ease-in .25s 1;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}