import styled from "styled-components";
import { whiteBackground, purpleBase, purpleBackground } from "../constants";
import { CustomInfoPanelProps } from ".";
export const CustomInfoPanel = styled.div<CustomInfoPanelProps>`
  width: 460px;
  height: 100%;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  background-color: ${whiteBackground};
  display: flex;
  flex-direction: column;
  animation-name: fadeInRight;
  animation-duration: 500ms;
  @media screen and (max-width: 768px) {
    width: 385px;
  }
  @media screen and (max-width: 428px) {
    width: 100%;
  }
  @keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translate3d(100%, 0, 0);
    }

    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
`;

export const InfoPanelTitle = styled.div`
  display: flex;
  justify-content: space-between;
  font-family: "Jost", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  padding: 16px 20px;
  margin: 8px 0px;
  color: ${purpleBase};
  img {
    cursor: pointer;
  }
`;

export const PurpleLineBreak = styled.div`
  border-top: 1px solid ${purpleBackground};
  width: 100%;
`;
