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

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

export const Wrapper = styled.div`
  margin-top: 26px;
  ${isMobileDevice
    ? css`
      @media (orientation: landscape){
        margin-top: 0;
      }
    `
    : ''}
`

export const Table = styled.table``

export const THead = styled.thead``

export const Th = styled.th`
  width: 250px;
  padding: 0;
  padding-bottom: 25px;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-align: start;

  :nth-child(1) {
    width: 250px;
  }

  :nth-child(2) {
    width: 312px;
  }

  :nth-child(3) {
    width: 190px;
  }

  @media ${devices.tablet} {
    :nth-child(1) {
      width: 200px;
    }

    :nth-child(2) {
      width: 270px;
    }

    :nth-child(3) {
      width: 150px;
    }
  }
  ${isMobileDevice
    ? css`
      font-size: 12px;
      vertical-align: baseline;
      :not(:nth-child(1)){
        padding-right: 5px;
      }
    `
    : ''}
`

export const TBody = styled.tbody``

export const TRow = styled.tr``

export const Td = styled.td`
  padding: 0;
  padding-bottom: 20px;
  font-size: 18px;
  line-height: 22px;
  text-align: start;
  color: #FFFFFF;
  ${isMobileDevice
    ? css`
      font-size: 12px;
      line-height: 17px;
      vertical-align: baseline;
      :not(:nth-child(1)){
        padding-right: 5px;
      }
    `
    : ''}
`
