@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap");
* {
  font-family: "Roboto", sans-serif;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: -webkit-fill-available;
}

body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-image: url(assets/bg-image-min.jpg);
  -webkit-font-smoothing: antialiased;
  /* overflow-y: auto;
  overflow-x: hidden; */
}

.logo-image {
  width: 240px;
  max-width: 90%;
}

.flex-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.test {
  width: 90vw;
  min-height: -webkit-fill-available;
  display: flex;
  margin: auto;
  justify-content: center;
}
.main {
  width: 100%;
  margin: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#container {
  margin: auto 0px;
  width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-width: 500px;
  padding: 20px;
  background-color: rgba(73, 73, 73, 0.1);
  box-shadow: 2px 2px 2px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 20px rgba(0, 0, 0, 0.5), -1px -1px 2px 0 rgba(255, 255, 255, 0.1) inset;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  align-self: center;
  /* overflow: auto; */
  /* max-height: 80vh; */
}

h1 {
  margin: 0;
  font-size: 40px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 2px 2px rgba(0, 0, 0, 0.2);
}
/* loading msg */
.msg {
  margin: 0;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  padding-bottom: 24px;
}

.userPrompt {
  margin: 0;
  padding: 20px 20px 0px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  /* background-color: rgba(0, 0, 0, 0.1); */
  /* border-radius: 10px; */
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1.5px 1.5px rgba(0, 0, 0, 0.2);
}

svg path,
svg rect {
  fill: rgba(255, 255, 255, 0.8);
}

/* \text area */
textarea {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  padding: 12px;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.1);
  border: 0;
  text-align: left;
  transition-duration: 0.2s;
  width: auto;
  resize: none;
}
textarea:hover {
  color: rgba(255, 255, 255, 0.5);
  background-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.3) inset;
}

textarea:focus {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.2);
  outline: none;
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.7) inset;
}

textarea::-webkit-input-placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

textarea::-moz-placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

textarea:-ms-input-placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

textarea::-ms-input-placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

textarea::placeholder {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
}

/* btn */
button {
  width: 100%;
  padding: 24px 0px;
  font-size: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.73);
  cursor: pointer;
  text-align: center;
  border: none;
  background-size: 300% 100%;
  background-image: linear-gradient(
    to right,
    #6253e1,
    #852d91,
    #a3a1ff,
    #f24645
  );
  box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  moz-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

.refresh {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  padding-bottom: 20px;
}

button:hover {
  background-position: 100% 0;
  moz-transition: all 0.4s ease-in-out;
  transition: all 0.4s ease-in-out;
}

button:focus {
  outline: none;
}

.outputImg {
  width: 100%;
}

footer {
  color: white;
  text-align: center;
  padding: 4px 0px;
  z-index: 1;
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  -moz-column-gap: 12px;
  column-gap: 12px;
  flex-wrap: wrap;
}

.footer-image {
  width: 20px;
}
footer p,
footer span {
  margin: 4px 0px;
  font-size: 12px;
}
/* ============================================ */
@media only screen and (max-width: 612px) {
  .test {
    width: 100vw;
  }
  .flex-column {
    gap: 26px;
  }
  .logo-image {
    width: 180px;
  }
  h1 {
    font-size: 34px;
  }
  #container {
    width: auto;
  }
  .msg {
    font-size: 16px;
  }
  .userPrompt {
    font-size: 20px;
    line-height: 1.5;
  }
  button {
    padding: 16px 0px;
  }
}
/* ============================================ */
/* Display Control */
.hide {
  display: none;
}

.show {
  display: block;
}
/* ============================================ */
/* animation bg */
.light {
  position: absolute;
  width: 0px;
  opacity: 0.75;
  background-color: white;
  box-shadow: #fff 0px 0px 20px 2px;
  opacity: 0;
  top: 100vh;
  bottom: 0px;
  left: 0px;
  right: 0px;
  margin: auto;
  z-index: -1;
}

.x1 {
  -webkit-animation: floatUp 4s infinite linear;
  animation: floatUp 4s infinite linear;
  transform: scale(1);
}

.x2 {
  -webkit-animation: floatUp 7s infinite linear;
  animation: floatUp 7s infinite linear;
  transform: scale(1.6);
  left: 15%;
}

.x3 {
  -webkit-animation: floatUp 2.5s infinite linear;
  animation: floatUp 2.5s infinite linear;
  transform: scale(0.5);
  left: -15%;
}

.x4 {
  -webkit-animation: floatUp 4.5s infinite linear;
  animation: floatUp 4.5s infinite linear;
  transform: scale(1.2);
  left: -34%;
}

.x5 {
  -webkit-animation: floatUp 8s infinite linear;
  animation: floatUp 8s infinite linear;
  transform: scale(2.2);
  left: -57%;
}

.x6 {
  -webkit-animation: floatUp 3s infinite linear;
  animation: floatUp 3s infinite linear;
  transform: scale(0.8);
  left: -81%;
}

.x7 {
  -webkit-animation: floatUp 5.3s infinite linear;
  animation: floatUp 5.3s infinite linear;
  transform: scale(3.2);
  left: 37%;
}

.x8 {
  -webkit-animation: floatUp 4.7s infinite linear;
  animation: floatUp 4.7s infinite linear;
  transform: scale(1.7);
  left: 62%;
}

.x9 {
  -webkit-animation: floatUp 4.1s infinite linear;
  animation: floatUp 4.1s infinite linear;
  transform: scale(0.9);
  left: 85%;
}

@-webkit-keyframes floatUp {
  0% {
    top: 100vh;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    top: 0vh;
    opacity: 0.8;
  }
  75% {
    opacity: 1;
  }
  100% {
    top: -100vh;
    opacity: 0;
  }
}
@keyframes floatUp {
  0% {
    top: 100vh;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    top: 0vh;
    opacity: 0.8;
  }
  75% {
    opacity: 1;
  }
  100% {
    top: -100vh;
    opacity: 0;
  }
}
