import styled from "styled-components";
import { composeStyle as comp } from "../../util";
import { currentTheme } from "../../theme";
export const Page = styled.div(({ theme }) => `
  position: relative;
  max-width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
  background-color: ${theme?.colors?.pageBackground ?? currentTheme.colors.pageBackground};

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
`);
export const Main = styled.main `
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  position: relative;

  @media (max-width: 1023px) {
    padding: 0 12px;
    max-width: 425px;
    margin: 0 auto;
  }
`;
export const AppContent = styled.div `
  width: 100%;
  max-width: 1224px;

  margin: 0 auto;
  // padding: 24px 0 0 0;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

  position: relative;

  ${Main} {
    max-width: 912px;
    flex: 0 0 912px;
    min-height: ${currentTheme.grid?.mainMinHeight};

    @media (max-width: 1225px) {
      max-width: 100%;
      flex: 0 0 100%;
    }

    @media (max-width: 1023px) {
      max-width: 425px;
      padding: 70px 0 12px;
    }
  }

  @media (max-width: 1023px) {
    max-width: 425px;
  }
`;
export const Section = styled.section(({ isCard, isLong, theme: { card } }) => `
  width: 100%;
  max-width: ${isLong ? "1092px" : "912px"};
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;

  ${isCard
    ? `
      background: ${card.background};
      border: ${card.border};
      box-shadow: ${card.boxShadow};
      padding: 47px 40px;`
    : ``}

  @media (max-width: 1023px) {
    max-width: 425px;
    margin-bottom: unset;
  }`);
export const Row = styled.div(({ spaceBetween, spaceEvenly, alignItems, justifyContent, noWrap }) => `
  width: 100%;
  max-width: 1224px;
  display: flex;
  flex-flow: row ${noWrap ? "nowrap" : "wrap"};
  align-items: ${alignItems ?? "start"};
  ${spaceEvenly ? "justify-content: space-evenly;" : ""}
  ${spaceBetween ? "justify-content: space-between;" : ""}
  ${justifyContent ? `justify-content: ${justifyContent};` : ""}
  margin: 0 auto;
  box-sizing: border-box;
`);
export const Col = styled.div(({ width, row, noWrap, mobileFullWidth, height }) => `
  display: flex;
  flex-grow: 0;
  flex-shrink: 1;
  flex-flow: ${row ? "row" : "column"} ${noWrap ? "nowrap" : "wrap"};
  ${width
    ? `
  ${comp("max-width", width)}
  ${comp("flex-basis", width)}`
    : `
  width: 100%;`}

  ${height
    ? `
      ${comp("min-height", height)}
      ${comp("height", height)}
    `
    : ""}

  box-sizing: border-box;

  @media (max-width: 1023px) {
    ${mobileFullWidth
    ? `
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;`
    : ""}
  }
`);
export const Divider = styled.div `
  width: 100%;
  border-top: 1px solid ${currentTheme.colors?.border};
  margin: 16px 0;
`;
export const Box = styled.div(({ m, mt, mb, ml, mr, p, pt, pb, pl, pr, position }) => `

  ${m ? `margin: ${m};` : ""}
  ${mt ? `margin-top: ${mt};` : ""}
  ${mb ? `margin-bottom: ${mb};` : ""}
  ${ml ? `margin-left: ${ml};` : ""}
  ${mr ? `margin-right: ${mr};` : ""}

  ${p ? `padding: ${p};` : ""}
  ${pt ? `padding-top: ${pt};` : ""}
  ${pb ? `padding-bottom: ${pb};` : ""}
  ${pl ? `padding-left: ${pl};` : ""}
  ${pr ? `padding-right: ${pr};` : ""}

  ${position ? `position: ${position};` : ""}

  box-sizing: border-box;
`);
//# sourceMappingURL=index.js.map