import { Link } from 'react-router-dom'

import styled, { css } from 'styled-components/macro'

import { isMobileDevice, devices } from 'config'

import { Logo } from 'features/Logo'
import { ButtonOutline, ButtonSolid } from 'features/Common'

export const Wrapper = styled.div`
  width: 100vw;
  height: 100vh;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
`

export const HeaderWrapper = styled.div`
  background: rgb(19, 21, 27);
  opacity: 0.7;
  padding: 20px 0;
  padding-left: 20%;
  width: 100%;

  @media ${devices.laptop} {
    padding-left: 5%;
  }

  ${isMobileDevice
    ? css`
      display: none;
    `
    : ''};
`

export const MainLogo = styled(Logo)`
  height: 26px;
  width: 80px;
  display: inline-block;
`

export const Body = styled.div`
  height: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 10%;

  ${isMobileDevice
    ? css`
        overflow: scroll;
        padding: 0 30px;
        align-items: center;
        margin: 0;
      `
    : ''};
`
export const ContentWrapper = styled.div``

export const Title = styled.div`
  font-size: 2rem;
  font-weight: 600;

  ${isMobileDevice
    ? css`
        font-size: 32px;
      `
    : ''};
`

export const Email = styled.span`
  font-weight: 600;

  ${isMobileDevice
    ? css`
        font-size: 15px;
      `
    : ''};
`

export const Text = styled.span`
  line-height: 200%;

  ${isMobileDevice
    ? css`
        font-size: 15px;
      `
    : ''};
`

export const ButtonsBlock = styled.div`
  display: flex;
  align-items: center;
  margin-top: 40px;
  justify-content: center;

  ${isMobileDevice
    ? css`
        flex-wrap: wrap;
      `
    : ''};
`

export const ScLink = styled(Link)`
  ${isMobileDevice
    ? css`
        width: 100%;
      `
    : ''};
`

export const SolidButton = styled(ButtonSolid)`
  border-radius: 5px;
  width: 15rem;
  margin-right: 20px;

  ${isMobileDevice
    ? css`
        width: 100%;
        margin: 0 0 10px;
        height: 44px;
      `
    : ''};
`

export const OutlineButton = styled(ButtonOutline)`
  border-radius: 5px;
  width: 15rem;
  font-weight: 600;

  ${isMobileDevice
    ? css`
        width: 100%;
        height: 44px;
      `
    : ''};
`

export const Footer = styled.div`
  font-size: 14px;
  background-color: black;
  padding: 16px 0;
  padding-left: 20%;
  width: 100%;
  @media ${devices.laptop} {
    padding-left: 5%;
  }
  @media ${devices.mobile} {
    padding-left: 35px;
  }
  ${isMobileDevice
    ? css`
      display: flex;
      padding: 15px 35px;
      justify-content: space-between;
      align-items: center;
    `
    : ''};
`

export const FooterLogo = styled(Logo)`
  display: none;
  ${isMobileDevice
    ? css`
      display: block;
      width: 48px;
      height: 11px;
      opacity: .4;
    `
    : ''};
`

export const FooterRights = styled.div`
  opacity: .5;
  ${isMobileDevice
    ? css`
      font-size: 12px;
    `
    : ''};
`
