import styled from 'styled-components';

export const ModalWrapper = styled.div`
  position: fixed;
  margin-top: ${({ top }) => (top ? top : '5%')};
  margin-left: ${({ left }) => (left ? left : '22%')};
  // bottom: 0;
  // right: 0;
  display: ${({ isOpen }) => (isOpen ? 'flex' : 'none')};
  align-items: center;
  justify-content: center;
  // background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
  /* background-color: transparent; */

`;

export const ModalContent = styled.div`
  position: relative;
  width: ${({width}) => (width ? width : "70%")};
  // max-width: 70%;
  height: ${({ height }) => (height ? height : '70%')};
  background-color: transparent !important;
  /* overflow: hidden; */
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-top: ${({ marginTop }) => (marginTop ? marginTop : '')};
  margin-left: ${({ marginLeft }) => (marginLeft ? marginLeft : '')};
`;

export const CloseButton = styled.button`
  position: absolute;
  top: -50px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background-color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: ${({display}) => (display ? display : "block")};
`;