/* MODAL */
.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: 10;
}
.modal-dialog * {
  box-sizing: border-box;
}
.modal-dialog.temp {
  background-color: transparent;
}
.modal-dialog.temp .modal-window {
  background-color: #f4f085;
  border: 2px solid #111111;
  border-radius: 8px;
  box-shadow: none;
  color: #fcfcfc;
  pointer-events: none;
  position: absolute;
  top: 25%;
  width: fit-content;
}

.modal-window {
  --animate-duration: 100ms;
  background-color: #fcfcfc;
  border: 4px solid #f6f39c;
  border-top-width: 0;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.15), 0 0 16px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-flow: column;
  flex-wrap: nowrap;
  margin: 0;
  max-height: 90%;
  width: 100%;
}
@media (min-width: 768px) {
  .modal-window {
    margin: 0 1em;
    max-width: 500px;
    width: 90%;
  }
}
.modal-window .modal-window.debug {
  border-color: #715ec7;
}

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

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

.modal-text {
  list-style-type: none;
  margin: 0;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
  width: 100%;
}
.modal-dialog.perm-win .modal-text,
.modal-dialog.confirm-start .modal-window {
  background-color: #111111;
  color: #fcfcfc;
}
.modal-text ul {
  list-style-type: none;
  margin: 0;
  padding: 10px;
}
.modal-text ul ul {
  padding: 2px 10px;
}
.modal-text ul li {
  padding: 0;
}
.modal-text dl dt {
  margin-left: 1em;
  min-height: 20px;
}
.modal-text dl dl {
  margin-left: 1em;
}

.modal-button-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: auto 0 10px 0;
  padding: 0 10px;
}
.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;
}
@media (hover: hover) {
  .modal-button:hover {
    box-shadow: inset 0 99px 0 rgba(0, 0, 0, 0.05);
    text-decoration: none;
  }
}

.modal-button-primary {
  background-color: #f4f085;
  color: #000000;
}

.modal-button-secondary {
  background-color: #f2ed6e;
  color: #111111;
}

.modal-button-neutral {
  background-color: #7d7d7d;
  color: #111111;
}

.modal-button-action {
  background-color: var(--action);
  color: #fcfcfc;
}

.modal-button-mini {
  padding: 4px 12px;
  font-size: 12px;
}

.modal-button-small {
  padding: 6px 18px;
  font-size: 13px;
}

.modal-button-regular {
  padding: 4px 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: #fcfcfc;
}
.modal-button-group.debug button.button-secondary {
  background-color: #9284d4;
  color: #111111;
}

/* MODAL->SETTINGS */
#settings {
  align-content: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#settings .setting-row {
  align-items: center;
  border-bottom: 1px solid #444444;
  display: flex;
  justify-content: space-between;
  padding: 0;
}
#settings .setting-row.requires-sound {
  display: none;
}
#settings .setting-row.requires-sound.enabled {
  display: flex;
}
#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: #444444;
  font-size: 12px;
}
#settings .setting-row .control {
  display: block;
  margin-left: 1em;
}
