.modal{
  position: fixed;
    inset:0;
    z-index:9999; /* MUITO importante */
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,.7);

  opacity: 0;
  visibility: hidden;

  transition: opacity .4s ease,
              visibility .4s ease;
}

.modal.show{
  opacity: 1;
  visibility: visible;
}

.modal-content{
  background: #1f1f1f;
  color: #fff;

  width: 300px;
  padding: 25px;

  border-radius: 12px;
  border: 1px solid #333;

  text-align: center;

  transform: scale(.9);
  transition: transform .4s ease;
}

.modal.show .modal-content{
  transform: scale(1);
}

.modal-content h3{
  margin-top: 0;
  color: #ff4d4d;
}