.modal-dialog {
  align-items: center;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1;
}
.modal-dialog * {
  box-sizing: border-box;
}
.modal-dialog.temp {
  background-color: transparent;
}
.modal-dialog.temp .modal-window {
  background-color: #081c4b;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: none;
  color: #fff;
  pointer-events: none;
  position: absolute;
  top: 6%;
  width: fit-content;
}

.modal-window {
  --animate-duration: 100ms;
  background-color: #fff;
  border: 4px solid #153379;
  border-top-width: 0;
  box-shadow: 0 0 0 4px rgb(0 0 0 / 15%), 0 0 16px rgb(0 0 0 / 25%);
  display: flex;
  flex-flow: column wrap;
  margin: 0 1em;
  max-height: 90%;
  max-width: 500px;
  width: 90%;
}
.modal-window.debug {
  border-color: #715ec7;
}

.modal-title {
  align-items: center;
  background-color: #081c4b;
  color: #fff;
  display: flex;
  font-weight: 500;
  justify-content: center;
  padding: 4px 10px;
  width: 100%;
}
.modal-title.debug {
  background-color: #715ec7;
}

.modal-close {
  background: none;
  border: 0 none;
  color: #fff;
  font-size: 26px;
  font-weight: inherit;
  font-family: inherit;
  height: auto;
  margin: 0 0 3px;
  margin-left: auto;
  max-width: 26px;
}

.modal-text {
  margin: 10px 0;
  max-height: 500px;
  overflow-y: auto;
  padding: 0 16px;
  width: 100%;
}
.modal-text ul,
.modal-text {
  list-style-type: none;
  margin: 0;
  padding: 10px;
}
.modal-text ul ul {
  padding: 2px 10px;
}
.modal-text ul li {
  padding: 0;
}
.modal-text ul li span.solution-category {
  font-size: 20px;
  font-weight: 700;
}
.modal-text ul li span.solution-category + ul {
  background-color: #f8f8f8;
  border: 1px solid #222;
  margin-bottom: 10px;
  padding: 10px;
}
.modal-text ul li span.solution-category + ul li {
  margin-left: 0;
}

.modal-text dl dt {
  margin-left: 1em;
  min-height: 20px;
}
.modal-text dl dl {
  margin-left: 1em;
}

.modal-button-group {
  margin: auto 0 16px 0;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
}
.modal-button-group button {
  font-weight: inherit;
  font-family: inherit;
}

.modal-button {
  font-family: inherit;
  font-weight: 400;
  display: inline-block;
  width: fit-content;
  position: relative;
  white-space: break-spaces;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  border: 0 none;
  border-radius: 2px;
  line-height: 1.3;
}
.modal-button:hover {
  box-shadow: inset 0 99px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none;
}
.modal-button-primary {
  color: #ffffff;
  background-color: #081c4b;
}
.modal-button-secondary {
  color: #000000;
  background-color: #849eda;
}
.modal-button-neutral {
  color: #000000;
  background-color: #888;
}
.modal-button-action {
  color: #ffffff;
  background-color: var(--action);
}
.modal-button-mini {
  padding: 4px 12px;
  font-size: 12px;
}
.modal-button-small {
  padding: 6px 18px;
  font-size: 13px;
}
.modal-button-regular {
  padding: 8px 24px;
  font-size: 14px;
}
.modal-button-large {
  padding: 12px 32px;
  font-size: 16px;
}
.modal-button-giant {
  padding: 16px 36px;
  font-size: 20px;
}
.modal-button-hero {
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 38px;
}
.modal-button-rounded {
  border-radius: 64px;
}

.modal-button-group.debug button.button-primary {
  background-color: #715ec7;
  color: #ffffff;
}
.modal-button-group.debug button.button-secondary {
  background-color: #dbbce2;
  color: #000000;
}

/* MODAL->SETTINGS */
#settings {
  align-content: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#settings .setting-row {
  align-items: center;
  border-bottom: 1px solid #666;
  display: flex;
  justify-content: space-between;
  padding: 0;
}
#settings .setting-row:last-of-type {
  border-bottom: none;
}
#settings .setting-row .text {
  padding: 8px 8px 8px 0;
}
#settings .setting-row .text .title {
  font-size: 18px;
}
#settings .setting-row .text .description {
  color: #444;
  font-size: 12px;
}
#settings .setting-row .control {
  display: block;
  margin-left: 1em;
}
