.dialog-container,
.dialog-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.dialog-container {
  z-index: 50;
  display: flex;
  padding: 1rem;
}

.dialog-container[aria-hidden='true'] {
  display: none;
}

.dialog-overlay {
  background-color: rgb(43 46 56 / 0.9);
  animation: fade-in 200ms both;
}

.dialog-content {
  color: white;
  position: relative;
  z-index: 51;
  overflow: auto;
  max-width: 1200px;
  max-height: 90vh;
  margin: auto;
  padding: 2rem;
  border-radius: 5px;
  background-color: #000;
  animation: fade-in 400ms 200ms both, slide-up 400ms 200ms both;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes slide-up {
  from {
    transform: translateY(10%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dialog-overlay,
  .dialog-content {
    animation: none;
  }
}

.dialog-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  border: 0;
  background-color: transparent;
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  line-height: 1rem;
  cursor: pointer;
  transition: 0.15s ease-in-out;
}

@media screen and (min-width: 768px) {
  .dialog-content {
    min-width: 50%;
  }
}
