text: import styled from "styled-components";
  
  export const FileUploadContainer = styled.section`
    position: relative;
    margin: 20px 0 15px;
    border: 1px solid lightgray;
    padding: 35px 20px;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
  `;
  
  export const FormField = styled.input`
    font-size: 18px;
    display: block;
    width: 100%;
    border: none;
    text-transform: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    &:focus {
      outline: none;
    }
  `;
  
  export const InputLabel = styled.label`
    top: -21px;
    font-size: 13px;
    color: black;
    left: 0;
    position: absolute;
  `;
  
  export const DragDropText = styled.p`
    font-weight: bold;
    letter-spacing: 1px;
    margin-top: 0;
    text-align: center;
  `;
  
  export const UploadFileBtn = styled.button`
    box-sizing: border-box;
    appearance: none;
    background-color: transparent;
    border: 2px solid #00bb38;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 1.1em 2.8em;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 6px;
    color: #00bb38;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 250ms ease-in-out;
    font-family: "Open Sans", sans-serif;
    width: 45%;
    display: flex;
    align-items: center;
    padding-right: 0;
    justify-content: center;
    &:after {
      content: "";
      position: absolute;
      display: block;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 100%;
      background: #00bb38;
      z-index: -1;
      transition: width 250ms ease-in-out;
    }
    i {
      font-size: 22px;
      margin-right: 5px;
      border-right: 2px solid;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      width: 20%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    @media only screen and (max-width: 500px) {
      width: 70%;
    }
    @media only screen and (max-width: 350px) {
      width: 100%;
    }
    &:hover {
      color: #fff;
      outline: 0;
      background: transparent;
      &:after {
        width: 110%;
      }
    }
    &:focus {
      outline: 0;
      background: transparent;
    }
    &:disabled {
      opacity: 0.4;
      filter: grayscale(100%);
      pointer-events: none;
    }
  `;
  
  export const FilePreviewContainer = styled.article`
    margin-bottom: 35px;
    span {
      font-size: 14px;
    }
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  `;
  
  export const PreviewList = styled.section`
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    @media only screen and (max-width: 400px) {
      flex-direction: column;
    }
  `;
  
  export const FileMetaData = styled.div`
    display: ${(props) => (props.isImageFile ? "none" : "flex")};
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    background-color: rgba(5, 5, 5, 0.55);
    aside {
      margin-top: auto;
      display: flex;
      justify-content: space-between;
    }
  `;
  
  export const RemoveFileIcon = styled.i`
    cursor: pointer;
    &:hover {
      transform: scale(1.3);
    }
  `;
  
  export const PreviewContainer = styled.section`
    padding: 0.25rem;
    width: 90%;
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover {
      opacity: 0.55;
      ${FileMetaData} {
        display: flex;
      }
    }
    & > div:first-of-type {
      height: 100%;
      position: relative;
    }
    @media only screen and (max-width: 750px) {
      width: 90%;
    }
    @media only screen and (max-width: 600px) {
      width: 100%;
    }
    @media only screen and (max-width: 400px) {
      width: 100%;
      padding: 0 0 0.4em;
    }
  `;
  
  export const ImagePreview = styled.img`
    border-radius: 6px;
    width: 100%;
    height: 100%;
  `;