.dialog-container {
  z-index: 100;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 4vh;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(3px);
  overflow-y: auto;
}

.survey-dialog {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(100%, 25rem);
}

.survey-dialog img {
  border-radius: 4px;
  max-width: 100%;
}

.dialog-actions {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .dialog-actions {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    /* Optional: Adds spacing between actions */
  }

  .dialog-button {
    width: 100%;
  }
}

.dialog-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.25rem;
  background-color: #e6a800;
  color: white;
  cursor: pointer;
  text-decoration: none;
  font-weight: normal;
}

.dialog-button__close {
  background-color: #fff;
  border: 2px solid #2C1E09;
  color: #2C1E09;
}

dialog {
  animation: fade-out 0.7s ease-out;
  border-radius: 8px;
  border: 2px solid #2C1E09;
}

dialog[open] {
  animation: fade-in 0.7s ease-out;
}

dialog[open]::backdrop {
  animation: backdrop-fade-in 0.7s ease-out forwards;
}

/* Animation keyframes */

@keyframes fade-in {
  0% {
    opacity: 0;
    display: none;
  }

  100% {
    opacity: 1;
    display: flex;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    display: flex;
  }

  100% {
    opacity: 0;
    display: none;
  }
}

@keyframes backdrop-fade-in {
  0% {
    background-color: rgb(0 0 0 / 0%);
  }

  100% {
    background-color: rgb(0 0 0 / 25%);
  }
}