/* MODULAR BUNGALOWS ONLY CODE FOR AJAX */
@media only screen and (min-width: 900px){
	.solax__counter--container{
		position: absolute;
		z-index: 10;
    	top: 43vh;
		right: 11vw;
	}
	/* .solax__counter{
		background: rgb(255 255 255 / 86%);
		border-radius: 14px;
		border: 7px solid #666922f5;
	}*/
	.solax__counter--heading{
	    margin-left: auto;
		margin-right: auto;
		background-color: #6c6f2b;
		color: #fff;
		padding: 5px 20px 0px 20px;
		display: flex;
		max-width: fit-content;
    font-size: 17px;
	}
}
@media only screen and (max-width: 900px){
	.solax__counter--heading{
		display:none;
	}
}

/* MODULAR BUNGALOWS ONLY CODE FOR AJAX CODE END */

.solax-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
@media only screen and (max-width: 900px){
  .solax-container{
    grid-template-columns: repeat(3, 1fr);
  }
}
@media only screen and (max-width: 600px){
  .solax-container{
    grid-template-columns: repeat(2, 1fr);
  }
}
.solax-counter {
    display: flex;
    margin: 10px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    justify-content: center;
    flex-direction: column;
  }
  .solax-primary .solax-counter{
    box-shadow: 7px 3px 1px 2px #007cba;
    background: #005a87;
  } 
  .solax-secondary .solax-counter{
    box-shadow: 7px 3px 1px 2px #7bdcb5;
    background: #058153;
  } 
  .solax-counter-label {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
  }
  
  .solax-counter-value {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
  }
  
  /* Add color for specific values */
  .solax-counter-label {
    color: #FFF;
    text-shadow: 0px 0px 5px #333;
  }
  
  
  .solax-counter-value {
    color: #FFF;
    text-shadow: 0px 0px 5px #333;
  }
  .solax-inverter-title{
    text-align: center;
    font-size: 2em;
    background: darkred;
    color: #fff;
    padding: 20px;
  }
  
  /* COUNTER CSS */
  .solax__counter{
    background: rgb(255 255 255 / 90%);
    padding: 20px;
    max-width: 516px !important;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 1fr);
    justify-items: center;
    box-sizing: border-box;
    }
    /* @media only screen and (max-width: 900px){ */
      .solax__counter{
        padding: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
        border-radius: 0px 0px 0px 8px;
        opacity: 0;
        width: 0;
        overflow: hidden;
        transition: padding 0.5s ease-out,width 0.5s ease-out, opacity 0.5s ease-out;
      }
      .solax__counter:not(.show) div {
        width: 0;
        visibility: hidden;
        opacity: 0;
        height: 0;
      }
      .show {
        padding: 20px;
        display: grid;
        opacity: 1;
        width: 515px;
        transition: padding 0.5s ease-in,width 0.5s ease-in, opacity 0.5s ease-in;
      }
    /* } */
    @media only screen and (max-width: 600px){
      .solax__counter{
        padding:0;
        justify-items: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
        border-radius: 0px 0px 0px 8px;
      }
      .show{
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        padding: 10px;
        /* max-width: 85vw !important;
        min-width: 280px; */
        width: 306px;
      }
      
    }
    @media only screen and (max-width: 350px){
      .show{
        padding: 5px;
        width: 256px;
      }
    }
  .solax__counter_solar{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 95px;
    height: 95px;
    z-index: 10;
    background-image: url(assets/images/solar_panels.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    grid-column: 1;
    grid-row: 1;
  }
  .solax__counter_solar--value{
    margin-bottom: 15px;
    font-size: 12px;
    color: #fc8920;
    font-weight: 500;
  }
  @media only screen and (max-width: 600px){
    .solax__counter_solar--value{
      font-size:12px;
	  margin-bottom: 12px;
    }
    .solax__counter_solar{
      width: 85px;
      height: 85px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__counter_solar--value{
      font-size:10px;
      margin-bottom: 8px;
    }
    .solax__counter_solar{
      width: 70px;
      height: 70px;
    }
  }

  .solax__counter_inverter{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 95px;
    height: 95px;
    z-index: 10;
    z-index: 10;
    background-image: url(assets/images/inverter.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    grid-column: 3;
    grid-row: 1;
  }
  .solax__counter_inverter--value{
    margin-bottom: 15px;
    font-size: 12px;
    color: #fc8920;
    font-weight: 500;
  }
  @media only screen and (max-width: 600px){ 
    .solax__counter_inverter--value{
      font-size:12px;
      margin-bottom: 10px;
    }
    .solax__counter_inverter{
      width: 85px;
      height: 85px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__counter_inverter--value{
      font-size:10px;
      margin-bottom: 7px;
    }
    .solax__counter_inverter{
      width: 70px;
      height: 70px;
    }
  }
  .solax__counter_batt{
    display: flex;
    width: 95px;
    height: 95px;
    z-index: 10;
    z-index: 10;
    background-image: url(assets/images/battery.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    align-content: center;
    flex-direction: column;
    flex-wrap: wrap;
    text-align: center;
    justify-content: end;
    grid-column: 2;
    grid-row: 3;
  }
  .solax__counter_batt--perc{
    margin-bottom: 11px;
    font-size: 14px;
    color: #fc8920;
    font-weight: 500;
  }
  .solax__counter_batt--watt{
    margin-bottom: 15px;
    font-size: 12px;
    color: #fc8920;
    font-weight: 500;
  }
  @media only screen and (max-width: 600px){
    .solax__counter_batt{
      grid-column: 1;
      grid-row: 3;
    }
    .solax__counter_batt--perc{
      font-size:12px;
      margin-bottom: 8px;
    }
    .solax__counter_batt{
      width: 85px;
      height: 85px;
    }
	.solax__counter_batt--watt{
      margin-bottom: 11px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__counter_batt--perc{
      font-size:10px;
      margin-bottom: 3px;
    }
    .solax__counter_batt{
      width: 70px;
      height: 70px;
    }
    .solax__counter_batt--watt{
      font-size:10px;
      margin-bottom: 7px;
    }
  }

  .solax__counter_feedin{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 95px;
    height: 95px;
    z-index: 10;
    background-image: url(assets/images/feed_in_power.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    grid-column: 5;
    grid-row: 1;
  }
  .solax__counter_feedin--value{
    margin-bottom: 15px;
    font-size: 12px;
    color: #fc8920;
    font-weight: 500;
  }
  @media only screen and (max-width: 600px){
    .solax__counter_feedin{
      grid-column: 4;
      grid-row: 2;
    }
    .solax__counter_feedin--value{
      font-size:12px;
	  margin-bottom: 12px;
    }
    .solax__counter_feedin{
      width: 85px;
      height: 85px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__counter_feedin--value{
      font-size:10px;
      margin-bottom: 10px;
    }
    .solax__counter_feedin{
      width: 70px;
      height: 70px;
    }
  }

  .solax__counter_load{
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 95px;
    height: 95px;
    z-index: 10;
    background-image: url(assets/images/load_generator.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    grid-column: 4;
    grid-row: 3;
  }
  .solax__counter_load--value{
    margin-bottom: 15px;
    font-size: 12px;
    color: #fc8920;
    font-weight: 500;
  }
  @media only screen and (max-width: 600px){
    .solax__counter_load{
      grid-column: 3;
      grid-row: 3;
    }
    .solax__counter_load--value{
      font-size:12px;
	  margin-bottom: 11px;
    }
    .solax__counter_load{
      width: 85px;
      height: 85px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__counter_load--value{
      font-size:10px;
      margin-bottom: 8px;
    }
    .solax__counter_load{
      width: 70px;
      height: 70px;
    }
  }

  .solax__arr--solar,.solax__arr--inverter,.solax__arr--batt,.solax__arr--feedin,.solax__arr--load{
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .solax__arr--bg{
    width:100%;
    height: 13px;
    border-radius: 8px;
    background-color: #d6d6d6;
    background-image: url(assets/images/arrows.gif);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position-x: 10px;
    z-index: 1;
  }

  .solax__arr--load{
  grid-column: 2;
  grid-row: 2;
  transform: rotateZ(120deg);
  }
  @media only screen and (min-width: 600px){
    .solax__arr--load.invert{
      grid-column: 2;
      grid-row: 2;
      transform: rotateZ(298deg);
    }
    .solax__arr--load.invert .solax__arr--bg{
      position: absolute;
      bottom: 10px;
      width: 120px;
      right: 0;
      left: 8px;
    }
  }
  .solax__arr--load .solax__arr--bg{
    position: absolute;
    bottom: 75px;
    width: 119px;
    right: 10px;
  }
    @media only screen and (max-width: 600px){
    .solax__arr--load{
      grid-column: 2;
      grid-row: 2;
      transform: rotateZ(128deg);
    }
    .solax__arr--load.invert{
      grid-column: 2;
      grid-row: 2;
      transform: rotateZ(311deg);
    }
    .solax__arr--load .solax__arr--bg{
      width: 127px;
      bottom: 33px;
      right: -44.75px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__arr--load .solax__arr--bg{
      width: 122px;
      bottom: 27px;
      right: -40.75px;
    }
  }
  .solax__arr--feedin{
    grid-column: 4;
    grid-row: 2;
    position: relative;
  }
  @media only screen and (max-width: 600px){
    .solax__arr--feedin {
      grid-column: 3;
      grid-row: 2;
      position: relative;
    }
  }
  .solax__arr--feedin .solax__arr--bg{
    position: absolute;
    width: 96px;
    top: 8px;
    left: 24px;
    transform: rotateZ(151deg);
  }
  .solax__arr--feedin.invert .solax__arr--bg{
    position: absolute;
    width: 96px;
    top: 8px;
    left: 24px;
    transform: rotateZ(328deg);
  }
  @media only screen and (max-width: 600px){
    .solax__arr--feedin .solax__arr--bg {
      position: absolute;
      width: 36px;
      top: 41px;
      left: 50px;
      transform: rotateZ(180deg);
    }
    .solax__arr--feedin.invert .solax__arr--bg {
      position: absolute;
      width: 36px;
      top: 41px;
      left: 50px;
      transform: rotateZ(0deg);
    }
  }
  @media only screen and (max-width: 360px){
    .solax__arr--feedin .solax__arr--bg {
      width: 38px;
      top: 29px;
      left: 40px;
    }
    .solax__arr--feedin.invert .solax__arr--bg {
      position: absolute;
      width: 38px;
      top: 29px;
      left: 40px;
      transform: rotateZ(0deg);
    }
  }

  .solax__arr--inverter{
    grid-column: 4;
    grid-row: 1;
    transform: rotateZ(70deg);
    align-items: end;
  }
  @media only screen and (max-width: 600px){
    .solax__arr--inverter {
      grid-column: 3;
      grid-row: 2;
      transform: rotateZ(90deg);
      align-items: end;
    }
  }
  .solax__arr--inverter .solax__arr--bg{
    position: absolute;
    width: 79px;
    bottom: -7px;
    right: -27px;
    z-index: 99999;
  }
  @media only screen and (max-width: 600px){
    .solax__arr--inverter .solax__arr--bg {
      position: absolute;
      width: 49px;
      bottom: 41px;
      right: 36px;
      z-index: 99999;
  }
  }
  @media only screen and (max-width: 360px){
    .solax__arr--inverter .solax__arr--bg{
      width: 55px;
      right: 29px;
      bottom: 31px;
  }
  }

  .solax__arr--solar{
    grid-column: 2;
    grid-row: 1;
  }
  .no__arrow .solax__arr--bg{
    background-image: none;
  }
  @media only screen and (max-width: 600px){
    .solax__arr--solar{
      min-width:38px;
    }
  }

  .solax__arr--batt{
    grid-column: 4;
    grid-row: 2;
    transform: rotateZ(72deg);
  }
  @media only screen and (max-width: 600px){
    .solax__arr--batt{
      grid-column: 3;
      grid-row: 2;
      transform: rotateZ(90deg);
    }
  }
  .solax__arr--batt .solax__arr--bg{
    position: absolute;
    width: 64px;
    bottom: 25px;
    right: -1px;
  }
  @media only screen and (max-width: 600px){
    .solax__arr--batt .solax__arr--bg {
      position: absolute;
      width: 42px;
      bottom: 41px;
      right: -3px;
    }
  }
  @media only screen and (max-width: 360px){
    .solax__arr--batt .solax__arr--bg {
      position: absolute;
      width: 42px;
      bottom: 31px;
      right: -6px;
    }
  }
/* MOBILE VIEW */
/* @media only screen and (min-width: 900px){
  .solax__counter--container button{
    display: none;
  }
} */
/* @media only screen and (max-width: 900px){ */
  .solax__counter--container{
    padding:0 !important;
    display:flex;
    position: fixed;
    top: 40%;
    right: 0;
    /* transform: translate(-50%, -50%); */
    background-color: transparent;
    /* max-width: 400px; */
    z-index: 999;
  }
  .solax__counter--container button{
    font-size: 10px;
    padding: 5px 10px;
    font-weight:bold;
    background: #058153;
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
    box-sizing: border-box;
    border-radius: 8px 0px 0px 8px;
    min-height: 325px;
  }
  .solax__counter--container button span{
    writing-mode: vertical-rl;
    text-orientation: upright;
  }
  .solax__counter--container .solax-counter{
    background-color: #fff;
  }
/* } */
@media only screen and (max-width: 600px){
  .solax__counter--container button{
    min-height: 275px;
  }
}
@media only screen and (max-width: 360px){
  .solax__counter--container button{
    min-height: 230px;
  }
}