html,
body {
  margin: 0;
  padding: 0;
}

.app-loading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
}
.app-loading p {
  display: block;
  font-size: 1.17em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: normal;
}
.light-container {
  position: relative;
  width: 200px;
  height: 200px;
}

#jhipster-error {
  display: none;
  /* stay hidden until proven error */
  min-height: 100vh;
  font-family: 'Barlow', sans-serif;
  flex-direction: column;
  justify-content: space-between;
}

#app-loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 9999;
}

.light-image {
  width: 100%;
  height: 100%;
  animation: light-flash 2s infinite;
  object-fit: contain;
}

@keyframes light-flash {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

.lightning {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: lightning-flash 1s infinite;
}

@keyframes lightning-flash {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Header */
#jhipster-error header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white;
  box-shadow: 0px 7px 30px 0px #5a727b1c;
  padding: 10px 0px 10px 60px;
  display: flex;
  align-items: center;
  @media (max-width: 600px) {
    padding: 10px;
  }
}

#jhipster-error header img:first-child {
  height: 40px;
  margin-right: 12px;
  @media (max-width: 600px) {
    margin-right: 0px;
  }
}

#jhipster-error header img:last-child {
  height: 40px;
}

/* Main */
#jhipster-error main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

#jhipster-error main img {
  max-width: 400px;
  width: 100%;
  margin-bottom: 40px;
}

#jhipster-error h1 {
  font-weight: 900;
  font-size: 45px;
  color: #00a5fb;
  margin-bottom: 20px;

  @media (max-width: 600px) {
    font-size: 28px;
  }
}

#jhipster-error p {
  font-weight: 400;
  font-size: 20px;
  color: #333;
  max-width: 60%;
  margin: 0 auto 16px;
  @media (max-width: 900px) {
    max-width: 90%;
  }
  @media (max-width: 600px) {
    font-size: 16px;
    max-width: 100%;
  }
}

#jhipster-error p:last-of-type {
  margin-bottom: 30px;
}

#jhipster-error button {
  padding: 12px 24px;
  background-color: #00a5fb;
  color: white;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

/* Footer styles for error page */
#jhipster-error footer {
  padding: 16px 40px;
  background-color: white;
  box-shadow: 0px 7px 30px 0px #5a727b1c;
  color: #000000;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

#jhipster-error footer a {
  color: #000000;
  text-decoration: none;
}

@media (max-width: 600px) {
  #jhipster-error footer {
    padding: 10px;
    flex-direction: column;
    gap: 10px;
  }
}
