/*
    Jeremy Brake Photo Beta AI Image Search main.css
*/

@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff2)
      format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIRegular.woff) format("woff");
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: "ColfaxAI";
  src: url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff2) format("woff2"),
    url(https://cdn.openai.com/API/fonts/ColfaxAIBold.woff) format("woff");
  font-weight: bold;
  font-style: normal;
}
body

.spinner-hidden {
  display: none;
}

.spinner-visible {
  display: block;
  animation: fade-in 1.2s forwards;
  animation-iteration-count: 1;
}

/* Results styles 
.results-hidden {
  display: none;
}

.results-visible {
  display: block;
  animation: fade-in 0.5s forwards;
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}
  */

/* Generating Response keyframes */
@keyframes fade-in {
  0% {
    opacity: 0;
    transform: translateY(20px); /* start Y 20 pixels below */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Return to original position */
  }
}

input {
  font-size: 16px;
  line-height: 24px;
  color: #353740;
  font-family: "ColfaxAI", Helvetica, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  font-family: Arial, sans-serif;
}
/* Title of application */
h3 {
  font-size: 32px;
  line-height: 40px;
  font-weight: bold;
  color: #202123;
  margin: 16px 0 8px;
}
/* Opening paragraph introduction to application. */
h4 {
  margin: 8px 25% 16px 25%;
  text-align: center;
}
/* Image titles. */
h5 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #202123;
  text-align: left;
}
/* Aligns response content to the left 
.result {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* left-aligns items
  padding-top: 20px;
}
  */

/* Wrap image and text together (comment re div containers see Perplexity response Aug 19 */
.result {
  opacity: 0; /* Initially hidden */
  transform: translateY(20px); /* Slightly moved down */
  transition: opacity 1.2s ease-out, transform 0.8s ease-out; /* Smooth transition */
  width: 100%;          /* Responsive, no overflow */
  max-width: 650px;     /* Set to your desired image width */
  margin: 0 auto;
}

.result.visible {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Original position */
  width: 100%;          /* Responsive, no overflow */
  max-width: 650px;     /* Set to your desired image width */
  margin: 0 auto;
}

/* Responsive image */
.image2 {
  width: 100%;
  max-width: 100%;          /* Image never exceeds parent */
  height: auto;
  display: block;
}

/* Text should also inherit same width as image */
.result-text {
  text-align: left;
  margin-top: 10px;
}
.image {
  width: 350px;
  height: auto;
}
.icon {
  width: 100px;
}

form {
  display: flex;
  flex-direction: column;
  width: 50%;
}

textarea {
  width: 100%;
  height: 110px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #f8f8f8;
  resize: none;
}

textarea:focus, input:focus {
    outline: none !important;
    box-shadow: none !important;
}

input[type="text"] {
  padding: 12px 16px;
  border: 1px solid #10a37f;
  border-radius: 4px;
  margin-bottom: 24px;
}
::placeholder {
  color: #8e8ea0;
  opacity: 1;
}
input[type="submit"] {
  margin-top: 18px;
  padding: 12px 0;
  color: #000000;
  background-color: #ffa500;
  border: none;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
}
