:root {
    /* MinFontSize + (MaxFontSize - MinFontSize)*(100vw - MinScreenSize)/(MaxScreenSize-MinScreenSize) */
    /* --html-font-size: calc(16px + (44 - 16)*(100vw - 400px)/(1600-400)); */
    --html-font-size: calc(16px + (44 - 16)*(100vw - 400px)/(1600-400));

    --bg-color:rgb(226, 238, 197);
    --txt-color:#696767;    
    --menu-font-size:0.6em;     
    --menu-hover-bg-color: rgb(99, 156, 241);
    --menu-hover-txt-color:white;    
    --menu-active-bg-color: rgb(104, 144, 196);
    --menu-active-txt-color:#696767;  
    --sqr-blue:rgb(51,59,149);    
    --sqr-green:rgb(24,132,65);    
}
  
  
/* --------------- applies to html tag ------------------------- */


html, body {
  max-width: 1600px;
  font-family: 'Roboto', sans-serif;
  font-size: var(--html-font-size); 
  color: var(--txt-color);
  /* box-sizing: border-box; */
  background-color: var(--bg-color);
  /* height: 100%; */
  padding: 5px;
  margin: auto; 
  vertical-align: middle;
}

@media screen and (min-width: 50em) {
  html {
    font-size: 2vw;
  }
}
@media screen and (min-width: 75em) {
  html {
    font-size: 1.5em;
  }
}

/* to ensure not too much padding on menu */
@media screen and (min-width: 1200px) {
   .header a.active, .header a.btn, .header .dropdown .dropbtn  {
    padding: 12px;
  }
}
@media screen and (min-width: 1600px) {
  .header a.active, .header a.btn, .header .dropdown .dropbtn  {
    font-size: 22px;
  }
}

@media screen and (max-width: 600px) {
  .header-right .dropdown 
  {
    float: none;
  }
  .header-right .dropdown-content 
  {
    position: relative;
    padding-left: 26px;
    padding-top:0px;
    padding-bottom: 0px;
    background-color: rgb(236, 240, 227); ; 
  }
  .header-right .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 16px;
    padding-top:8px;
    padding-bottom: 8px;
  }
}

/* @media screen and (min-width: 600px) {
  .dropdown-content a  {
    padding-left: 26px;
    padding-top:8px;
    padding-bottom: 8px;
  }
} */
/* --------------- the main container ------------------------- */
  
  .container {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: 200px 1fr; 
    /* grid-template-rows: 98px minmax(80px, max-content) minmax(min-content, max-content) auto 40px;                */
    grid-template-rows: 98px auto minmax(min-content, max-content) auto auto auto auto auto;               
    grid-template-areas: 
        "l h"
        "s s"
        "i i"
        "c c"
        "j j"
        "k k"
        "m m"
        "f f";
}

.logo {
  grid-area: l;
  /* background-color: lightseagreen; */
  align-self: center;
  justify-self: center;
}
.header {
    grid-area: h;
    font-size: var(--menu-font-size);
    background-color:  var(--bg-color);
    /* background-color: lightcoral; */
    align-self: center;
}
.slideshow-container {
  grid-area: s;
  position: relative;
  overflow: hidden;
  /* background-color: purple; */
  height: 100%;
}
.info1 {
    grid-area: i;
    /* padding-top: 3em; */
    /* padding-bottom: 3em; */
    justify-self: center;
    /* display:grid;
    grid-gap: 10px;
    grid-template-columns: 2fr 1fr;
    grid-auto-rows: auto auto;       */

}
.subgrid1 {
  grid-area: c;
  font-size: larger;
  display: grid;
  background-image: url(../images/homepage/why-canepro-bg.jpg);
  background-size: cover;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-column-gap: 0.7em;
  grid-row-gap: 0.5em;
  grid-auto-rows: auto; 
  padding:0.5em;             
}
.info2 {
  grid-area: j;
}
.subgrid2 {
  grid-area: k;
  font-size: larger;
  display: grid;
  /* grid-gap: 5px; */
  grid-column-gap: 0.6em;
  grid-row-gap: 0.4em;
  padding: 0em 0.5em;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-auto-rows: auto;              
}

.c2 {
  justify-content: center;
  align-items: center;
  color:white;
  /* background-color: var(--bg-color); */
  display: block;
}
.footer {
    grid-area: f;
    padding-top: 3em;
    justify-self: center;
    
    /* background-color: lightgreen; */
}
.logo-img {
  float: left;
  height:75px;
  /* background-color: rgb(154, 100, 190); */
}
.footerimage-container{
  /* justify-content: center;
  align-content: center;  */
}
.footerimage{
  width:15em;
}

 /* ---------------------------------------------  Info Text ------------------------------------ */



