/* ============================================
   NOTESTREAM - DIALOG
   The look of the questions and messages shown by dialog.js: a dark box with a white
   frame, in the same look as the game, the start page and the lobby. Loaded by all three.
   The fonts (Anton, Archivo Narrow) are loaded by the pages.

   ../styles.css is loaded before this file and gives every button a colour under the
   pointer and in focus, which is why those states are set here too.
   ============================================ */

/* Above everything else on the pages: the login box (5000), the game's validation box
   (9999), the card that follows the finger and the notifications (10000) */
.ns-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.ns-dialog {
  background: #111216;
  border: 2px solid #fff;
  border-radius: 4px;
  padding: 22px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  font-family: 'Archivo Narrow', 'Arial Narrow', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ns-dialog-title {
  font: 400 26px/1.08 'Anton', Impact, sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ns-dialog-text {
  font: 500 16px/1.4 'Archivo Narrow', 'Arial Narrow', sans-serif;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ns-dialog-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.ns-dialog-btn {
  box-sizing: border-box;
  height: 44px;
  margin: 0;
  padding: 0 16px;
  min-width: 120px;
  border: 2px solid transparent;
  border-radius: 4px;
  font: 400 18px/1 'Anton', Impact, sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.ns-dialog-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Solid white is the main choice, a white outline the other one, red a choice that
   removes something */
.ns-dialog-btn.primary,
.ns-dialog-btn.primary:hover,
.ns-dialog-btn.primary:focus,
.ns-dialog-btn.primary:active {
  background: #fff;
  color: #0b0b0b;
}

.ns-dialog-btn.secondary,
.ns-dialog-btn.secondary:hover,
.ns-dialog-btn.secondary:focus,
.ns-dialog-btn.secondary:active {
  background: rgba(0, 0, 0, 0.25);
  border-color: #fff;
  color: #fff;
}

.ns-dialog-btn.danger,
.ns-dialog-btn.danger:hover,
.ns-dialog-btn.danger:focus,
.ns-dialog-btn.danger:active {
  background: #EA4335;
  color: #0b0b0b;
}
