/*
 * MODALS
 */

.modal-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
  opacity: 0;
  transition: 0.5s display;
}

.modal {
  display: inline-block;
  position: relative;
  background: white;
  width: auto;
  height: 1;
  top: 50vh;
  transform: translateY(-50%);
  text-align: initial;
}

modal-active {
    opacity: 1s;
}

/*
 * MODALS
 */

.modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    opacity: 0;
    transition: 0.5s display;
}

.modal {
    display: inline-block;
    position: relative;
    background: white;
    width: auto;
    height: 1;
    top: 50vh;
    transform: translateY(-50%);
    text-align: initial;
}

.modal-active {
    opacity: 1;
}

Fix typos and clean css
Fix typos and clean css
