body {
  padding: 0;
  margin: 0;
  overflow-x: hidden;
}

.marker {
  display: inline-block;
  position: absolute;
}

#text {
  font-size: 16px;
}

#leftColumn {
  width: 10%;
  height: 100%;
  float: left;
  position: relative;
}

#leftcolumn img {
  width: 80%;
  padding: 10% 10% 10% 10%;
}

#menu {
  display: block;
  position: absolute;
  top: 6.74909090909vw;
  margin-top: 5px;
  left: 0;
  background-color: gray;
  background-image: url(chalkboard_texture_grey_small.jpg);
  background-size: 100%;
  z-index: 9999999;
  border-radius: 14px;
  border-left: 3px solid #363636;
  border-right: 3px solid #363636;
  border-top: none;
  border-bottom: none;
  padding: 0px 5px 0px 5px;
  max-height: 0px;
  overflow: hidden;
  transition: padding 0.5s ease, max-height 0.5s ease, border 0.5s ease;
  -webkit-transition: padding 0.5s ease, max-height 0.5s ease, border 0.5s ease;
  width: 270px;
}

#menu.open {
  padding: 5px 5px 5px 5px;
  border-top: 3px solid #363636;
  border-bottom: 3px solid #363636;
  max-height: 500px;
}

#menu h2 {
  font-weight: 200;
  margin: 2px 0 0 0;
  padding: 0;
  color: #ddd;
  font-size: 18px;
  float: left;
  cursor: pointer;
}

#menu h3 {
  font-weight: 200;
  margin: 2px 0 0 0;
  padding: 0;
  color: #ddd;
  font-size: 18px;
  cursor: pointer;
}

#menu .submenu {
  display: block;
}

#menu h2:hover, #menu h3:hover {
  color: white;
}

.submenu h3 {
  height: 0px;
  opacity: 0;
  float: left;
  clear: both;
  display: none;
}

.submenu.open h3 {
  height: auto;
  opacity: 1;
  display: inline;
}

#menu h3 {
  margin: 0 0 0 10px;
  padding: 0;
}

#menu a {
  text-decoration: none;
}

#centreColumn {
  width: 80%;
  height: 100%;
  float: left;
  position: relative;
}

#rightColumn {
  width: 10%;
  height: 100%;
  float: left;
  position: relative;
}

body {
  background-color: #222;
  background-image: url(chalkboard_texture_black_small.jpg);
  background-size: 100%;
}

#content, .interstitial {
  background-color: gray;
  background-image: url(chalkboard_texture_white_small.jpg);
  background-size: 100%;
  width: 100%;
  height: calc(70vh - 10px);
  border-radius: 10px;
  overflow: hidden;
  position: absolute;
  bottom: calc(30vh - 54px);
}

.interstitial.text {
  top: calc(72.5vh + 84px);
  height: calc(25vh - 89px)
}

.content-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 4vh);
  max-height: calc(100% - 4vh);
  width: auto;
  height: auto;
}

#text {
  width: calc(100% - 32px);
  height: calc(25vh - 89px);
  overflow: hidden;
  border: 1px solid black;
  overflow-y: scroll;
  border: none;
  position: absolute;
  padding-left: 32px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  background-color: gray;
  background-image: url(chalkboard_texture_white_small.jpg);
  background-size: 100%;
  background-position: 0 -30px;
  top: calc(72.5vh + 84px);
}

#text.bigger {
  top: 94px;
  height: calc(97.5vh - 94px);
}

::-webkit-scrollbar {
    z-index: 9999999;
    width: 12px;
}

::-webkit-scrollbar-track {
    z-index: 9999999;
    background-color: none;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    z-index: 9999999;
    border-radius: 10px;
    background-color: #aaa;
}

* {
  font-family: "arial", sans-serif;
}

#title {
  font-size: 28px;
  margin-top: 16px;
  margin-bottom: 16px;
  color: #e54225;
}

#audio_container {
  height: 30px;
  width: 100%;
  position: absolute;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: gray;
  background-image: url(chalkboard_texture_white_small.jpg);
  background-size: 100%;
  background-position-x: -32px;
  top: calc(72.5vh + 54px);
  z-index: 1005;
}

