

/* @import the global styles - Parcel will handle bundling this */
@import url('./global.css');




/* Canvas Container: Parent for the combined animation content */
.canvas-container {
  height: 600px;
  width: 100%;
  overflow: hidden;
  background: var(--color-background-dark-3d); /* Dark blue background for the 3D scene */
  margin-top: 20px;
  box-shadow: var(--box-shadow-medium);
  position: relative; /* Essential for positioning children absolutely */
  /* Remove flex properties from here, they are now on .animation-content-wrapper */
}

/* New wrapper for NOx animation and search component */
.animation-content-wrapper {
  position: absolute; /* Position within canvas-container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Take full height of canvas-container */
  display: flex; /* Flexbox for horizontal arrangement */
  justify-content: space-between; /* Space out children: canvas left, search right */
  align-items: center; /* Vertically center the items */
  padding: 0 30px; /* Overall padding inside the animation area */
  gap: 20px; /* Space between the canvas and the search component */
}

canvas {
  flex-grow: 1; /* Allow canvas to take available space */
  max-width: 65%; /* Set a max-width for the canvas to make space for search */
  height: 100% !important; /* Ensure canvas fills available height */
  display: block;
}

/* START: Google Search Animation Component Styles */
/* Wrapper for the search component, now positioned relative to animation-content-wrapper */
.search-animation-wrapper {
  position: relative; /* No longer absolute, controlled by flexbox */
  bottom: auto; /* Reset from previous absolute positioning */
  right: auto; /* Reset from previous absolute positioning */
  width: 35%; /* Allocate a percentage of width for the search component */
  max-width: 450px; /* Maintain max-width for smaller appearance */
  padding: 0;
  display: flex;
  justify-content: center; /* Center content within its allocated width */
  align-items: center; /* Vertically center */
  flex-shrink: 0; /* Prevent it from shrinking */
}

.search-animation-container {
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: var(--box-shadow-light);
  padding: 15px; /* Smaller padding */
  width: 100%; /* Take full width of its max-width container */
  text-align: center;
  opacity: 0; /* Hidden initially for GSAP fade-in */
  transform: translateY(20px); /* Start slightly below */
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 15px; /* Slightly smaller margin */
  justify-content: center; /* Center align items in the row */
  align-items: center;
  flex-direction: row; /* Ensure elements are in one row by default */
}

.search-input {
  flex-grow: 1;
  padding: 8px 12px; /* Smaller padding */
  border: 1px solid #ccc;
  border-radius: 20px; /* Slightly less rounded */
  font-size: 0.9em; /* Smaller font size */
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: var(--color-primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.2);
}

.search-button {
  background-color: var(--color-primary-blue);
  color: var(--color-white);
  padding: 8px 18px; /* Smaller padding */
  border: none;
  border-radius: 20px; /* Slightly less rounded */
  font-size: 0.9em; /* Smaller font size */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-button:hover {
  background-color: var(--color-accent-green);
  transform: translateY(-2px);
}

.search-results {
  text-align: left;
  margin-top: 0; /* No initial margin */
  opacity: 0; /* Hidden initially */
  height: 0; /* Initially collapse height */
  overflow: hidden; /* Hide overflow content */
  transform: translateY(20px); /* Start slightly below */
}

.search-results h3 {
  color: var(--color-dark-navy-outline);
  font-family: var(--font-heading);
  font-size: 1.1em; /* Even smaller font size */
  margin-bottom: 5px; /* Smaller margin */
}

.search-results p {
  color: var(--color-text-main);
  line-height: 1.4; /* Tighter line height */
  font-family: var(--font-body);
  font-size: 0.8em; /* Smaller paragraph font size */
}

.loading-indicator {
  margin-top: 8px; /* Smaller margin */
  font-size: 0.8em; /* Smaller font */
  color: #777;
  opacity: 0;
}
/* END: Google Search Animation Component Styles */







@media (max-width: 768px) {
 

  /* Adjust canvas container for mobile */
  .canvas-container {
    height: 600px; /* Adjust total height for mobile */
    margin-top: 10px;
    padding-bottom: 15px; /* Smaller bottom padding */
  }

  /* On mobile, stack content vertically again */
  .animation-content-wrapper {
    flex-direction: column; /* Stack vertically on smaller screens */
    padding: 15px; /* Adjust padding for mobile */
    gap: 15px; /* Space between stacked items */
  }

  canvas {
    max-width: 100%; /* Allow canvas to take full width when stacked */
    height: 300px !important; /* Smaller canvas height on mobile when stacked */
  }

  /* Search animation adjustments for mobile */
  .search-animation-wrapper {
    width: 100%; /* Take full width when stacked */
    max-width: none; /* No max-width when stacked */
    justify-content: center; /* Center horizontally when stacked */
  }
  .search-animation-container {
    padding: 10px; /* Even smaller padding on mobile */
  }
  .search-bar {
    flex-direction: column; /* Stack vertically on small screens */
    gap: 8px;
  }
  .search-input,
  .search-button {
    width: 100%;
    padding: 6px 10px; /* Even smaller padding */
    font-size: 0.85em; /* Smaller font */
  }
  .search-results h3 {
    font-size: 1em;
  }
  .search-results p {
    font-size: 0.75em;
  }
}





