/* -------------------------------------------------------------------------- *\
 * Necessary styling for the dialog to work
 * -------------------------------------------------------------------------- */

.dialog[aria-hidden="true"] {
  display: none;
}

/* -------------------------------------------------------------------------- *\
   * Styling to make the dialog look like a dialog
   * -------------------------------------------------------------------------- */

.dialog,
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 2;
}

.dialog {
  display: flex;
}

.dialog-overlay {
  background-color: rgba(43, 46, 56, 0.9);
}

.dialog-content {
  background-color: transparent;

  position: relative;
}

/* -------------------------------------------------------------------------- *\
   * Extra dialog styling to make it shiny
   * -------------------------------------------------------------------------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}

.dialog-overlay {
  animation: fade-in 200ms both;
}

.dialog-content {
  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
}

.dialog-content {
  padding: 0;
  max-width: 100%;
  width: 100%;
}

.dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 0;
  padding: 0;
  background-color: transparent;
  font-weight: bold;
  font-size: 5rem;
  width: 5rem;
  height: 5rem;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  z-index: 1000;
  filter: drop-shadow(0.1rem 0.1rem 0.1rem hsl(0 0% 0% /90%));
  -webkit-filter: drop-shadow(0.1rem 0.1rem 0.1rem hsl(0 0% 0% /90%));
  -moz-filter: drop-shadow(0.1rem 0.1rem 0.1rem hsl(0 0% 0% /90%));
}

@media (prefers-reduced-motion: reduce) {
  .dialog-close {
    transition: none;
  }
  .dialog-content {
    animation: none;
  }
}

/* -------------------------------------------------------------------------- *\
   * Base stuff
   * -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}