#audio_container.bigger {
  top: 64px;
}

      #playpause {
        height: 30px;
        width: 30px;
        margin-left:4px;
        background: url('pause.png');
        background-size: 24px 24px;
        background-position: 3px 3px;
        background-repeat: no-repeat;
        float: left;
      }

      #playpause.paused {
        background: url('play.png');
        background-size: 24px 24px;
        background-position: 3px 3px;
        background-repeat: no-repeat;
      }

      #volume {
        float: left;
      }

      #mute {
        height: 30px;
        width: 30px;
        background: url('speaker.png');
        background-size: 24px 24px;
        background-position: 3px 3px;
        background-repeat: no-repeat;
        float: left;
      }

      #mute.muted {
        background: url('muted.png');
        background-size: 24px 24px;
        background-position: 3px 3px;
        background-repeat: no-repeat;
      }

      #playback {
        overflow: hidden;
      }

      .slider {
        height: 12px;
        width: 96%;
        margin: 10px 0 0 2%;
        overflow: visible;
      }

      #progress-background {
        height: 100%;
        width: 100%;
        background-color: #444;
        position: relative;
        z-index: 1000;
        border-radius: 5px;
      }

      #progress-foreground {
        height: 100%;
        width: 0%;
        background-color: #888;
        float: left;
        position: relative;
        top: -12px;
        z-index: 1001;
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        border-right: solid 1px red;
      }

      .timeline-element {
        background-color: #999;
        width: 20px;
        height: 20px;
        border-radius: 20px;
        position: relative;
        z-index: 10;
        top: -16px;
        margin-left: -10px;
      }

      .timeline-element.inactive {
        background-color: #444;
      }

      .timeline-element.active {
        background-color: #888;
      }

      .timeline-element.across {
        background: linear-gradient(to right, #ccc 0%, #ccc 50%, #888 50%, #888 100%);//#44aaff 0%,#44aaff 50%,#888 50%,#888 100%);
      }

      .tooltip {
        position: absolute;
        top: calc(75vh - 176px);
        background-color: white;
        transition: opacity 0.2s ease;
        border-radius: 12px;
        width: 305px;
        height: 200px;
        padding: 5px;
        opacity: 0;
        background-image: url(chalkboard_texture_whitest_small.jpg);
        z-index: 100000000000;
      }

      .tooltip.bottom {
        margin-top: 240px
      }

      .tooltip .text {
        overflow-y: scroll;
        height: 176px;
        padding: 12px;
        font-size: 18px;
      }

      .tooltip img {
        height: 190px;
        width: auto;
        margin: 5px;
        border-radius: 12px;
      }

      .tooltip .triangle {
        position: absolute;
        left: 50%;
        margin-left: -6px;

        width: 0;
        height: 0;

        border-left: 16px solid transparent;
        border-right: 16px solid transparent;

        border-top: 16px solid white;
      }

      .tooltip.bottom .triangle {
        border-top: none;
        border-bottom: 16px solid white;
        top: -8px;
        margin-left: -3px;
      }

.tooltip .cross, .interstitial .cross, #menu .cross {
  background: url(cross.png);
  background-size: 100% 100%;
  width: 50px;
  height: 50px;
  top: 0px;
  right: 0px;
  position: absolute;
}

.arrow {
  background-image: url(arrow.png);
  width: 50px;
  height: 100px;
  position: absolute;
  top: calc(35vh + 34px);
  left: 25px;
}

.arrow:hover {
  background-image: url(arrow-hover.png);
}

#leftArrow {
  -moz-transform: scaleX(-1) scaleY(-1);
  -o-transform: scaleX(-1) scaleY(-1);
  -webkit-transform: scaleX(-1) scaleY(-1);
  transform: scaleX(-1) scaleY(-1);
  left: auto;
  right: 25px;
}

#resizable {
  position: absolute;
  top: calc(71.25vh + 42px);
  border: none;
  margin: 4px;
  background-image: url(resizable-bar.png);
  background-repeat: repeat-x;
  background-position: 7px;
  width: calc(100% - 8px);
  height: 16px;
  z-index: 1006;
}

.resizable-arrow {
  background: url(resizable-arrow.png);
  background-repeat: no-repeat;
  position: absolute;
  height: 16px;
  width: 6px;
}

