import { css } from 'styled-components'

import { instat as platformInstat } from 'config/clients/instat'
import { isMobileDevice } from 'config/userAgent'

import { Background } from 'features/Background'

import type { ClientConfig } from './types'

export const instat: ClientConfig = {
  ...platformInstat,
  background: Background,
  styles: {
    centerBlock: css`
      margin-top: 9.15rem;
      ${isMobileDevice ? css`
        margin-top: 107px;
        @media screen and (orientation: landscape) {
          width: 290px;
          margin: auto;
        }
      ` : ''};
    `,
    logo: css`
      background-image: url(/images/logo.svg);
      height: 54px;
      width: 234px;
      margin-bottom: 1.82rem;

      ${isMobileDevice ? css`
          margin-bottom: 78px;
          width: 207px;
          height: 48px;
          @media screen and (orientation: landscape){
            width: 92px;
            height: 22px;
          }
        ` : ''}
    `,
  },
}
