*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

html {
  width:100vw;
  height: 100vh;
  display: table;
}

body {
  width:100vw;
  display:table-cell;
}

html, body {
  margin: 0px;
  padding: 0px;
  background:linear-gradient(-45deg, #1a5a5a, #23D5AB,#23A6D5,#13d3d3);
}
.wrapper{
  height:50vh;
} 
#welcome-section{
  height:100%;
}
.f-s-4{
  font-size:4em;
}
.container{
  height:100%;
}
.row{
  height:90%;

}
.row-eq-height , .row-eq-height1 {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: center;
}
.row-eq-height1{
  width: -webkit-fill-available;
}
.height-inherit{
  height:inherit;
}
.text-white{
  color:white;
}
.text-color{
  color:darkblue;
}
.carousel_wrapper {
  position: relative;
  width: 320px;
  perspective: 1000px;
  text-align: center;
  margin-left:auto;
  margin-right:auto;
}

.carousel {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(-360deg) translateZ(-60px); /* add reverse transformation from the slides */
  animation: swirl 40s steps(10000, end) infinite; /* run `swirl` animation (defined at end of CSS) infitely, with animation lasting 40 seconds, and 10,000 steps between the FROM and TO values in the animation for a smooth rotation */
}

.slide {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 200px;
  height: 187px;
}

.slide img {
  width: 200px;
  height: 187px;
  border: 3px inset rgba(19, 211, 211, 0.75);
  box-shadow: 0 0 15px 3px rgba(19, 211, 221, 0.9);
}
.image-hover{
  margin-top:20px;
  margin-bottom:20px;
}
.image-hover:hover {
  -webkit-transform:scale(1.1); /* Safari and Chrome */
  -moz-transform:scale(1.1); /* Firefox */
  -ms-transform:scale(1.1); /* IE 9 */
  -o-transform:scale(1.1); /* Opera */
   transform:scale(1.1);

}


/*
9 Slides total: 360 Degrees (full circle) --> 360/3 = 120 --> our increment for rotation

Some math. Consider how the carousel will be set up. It's going to be a 3D circle, like an orbit. The orientation will be such that it would be like setting a ring down on a table, then bending down and looking at the ring head on from the edge of the table. The main "front" image will be entirely front-facing. The other images will be rotated slightly to make a full circle. You could sketch this out in 2D from a bird's eye view, and you'd end up with a picture like the following:

https://cl.ly/image/2P3E1U0W0c29

Each triangle/piece would be a slide, hence 9 pieces. That being said, let's do some calculations, but we'll use the dimensions of our elements rather than those in the picture.

So, we're rotating all the slides in 40º increments relative to each other, because 360º makes a full circle, and we have 9 elements: 360/3 = 120

In the picture above, we want to find the radius of the circle (which isn't exactly a circle because it's made up of triangles). So we can cut each triangle in half and solve for `r` (radius). We can solve for `r` using some geometry and our own elements' dimensions. 

The width of the slides is 300px. We're going to split those triangles in half and use the TANGENT function in geometry/trigonemty to solve for `r`. And since we're splitting each of the 3 triangles (the slides) in half for this, we need to account for the fact that our key angle is now going to be 60º and not 120º. We can solve for `r` by taking our smaller triangles' width (150px) and dividing by the tangent of 20º (in degrees, not radians). So:

            150
   r =  -----------
          tan(60º)

Here's a screenshot of me doing the calculations in JavaScript, right in the browser console!

Math things: https://cl.ly/image/1t0j1V2Y2l2Z

So, `r` is (about) 86px long! This means we need to TRANSLATE the slides in the Z 3-dimensional plane by 412px. This should be done AFTER the rotateY transformation.
*/

.slide.one {
  transform: rotateY(0deg) translateZ(60px);
}
.slide.two {
  transform: rotateY(120deg) translateZ(60px);
}
.slide.three {
  transform: rotateY(240deg) translateZ(60px);
}


/*
CSS3 ANIMATION
-------------------
Simply rotates the carousel around the Y axis by using rotateY and starting at initial value, -360º, and going to final value 0º, then resetting.
*/

@keyframes swirl {   
  from {
    transform: rotateY(-360deg);
  }
  to {
    transform: rotateY(0deg);
  }
} 

#services-section{
  margin:auto;
  height:inherit;
}

.services-tab{
  position: relative;
  font-size: 90%;
  text-decoration: none;
  background:transparent;
  transition: all ease .5s;
  text-align:center;
 
  color:rgba(31,181,172,.9);
  width:250px;
  height:200px;
}
.services-tab:hover{
  color:white;
  transform:scale(1.1);

}
.f-s-4{
  font-weight:bold;
  font-size:3em;
}

.spn_header{
  font-size:4em;
  font-weight:bold;

}

@media screen and (max-width:500px){
  
  .wrapper{
    height: 70vh;
  }
  .wrapper-new{
	margin-top:140px;
    height: 100vh;
  }
  .row-eq-height { 
    display:grid;
  }
  .row-eq-height1 {
    height:auto;
    display:block;
    margin:auto!important;
  }
  .carousel_wrapper {
    position: relative;
    width: 200px;
    perspective: 700px;
    text-align: center;
    margin-left:auto;
    margin-right:auto;
  }
  
  .slide {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    height: 187px;
  }

  .slide img {
    width: auto;
    height: auto;
    border: 3px inset rgba(19, 211, 211, 0.75);
    box-shadow: 0 0 15px 3px rgba(19, 211, 221, 0.9);
  }
  .services-tab {
      width: auto;
      height: auto;
      margin:auto;
  }


  .m-t-50{
    margin-top:70px;
  }
  .m-t-40{
    margin-top:10px;
  }
  .hidden-arrow{
    display:none;
  }
  .mar-cls{
    padding:20px;
  }
 
}
@media only screen and (min-width:500px) and (max-width:750px){
  
  .wrapper{
    height:85vh;
  }
  .row-eq-height {
    display:grid;
  }
  .row-eq-height1 {
    display:flex;
    flex-direction: column;
  }

  .mar-cls{
    padding:20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .services-tab {
      width: 250px;
      height: auto;
  }
  #services-section{
    margin:auto;
    height:auto;
    margin-top:100px!important;
  }
}
@media only screen and (min-width:750px) and (max-width:770px){

  #services-section{
    margin:auto;
   
  }
  .services-tab {
      width: auto;
      height: auto;
  }
  
  .carousel_wrapper {
    position: relative;
    width: 300px;
    perspective: 700px;
    text-align: center;
    margin-left:auto;
    margin-right:auto;
  }
}
@media only screen and (min-width:900px) and (max-width:1030px){
  .services-tab{
    margin:auto;
  }
}