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

import { isMobileDevice } from 'config/userAgent'
import { InputWrapper } from 'features/Common/Input/styled'

export const ScWrapper = styled.div`
  max-width: 560px;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  padding: 0 80px 0 40px;

  ${isMobileDevice
    ? css`
        padding: 5px;
      `
    : ''};
`
export const ScInfoBlock = styled.div`
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 186px;

  ${isMobileDevice
    ? css`
        height: auto;
        justify-content: start;

        > * {
          margin-bottom: 10px;
        }
      `
    : ''};
`

export const ScTitle = styled.span`
  font-weight: 700;
  font-size: 34px;
  line-height: 40px;

  ${isMobileDevice
    ? css`
        font-size: 13px;
        line-height: 150%;
      `
    : ''};
  
`

export const ScText = styled.div`
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;

  ${isMobileDevice
    ? css`
        font-size: 9px;
        line-height: 150%;
      `
    : ''};
`

export const ScInfoWrap = styled.div`
  display: flex;
  flex-direction: row;
`

export const ScInputGroup = styled.div`
  ${InputWrapper} {

  ${isMobileDevice
    ? css`
        margin-top: 5px;
        padding-left: 0;

        @media screen and (orientation: landscape){
          padding-left: 10px;
        }
      `
    : ''};
  }
  .Search__input {
    transform: translateY(50%);
  }
`
export const ScForm = styled.form`
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;

    & ul {
        max-height: 200px;
      }
    & input {
      font-size: 12px;
      text-overflow: ellipsis;
    }

    .FormHighlights__input__duration {
      & input {
        max-width: 40px;
      }
    }

    .FormHighlights__input__sound {
      & input {
        margin-left: 25px;

      ${isMobileDevice
    ? css`
        margin-left: 10px;
      `
    : ''};
      }
    }

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

  
`
