html, body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: 'Trebuchet MS', sans-serif;
  background-color: #f1f2f6;
  color: #333;
}
h1 {
  vertical-align: middle;
  margin: 0;
}
header a {
  position: absolute;
  right: 0;
  top: 0;
  margin: 0.1em 0.5em;
  background: #000091;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  box-sizing: border-box;
  font-weight: bold;
  font-size: 1.5em;
  line-height: 1em;
  width: 1.4em;
  height: 1.4em;
  padding: 0.2em;
}
header img {
  margin-right: 1em;
}
header {
  padding: 0 2em;
  z-index: 1;
  display: block;
}
main {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
}

section {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
  position: relative;
  overflow: hidden;
}

aside {
  padding: 0.5em 1em;
  display: block;
  background-color: #f1f2f6;
  width: 18em;
  max-width: 40%;
  min-width: 5em;
  overflow-x: hidden;
}
section iframe {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 0;
}

aside h2 {
  position: relative;
  font-size: 1.2em;
  text-align: right;
  padding: 0;
  margin: 0 0 0.25em 0;
}
aside .bubble {
  position: relative;
  background-color: #ddd;
  border-radius: 0.5rem;
  margin-bottom: 1em; 
  padding: 0.5em 1em;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  z-index: 1;
}
aside .bubble:before,
aside .bubble:after {
  content: "";
  position: absolute;
  border: 0 solid transparent;
  border-left-color: #ddd;
  margin: -2px -4px;
  border-width: 19px 0 19px 16px;
  top: 30%;
  left: 100%;
  transform: translateY(-30%);
}
aside .bubble:before {
  border-left-color: rgba(0,0,0,0.5);
  border-width: 14.5px 0 14.5px 12px;
  margin: 1px;
  filter: blur(1px);
  z-index: 0;
}

aside .bubble p {
  margin: 0;
  text-align: right;
  font-style: italic;
}
kbd {
  display: inline-block;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  color: #333;
  background-color: #f7f7f7;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: inset 0 -1px 0 #bbb;
}

aside button {
  display: block;
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0.3em;
  margin-bottom: 0.5em;
}

aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 1em;
}
aside ul li {
  padding: 0.1em 0.5em;
  border-bottom: 1px solid #ddd;
}

aside .info {
  font-size: 0.9em;
  color: #666;
  margin-top: -0.5em;
  margin-bottom: 1em;
  text-align: center;
  padding: 0.5em;
}
aside .info:empty {
  display: none;
}
aside .info.error {
  background-color: orange;
  color: white;
}
aside .info.ok {
  color: #356336;
  background-color: #e0f8e9;
}

dialog {
  min-width: 15em;
  max-width: calc(100% - 2em);
  box-sizing: border-box;
}

dialog button,
dialog a {
  display: block;
  width: 100%;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.2em;
  padding: 0.3em;
  text-align: center;
  text-decoration: none;
  margin: 1em 0 .25em;
  box-sizing: border-box;
}
dialog button {
  float: right;
  margin: .25em 0;
  background-color: #fff;
  color: #4CAF50;
  border: 2px solid #4CAF50;
  width: calc(50% - 0.5em);
  margin-right: 1em;
}
dialog button:first-of-type {
  margin-right: 0;
}

dialog h2 {
  background-color: #ccc;
  margin: -1rem -1rem 0;
  padding: 0.5em 1em;
}

dialog > div {
  max-height: calc(100dvh - 16em);
  overflow-y: auto;
  padding: 1em 0;
  border-bottom: 1px solid #ddd;
}