import styled from "styled-components";
import Pattern from "../../assets/images/sign_up.png";
import LayoutBackgroundImage from "../../assets/images/layout_background.png";

/* styles for main layout component */
export const Layout = styled.div`
  background-color: ${({ coming }) => (coming ? "#FEBF10" : "#f5f7f7")};
  background-image: ${({ coming, hasLayoutBackgroundImage }) =>
    coming
      ? ``
      : hasLayoutBackgroundImage
        ? `url(${LayoutBackgroundImage})`
        : ""};
  min-height: 100vh;
  width: 100%;
  background-repeat: no-repeat;
  background-size: ${({ hasLayoutBackgroundImage }) =>
    hasLayoutBackgroundImage ? "100%" : ""};
  background-position: ${({ hasLayoutBackgroundImage }) =>
    hasLayoutBackgroundImage ? "bottom" : ""};

  scrollbar-width: thin;

  min-height: 100vh;
  /* "auto" or "thin" depending on browser support */
  scrollbar-color: transparent transparent;

  &::-webkit-scrollbar {
    width: 6px;
    /* adjust as needed */
    background-color: transparent;
    /* color value for track */
  }

  &::-webkit-scrollbar-thumb {
    background-color: transparent;
    /* color value for thumb */
  }
`;

export const MainLayout = styled.div`
  background-color: ${({ coming }) => (coming ? "none" : "#f5f7f7")};
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 84px 20px 20px 0;
  max-height: 100vh;
  // overflow: hidden;
`;

export const LeftLayout = styled.div`
  background-color: transparent;
  /* width: 100%;
  max-width: 350px; */
  min-height: 100vh;
`;

export const ChildrenBox = styled.div`
  padding-bottom: 60px;
  width: 100%;
`;

export const CenterLayout = styled.div`
  width: 100%;
  margin: ${({ isOpen }) =>
    isOpen ? "0px 252px 0 336px" : "0px 252px 0 145px"};
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 104px);

  @media screen and (max-width: 1023px) {
    margin-right: 0;
  }
  @media screen and (max-width: 1366px) {
    margin: ${({ isOpen }) =>
      isOpen ? "0px 200px 0 276px" : "0px 202px 0 145px"};
    max-width: ${({ isOpen, href }) =>
      href.includes("help") ? "100%" : isOpen ? "750px" : "900px"};
  }
  .instructor_expired {
    h1 {
      font-weight: 700;
      font-size: 22px;
      line-height: 40px;
      letter-spacing: 2%;
      margin-bottom: 11px;
    }
    .instructor_expired_body {
      background: white;
      border-radius: 22px;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 550px;
      .instructor_expired_center {
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        img {
          margin-bottom: 30px;
        }
        h2 {
          font-weight: 700;
          font-size: 22px;
          line-height: 40px;
          letter-spacing: 2%;
          margin-bottom: 11px;
          margin-bottom: 10px;
        }
        p {
          font-weight: 400;
          font-size: 16px;
          line-height: 24px;
        }
      }
    }
  }

  /* color values for thumb and track */
`;
export const ChildrenWrap = styled.div`
  padding-bottom: 50px;
`;
export const RightLayout = styled.div`
  width: 100%;
  max-width: 232px;
  position: fixed;
  max-height: 609px;
  height: 609px;
  right: 20px;
  @media screen and (max-width: 1023px) {
    display: none;
  }
  @media screen and (max-width: 1366px) {
    max-width: 192px;
  }
  > div {
    width: 100%;
  }
`;