.i1 {
  /* padding-left: 40px; */
  font-size : calc(16px + (44 - 16)*(100vw - 400px)/(1600-400));
  /* font-weight: bold; */
  text-align: left;
  line-height: 1.4em;
}
.i2 {
  padding: 10px;
  font-size : 1.75vw;
  color: #696767;
  font-weight: bold;
  text-align: center;
}
.i3 {
  padding: 10px;
  font-size : 1.75vw;
  text-align: center;
  color: #696767;
}
.icon{
  width: 1.5em; 
  /* background-color: darkorchid; */
}
.icon-smaller{
  width: 1.2em; 
  /* background-color: darkorchid; */
}
.c1 {
  justify-content: center;
  align-items: center;
  color:white;
  /* background-color:peru; */
  display: block;
}

.icon-header{
  display: flex;
  max-width: 100%;
  /* justify-content: center; */
  align-items: center;
  padding: 10px;
  /* background-color: darkgreen; */
  width: fit-content;
}

.icon-title{
  font-size:calc(16px + (28 - 16)*(100vw - 400px)/(1600-400));;
  text-align: left;
  padding: 10px;
  text-transform: uppercase;
  vertical-align: middle;
  /* background-color: darkblue; */
}
.icon-title-smaller{
  font-size:calc(13px + (20 - 13)*(100vw - 400px)/(1600-400));;
  padding: 8px;
  text-transform: none;
  color:var(--txt-color);
}
.icon-text{
  font-size:calc(12px + (22 - 12)*(100vw - 400px)/(1600-400));;
  line-height: 1.4;
  /* background-color: purple; */
}
.icon-text-smaller{
  font-size:calc(11px + (18 - 11)*(100vw - 400px)/(1600-400));;
  line-height: 1.2;
  color: #696767;
  /* background-color: purple; */
}

.j1 {
  padding: 2em 0em 1.5em 0em;
  font-size: 0.9em;
  color: #696767;
  font-weight: bold;
  text-align: center;
}

 /* ---------------------------------------------  NAV ------------------------------------ */
/* 
 .header {
  overflow: hidden;
  background-color: #f1f1f1;
  padding: 20px 10px;
} */

.header a {
  float: left;
  color:  var(--txt-color);
  padding: 1vw;
  text-decoration: none;
  border-radius: 3px;
}

.header a.logo {
  font-weight: bold;
} 

.header a:hover {
  background-color: var(--menu-hover-bg-color);
  color: var(--menu-hover-txt-color);
}

.header a.active {
  background-color:var(--sqr-blue);
  color: white;
}

.header-right {
  float: right;
  background-color: var(--bg-color);
}

/* .header-centered {
  next 2 lines center horizontally the width somehow is zero as no background shows 
  margin: auto;  
  width: 50%;
} */

@media screen and (max-width: 600px) {
  .header a {
    float: none;
    display: block;
    text-align: left;
    padding-left: 16px;
    padding-top:8px;
    padding-bottom: 8px;
  }
  .header-right {
    float: none;
  }
   .logo {
    display: none;
  }
  .container {
      grid-template-columns: 0px 1fr;  
      grid-template-rows: 98px auto minmax(min-content, max-content) auto auto auto auto auto;               
    }  
  .subgrid1 {
    grid-template-columns: 1fr;
  }
  .subgrid2 {
    grid-template-columns: 2fr;
  }
}


@media screen and (min-width: 800px) {
  .subgrid1 {
    grid-template-columns: 1fr 1fr;
    } 
  }
  @media screen and (min-width: 900px) {
.subgrid2 {
  grid-template-columns: 1fr 1fr 1fr;
  } 
}


 /* ---------------------------------------------  Drop Down ------------------------------------ */

 /* Add the background color to navbar links on hover */
.topmenu a:hover, .dropdown:hover .dropbtn {
  background-color:var(--menu-hover-bg-color);
  color: var(--menu-hover-txt-color);
}

/* The dropdown container */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Dropdown button */
.dropdown .dropbtn {
  border: none;
  outline: none;
  color: var(--menu-active-txt-color);
  padding: 1vw;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  border-radius: 3px;
}

/* Dropdown content (hidden by default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  float: none;
  color:var(--txt-color);
  padding: 12px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topmenu (.icon) */
/* @media screen and (max-width: 600px) {
  .topmenu a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topmenu a.icon {
    float: right;
    display: block;
  }
} */

 /* ---------------------------------------------  Slider ------------------------------------ */



/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  grid-area: s;
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}


/* Fading animation */
/* .fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
} */

/* On smaller screens, decrease text size */

/* http://css3.bradshawenterprises.com/cfimg/ */

@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}

.fade1 {
  -webkit-animation-name: dofade1;
  -webkit-animation-duration: 8s;
  animation-name: dofade1;
  animation-duration: 8s;
  animation:dofade1 8s infinite;
}
.fade2 {
  -webkit-animation-name: dofade2;
  -webkit-animation-duration: 8s;
  animation-name: dofade2;
  animation-duration: 8s;
  animation:dofade2 8s infinite;
}
.fade3 {
  -webkit-animation-name: dofade3;
  -webkit-animation-duration: 8s;
  animation-name: dofade3;
  animation-duration: 8s;
  animation:dofade3 8s infinite;
}


 @keyframes dofade1
{
  0%   {opacity:1}
  33.333% { opacity: 0}
  66.666% { opacity: 0}
  100% { opacity: 1}
}

