
/********************************
  home page pitch stack build-up
  
  +-- .home-page-pitch-stack-div
    +-- .home-page-pitch-div
      +-- .home-page-pitch-headline-div
        +-- .pitch-headline-html
      +-- .home-page-pitch-description-div
        +-- .pitch-description-html
    +-- .home-page-image-div
      +-- img
      +-- overlay-text-div (no class specified)
        +-- overlay-text
      +-- intro-overlay-div-bg
      +-- overlay-div
  
*******************************/
.pitch-headline-html {
  font-family: "Myriad-Pro-Bold"; 
  color: white;
  margin: 15px 5px 10px;
  text-align: center;
}

.home-page-pitch-headline-div {
  display: flex;
  width: 100%;
  /* border: 1px solid white; */
  align-items: center;
  justify-content: center;
  font-size: calc(1.375rem + 1.5vw);
  font-weight: 300;
  line-height: 1.2;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 1;
}

.pitch-description-html {
  font-family: "Myriad-Pro-Light"; 
  color: white;
  font-size: calc(1.1rem + 1.1vw);
  font-weight: 300;
  line-height: 1.2;
  margin: 15px 5px 10px;
  text-align: center;
}

.home-page-pitch-description-div {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.home-page-pitch-div {
  display: flex;
  /* do not use flex: 1; here as it will remove fixed height */
  position: relative;
  height: 275px;
  width: 50%;
  flex-flow: column nowrap;
  /* align-self: stretch; */
  justify-content: center;
  align-items: center;
}

.home-page-image-div {
  display: flex;
  position: relative;
  /* flex: 1; is the same as flex-basis: 0; flex-grow:1; */
  flex: 1;
  align-items: center;
  justify-content: center;
}

.home-page-image-div img {
  height: 275px;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;  
  transition: opacity 0.2s ease; 
}

#projects-relief-three-image-div img {
  height: 275px;
  width: 100%;
  display: inline-block;
  object-fit: scale-down;
  border-radius: 5px;  
  transition: opacity 0.2s ease; 
  align-self: start;
  /* justify-content: flex-start; */
} 

#projects-relief-three-image-div {
  display: flex;
  position: relative;
  /* flex: 1; is the same as flex-basis: 0; flex-grow:1; */
  flex: 1;  
  align-items: flex-end;
  /* do not use justify-content: center; as it prevents left-aligned image */
  /* justify-content: center; */
}

.home-page-pitch-stack-div {
  display: flex;
  width: 100%;
  align-content: center;
  justify-content: space-around;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 5px;
  row-gap: 5px;
}

/********************************/
/*  overlays on hover for intro and relief one, two, three
/********************************/

.overlay-text {
  opacity: 0;
  position: absolute;
  font-family: "Myriad-Pro-Light"; 
  font-size: calc(1.1rem + 1.1vw);
  font-weight: 300;
  line-height: 1.2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  /* border-radius: 10px; */
  transition: opacity 0.2s ease;
  text-align: center;
  width: 90%;
  max-height: 90%;
  overflow: auto;
  z-index:10;
}


.overlay-div {
  opacity: 0;
  position: absolute;
  top: 0%;
  left: 0%;
  /* border-radius: 10px; */
  /* background-color: rgb(4,111,2);   */
  transition: opacity 0.2s ease;
  width: 100%;
  height: 100%;
  overflow: auto;
  z-index: 5;
}

.rounded-corners {
  border-radius: 5px;
}

/* Hover controls are disabled in favour of JavaScript scroll function*/

/* overlay opacity controls */
/* .home-page-pitch-stack-div:hover img {
  opacity: 0.4;
}
.home-page-pitch-stack-div:hover .overlay-text {
  opacity: 1;
}
.home-page-pitch-stack-div:hover .overlay-div {
  opacity: 0.6;
} */

