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

export const StyledAbout = styled.section`
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  .about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3em;

    .about-content {
      h2 {
        font-size: 1.5em;
        color: ${({ theme }) => theme.colors};
      }

      p {
        color: ${({ theme }) => theme.colors['300']};
        margin-top: 2em;
        text-align: justify;
        line-height: 1.7;
      }
    }
  }

  .about-gif {
    width: 100%;

    img {
      border-radius: 1em;
      width: 100%;
    }
  }

  .about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3em 2em;
    margin-top: 4em;
  }

  .stat-item {
    display: grid;
    grid-template-rows: 100px 100px;
    align-items: center;

    position: relative;

    text-align: center;
    padding: 2em 1em;

    border-radius: 1em;
    background-color: ${({ theme }) => theme.colors['600']};

    svg.stat-item-icon {
      position: absolute;
      top: 0;
      left: 50%;
      transform: translate(-50%, -50%);
    }

    h1 {
      vertical-align: middle;
    }

    p {
      font-size: 1.2em;
    }
  }

  @media screen and (max-width: ${deviceSize.md}) {
    .about-grid {
      grid-template-columns: 1fr;
    }
  }
`;