@keyframes dofade2
{
  0%   {opacity:0}
  33.333% { opacity: 1}
  66.666% { opacity: 0 }
  100% { opacity: 0}
}
@keyframes dofade3
{
  0%   {opacity:0}
  33.333% { opacity: 0}
  66.666% { opacity: 1}
  100% { opacity: 0}
}


/* -------------------------------   TEXT Animation -------------------------------------- */

.slide-overlay-text{
  font-size: x-large;
  position: absolute;
  right:10;
  top: 50%;
  color: white;
}

.cell-phone{
  font-size: 2.7vw;
  position: absolute;
  left: 30.4%;
  width: 12%;
  top: 32.8%;
  font-style: italic;
  line-height: 106%;
  animation-name: cell-animation;
  animation-duration: 20s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  text-shadow: 2px 2px 4px #000000;
}

.android-overlay{
  position: absolute;
  left: 28.4%;
  width: 14.25%;
  top: 26%;
}

.rhs{
  font-size: 2.5vw;
  position: absolute;
  left: 65%;
  width: 32%;
  top: 10%;
  line-height: 115%;
  text-shadow: 3px 3px 5px #000000;
  background: rgba(255, 255, 255, 0.45);
  border: 1px;
  border-color: white;
  border-style: solid;
  padding: 0.7%;
  animation-name: rhs-animation;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.test{
  font-size: 2.5vw;
  position: absolute;
  left: 63%;
  width: 32%;
  top: 10%;
  line-height: 115%;
  text-shadow: 3px 3px 5px #000000;
  background: rgba(255, 255, 255, 0.45);
  border: 1px;
  border-color: white;
  border-style: solid;
  padding: 0.7%;
  animation-name: test-animation;
  animation-duration: 16s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes rhs-animation {
	from {top: -300px;}
	to {top: 400px;}
}

@keyframes test-animation {
	0% {opacity: 0;}
	50% {opacity: 1;}
	100% {opacity: 0;}
}

@keyframes cell-animation {
	0%, 33.33% { left: -100%; opacity: 0; }
  41.63%, 58.29% { left: 30.4%; opacity: 1; }
  66.66%, 100% { left: 110%; opacity: 0; }
}

@media screen and (min-width: 1600px) {
  .cell-phone{
      font-size:43.5px;
  }
  .test{
    font-size:40.7px;
  }
  .rhs{
    font-size:40.7px;
  }
  .i1{
    font-size:37px;
  }  
  .i2{
    font-size:28.2px;
  }  
  .i3{
    font-size:28px;
  } 
  .icon-text{
    font-size:22px;
  }   
  .icon-title{
    font-size:25px;
  }  
  .j1{
    font-size:37px;
  } 
}

/* @media screen and (min-width: 866px) {
  .i1{
    font-size:26px;
  } 
} */


/* @keyframes rhs-animation {
	0%, 8.3% { right: 100%; opacity: 0; }
  8.3%,25% { left: 80%; opacity: 1; }
  33.33%, 100% { bottom: 110%; opacity: 0; }
} */




@keyframes anim-3 {
	0%, 66.66% { left: -100%; opacity: 0; }
  74.96%, 91.62% { left: 25%; opacity: 1; }
  100% { left: 110%; opacity: 0; }
}

/* -------------------------------   Slide Show for four slides -------------------------------------- */

.slides{
  height:100%;
}

.non-last-image{
  position: absolute;
}

.last-image{
  position: relative;
}

.slides img{
  width:100%;
  height: 100%;
  animation-name: FadeInOut;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 32s;
}

.slides img:nth-of-type(1) {
  animation-delay: 24s;
}
.slides img:nth-of-type(2) {
  animation-delay: 16s;
}
.slides img:nth-of-type(3) {
  animation-delay: 8s;
}
.slides img:nth-of-type(4) {
  animation-delay: 0;
}

.android-slides img{
  animation-name: FadeInOutAndroid;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-duration: 20s;
}
.android-slides img:nth-of-type(1) {
  animation-delay: 15s;
}
.android-slides img:nth-of-type(2) {
  animation-delay: 10s;
}
.android-slides img:nth-of-type(3) {
  animation-delay: 5s;
}
.android-slides img:nth-of-type(4) {
  animation-delay: 0;
}


@keyframes FadeInOut {
  0% {opacity:1;}
  17% {opacity:1;}
  25% {opacity:0;}
  92% {opacity:0;}
  100% {opacity:1;}
 }
 
 @keyframes FadeInOutAndroid {
  0% {opacity:1;}
  17% {opacity:1;}
  25% {opacity:0;}
  92% {opacity:0;}
  100% {opacity:1;}
 }
 

 
 
