@keyframes undulate {
  0% {
    scale: 2 2;
  }
  50% {
    scale: 1 1;
  }
  100% {
    scale: 2 2;
  }
}

:root {
  --black: #222;
}

*,
::before,
::after {
  box-sizing: border-box;
  font-family: Belanosima, system-ui;
  margin: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
  background-color: var(--black);
}

.bg-img {
  width: 120%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 2s ease-out;
}

.container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1em;
  position: relative;
  isolation: isolate;
  transition: transform 2s ease-out;
}

.container.hyperjump::before,
.container.hyperjump::after {
  scale: 1 1;
  animation: undulate 1s infinite;
  animation-delay: 1s;
}

.container::before,
.container::after {
  content: "";
  position: absolute;
  background-color: white;
  width: 5px;
  height: 500vh;
  transition: scale 1s;
  scale: 1 0;
}

.container::after {
  height: 500vw;
  transform: rotate(90deg);
  scale: 0 1;
}

.para-input {
  resize: none;
  background-color: var(--black);
  padding: 1em;
  color: white;
  border: 1px solid white;
  aspect-ratio: 3 / 2;
  width: 30%;
  font-size: 1.2em;
  z-index: 10;
}

.para-input:focus {
  outline: none;
}

.sbmt-btn {
  cursor: pointer;
  border: 2px solid white;
  background-color: white;
  color: var(--black);
  width: 30%;
  height: 3em;
  font-size: 1.1em;
  display: grid;
  place-items: center;
  z-index: 10;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.sbmt-btn:hover {
  background-color: var(--black);
  color: white;
}

.result {
  position: fixed;
  top: 50%;
  left: 50%;
  opacity: 0;
  transition: transform 1s;
  background-color: #222;
  border: 2px solid white;
  color: white;
  padding: 1em;
  font-size: 1.2em;
  width: 30%;
  z-index: 1000;
}

.result.show-result {
  opacity: 1;
  transform: translate(-50%, -50%) !important;
}

.error-msg {
  transform: scale(0);
  color: red;
  width: 30%;
  text-align: center;
  border: 2px solid white;
  padding: 1em;
  z-index: 10;
  background-color: var(--black);
  color: white;
  border: 2px solid red;
  font-size: 1.1em;
  transition: transform 200ms;
}
