.message-overlay {
  position: relative;
}

.message-overlay::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
}

.message-overlay::after {
  z-index: 101;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  content: 'error occurred';
  padding: 0.2em 0 1em 25px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1;
  font-size: 0.88rem;
}

.message-overlay[data-message]::after {
  content: attr(data-message);
}
