@use '../global/index' as global;

// Use full-opacity equivalent of rgba(0, 0, 0, .05) and expose for demos to reference
$hero-background-color: #f7f7f7;

// Used by ready.js to test whether the CSS has finished loading.
.demo-ready-detect {
  position: relative;
}

.catalog-title {
  font-family: 'Roboto Mono', monospace;
}

.hero {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  // height: 360px; // Fuck IE
  min-height: 360px;
  padding: 40px 0;
  background-color: $hero-background-color;

  & > h1 {
    font-size: 3.14rem;
    font-weight: 300;
  }

  .mdc-menu-surface {
    z-index: 3;
  }

  .mdc-drawer--permanent {
    display: inherit;
    height: inherit;
    .mdc-drawer__title {
      text-align: left;
    }
  }

  .hero-demo,
  .hero-demos {
    margin-bottom: 20px;
  }
  .hero-demos,
  .hero-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .hero-option {
    margin: 0 32px;
  }

  h3 {
    text-align: center;
  }
}

.demo-wrapper {
  margin-bottom: 32px;
}

@media (max-width: global.$mobile-breakpoint) {
  .hero {
    .hero-option {
      margin: 0;
    }

    .hero-options {
      flex-direction: column;

      .hero-options {
        flex-direction: row;
      }

      .hero-option {
        margin-bottom: 10px;
      }
    }
  }

  .page-data-display_card .hero .hero-options .hero-options {
    flex-direction: column;
    align-items: flex-start;
  }
}
