<template>
  <div class="onboarding-card">
    <div class="wrapper">
      <slot class="card-slot" />
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  setup() {},
});
</script>
<style lang="scss">
.onboarding-card {
  width: 100%;
  padding: 16px;
  background-color: var(--background-primary);
  border-radius: 16px;
  margin: 0 auto;
  transform-origin: center;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1),
    opacity 0.8s cubic-bezier(0.86, 0, 0.07, 1);
  z-index: 5;

  .wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;

    & > * {
      flex-grow: 1;
      flex-shrink: 0;
      width: 100%;
      height: 100%;
    }

    .next {
      margin-top: auto;
    }
  }

  @include desktop-768max() {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    min-height: 100%;

    .wrapper {
      flex-grow: 1;
      flex-shrink: 0;
    }
  }

  @include screen-sm() {
    min-height: auto;
    max-width: 554px;
    padding: 24px 32px 32px;
    box-shadow: 0 64px 90px rgba(0, 162, 255, 0.08),
      0 64px 90px rgba(197, 139, 246, 0.08);
  }

  @include screen-md() {
    padding: 24px 48px 32px;
  }

  @include screen-lg() {
    max-width: 798px;
    padding: 32px 64px 48px;
  }
}
</style>
