@use "sass:map";
@use "../../../styles/tools/generate";
@use "../../../styles/tools/convert";
@use "../../../styles/tokens/color";
@use "../../../styles/tokens/space";
@use "./config";

@keyframes logo-line {
  0% {
    transform: translateX(-150%);
  }

  30% {
    transform: translateX(0);
  }

  70% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(150%);
  }
}

@mixin base {
  display: flex;
  align-items: flex-end;
}

@mixin body-base {
  flex: 0 0 auto;
  overflow: hidden;
  background-color: var(--color-surface-secondary);

  &:only-child {
    margin-right: 0 !important;
  }
}

@mixin size($size: default) {
  @include generate.css-map(map.get(config.$sizes, $size));
}

@mixin line-base {
  height: 15%;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 70%;
  background-color: color.$white;
  will-change: transform;
  animation: logo-line 1200ms infinite;
}

@mixin color-inverse {
  background-color: color.$white;
}

@mixin line-color-inverse {
  background-color: color.$orange;
}

@mixin messages-base {
  max-width: 100%;
  flex: 0 1 convert.to-rem(250px);
  font-weight: bold;
}

@mixin messages-large {
  font-size: convert.to-rem(18px);
}

@mixin fullscreen-base {
  position: fixed;
  display: flex;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  background-color: #eeeeeef2; // color.$surface-subtle opacity 95%

  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
}
