.message {
  max-width: 80%;
  padding: 12px 16px;
  margin: 8px 0;
  border-radius: 20px;
  font-size: 1rem;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.message.bot code {
  background: darkgray;
  color: black;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.message.bot pre {
  background: white;
  color: black;
  padding: 12px;
  border-radius: 30px;
  overflow-x: auto;
  margin: 8px 0;
}

.message.bot pre code {
  background: none;
  padding: 0;
}

.message.bot ul, .message.bot ol {
  margin: 8px 0;
  padding-left: 24px;
}

.message.bot li {
  margin: 4px 0;
}

.message.bot p {
  margin: 8px 0;
}

.message.bot a {
  color: #549be2;
  text-decoration: underline;
}

.message.bot strong {
  font-weight: 600;
}

.message.bot em {
  font-style: italic;
}

.message.bot blockquote {
  border-left: 3px solid #ccc;
  padding-left: 12px;
  margin: 8px 0;
  color: #666;
}

.user {
  background: white;
  color: black;
  margin-left: auto;
  align-self: flex-end;
  text-align: right;
}

.bot {
  background: transparent;
  color: white;
  margin-right: auto;
  align-self: flex-end; 
  text-align: left;
}

.chip-label {
  display: inline-block;
  background: #2a2a2a;
  color: white;
  padding: 4px 12px;
  margin-bottom: 10px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.chip-name {
  color: white;
}

.chip-remove {
  background: none;
  border: none;
  margin-bottom: 10px;
  color: white;
  cursor: pointer;
}

.message-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  background: black;
  border-radius: 50px; 
  padding: 10px 10px;
}

.typewriter {
  display: inline;
  font-family: "montserrat";
  font-size: 1.05rem;
  margin-inline: auto;
  white-space: pre-wrap;
}

.typewriter.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  background: rgba(255, 255, 255, 0.85);
  margin-left: 6px;
  vertical-align: text-bottom;
  animation: blink 0.8s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.input-area {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.sidebar {
  position: fixed;
  width: 260px;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #2a2a2a;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar-header {
  padding: 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-title {
  color: white;
}

.sidebar.hidden ~ .main-content {
  margin-left: 0;
}

.toggle-btn {
  cursor: pointer;
  font-size: 18px;
  background: none;
  border: none;
  color: white;
}

.menu {
  padding: 8px;
}

.menu-item {
  padding: 10px 12px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item svg {
  width: 16px;
  height: 16px;
}

.menu-item:hover {
  background: #262626;
}

.menu-item.active {
  background: #2f2f2f;
}

.menu-title {
  font-size: 12px;
  color: white;
  padding: 12px 12px 6px;
}

.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px;
}

.chat-item {
  padding: 10px 12px;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}

.chat-item:hover {
  background: #262626;
}

.chat-item.active {
  background: #2f2f2f;
}

.sidebar-footer {
  padding: 12px;
  color: white;
  font-size: 15px;
  border-top: 1px solid #2a2a2a;
}

.sidebar-footer-plan {
  font-size: 10px;
}

.upgrade-btn {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: white;
  font-family: "montserrat";
  cursor: pointer;
  transition: 0.2s;
}

.upgrade-btn:hover {
  border-color: #3b82f6;
}

.signin-btn {
  width: 100%;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  background: transparent;
  color: white;
  font-family: "montserrat";
  cursor: pointer;
  transition: 0.2s;
}

.signin-btn:hover {
  border-color: #3b82f6;
}

.sidebar-button {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.main-content {
  flex: 1;
  min-width: 0;
  height: 94dvh;
  margin-left: 260px;
  display: flex;
  justify-content: center;
  padding: 20px;
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
}

.ai-disclaimer {
  font-size: 10px; 
  color: gray; 
  text-align: center; 
  margin-right: 0;
}

.open-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  background: black;
  border: 1px solid #2a2a2a;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: none;
  z-index: 3;
}

.sidebar.hidden~.open-btn {
  display: block;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 260px;
    transform: translateX(-100%);
  }

  .sidebar:not(.hidden) {
    transform: translateX(0);
  }

  .open-btn {
    display: block;
  }

  .main-content {
    width: 100%;
  }
}

#popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;

}

#popup {
  background: #212121;
  border: 5px solid gray;
  display: flex;
  padding: 20px;
  border-radius: 8px;
}

#popup-overlay.active {
  display: flex;
}

