
.social-media {
  position: fixed;
  margin-top: 30px;
  perspective: 1000px; z-index: 111; list-style-type: none; left: 0px;
}
.social-media li a {
  display: block;
  width: 40px;
  background: #222;
  border-bottom: 1px solid #333;
  font: normal normal normal 16px/20px  'FontAwesome', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.5s ease 0.3ms; list-style-type: none;
}

.social-media li:first-child a:hover {
  background: #3b5998;
}

.social-media li:nth-child(2) a:hover {
  background: #00acee;
}

.social-media li:nth-child(3) a:hover {
  background: #ea4c89;
}

.social-media li:nth-child(4) a:hover {
  background: #dd4b39;
}

.social-media li:first-child a {
  border-radius: 0 5px 0 0;
}

.social-media li:last-child a {
  border-radius: 0 0 5px 0;
}

.social-media li a span {
  width: 100px;
  float: left;
  text-align: center;
  background: #222;
  color: #fff;
  margin: -25px 74px;
  padding: 8px;
  transform-origin: 0;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(45deg);
  border-radius: 5px;
  transition: all 0.5s ease 0.3ms;
}

.social-media li span:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: -20px;
  top: 7px;
  border-left: 10px solid transparent;
  border-right: 10px solid #222;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
}

.social-media li a:hover span {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0);
}


.social-media-h {
  position: fixed;
  margin-top: 150px;
  perspective: 1000px; z-index: 110; list-style-type: none; left: -20px;
}
.social-media-h li a {
  display: block;
  width: 40px;
  background: #222;
  border-bottom: 1px solid #333;
  font: normal normal normal 16px/20px  'FontAwesome', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.5s ease 0.3ms; list-style-type: none;
}

.social-media-h li:first-child a:hover {
  background: #3b5998;
}

.social-media-h li:nth-child(2) a:hover {
  background: #00acee;
}

.social-media-h li:nth-child(3) a:hover {
  background: #ea4c89;
}

.social-media-h li:nth-child(4) a:hover {
  background: #dd4b39;
}

.social-media-h li:first-child a {
  border-radius: 0 5px 0 0;
}

.social-media-h li:last-child a {
  border-radius: 0 0 5px 0;
}

.social-media-h li a span {
  width: 100px;
  float: left;
  text-align: center;
  background: #222;
  color: #fff;
  margin: -25px 74px;
  padding: 8px;
  transform-origin: 0;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(45deg);
  border-radius: 5px;
  transition: all 0.5s ease 0.3ms;
}

.social-media-h li span:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: -20px;
  top: 7px;
  border-left: 10px solid transparent;
  border-right: 10px solid #222;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
}

.social-media-h li a:hover span {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0);
}


/*brand*/

.social-media-b {
  position: fixed;
  margin-top: 150px;
  perspective: 1000px; z-index: 110; list-style-type: none;
}
.social-media-b li a {
  display: block;
  width: 40px;
  background: #222;
  border-bottom: 1px solid #333;
  font: normal normal normal 16px/20px  'FontAwesome', 'Source Sans Pro', Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  padding: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.5s ease 0.3ms; list-style-type: none;
}

.social-media-b li:first-child a:hover {
  background: #3b5998;
}

.social-media-b li:nth-child(2) a:hover {
  background: #00acee;
}

.social-media-b li:nth-child(3) a:hover {
  background: #ea4c89;
}

.social-media-b li:nth-child(4) a:hover {
  background: #dd4b39;
}

.social-media-b li:first-child a {
  border-radius: 0 5px 0 0;
}

.social-media-b li:last-child a {
  border-radius: 0 0 5px 0;
}

.social-media-b li a span {
  width: 100px;
  float: left;
  text-align: center;
  background: #222;
  color: #fff;
  margin: -25px 74px;
  padding: 8px;
  transform-origin: 0;
  visibility: hidden;
  opacity: 0;
  transform: rotateY(45deg);
  border-radius: 5px;
  transition: all 0.5s ease 0.3ms;
}

.social-media-b li span:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: -20px;
  top: 7px;
  border-left: 10px solid transparent;
  border-right: 10px solid #222;
  border-bottom: 10px solid transparent;
  border-top: 10px solid transparent;
}

.social-media-b li a:hover span {
  visibility: visible;
  opacity: 1;
  transform: rotateY(0);
}
