.transitions {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 998;
  pointer-events: none;
}

.loaderAni {
  z-index: 999;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* transition: 0.5s; */
  pointer-events: none;
}

.loaderAni .txt {
  margin-top: 20px;
  color: #fff;
}

.loader {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 18%;
  height: 11%;
  margin-bottom: 0%;
  border: none;
  position: relative;
  mask: url("../img/share/loadingLogo.svg");
  mask-position: center center;
  mask-repeat: no-repeat;
  mask-size: auto 100%;
  -webkit-mask: url("../img/share/loadingLogo.svg");
  -webkit-mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: auto 100%;
  background-color: rgba(228, 228, 228, 0.74);
  /* animation: loader 4s infinite ease; */
}

.loader-inner {
  display: inline-block;
  width: 100%;
  height: 100%;
  background-color: #b5081f;
  transform-origin: center bottom;
  animation: loader-inner 1s forwards infinite ease-in;
}

.loaderAni.close {
  animation: close 1s forwards ease-in;
}

.transitions.close {
  animation: close 1s forwards ease-in;
}

@keyframes close {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* @keyframes loader {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(180deg);
    }
    50% {
        transform: rotate(180deg);
    }
    75% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(360deg);
    }
} */

@keyframes loader {
  0% {
    transform: scale(0);
  }
  20% {
    transform: scale(1);
  }
  80% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

/* @keyframes loader-inner {
    0% {
        height: 0%;
    }
    25% {
        height: 0%;
    }
    50% {
        height: 100%;
    }
    75% {
        height: 100%;
    }
    100% {
        height: 0%;
    }
} */

@keyframes loader-inner {
  0% {
    opacity: 0;
    height: 0%;
  }
  20% {
    opacity: 1;
    height: 0%;
  }
  70% {
    opacity: 1;
    height: 100%;
  }
  100% {
    opacity: 0;
    height: 100%;
  }
}

/* .transitions-in {
    animation: transitions-in 0.5s forwards;
    -webkit-animation: transitions-in 0.5s forwards;
}

@keyframes transitions-in {
    0% {
        opacity: 1;
        height: 100vh;
    }
    to {
        opacity: 1;
        height: 0%;
    }
}

@-webkit-keyframes transitions-in {
    0% {
        opacity: 1;
        height: 100vh;
    }
    to {
        opacity: 1;
        height: 0%;
    }
}

.transitions-out {
    animation: transitions-out 0.4s forwards;
    -webkit-animation: transitions-out 0.4s forwards;
}

@keyframes transitions-out {
    0% {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 100vh;
    }
}

@-webkit-keyframes transitions-out {
    0% {
        opacity: 0;
        height: 0;
    }
    to {
        opacity: 1;
        height: 100vh;
    }
} */

/* 手機板 */

@media screen and (max-width: 768px) {
  .loader {
    width: 38%;
    margin-bottom: 30%;
  }
}