.customisation {
  display: none;
  pointer-events: none;
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: min(700px, 85%);
  max-width: 95%;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  background: transparent;
}

.customisation.active {
  display: flex;
  pointer-events: auto;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  pointer-events: auto;
}

.customisation .input-group {
  margin: 0;
  width: 100%;
}

.customisation .input {
  border-radius: 28px;
  padding: 12px 18px;
  background-color: #0f0f0f;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.customisation .user-label {
  left: 20px;
  color: #cfcfcf;
  transform: translateY(0.6rem);
}

@media (max-width: 768px) {
  .customisation {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    top: 70px;
  }
}

.input-group {
  position: relative;
  max-height: 80px;
  margin-bottom: 10px;
}

.input {
  border: solid 1.5px #9e9e9e;
  border-radius: 1rem;
  top: 0;
  background: none;
  padding: 1rem;
  font-size: 1rem;
  color: white;
  background-color: #212121;
  transition: border 150ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  box-sizing: border-box;
}

input {
  font-family: "Montserrat", sans-serif;
}

input::placeholder {
  font-family: inherit;
  color: lightslategray;
}

.user-label {
  position: absolute;
  left: 15px;
  color: #e8e8e8;
  pointer-events: none;
  transform: translateY(1rem);
  transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.input:focus,
input:valid {
  outline: none;
  border: 1.5px solid #1a73e8;
}

.input:focus~label,
input:valid~label {
  transform: translateY(-50%) scale(0.8);
  background-color: #212121;
  padding: 0 .2em;
  color: #2196f3;
}

.settingsPanel {
  display: flex;
  flex-direction: column;
  order: -1;
  width: 200px;
  justify-content: center;
  border-radius: 10px;
  transition: 0.1s;
  padding: 10px;
  overflow: hidden;
  margin-right: 30px;
}

.value {
  font-size: 15px;
  font-family: montserrat;
  color: white;
  background-color: transparent;
  border: none;
  padding: 10px;
  display: flex;
  position: relative;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
  transition: 1s;
  box-sizing: border-box;
}

.value:not(:active):hover,
.value:focus {
  display: flex;
  box-sizing: border-box;
  border: 2px solid #1a1f24;
  color: white;
}

.value:focus,
.value:active {
  background-color: #1a1f24;
  outline: none;
  margin-left: 17px;
}

.value::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -15px;
  width: 5px;
  height: 80%;
  background-color: #2f81f7;
  border-radius: 5px;
  opacity: 0;
  transition: 1s;
}

.value:focus::before,
.value:active::before {
  opacity: 1;
}

.value svg {
  width: 20px;
}

.value.selected {
  background-color: #1a1f24;
  margin-left: 17px;
  border: 2px solid #1a1f24;
  color: #637185;
}

.value.selected::before {
  opacity: 1;
}

.input:hover> :not(.value:hover) {
  transform: scale(0.95, 0.95);
}

.loader {
  --color-one: #ffbf48;
  --color-two: #be4a1d;
  --color-three: #ffbf4780;
  --color-four: #bf4a1d80;
  --color-five: #ffbf4740;
  --time-animation: 2s;
  --size: 1;
  position: relative;
  border-radius: 50%;
  transform: scale(var(--size));
  box-shadow:
    0 0 25px 0 var(--color-three),
    0 20px 50px 0 var(--color-four);
  animation: colorize calc(var(--time-animation) * 3) ease-in-out infinite;
}

.loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border-top: solid 1px var(--color-one);
  border-bottom: solid 1px var(--color-two);
  background: linear-gradient(180deg, var(--color-five), var(--color-four));
  box-shadow:
    inset 0 10px 10px 0 var(--color-three),
    inset 0 -10px 10px 0 var(--color-four);
}

.loader .box {
  width: 100px;
  height: 100px;
  background: linear-gradient(180deg,
      var(--color-one) 30%,
      var(--color-two) 70%);
  mask: url(#clipping);
  -webkit-mask: url(#clipping);
}

.loader svg {
  position: absolute;
}

.loader svg #clipping {
  filter: contrast(15);
  animation: roundness calc(var(--time-animation) / 2) linear infinite;
}

.loader svg #clipping polygon {
  filter: blur(7px);
}

