
/*
:root {
  --exampleColor : #be845c;
  --rulesColor : #2e2737;
  --sidebarColor: #EE6C4D;
  --offscreenColor: #222;
  --textColor: #ccc;
  --glossaryBackground: #2e2737;
  --tableBackground: #fff1;
}
*/
:root {
  --exampleColor : #B8F2E6;
  --rulesColor : #293241;
  --offscreenColor: #26272C;

  --sidebarColor: #EE6C4D;

  --textColor: #E0FBFC;


  --glossaryBackground: #2e2737;
  --tableBackground: #fff1;

  --borderColor: #98C1D944;
}

.Narrator {
  --sidebarColor: #3D5A80;
  --textColor: #98C1D9;
}

.example {
  --textColor: #222;

  --rulesColor : #B8F2E6;
  --sidebarColor : #B8F2E6;
  --tableBackground: #0001;
}

canvas {
  display: block;
}

a:-webkit-any-link {
  color: var( --textColor);
  text-decoration: none;
}

a:link, a:visited, a:hover, a:active {
  color: var( --textColor);
  text-decoration: none;
}


html {
  margin : 0;
  font-family: 'Roboto Slab', serif;
  background-color : var(--offscreenColor);
  word-break: keep-all;
  overflow-wrap: break-word;
  word-wrap: break-word;
  color : var(--textColor);
  width: 100%;
}

table {
color:inherit;
}
.rulesContainer {
  min-height: 80vh;
}
body {
    margin : 0;
    padding:0;
    width: 100%;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', sans-serif;
  word-break: break-word;
}
h1:empty, h2:empty, h3:empty, h4:empty {
    display: none;
}

h1 {
  font-size:  3em;
}
h2 {
  font-size: 2em;
}
h3 {
  font-size: 1.5em;
}
h4 {
  font-size: 1.25em;
}
.tableOfContents h3 {
    padding-left: 20px;
}
.tableOfContents h1,.tableOfContents h2,.tableOfContents h3,.tableOfContents h4 {
  line-height: 1em;
  margin: 0.5em 5px;
  font-size: 1.5em;
}

.tableOfContents h3,.tableOfContents h4 {
  font-size: 1em;
}


.tableOfContents a:-webkit-any-link {
  color: var( --textColor);
  text-decoration: none;
}

.tableOfContents a:link,.tableOfContents a:visited,.tableOfContents a:hover,.tableOfContents a:active {
  color: var( --sidebarColor);
  text-decoration: none;
}


.indent_headline {
  margin-left: 1em;
}
.tableOfContents .unselected a:link,.tableOfContents .unselected a:visited,.tableOfContents .unselected a:hover,.tableOfContents .unselected a:active {
  color: var( --textColor);
  opacity: 0.5;
}

/*.rulesContainer h1,*/.rulesContainer h2/*,.rulesContainer h3,.rulesContainer h4*/ {
  border-bottom: 2px solid var(--borderColor);
  margin-bottom: 0.25em;
}
.rulesContainer h3
{
  margin-bottom:  0.5em;
}
.rulesContainer h4
{
  margin-bottom:  0.25em;
}
.glossarylist h2 {
  font-size:  1.5em;
  border-bottom: 0 none;
}


.headlineContainerFull {
  display: none;
}
img {
  max-width: 100%;
  height: auto
}

.headlineContainerMobile {
  background-color: var(--rulesColor);
  height:65px;
  padding: 10px 15px;

  border-bottom: 2px solid var(--borderColor);
}
.headlineContainerMobile img.logo-img {
  display: inline-block;
  height:60px;
}
.headlineContainerMobile img.logo-text {
  display: inline-block;
  padding-left: 10px;
  height: 30px;
}

.Glossary {
  width: 100%;
  background-color: var(--glossaryBackground);

  position: -webkit-sticky; /* Safari */
  position: sticky;
  padding : 0;
  max-height: 0;
  overflow-y: hidden;
  overflow-x: hidden;
  bottom: 0;
  align-self: stretch;
  transition: max-height 0.2s ease-in-out;  /* ease out */

  z-index: 510;
}

.Glossary.active{
  transition: max-height 0.2s ease-in-out 0s; /* ease in */
  max-height: 90vh;
}

.GlossaryContent {
  padding: 20px;
  z-index: 510;

    background-color: var(--rulesColor);

  border-top: 5px solid var( --borderColor);
}

.GlossaryContent h3
{
  margin-top: -5px;
  margin-bottom: 5px;
}

.GlossaryOverlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom:0;
  width: 100%;
  height: 100%;
  z-index: 500;
  background-color: #0000;
  transition: background-color 0.2s  ease-in-out, visibility 0.0s linear 0.5s; /* ease out */
}

.GlossaryOverlay.active {
  background-color: #0006;
  visibility: visible;
  transition: background-color 0.2s ease-in-out, visibility 0.0s linear 0.0s; /* ease in */
}

a.languageButton, a.languageButton:link, a.languageButton:visited, a.languageButton:hover, a.languageButton.a:active {
  font-family: 'Roboto', sans-serif;
  color : var( --textColor);
  text-decoration: none;
  font-size: 1.5em;
}
a.languageButton:hover {
  text-shadow: 0px 0px 5px white;
}

a:hover {
    text-shadow: 0px 0px 5px white;
}

.languageSelector {
  position: absolute;
  top : 10;
  right: 0;
  padding : 0px 20px;
  text-align: right;
  height : 0;
  z-index: 200;
}

.content {
  margin : 0;
  /* display: grid; */
  /* grid-template-columns: 100%; */
  border-left: 2px solid var( --borderColor);
  border-right: 2px solid var( --borderColor);
}

.narratorSeperator {
  display: none;
  color: var(--textColor);
}




.glossarylist {
  display: none;
}

.tableOfContents {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  padding : 0 10px;
  max-height: 0;

  overflow-y: auto;
  overflow-x: hidden;
  max-width: 300px;
  top: 0;
  margin-left: auto;
  background-color : var(--offscreenColor);
  align-self: stretch;
  transition: max-height 0.4s ease-in-out;
}

span.menuButton{
  height: 5px;
  margin: 9px 4px;
  background-color: white;
  display: block;

}
div.menuSticky{
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top : 0px;
  height:0;

    z-index: 100;
}
div.menuButton {
  height:50px;
  width:55px;
  padding: 5px;
  position: relative;
  right: 8;
  top: 0;
  margin-left: auto;
  background-color: var(--offscreenColor);
  z-index: 300;
}



.toggleBoxText {
  display:inline-block;
  align-self: center;
  padding: 0 10px;
}
.toggleBox {
  display: inline-block;
  background-color: var(--rulesColor);
  padding: 5px;
  border-radius: 15px;
}

.toggleButton{
  background-color: var(--offscreenColor);
  width: 20px;
  height: 20px;
  border-radius: 10px;
}

.narratorrules {
  display: none;
}


.narratorToggleContainer{
  margin-left:  auto;
  margin-right: 20px;
}
.narratorToggle {

  top: 30px;
  display: flex;
  padding: 10px;
  background-color: var(--sidebarColor);
  color: var(--textColor);
  border-radius: 25px;
}

.narratorToggle.active .toggleButton{
  background-color: var(--exampleColor);
}

.toggleButton.active:hover {
  background-color: grey;
}

.narratorToggle.active:hover .toggleButton {
  background-color: grey;
}

.narratorToggle:hover .toggleButton {
  background-color: white;
}

.NarratorIcon {
  position: relative;
  top: 20px;
  display: inline-block;
  float: right;
  line-height: 0px;
  font-weight: bold;
  z-index: 0;
}

.content2 {
    background-color : var(--rulesColor);
}


.rulesContainer {
/* background-image : linear-gradient( to left,  var(--offscreenColor), var(--rulesColor) 200px, var(--rulesColor)); */
  display: grid;
  grid-template-columns: auto;
  background-color: var(--rulesColor);
}

.item:empty{
  display:none;
}
.item {
  padding: 0 20px 20px 20px;
  color : var(--textColor);
}

.glossaryReferenceLink {
  margin: 0 0.25em;
  background-color : var(--sidebarColor);
  grid-column-start : 1;
  border-radius: 10px;
  padding: 5px 10px;
}

.textboxb {
  margin: 0px 20px 20px 20px;
  border-color : var(--sidebarColor);
  border-width: medium;

  border-style: dashed;
  grid-column-start : 1;
  border-radius: 0px;
  padding: 0px 15px 15px 15px;
}
.textbox {
  margin: 0px 20px 20px 20px;
  background-color : var(--sidebarColor);
  grid-column-start : 1;
  border-radius: 25px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  padding: 20px 20px;
}

.Glossary, .middle {
  grid-column-start : 1;
}

ul {
  padding-left: 1.25em;
  margin: 0.5em 0;
}

