html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: Roboto, 'Helvetica Neue', sans-serif;
  margin: 0;

  // Helps fonts on OSX looks more consistent with other systems
  // Isn't currently in button styles due to performance concerns
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .mat-sidenav {
    position: fixed;

    .mat-mdc-button {
      width: 100%;
      position: relative;
      bottom: 0;
      margin: 24px 0;
    }
  }

  .demo-content {
    padding: 32px;
    box-sizing: border-box;
  }

  .mat-toolbar {
    .mat-icon {
      cursor: pointer;
    }

    .demo-toolbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;

      // Avoids horizontal scrollbars on smaller screens.
      overflow: hidden;
    }
  }

  h1 {
    font-size: 20px;
  }
}

// stretch to screen size in fullscreen mode
.demo-content {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: auto;
}

.demo-container {
  min-width: 100%;
  min-height: 100%;
}

.demo-main {
  // Removes extra space on top of toolbar on IE.
  display: block;
}

.demo-config-buttons {
  display: flex;
  align-items: center;
}

.demo-testonly-mode {
  .demo-menu-button,
  .demo-config-buttons {
    display: none;
  }
}