.loader svg #clipping polygon:nth-child(1) {
  transform-origin: 75% 25%;
  transform: rotate(90deg);
}

.loader svg #clipping polygon:nth-child(2) {
  transform-origin: 50% 50%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(3) {
  transform-origin: 50% 60%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -3);
}

.loader svg #clipping polygon:nth-child(4) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
}

.loader svg #clipping polygon:nth-child(5) {
  transform-origin: 40% 40%;
  animation: rotation var(--time-animation) linear infinite reverse;
  animation-delay: calc(var(--time-animation) / -2);
}

.loader svg #clipping polygon:nth-child(6) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
}

.loader svg #clipping polygon:nth-child(7) {
  transform-origin: 60% 40%;
  animation: rotation var(--time-animation) linear infinite;
  animation-delay: calc(var(--time-animation) / -1.5);
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes roundness {
  0% {
    filter: contrast(15);
  }

  20% {
    filter: contrast(3);
  }

  40% {
    filter: contrast(3);
  }

  60% {
    filter: contrast(15);
  }

  100% {
    filter: contrast(15);
  }
}

@keyframes colorize {
  0% {
    filter: hue-rotate(0deg);
  }

  20% {
    filter: hue-rotate(-30deg);
  }

  40% {
    filter: hue-rotate(-60deg);
  }

  60% {
    filter: hue-rotate(-90deg);
  }

  80% {
    filter: hue-rotate(-45deg);
  }

  100% {
    filter: hue-rotate(0deg);
  }
}

@media (max-width: 600px) {
  .message {
    font-size: 0.9rem;
    max-width: 90%;
  }

  .input-area input,
  .input-area button {
    font-size: 0.9rem;
    padding: 10px;
  }
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  background: black;
  font-family: montserrat;
}

.logo {
  position: fixed;
  padding: 0px 50px;
  font-size: 20px;
  font-weight: bold;
  color: white;
  background: transparent;
  border: none;
  border-radius: 50px;
  overflow: hidden;
  top: 30px;
  left: 5px;
  z-index: 3;
}

.logotext {
  left: 105px;
  top: 10px;
  font-size: 40px;
}

.chat-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  text-align: left;
  height: 100%;
  width: 100%;
  max-width: 700px;
  box-sizing: border-box;
  background: black;
}

#messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#messages::-webkit-scrollbar {
  display: none;
}

.input-bar {
  position: relative;
  width: 100%;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
}

.input-bar textarea {
  flex: 1 1 600px;
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid #ccc;
  background: #212121;
  resize: none;
  overflow-y: auto;
  font-family: "Montserrat", sans-serif;
  color: white;
  line-height: 1.4;
  box-sizing: border-box;
}

.input-bar textarea:focus {
  outline: none;
  border-color: white;
  box-shadow: 0 0 0 2px rgba(0, 110, 255, 0.15);
}

#input-bar-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.input-bar button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  padding: 0;
}

.input-bar button:hover {
  background: gray;
}

.input-bar button svg {
  width: 18px;
  height: 18px;
}

.heartbeat {
  -webkit-animation: heartbeat 1.5s ease-in-out infinite both;
  animation: heartbeat 1.5s ease-in-out infinite both;
}

