/* 
Using FontAwesome for icons 
https://fortawesome.github.io/Font-Awesome/
*/
.share-button {
  position: relative;
  width: 50px;
  margin: 20px;
}

.toggle {
  position: relative;
  width: 50px;
  height: 50px;
  z-index: 10;
  display: block;
  border-radius: 25px;
  cursor: pointer;
  color: #C8C7C0;
  box-shadow: inset 0 0 0 1px #C8C7C0;
  background: #fff;
}
.toggle:hover {
  box-shadow: inset 0 0 0 2px #C8C7C0;
}
.toggle:after {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  font-family: "Font Awesome 5 Free";
  content: "\f1e0";
  line-height: 50px;
  font-size: 26px;
  text-align: center;
  left: -2px;
  font-weight: 900;
}
.toggle-input {
  display: none;
}
.toggle-input:checked + .toggle:after, .toggle-input:checked + .toggle:before {
  background-color: #C8C7C0;
  content: "";
  height: 3px;
  width: 30px;
  position: absolute;
  left: 10px;
  top: 23px;
}
.toggle-input:checked + .toggle:after {
  transform: rotate(45deg);
  animation: bar1 0.3s forwards;
}
.toggle-input:checked + .toggle:before {
  transform: rotate(-45deg);
  animation: bar2 0.3s forwards;
}

.network-list li {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.43, 1.17, 0.69, 1.24);
}
.network-list a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  overflow: hidden;
  line-height: 50px;
  text-indent: 120%;
  text-decoration: none;
}
.network-list a:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 25px;
  font-family: 'FontAwesome';
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  line-height: 50px;
  text-indent: 0;
  box-shadow: inset 0 0 0 1px #C8C7C0;
  background: #fff;
}
.network-list .twitter a:before {
  content: "\f099";
  color: #00C3F3;
}
.network-list .twitter a:hover:before {
  box-shadow: inset 0 0 0 2px #00C3F3;
}
.network-list .facebook a:before {
  content: "\f09a";
  color: #2C609B;
}
.network-list .facebook a:hover:before {
  box-shadow: inset 0 0 0 2px #2C609B;
}
.network-list .googleplus a:before {
  content: "\f0d5";
  color: #EC3F25;
}
.network-list .googleplus a:hover:before {
  box-shadow: inset 0 0 0 2px #EC3F25;
}

input:checked ~ .network-list li {
  opacity: 1;
}
input:checked ~ .network-list li:nth-child(1) {
  left: 60px;
}
input:checked ~ .network-list li:nth-child(2) {
  left: 120px;
}
input:checked ~ .network-list li:nth-child(3) {
  left: 180px;
}

@keyframes bar1 {
  0% {
    content: "\f1e0";
    width: 46px;
    height: 50px;
    background-color: transparent;
    transform: rotate(0deg) scale(1);
    top: 0;
    left: 0;
    opacity: 1;
  }
  50% {
    background-color: transparent;
    content: "\f1e0";
    width: 46px;
    height: 50px;
    top: 0;
    left: 0;
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50.001% {
    background-color: #fff;
    left: 10px;
    top: 22px;
    content: "";
    height: 3px;
    width: 30px;
  }
  60% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(45deg) scale(1);
  }
}
@keyframes bar2 {
  0% {
    background-color: transparent;
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50% {
    background-color: transparent;
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  60% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(-45deg) scale(1);
  }
}
