// Copyright (C) 2023 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

.widgets-page {
  padding: 20px;
  font-size: 16px;
  overflow: auto;

  h1 {
    margin: 32px 0 0 0;
    font-size: 28px;
  }

  h2 {
    margin: 16px 0 0 0;
    font-size: 24px;
  }

  ul {
    margin-block-start: 5px;
    margin-block-end: 0px;
    padding-inline-start: 0px;
  }

  li {
    list-style-type: none;
    margin: 2px 0 0 0;
  }

  .widget-row {
    margin: 10px;

    & > * {
      margin-right: 5px;
    }
  }

  .widget-block {
    display: flex;
    flex-direction: row;
  }

  .widget-controls {
    margin: 10px;
  }

  .widget-container {
    display: flex;

    // Put the widget in the center of the container
    align-items: center;
    justify-content: center;

    min-width: 300px;
    max-width: 600px;
    min-height: 250px;
    max-height: 1000px;
    border-radius: 3px;
    box-shadow: inset 2px 2px 10px #00000020;
    border: dashed 1px gray;
    margin: 10px 0 10px 0;
    padding: 16px;
    overflow: hidden;
  }

  .widget-container-wide {
    min-width: 450px;
  }

  .virtual-canvas {
    height: 100px;
  }
}