@-webkit-keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes heartbeat {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transform-origin: center center;
    transform-origin: center center;
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  10% {
    -webkit-transform: scale(0.91);
    transform: scale(0.91);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  17% {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  33% {
    -webkit-transform: scale(0.87);
    transform: scale(0.87);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  45% {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

.jello-horizontal {
  -webkit-animation: jello-horizontal 0.9s both;
  animation: jello-horizontal 0.9s both;
}

@-webkit-keyframes jello-horizontal {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

@keyframes jello-horizontal {
  0% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }

  30% {
    -webkit-transform: scale3d(1.25, 0.75, 1);
    transform: scale3d(1.25, 0.75, 1);
  }

  40% {
    -webkit-transform: scale3d(0.75, 1.25, 1);
    transform: scale3d(0.75, 1.25, 1);
  }

  50% {
    -webkit-transform: scale3d(1.15, 0.85, 1);
    transform: scale3d(1.15, 0.85, 1);
  }

  65% {
    -webkit-transform: scale3d(0.95, 1.05, 1);
    transform: scale3d(0.95, 1.05, 1);
  }

  75% {
    -webkit-transform: scale3d(1.05, 0.95, 1);
    transform: scale3d(1.05, 0.95, 1);
  }

  100% {
    -webkit-transform: scale3d(1, 1, 1);
    transform: scale3d(1, 1, 1);
  }
}

.focus-in-expand {
  -webkit-animation: focus-in-expand 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  animation: focus-in-expand 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes focus-in-expand {
  0% {
    letter-spacing: -0.5em;
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-filter: blur(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

@keyframes focus-in-expand {
  0% {
    letter-spacing: -0.5em;
    -webkit-filter: blur(12px);
    filter: blur(12px);
    opacity: 0;
  }

  100% {
    -webkit-filter: blur(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.tracking-in-expand-fwd-bottom {
  -webkit-animation: tracking-in-expand-fwd-bottom 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
  animation: tracking-in-expand-fwd-bottom 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

@-webkit-keyframes tracking-in-expand-fwd-bottom {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px) translateY(500px);
    transform: translateZ(-700px) translateY(500px);
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

@keyframes tracking-in-expand-fwd-bottom {
  0% {
    letter-spacing: -0.5em;
    -webkit-transform: translateZ(-700px) translateY(500px);
    transform: translateZ(-700px) translateY(500px);
    opacity: 0;
  }

  40% {
    opacity: 0.6;
  }

  100% {
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    opacity: 1;
  }
}

.bounce-out-top {
  -webkit-animation: bounce-out-top 1.5s both;
  animation: bounce-out-top 1.5s both;
}

@-webkit-keyframes bounce-out-top {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  5% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  15% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  25% {
    -webkit-transform: translateY(-38px);
    transform: translateY(-38px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  52% {
    -webkit-transform: translateY(-75px);
    transform: translateY(-75px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  70% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  85% {
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-800px);
    transform: translateY(-800px);
    opacity: 0;
  }
}

@keyframes bounce-out-top {
  0% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  5% {
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  15% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  25% {
    -webkit-transform: translateY(-38px);
    transform: translateY(-38px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  52% {
    -webkit-transform: translateY(-75px);
    transform: translateY(-75px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  70% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  85% {
    opacity: 1;
  }

  100% {
    -webkit-transform: translateY(-800px);
    transform: translateY(-800px);
    opacity: 0;
  }
}

.swirl-in-fwd {
  -webkit-animation: swirl-in-fwd 0.6s ease-out both;
  animation: swirl-in-fwd 0.6s ease-out both;
}

@-webkit-keyframes swirl-in-fwd {
  0% {
    -webkit-transform: rotate(-540deg) scale(0);
    transform: rotate(-540deg) scale(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes swirl-in-fwd {
  0% {
    -webkit-transform: rotate(-540deg) scale(0);
    transform: rotate(-540deg) scale(0);
    opacity: 0;
  }

  100% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

.bounce-in-top {
  -webkit-animation: bounce-in-top 1.1s both;
  animation: bounce-in-top 1.1s both;
}

@-webkit-keyframes bounce-in-top {
  0% {
    -webkit-transform: translateY(-500px);
    transform: translateY(-500px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
  }

  55% {
    -webkit-transform: translateY(-65px);
    transform: translateY(-65px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  72% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  81% {
    -webkit-transform: translateY(-28px);
    transform: translateY(-28px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  90% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  95% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

@keyframes bounce-in-top {
  0% {
    -webkit-transform: translateY(-500px);
    transform: translateY(-500px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  38% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
    opacity: 1;
  }

  55% {
    -webkit-transform: translateY(-65px);
    transform: translateY(-65px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  72% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  81% {
    -webkit-transform: translateY(-28px);
    transform: translateY(-28px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  90% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }

  95% {
    -webkit-transform: translateY(-8px);
    transform: translateY(-8px);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    -webkit-animation-timing-function: ease-out;
    animation-timing-function: ease-out;
  }
}

.label {
  display: block;
  margin-bottom: .3rem;
  font-size: .9rem;
  font-weight: bold;
  color: white;
  transition: color .3s cubic-bezier(.25,.01,.25,1) 0s;
}

.input:hover, .input:focus, .input-group:hover .input {
  outline: none;
  border-color: #05060f;
}

.input-group:hover .label, .input:focus {
  color: white;
}