$text-color: rgba(255, 255, 255, 0.3);
$duration: 5s;

@font-face {
  font-family: Flaticon;
  src: url(../icons/flaticon.eot);
  src: url(../icons/flaticon.eot#iefix) format("embedded-opentype"),
    url(../icons/flaticon.woff) format("woff"),
    url(../icons/flaticon.ttf) format("truetype"),
    url(../icons/flaticon.svg) format("svg");
  font-weight: 400;
  font-style: normal
}

[class^=aticon-]:before, [class*=" aticon-"]:before,
[class^=aticon-]:after, [class*=" aticon-"]:after {
  font-family: Flaticon;
  font-size: 16px;
  font-style: normal;
  margin: 0 5px 0 0;
  padding: 8px;
  border-radius: 50%;
  color: #fff
}

.aticon-facebook:before {
  content: "\e000";
  background: #3f5896
}

.aticon-google:before {
  content: "\e001";
  background: #d6492f
}

.aticon-linkedin:before {
  content: "\e002";
  background: #126698
}

.aticon-twitter:before {
  content: "\e003";
  background: #46cbfd
}

.aticon-dribbble:before {
  content: "\e004"
}

img.circle {
  border-radius: 50%
}

.ateam ul {
  list-style-type: none;
  margin: auto;
  display: grid;
  grid-auto-flow: dense;
  justify-content: center;
  grid-auto-rows: 450px;
  grid-template-columns: 1fr;
  padding-left: 0;
}

.ateam ul li {
  margin-top: 15px;
  float: left;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 15px;
}

.ateam .at-inner {
  margin: 0 10px 10px
}

.ateam .at-name, .ateam .at-designation, .ateam .at-desc, .ateam {
  margin: 10px 0 0;
}

.at-default {
  text-align: center
}

.at-default .at-name, .at-default .at-designation {
  line-height: 1
}

.at-default .at-name {
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  color: #252525;
  z-index: 2;
  position: absolute;
  left: 10px;
  bottom: 2em;
}

.at-default .at-designation {
  position: absolute;
  left: 10px;
  bottom: 15px;
  font-size: 1em;
  color: #000;
  z-index: 2;
}

.at-desc {
  color: #000;
}

.at-classic .at-inner {
  background: #f8f8f8;
  padding: 15px;
  border: 1px solid #ebebeb
}

.at-classic figure {
  float: left;
  width: 25%;
  margin: 0 5% 0 0;
  text-align: center
}

.at-classic .at-info {
  float: left;
  width: 70%
}

.at-classic .at-designation {
  float: right;
  background: silver;
  color: #fff;
  padding: 3px 10px;
  font-size: 13px;
  line-height: 1
}

.at-classic .at-name {
  margin-top: 0
}

.at-classic .at-social {
  text-align: left;
  margin-top: 15px
}

.at-overlay-social figure {
  margin: 0;
  overflow: hidden;
  position: relative
}

.at-overlay-social .overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 20;
  background: rgba(0, 0, 0, .8);
  transition: all .3s;
  width: 100%;
  height: 0;
  margin-top: 20px
}

.at-overlay-social figure:hover .overlay {
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%
}

.ateam {
  display: block;
  width: 100%;
}

.ateam a {
  color: #252525;
}

.ateam>* {
  flex: 1 1 160px;
}

.at-social {
  position: absolute;
  /* right: 0px; */
  left: -30px;
  padding-left: 10px;
  padding-right: 30px;
  margin-left: 25px;
  top: -5px;
  z-index: 2;
  font-size: 2em;
  transition: all 250ms ease-in-out;
  overflow: hidden;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  white-space: nowrap;
}

.at-social::after {
  position: absolute;
  content: "";
  background-color: #f5d061;
  width: 100%;
  height: 100%;
  top: 0px;
  left: -10px;
  transition: 0.3s;
  transform: skewX(-20deg);
  z-index: -1;
}

.at-social a:hover {
  color: #252525;
}

.at-inner {
  position: relative;
  float: left;
  background-color: white;
  height: 100%;
  width: 100%;
  transition: all 250ms ease-in-out;
  object-fit: cover;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 1px solid #f5d061;
  /*border: 2px solid #f5d061; */
}

.at-inner::after {
  content: "";
  width: 100%;
  height: 66px;
  position: absolute;
  bottom: 0px;
  background-color: #f5d061;
  border-top:5px solid #252525;
  left: 0px;
  z-index: 1;
}

.at-social span.fab {
  transition: 0.25s;
}

.at-social span.fa {
  transition: 0.25s;
}

.at-social span.fab.fa-facebook:hover {
  color: #3B5998;
  transition: all 250ms ease-in-out;
  //transform: scale(1.2, 1.2);
}

.at-social span.fab.fa-twitch:hover {
  color: #6441a5;
  transition: all 250ms ease-in-out;
  //  transform: scale(1.2, 1.2);
}

.at-social span.fab.fa-twitter:hover {
  color: #00acee;
  transition: all 250ms ease-in-out;
  //  transform: scale(1.2, 1.2);
}

.at-social span.fab.fa-steam:hover {
  background-image: linear-gradient(180deg, rgba(23, 26, 33, 1) 0%, rgba(42, 71, 94, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 250ms ease-in-out;
  //  transform: scale(1.2, 1.2);
}

.at-social span.fa.fa-chart-area:hover {
  color: #00668b;
  transition: all 250ms ease-in-out;
  //  transform: scale(1.2, 1.2);
}

/*
.at-inner:hover {
  transition: all 250ms ease-in-out;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transform: translateY(-5px);
}
*/
.square.img-responsive {
  top: 0px;
  height: 100%;
  width: 100%;
  object-fit: cover;

}

@media (min-width: 1200px) {
  .at-cols5 {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  .at-cols5 .at-social {
    font-size: 1.8em;
  }

  .at-cols4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .at-cols3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ateam ul {
    grid-template-columns: repeat(auto-fill, 370px);
    grid-auto-rows: 450px;
  }

  .at-social {
    opacity: 0;
    transition: 0.25s;
    font-size: 2.5em;
  }

  .at-inner:hover .at-social {
    opacity: 1;
    transition: 0.25s;
  }

  .at-social::after {
    left: -100%;
  }

  .at-inner:hover .at-social:after {
    left: -12px;
    z-index: -1;
    transition: 0.25s;
  }
}

@media (min-width: 992px) and (max-width:1199px) {
  .ateam ul {
    grid-template-columns: repeat(auto-fill, 310px);
    grid-auto-rows: 380px;
  }
}

@media (min-width: 768px) and (max-width:991px) {
  .ateam ul {
    grid-template-columns: repeat(auto-fill, 345px);
    grid-auto-rows: 380px;
  }
}

@media (min-width: 576px) and (max-width:767px) {
  .ateam ul {
    grid-template-columns: repeat(auto-fill, 255px);
    grid-auto-rows: 350px;
  }

  .at-social {
    font-size: 2em;
  }
}
