.title-wrapper {
  height: 100%;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.title-frame {
  width: 100%;
  height: 100%;
  max-width: 64em;
  max-height: 36em;
  border: 2px solid #369;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.title-frame .title {
  font-size: 2rem;
}
.title-frame .title > .logo {
  height: 2em;
  vertical-align: middle;
}
.title-frame .description {
  max-width: 24em;
  text-align: justify;
}
.title-frame .sponsor {
  text-align: center;
}
.title-frame .sponsor > img {
  height: 2em;
  width: auto;
  vertical-align: middle;
}
.title-frame .btn-start {
  border: none;
  border-radius: 0.5em;
  padding: 0.5em 2em;
  background: #369;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
}
.title-frame .btn-start:hover {
  background: #47a;
}
.title-frame .btn-start:active {
  background: #147;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0px;
  width: 100vw;
  height: 100vh;
  font-size: 14pt;
}

canvas, svg {
  max-width: 100%;
}

#app {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.app-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  height: 32px;
  background: #ddd;
}
.app-header > p {
  margin: auto 0px;
}

.stack {
  position: relative;
  flex: 1;
}
.stack > * {
  position: absolute;
  top: 0;
  bottom: 0;
}

main.app-main {
  padding: 10px;
  width: 100%;
  height: 100%;
  background: #eee;
  overflow: scroll;
}
main.app-main > #content {
  padding: 10px;
  background: white;
}

aside.app-aside {
  width: 300px;
  right: 0;
}

nav.app-nav {
  display: flex;
  flex-direction: column;
  z-index: 100;
  width: 300px;
  padding: 10px;
  background: #fff;
}
nav.app-nav > #analyses {
  overflow-y: scroll;
}

.password-form.hidden {
  display: none;
}

aside.app-aside {
  width: 420px;
  padding: 10px;
  background: #fff;
}
aside.app-aside > #word-cloud {
  overflow-y: scroll;
  height: 100%;
}
aside.app-aside > #word-cloud > * {
  height: 100%;
}

nav.app-nav.hidden, aside.app-aside.hidden {
  display: none;
}

header.nav-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: #ddd;
  padding: 5px;
}
header.nav-header p {
  margin: 5px;
}

#analyses {
  flex: 1;
}

.analysis-list-item {
  margin: 5px 0px;
  background: #eee;
  padding: 5px;
}
.analysis-list-item .title-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.analysis-list-item h4 {
  margin: 5px;
}

.visualiser-types > .type {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
