body {
  font-family: "Helvetica", sans-serif;
  font-size: 10px;
  line-height: .35;
  margin: 0;
}

html {
  overflow-x: hidden;
  overflow-y: auto;
}

html * {
  box-sizing: border-box;
}

.grid-container {
  /* display: grid;
  grid-template-columns: 7fr 3fr; */
}

#board {
  /* position: absolute; */
  /* left: 0;
  top: 0;
  bottom: 0;
  right: 30%; */
  overflow: hidden;
  cursor: pointer;
}

#page {
  /* position: absolute; */
  /* right: 0;
  top: 0;
  bottom: 0;
  left: 70%; */
  display: grid;
  grid-template-rows: auto 1fr;
  /* height: 100vh; */
  overflow: auto;
  padding: 0;
  z-index: 99;
  background-color: whitesmoke;
  /* display: flex; */
}

#cover {
  display: inline-block;
  vertical-align: middle;
  width: 90%;
  white-space: normal;
  margin-left: 3vw;
  text-overflow: ellipsis;
}

#menu {
  position: static;
  /* top: 0;
  left: 0;
  right: 0; */
  margin-bottom: 4em;
  padding-left: 3vw;
  z-index: 1;
}

#menu>span {
  display: inline-block;
  font-size: 1.5em;
  padding-right: 30px;
  margin-top: 20px;
  font-family: "Roboto Slab", sans-serif;
  color: #667;
  line-height: 1.4em;
  text-indent: 2px;
}

#menu>span.title {
  font-size: 4em;
  color: #605ACD;
  margin-top: 34px;
  line-height: 1em;
  text-indent: 0px;
}

h1 {
  font-family: "Roboto Slab", sans-serif;
  font-size: 8em;
  color: #fff;
  font-weight: 300;
  margin: 0;
}

p {
  font-size: 1.4em;
  color: rgba(255, 255, 255, .8);
}

h3 {
  font-weight: 400;
  font-size: 1.6em;
  color: #605ACD;
  letter-spacing: .2px;
  font-family: Roboto Slab;
}

a {
  color: #605ACD;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

a:hover {
  color: #95a3fb;
}

.demo, .section {
  cursor: pointer;
  line-height: 1.5;
  margin: 0;
  color: #667;
  white-space: nowrap;
}

.demo>span {
  font-size: 10px;
}

.demo>strong {
  font-weight: 400;
}

.section .demo a {
  color: #334fff;
}

.demo:hover {
  color: #334fff;
}

.section a {
  font-family: Roboto Slab;
  font-weight: 400;
  margin-top: 2px;
  color: #667;
}

.section a:hover {
  color: #99A;
}

iframe {
  width: 100%;
  height: 100%;
}

@media only screen and (max-device-width: 800px) {

  .grid-container {
    grid-template-columns: 1fr;
  }

  #board {
    grid-row: 2;
    height: 100vh;
  }
  #menu {
    background-color: transparent;
    margin-bottom: 3em;
  }
  #menu span {
    font-size: 1.5em;
    margin-top: 12px;
  }
  #menu>span.title {
    display: inline-block;
    margin-top: 20px;
  }
  #cover {
    display: block;
    top: 22vh;
    /* position: absolute; */
  }
  #page {
    grid-row: 1;
    height: auto;
    padding-bottom: 2em;
    /* box-shadow: 0px 1px 0px 1px rgba(0,0,0,0.05); */
  }
}

@media only screen and (max-device-width: 600px) {
  #cover {}
  .demo {
    padding: 3px 0;
  }
  .grid-container {
    /* display: block; */
  }
}

@media only screen and (max-device-width: 320px) {
  #cover {
    /* top: 25vh; */
  }
}

@media (max-height: 500px) {
  .demo, #hint {
    font-size: 10px;
    line-height: 1.2;
  }
}