.text-muted {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.tab {
  position: absolute;
  left: 0;
  margin-left: 0px;
  background-color: #777;
  top: calc(72.5vh + 54px);
  line-height: 12px;
  width: 24px;
  padding-left: 20px;
  padding-top: 4px;
  border-top: 1px solid white;
}

.tab.active {
  background-color: #ddd;
}

.inlineImage {
  height: 0px;
  transition: 0.2s ease all;
  float: left;
  font-size: 0px;
  clear: both;
  margin: 0;
}

.inlineImage.right {
  float: right;
}

.inlineImage.active {
  margin-right: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
  margin-left: 0px;
}

.inlineImage.right.active {
  margin-right: 0px;
  margin-left: 12px;
}

div.tab {
  position: absolute;
  left: 0px;
  top: 0;
  padding: 0;
  margin: 0;
  height: 33.333333%;
  width: 32px;
  background-color: gray;
  background-image: url(chalkboard_texture_white_small.jpg);
  border: none;
  -webkit-box-shadow: 0 2px 8px -3px gray;
  -moz-box-shadow: 0 2px 8px -3px gray;
  box-shadow: 0 2px 8px -3px gray;
}

div.tab.one {
  border-top-left-radius: 10px;
}

div.tab.two {
  top: 33.333333%;
  background-position-y: -32px;
}

div.tab.three {
  top: 66.666666%;
  background-position-y: -64px;
  border-bottom-left-radius: 10px;
}

div.tab div {
  width: 100%;
  height: 100%;
  transition: 0.1s ease background-color;
}

div.tab div.active {
  background-color: rgba(0, 0, 0, 0.3);
}

#tab1 {
  background-image: url(iconmonstr-book-19-32.png);
  top: calc(50% - 16px);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#tab2 {
  background-image: url(iconmonstr-speech-bubble-3-32.png);
  top: calc(50% - 16px);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

#tab3 {
  background-image: url(iconmonstr-book-12-32.png);
  top: calc(50% - 16px);
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.comment {
  background-color: #aaa;
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 8px;
}

blockquote {
  margin-top: 8px;
  margin-bottom: 8px;
}

comment p {
  padding: 0;
}

.comment_box {
  margin: 5px 15px 5px 15px;
}

data {
  display: none;
}

.reference {

}

.reference.current {
  background-color: white;
}

.previewtext {
  position: absolute;
  visibility: hidden;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  top: 100%;
  font-size: 1em;
  left: -25px;
  margin: 10px;
}

.previewtext.left {
  transform: rotateZ(180deg);
  bottom: 100%;
  top: auto;
}

.arrow:hover .previewtext {
  visibility: visible;
}

.menucircle {
  width: 10px !important;
  padding: 5px !important;
  float: left;
}

.menuarrow {
  width: 16px !important;
  padding: 2px !important;
  float: left;
}

.submenu .menucircle {
  height: 0px;
  width: 0;
  padding: 0;
}

.submenu.open .menucircle {
  width: 10px !important;
  height: auto;
  padding: 5px !important;
}

#menu h2 {
  clear: both;
}

#comment_form input, #comment_form textarea {
	border: 4px solid rgba(0,0,0,0.1);
	padding: 2px 4px;

	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;

	outline: 0;
  width: 100%;
}

#comment_form textarea {
	width: 350px;
}

#comment_form input[type="submit"] {
	cursor: pointer;
	background: -webkit-linear-gradient(top, #efefef, #ddd);
	background: -moz-linear-gradient(top, #efefef, #ddd);
	background: -ms-linear-gradient(top, #efefef, #ddd);
	background: -o-linear-gradient(top, #efefef, #ddd);
	background: linear-gradient(top, #efefef, #ddd);
	color: #333;
	text-shadow: 0px 1px 1px rgba(255,255,255,1);
	border: 1px solid #ccc;
}

#comment_form input[type="submit"]:hover {
	background: -webkit-linear-gradient(top, #eee, #ccc);
	background: -moz-linear-gradient(top, #eee, #ccc);
	background: -ms-linear-gradient(top, #eee, #ccc);
	background: -o-linear-gradient(top, #eee, #ccc);
	background: linear-gradient(top, #eee, #ccc);
	border: 1px solid #bbb;
}

#comment_form input[type="submit"]:active {
	background: -webkit-linear-gradient(top, #ddd, #aaa);
	background: -moz-linear-gradient(top, #ddd, #aaa);
	background: -ms-linear-gradient(top, #ddd, #aaa);
	background: -o-linear-gradient(top, #ddd, #aaa);
	background: linear-gradient(top, #ddd, #aaa);
	border: 1px solid #999;
}

#comment_form div {
  margin-bottom: 2px;
  display: inline-block;
}

.next {
  visibility: visible;
  position: absolute;
  top: calc(35vh + 134px);
}

form {
  margin: 0;
}

sup, sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
sub { 
  top: 0.4em; 
}

.resizing #text {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
}

.resizing div #youtube-player {
  pointer-events: none;
}

div#youtube_hider {
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
}

img#youtube_hider_img {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -16px;
  margin-left: -16px;
}
