.messageoverlay
{
  position: fixed;
  left: 0px;
  top: 0px;
  display: block;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.6);
  transition: opacity 0.3s linear;
  z-index: 1000;
}

.messagebox
{
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  min-width: 400px;
  min-height: 20px;
  transform: translate(-50%, -50%) scale(1);
  background-color: var(--bg-panel);
  border: ridge 2px var(--border);
  border-radius: 10px;
  box-shadow: 3px 3px 8px #000;
  text-align:center;
  padding-bottom: 40px;
  transition: transform 0.5s ease-in-out;
}

.messagebox h2
{
  background-color: rgba(200,200,0,0.2);
}

.messagebox p
{
  padding: 10px;
  margin: 10px;
}

.messageboxbuttons
{
  display: block;
  position: absolute;
  bottom: 10px;
  min-width: 80%;
  width: stretch;
  left: 50%;
  transform: translate(-50%, 0px);
  margin:0 auto;
  white-space: nowrap;
}

.messageboxbuttons button
{
    width: 35%;
}

.consolemsg
{
  max-height:80vh;
  width:90vw;
  overflow-y:scroll;
  text-align: left;
}

.consolemsg div
{
  width: 100%;
  min-height: 5vh;
  border-radius: 10px;
  padding: 5px;
}

.consolemsg .log 
{
  box-shadow: inset 3px 3px 6px #ff8, inset -3px -3px 6px #663;
}
.consolemsg .err 
{
  box-shadow: inset 3px 3px 6px #f88, inset -3px -3px 6px #a33;
}

.consolemsg div pre
{
  font-size: 75%;
  margin-left: 20px;
  max-height: 10vh;
  overflow: auto; 
  width: 95%;
  white-space: pre-wrap;
}

.consolemsg table
{
  max-width: 80vw;
}

.errorline
{
  width: 80vw;
  height: 60px;
  line-height: 30px;
  color: yellow;
  background: linear-gradient(to bottom, #500, #833, #300);
  border-radius: 15px;
}