import { styled } from 'styled-components';

export const StyledAbout = styled.section`
  .about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3em;
    margin-top: 100px;

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

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

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

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

  .stat-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5em;

    text-align: center;
    padding: 2em 1em;
    min-height: 250px;

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

    h1 {
      margin: 0;
      vertical-align: middle;
    }

    p {
      font-size: 1.2em;
    }
  }
`;