/* overlay background controls */
.green-overlay-bg {
  /* background-color: rgb(4,111,2);   */
  /* I modified colour as per below to get a match on the brightest part of adjacent gradient */
  background-color: rgb(4,100,2);
}
.blue-overlay-bg {
  background-color: rgb(31,127,167);
}
.orange-overlay-bg {
  background-color: rgb(168,75,32);
}
.purple-overlay-bg {
  background-color: rgb(118,22,173);
}
.yellow-overlay-bg {
  background-color: rgb(233,195,30);
}
.off-yellow-overlay-bg {
  background-color: rgb(218,167,26);
}
.red-overlay-bg {
  /* background-color: rgb(236,34,39); */
  /* I modified colour as per below to get a match on the brightest part of adjacent gradient */  
  background-color: rgb(175,25,29);

}

/********************************/
/*  set order for certain pitch boxes
/********************************/
.relief-one-three-pitch-box-order {
  order: 2;
}
.relief-one-three-image-order {
  order: 1;
}

/********************************/
/*  pitch box mods
/********************************/

.home-page-pitch-div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* border: 1px solid rgba(5, 149, 3,); */
  
  background-size: cover;

  /* z-index: 0; */
}

.projects-home-page-pitch-div-mod::before {
  background-image: linear-gradient(to left,rgba(5, 149, 3,0.75), rgba(233,195,30,0));
}

.projects-relief-one-mod::before {
  background-image: linear-gradient(to right,rgba(43,172,226,0.75), rgba(43,172,226,0));
}

.projects-relief-two-mod::before {
  background-image: linear-gradient(to left,rgba(226,101,43,0.75), rgba(226,101,43,0));
}

.projects-relief-three-mod::before {
  background-image: linear-gradient(to right,rgba(159,30,233,0.75), rgba(159,30,233,0));
}

.analytics-home-page-pitch-div-mod::before {
  background-image: linear-gradient(to left,rgba(233,195,30,0.75), rgba(233,195,30,0));
}

.analytics-relief-one-mod::before {
  /* background-image: linear-gradient(to right,rgba(236,34,39,0.75), rgba(43,172,226,0)); */
  background-image: linear-gradient(to right,rgba(5, 149, 3,0.75), rgba(43,172,226,0));
  
}

.analytics-relief-two-mod::before {
  /* background-image: linear-gradient(to left,rgba(4,111,2,0.75), rgba(226,101,43,0)); */
  background-image: linear-gradient(to left,rgba(226,101,43,0.75), rgba(159,30,233,0));  
}

.analytics-relief-three-mod::before {
  /* background-image: linear-gradient(to right,rgba(43,172,226,0.75), rgba(159,30,233,0)); */
  background-image: linear-gradient(to right,rgba(43,172,226,0.75), rgba(226,101,43,0));  
}

/********************************/
/*  testimonials
/********************************/

.testimonial-associations-html {
  display: flex;
  font-family: "Roboto-Local-Light-Italic";
  background-color: rgba(255, 255, 255, 0.05); 
  color: white;
  font-size: 1.3rem;
  margin: 0;
  text-align: center;
}

.testimonial-associations-child-div {
  display: flex;
  flex: 1;
  width: 100%; 
  /* border: 1px dotted pink; */
  margin: 10px;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.testimonial-associations-div {
  display: flex;
  width: 100%;
  /* border: 1px solid blue; */
  align-items: center;
  align-content: center;
  justify-content: space-around;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: 5px;
  row-gap: 5px;
}

/********************************/
/*  mods
/********************************/


/* added the min 1500px width because on full size screens the pitch text gets a bit cramped */
@media screen and (min-width: 1500px) {
  .home-page-pitch-div {
    height: 325px;
  }

  .home-page-image-div img {
    height: 325px;
  }
  
  #projects-relief-three-image-div img {
    height: 325px;
  } 
}


