/* Messages of the connection to the server (see App.razor and js/boot.js). Plain CSS that old television browsers
   understand: no flex gap, inset, variables or nesting */

.app-loading {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: #ffffff;
  color: #333333;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  text-align: center;
  padding-top: 40vh;
  z-index: 900;
}

/* Hidden until Blazor adds one of its classes, while the connection is lost */
.app-reconnect {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  text-align: center;
  padding-top: 40vh;
  z-index: 1000;
}

.app-reconnect.components-reconnect-show,
.app-reconnect.components-reconnect-failed,
.app-reconnect.components-reconnect-rejected {
  display: block;
}

/* Shown by Blazor (display: block) when an error ends the connection */
.app-error {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff8c5;
  color: #333333;
  font-family: Arial, Helvetica, sans-serif;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.app-error .reload {
  margin-left: 0.5rem;
}
