/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    /*align-items: center; /* Remove vertical centering */
    min-height: 100vh;
    background-color: #121212;
    color: #ffffff;
    /*padding-top: 20px;*/ /* Remove top padding */
    display: flex;
    flex-direction: column; /* Stack header on top of content */
}

/* Header Styles */
header {
    background-color: #000000; /* Black header */
    color: #ffffff;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 0px 0px rgba(255, 255, 255, 0.1); /* Subtle shadow */
}

.logo {
    max-height: 40px; /* Adjust logo size as needed */
    margin-right: 10px;
}

header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0; /* Remove margin */
}


.page {
    text-align: center;
    padding: 20px 20px 20px 20px;
    background-color: #121212;
    border-radius: 14px;
    box-shadow: 0 0 0px rgba(255, 255, 255, 0.1);
    max-width: 80%;
    width: 400px;
    margin: 0 auto; /* Add this line */
}

.page-title {
    text-align: left;
    margin-bottom: 10px;
}

h1 {
    font-weight: bold;
    margin-bottom: 20px;
}

#page1 h1 {
    text-align: center;
  }

p {
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Image Styles */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Button Styles */
button,
.upload-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: #F5EE36;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

button:hover,
.upload-button:hover {
    background-color: #F5EE36;
}

/* File Input Label Styles */
.upload-button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    background-color: #F5EE36;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

/* Hide the actual file input */
input[type="file"] {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  .loading-dots span {
    width: 12px;
    height: 12px;
    background-color: #F5EE36; /* Use your accent color */
    border-radius: 50%;
    margin: 0 5px;
    animation: pulse 1.5s infinite ease-in-out;
  }
  
  .loading-dots span:nth-child(2) {
    animation-delay: 0.5s;
  }
  
  .loading-dots span:nth-child(3) {
    animation-delay: 1s;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.8);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(0.8);
      opacity: 0.5;
    }
  }

  /* Styling for the AI Output <pre> block */
#ai-output {
  white-space: pre-wrap;   /* Preserves whitespace (like line breaks) but wraps long lines */
  word-wrap: break-word;   /* Helps break very long words if needed */
  text-align: left;        /* Aligns the text block to the left for readability */
  background-color: #2c2c2c; /* Slightly different dark shade for contrast (optional) */
  padding: 15px;           /* Add some padding inside the block */
  border-radius: 4px;      /* Match other border radiuses */
  margin-top: 15px;        /* Space above the block */
  margin-bottom: 20px;     /* Space below the block */
  font-family: inherit;    /* Use the main 'Roboto' font */
  /* Alternatively, use a monospace font if you prefer for formatted text: */
  /* font-family: 'Courier New', Courier, monospace; */
  overflow-x: auto;        /* Add horizontal scrollbar ONLY if needed (unlikely with pre-wrap) */
}

/* Footer Styles */
footer {
  text-align: center; /* Center the text */
  padding: 20px 0;    /* Add padding above/below the text */
  margin-top: auto;   /* Push the footer to the bottom */
  width: 100%;        /* Ensure it takes full width */
  color: #aaaaaa;     /* Use a subtle light gray color */
  font-size: 0.9em;   /* Make the font slightly smaller */
}
