@use 'pix-design-tokens/breakpoints';

body {
  color: var(--pix-neutral-800);
  background-color: var(--pix-primary-10);
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
}

/* App main header */
.app-main-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--pix-spacing-6x);
  align-items: center;
  justify-content: flex-end;
  padding-bottom: var(--pix-spacing-3x);

  &__user-pix-score {
    display: flex;
    gap: var(--pix-spacing-2x);
    align-items: center;

    img {
      height: var(--pix-spacing-8x);
    }
  }
}

/* App navigation */
.app-navigation {
  .pix-navigation__brand {
    display: flex;
    gap: var(--pix-spacing-4x);
    justify-content: center;

    img {
      width: auto;
      margin: 0;
    }
  }

  .pix-navigation__footer {
    a {
      justify-content: center;
    }
  }

  &__footer-nav.app-main-header {
    justify-content: center;

    .logged-user-name {
      color: var(--pix-neutral-0);
    }
  }
}

/* Global container */
%global-container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--pix-spacing-4x);
  max-width: 80rem;

  @include breakpoints.device-is('desktop') {
    padding-inline: var(--pix-spacing-6x);
  }
}

.global-page-container {
  @extend %global-container;

  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: var(--pix-spacing-2x);
  margin-bottom: var(--pix-spacing-10x);
}

.global-page-container__streched-content {
  flex-grow: 1;
}

// New layout
.app-layout {
  z-index: 0;

  .global-page-container,
  #footer {
    padding: 0;
  }
}
