.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-80);
  display: flex;
  justify-content: center;
  transition: opacity 250ms ease;
  z-index: var(--dialog-z);
  opacity: 0;
  pointer-events: none;
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog.active {
  opacity: 1;
  pointer-events: all;
}

.dialog-content {
  margin-top: 2rem;
  margin-bottom: 100vh;
  position: relative;
  border-radius: 4px;
  transition: all 250ms ease;
  box-shadow: 1px 1px 5px #222;
  width: min(calc(800px - 1rem), 95vw);
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  height: fit-content;
  --el-border: 1px solid var(--offset);
}

.dialog-content.expanded {
  width: 95vw;
  min-height: 90vh;
}

.dialog-content .header,
.dialog-content .body,
.dialog-content .footer {
  padding: 1rem;
}

.dialog-content .header {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: var(--el-border);
}

.dialog-content .header i {
  color: var(--primary);
}

.dialog-content .body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-bottom: var(--el-border);
}

.dialog-content.expanded .body {
  flex: 1;
}

.dialog-content .footer {
  display: flex;
  gap: 0.5rem;
}

.dialog-content .footer button:disabled {
  background-color: gray !important;
}
