@import '../../styles/core.scss';

.TutorialGrid {
  display: grid;
  column-gap: 15px;
  row-gap: 15px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
  padding-bottom: 40px;
  padding-top: 20px;

  @media (max-width: 1180px) {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    max-width: 775px;
    padding-left: 40px;
    padding-right: 40px;
    row-gap: 20px;
  }

  @media (max-width: 775px) {
    grid-template-columns: 1fr;
    max-width: 390px;
    padding-left: 20px;
    padding-right: 20px;
  }
}

.TutorialToolbar {
  align-items: center;
  background: rgba(get('color' slate), 0.95);
  border-radius: 60px;
  bottom: 20px;
  box-shadow: 0 5px 10px rgba(get('color' slate), 0.1), 0 2px 5px rgba(get('color' slate), 0.05);
  color: #fff;
  display: flex;
  justify-content: space-between;
  left: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  position: sticky;
  right: 0;
  z-index: 1;

  @supports (backdrop-filter: blur(5px)) {
    backdrop-filter: blur(5px);
    background: rgba(get('color' slate), 0.85);
  }

  @media (max-width: 640px) {
    bottom: 10px;
    font-size: 14px;
    max-width: calc(100% - 20px);

    &-Button {
      white-space: nowrap;
    }
  }
}
