/* Copyright 2024 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #scheme=relative
 * #import=//resources/cr_elements/cr_shared_vars.css.js
 * #css_wrapper_metadata_end */

:host {
  --gradient-start-color_: var(
      --color-history-embeddings-image-background-gradient-start,
      var(--cr-fallback-color-primary-container));
  --gradient-end-color_: var(
      --color-history-embeddings-image-background-gradient-end,
      rgb(231, 248, 237));
  --illustration-color_: var(--gradient-end-color_);
  align-items: center;
  background: linear-gradient(131deg,
      var(--gradient-start-color_) 12.23%, var(--gradient-end-color_) 78.96%);
  display: flex;
  height: 100%;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

#illustrationPath {
  fill: var(--illustration-color_);
}

#image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  :host {
    --gradient-end-color_: var(
      --color-history-embeddings-image-background-gradient-end,
      rgb(15, 82, 35));
    --illustration-color_: var(--gradient-start-color_);
  }
}