.exampleButton{
  margin: 0px 20px;
  border-radius: 25px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;

  font-family: 'Roboto', sans-serif;
  font-size:  1.2em;

  padding: 15px 15px;
  grid-column-start :1;
  color : var(--textColor);
  background-color: var(--rulesColor);
  cursor: pointer;
  border: none;
  text-align: left;
  outline: none;
  transition: border-radius 0.1s ease-in-out;
  transition-delay: 0.35s;
}

.exampleButton.active {
  border-radius: 25px 25px 0 0;

  border-top-right-radius: 0;
  border-bottom-left-radius: 0;

  transition: border-radius 0.0s;
  transition-delay: 0.0s;
}

.exampleContainer{

  margin: 0 20px;
  border-radius: 0;
  border-bottom-right-radius: 25px;
  color : var(--textColor);
  background-color: var(--rulesColor);
  padding: 0 20 0 20;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;

}
.exampleContainer.middle {
  margin-bottom: 10px;
}


.Footer{
  margin: 10px;
  text-align:  center;
}

table {
  width: 100%;

  border-collapse: collapse;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px;
}

tr:nth-child(even),
th
{
  background-color : var(--tableBackground);
}

td:first-child {
  display: inline;
  border-bottom: 2px solid var(--borderColor);
  padding-bottom: 0;
  font-weight: bold;
}
td:not(empty):first-child::after{
  content: '\A';
  white-space: pre;
}
td:nth-child(100n+2) {
  display: inline-block;
  padding-left: 20px;
}

td:empty, th {
  display: none;
  content: none;
}

@media only screen and (min-width: 860px)
{

  td:not(empty):first-child::after{
    content:inherit;
    white-space: inherit;
  }
  td:nth-child(100n+2), td:first-child, th:first-child, th, td:empty{
    display: table-cell;
    font-weight: inherit;
    border-bottom: none;
    text-align: left;
    padding: 8px;
  }

  th, th:first-child {
    vertical-align: middle;
    font-weight: bold;
  }

  /* Desktop */
  html {

  }
  body{

  }
 .rulesContainer {
	  min-width: 64vw;
	  min-height: 95vh;
  }

  .content {
    /* display: flex; */
    /* flex-direction: column; */
    max-width:1400px;
    /* grid-template-columns: 200px 1000px; */
    justify-content: center;
    margin:  auto;
    align-self: center;
  }

  .rulesContainer {
    display: grid;
    grid-column-start: 2;
    grid-template-columns: auto 300px;
    grid-template-rows: repeat(100px) auto;
  }

  .middle {
    grid-column-start: 0;
    grid-column-end: 1;
  }
  .left, .right {
    align-self: center;
    overflow-y: visible;
    max-height: 0px;
    margin-bottom: auto;
    margin-top:auto;
  }


  .item:empty {
    display: none;
  }

  .left.exampleContainer, .right.exampleContainer {
      border-top-left-radius: 25px;
      background-color: var(--exampleColor);
  }

  .left {
    grid-column-start: 1;
    grid-column-end: 2;
  }
  .right {
    grid-column-start: 2;
    grid-column-end: 3;
  }

  .middle {
    grid-column-start :2;
  }



  .narratorSeperator {
    display: block;
    border-bottom: 2px solid var(--borderColor);
    margin: auto 20px ;
    text-align: right;
  }
  .narratorSeperator p {
    padding: 0px;
    margin: 0;
    color: var(--textColor);
  }


}

@media only screen and (min-width: 1200px )
{

  .glossarylist {

    display: inline;

    position: relative;
    overflow-y: visible;
    padding : 0 10px;
    height:0px;

    max-width: 300px;
    top: 0;
  }

  .menuButton {
    display: none;
  }

  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #555;
  }
  ::-webkit-scrollbar-thumb {

    background: #888;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #f1f1f1;

  }

  .tableOfContents {
    overflow-x: hidden;
    overflow-y: auto;
    background-color : inherit;
    width: 270px;
    bottom: 0px;
    max-height: unset;
    top:100px;
    margin-left: inherit;
    position: fixed;
  }

  .content2 {
    display: flex;
    flex-direction: row;
    /* width:1200px; */
    width: 100%;
    align-items: flex-start;
  }


  .headlineContainerFull {
    padding:  10px;
    background-color : var(--rulesColor);
    border-bottom: 2px solid var(--borderColor);

    display: block;
      width: 290px;
      height: 70px;
  }

  .headlineContainerFull img.logo-img {
    display: inline-block;
    height: 60px;
  }

  .headlineContainerFull img.logo-text {
    height: 30px;
    padding-left: 10px;
    display: inline-block;
    object-fit: contain;
  }

  .headlineContainerMobile {
    display: none;
  }

}