@media screen and (max-width: 750px) {
  .home-page-pitch-stack-div {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page-image-div {
    width: 95%;  
  }

  .home-page-pitch-div {
    width: 95%;   
  }

  .testimonial-associations-child-div{
    /* flex: 0; */
    width: 95%;
  }
  .testimonial-associations-div{
    width: 95%;
    /* flex-direction: column; */
    /* flex-wrap: nowrap; */
  }

  .home-page-pitch-headline-div {
    flex-grow: 1;
  }

  .home-page-pitch-description-div {
    flex-grow: 1;
  }

  .relief-one-three-pitch-box-order {
    order: 1;
  }
  .relief-one-three-image-order {
    order: 2;
  }

  .home-page-pitch-headline-div {
    align-items: flex-end;
  }

  .pitch-headline-html {
    font-size: calc(1.575rem + 1.7vw);
    font-weight: 300;
    line-height: 1.2;
  }
    
  .pitch-description-html .overlay-text {
    font-size: calc(1.4rem + 1.3vw);
    font-weight: 300;
    line-height: 1.2;
  }

  .home-page-pitch-description-div {
    align-items: flex-start;
  }
  /* .relief_one_background {
    background-image: linear-gradient(to top,rgba(233,195,30,1), rgba(233,195,30,0)) !important;
  }
  
  .relief_two_background {
    background-image: linear-gradient(to bottom,rgba(236,34,39,0.65), rgba(236,34,39,0)) !important;
  }
  
  .relief_three_background {
    background-image: linear-gradient(to top,rgba(43,172,226,1), rgba(43,172,226,0)) !important;
  } */



  
  .projects-home-page-pitch-div-mod::before {
    background-image: linear-gradient(to top,rgba(5, 149, 3,0.75), rgba(233,195,30,0));
  }

  .projects-relief-one-mod::before {
    background-image: linear-gradient(to top,rgba( 43,172,226,0.75), rgba(43,172,226,0));
  }
  
  .projects-relief-two-mod::before {
    background-image: linear-gradient(to top,rgba(226,101,43,0.75), rgba(226,101,43,0));
  }
  
  .projects-relief-three-mod::before {
    background-image: linear-gradient(to top,rgba(159,30,233,0.75), rgba(159,30,233,0));
  }

  .analytics-home-page-pitch-div-mod::before {
    background-image: linear-gradient(to top,rgba(233,195,30,0.75), rgba(233,195,30,0));
  }
 
  .analytics-relief-one-mod::before {
    background-image: linear-gradient(to top,rgba(4,111,2,0.75), rgba(43,172,226,0));
  }
  
  .analytics-relief-two-mod::before {
    background-image: linear-gradient(to top,rgba(226,101,43,0.75), rgba(159,30,233,0));
  }
  
  .analytics-relief-three-mod::before {
    background-image: linear-gradient(to top,rgba(43,172,226,0.75), rgba(226,101,43,0));
  }




  .testimonial-associations-div {
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .left-pitch-box::before {
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
  }
  
  .right-pitch-box::before {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
  }

}

/********************************/
/*  pitch box mods
/********************************/

.left-pitch-box::before {
  /* border-top-left-radius: 75px;
  border-bottom-left-radius: 75px; */
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.right-pitch-box::before {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  /* border-top-right-radius: 75px;
  border-bottom-right-radius: 75px; */
}

/* colors
yellow rgba(233,195,30,1)
red rgba(236,34,39,0.65)
blue rgba(43,172,226,1)
green rgba(5, 149, 3,1)
purple rgba(159,30,233,1)
orange rgba(226,101,43,1)
*/

.background-color-transparent {
  background-color: transparent !important;
}

/********************************/
/*  .home-page-content
/********************************/

.home-page-content {
  display: flex;
  /* border: 1px dotted red; */
  flex-direction: column;
  row-gap: 40px;
  
  background-color: transparent;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
  
}


.temp-horizontal-line-html-style {
  display: flex;
  /* border-width: 5vh; */
  height: 2px !important;
  /* background-image: linear-gradient(to right,black,rgba(233,195,30,1),black); */
  background-image: linear-gradient(to right,black,white,black);
  opacity: unset;
  width: 100%;
  border-radius: 2px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.temp-testimonial-associations-div {
  display: flex;
  width: 100%;
  /* border: 1px solid blue; */

  align-items: center;
  align-content: center;

  /* justify-content: space-around;
  flex-direction: row;
  flex-wrap: nowrap;
  column-gap: 5px;
  row-gap: 5px; */
}
