import styled from 'styled-components';
import { deviceSize } from '../../common/deviceSizes';

export const StyledLanding = styled.section`
  min-height: calc(100vh - 3.5em);

  display: flex;
  justify-content: center;
  align-items: center;

  /* background-color: #fff; */
`;

export const StyledLandingWrapper = styled.div`
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: 100%;
  max-width: 1300px;

  .landing_main {
    display: flex;
    align-items: center;
    gap: 5em;

    @media screen and (max-width: ${deviceSize.md}) {
      flex-direction: column;
    }
  }

  .logo {
    opacity: 0;
  }

  .landing_tech {
    opacity: 0;

    h3 {
      position: relative;
      margin: 0;
      font-size: 1.8em;
    }

    .separator {
      width: 2px;
      height: 30px;
      background-color: red;
    }
  }
`;

export const StyledBrandName = styled.div`
  position: relative;
  display: inline-block;

  font-family: ${({ theme }) => theme.fonts.monospace};
  font-size: 3em;
  opacity: 1;
  white-space: nowrap;
  letter-spacing: 5px;

  &::after {
    content: '';
    position: absolute;

    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: ${({ theme }) => theme.colors['bg']};

    animation: typing 0.75s steps(11) forwards;
  }

  &::before {
    content: '';
    position: absolute;
    z-index: 100;

    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    background-color: ${({ theme }) => theme.colors['bg']};
    border-left: 15px solid ${({ theme }) => theme.colors.accent};

    animation: typing 0.75s steps(11) forwards, blinking 1.5s infinite;
  }

  @media screen and (max-width: ${deviceSize.sm}) {
    font-size: 2.3em;
  }
`;

export const StyledLandingRight = styled.div`
  color: ${({ theme }) => theme.colors['200']};
  font-size: 1.2em;

  .greeting {
    font-family: ${({ theme }) => theme.fonts.monospace};
    display: block;
    opacity: 0;
  }

  .description {
    margin-top: 1em;
    opacity: 0;
  }
`;

export const StyledLinkIcons = styled.div`
  display: flex;
  gap: 1em;
  margin-top: 1em;
  opacity: 0;
`;

export const StyledLinkIcon = styled.a`
  cursor: pointer;
  font-size: 2em;
  margin-top: 0.5em;

  &:hover {
    color: skyblue;
  }
`;
