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

.page-misc_ripple {
  .hero {
    padding: 0;
    display: block;
    height: 360px;
    & > div {
      width: 100%;
      height: 100%;
    }
  }

  .demo-surface {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 100px;
    padding: 1rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }

  .demo-surface[data-mdc-ripple-is-unbounded] {
    /* Override width/height from above to match icon size, and adjust padding for hitbox */
    width: 24px;
    height: 24px;
    padding: 12px;
  }

  button.demo-surface {
    display: inline-block;
    /* Safari does not center button text otherwise :( */
    background: none;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .demo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .mdc-typography--headline6 {
    margin: 10px 0;
  }

  @media (max-width: global.$mobile-breakpoint) {
    .demo {
      flex-direction: column;
      width: 100%;
    }

    .demo-surface {
      margin: 0 auto;
    }
  }
}
