:root {
  --epiroc-yellow: #ffc72c;
  --epiroc-grey: #425563;
}

html,
body {
  font-family: "Rawline", "Noto Sans", "Noto Sans KR", "Noto Sans JP",
    "Noto Sans SC", sans-serif;
  line-height: 1.25;
  height: 100%;
}

body {
  position: relative;
}

.ghost-app {
  color: #001e32;
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms;
  will-change: opacity;
  display: none;
}

.my-epiroc .background-logo {
  background-image: url("logo_yellow.svg");
  background-repeat: none;
  background-position: center center;
  background-size: 200px 200px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 100px;
  z-index: -2;
}

@media screen and (max-width: 650px) {
  .background-logo {
    z-index: -2;
  }
  .my-epiroc.my-epiroc--logged-in .ghost-app {
    display: flex;
    flex-direction: column;
    background-color: #f5f4f2;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    position: fixed;
    z-index: -1;
    inset: 0;
    opacity: 1;
  }
}

.ghost-app__topbar {
  background-color: #425563;
  min-height: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.ghost-app__topbar-title {
  color: #ffffff;
  opacity: 0.3;
  font-size: 12px;
}
.ghost-app__main {
  padding: 16px 32px 0;
  flex: 1 1;
}

.ghost-app__main > * {
  animation: pulsing 1.2s ease-in-out infinite;
}
.ghost-app__welcome {
  padding: 26px 0 6px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.ghost-app__initials-placeholder {
  height: 132px;
}
.ghost-app__initials {
  position: relative;
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background-color: #ebe8e5;
  font-size: 28px;
  color: #bfc4c7;
}
.ghost-app__initials::after {
  content: "";
  height: 5px;
  width: 80px;
  border-radius: 50%;
  opacity: 0.2;
  background-color: #000000;
  -webkit-filter: blur(3px);
  filter: blur(3px);
  position: absolute;
  bottom: -15px;
  left: 10px;
}
.ghost-app__welcome-title,
.ghost-app__name-title {
  font-size: 20px;
  line-height: 32px;
  color: #ccd2d6;
}
.ghost-app__line-separator {
  position: relative;
  text-align: center;
  font-size: 12px;
  height: 20px;
  margin: 32px 0 16px;
  color: #ccd2d6;
}
.ghost-app__line-separator::before,
.ghost-app__line-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  height: 1px;
  background-color: #ccd2d6;
  width: 110px;
}
.ghost-app__line-separator::before {
  left: 0;
}
.ghost-app__line-separator::after {
  right: 0;
}
.ghost-app__card-carousel {
  display: flex;
  gap: 16px;
}
.ghost-app__card {
  height: 366px;
  min-width: calc(100vw - 32px - 32px);
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.12);
}
.ghost-app__bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1;
  height: 57px;
  background-color: #f5f4f2;
  box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.05);
}
.ghost-app__bottom-bar-main-button {
  position: absolute;
  height: 60px;
  width: 60px;
  border-radius: 30px;
  background-color: #425563;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-14px);
  transform: translateX(-50%) translateY(-14px);
}
.ghost-app__bottom-bar-main-button-bar {
  content: "";
  position: absolute;
  background-color: #ffc72c;
  width: 22px;
  height: 4px;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.ghost-app__bottom-bar-main-button-bar:first-child {
  margin-top: -8px;
}
.ghost-app__bottom-bar-main-button-bar:last-child {
  margin-top: 8px;
}

.my-epiroc__progress-container {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  z-index: -2;
}
.my-epiroc__progress {
  margin: 150px auto 0;
  overflow: hidden;
  height: 8px;
  border-radius: 4px;
  position: relative;
  z-index: -2;
  background-color: #001e32;
  width: 300px;
}

.my-epiroc__progress--pending {
  animation: pulsing 600ms ease-in-out;
}

.my-epiroc__progress-bar {
  position: absolute;
  height: 8px;
  background-color: #ffc72c;
  top: 0;
  transition: width 400ms linear;
  width: 100%;
}

.my-epiroc__progress--pending .my-epiroc__progress-bar {
  width: 0;
}

.my-epiroc__alert {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #b7312c;
  color: #fff;
  text-align: center;
  padding-bottom: 24px;
  transform: translateY(100%);
  transition: transform 400ms ease-out;
}

.my-epiroc__alert--show {
  transform: translateY(0);
}

.my-epiroc__alert a {
  color: #fff;
}

.my-epiroc__alert-close-btn {
  background-color: transparent;
  border: none;
  color: #fff;
  position: absolute;
  top: 16px;
  right: 16px;
}

@keyframes quick-fade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulsing {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}
