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

import { devices } from 'config'
import { isMobileDevice } from 'config/userAgent'

import { Logo } from 'features/Logo'
import { T9n } from 'features/T9n'

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-color: rgba(19, 21, 27, 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: 20px;
  width: 80px;
`

export const BlockWrapper = styled.div`
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 20%;
  width: 100%;

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

  @media ${devices.mobile} {
    padding-left: 5.4rem;
  }

  ${isMobileDevice
    ? css`
      padding: 5.4rem;
      overflow: scroll;
      @media screen and (orientation: landscape){
        padding-top: 20px;
        height: auto;
      }
    `
    : ''};
`

export const SportImgWrapper = styled.div`
  background-image: url(/images/landing_rfef.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 512px;
  height: 80%;
  margin-right: 5%;

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

export const Container = styled.div`
  ${isMobileDevice
    ? css`
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    `
    : ''};
`

export const MatchInfo = styled.div`
  ${isMobileDevice
    ? css`
      width: 100%;
      height: 100%;
      @media screen and (orientation: landscape){
        padding-top: 0;
      }
    `
    : ''};
`

export const LogoRFEF = styled.div`
  width: 93px;
  height: 126px;
  background-image: url(/images/rfef_logo.png);
  background-repeat: no-repeat;
  background-size: contain;
  margin-bottom: 20px;

  ${isMobileDevice
    ? css`
      width: 43px;
      min-width: 43px;
      height: 59px;
      margin-right: 15px;
      margin-bottom: 0;
    `
    : ''};
`

export const MainTitle = styled.h1`
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 40px;

  ${isMobileDevice
    ? css`
      font-size: 19px;
      margin-bottom: 0;
    `
    : ''};
`

export const PriceInfo = styled.div``

export const PriceWrapper = styled.div`
  margin-bottom: 10px;
  
  &:last-child {
    margin-bottom: 45px;
  }

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

export const Price = styled(T9n)`
  font-weight: 500;
  font-size: 30px;
  margin-right: 10px;

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

export const PriceDesc = styled(T9n)`
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);

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

export const TitleDescWrapper = styled.div`
  font-size: 17px;
  margin-bottom: 100px;

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

export const NormalText = styled(T9n)`
  font-weight: 400;
  margin-right: 5px;
`

export const ColoredText = styled(T9n)`
  color: #FF655F;
  margin-right: 5px;
`

export const BoldText = styled(T9n)`
  font-weight: 700;
  margin-right: 5px;
`

export const Button = styled.button`
  width: 260px;
  height: 50px;
  background-color: #FF2E25;
  border-radius: 5px;
  outline: none;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 20px;
  cursor: pointer;

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

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;
    `
    : ''};
`

export const SportImgMobileDevice = styled(SportImgWrapper)`
  display: none;
  ${isMobileDevice
    ? css`
      display: block;
      height: 50%;
      width: 100%;
      margin-right: 0;
      @media screen and (orientation: landscape){
        display: none;
      }
    `
    : ''};
`
