/* 
Using FontAwesome for icons 
https://fortawesome.github.io/Font-Awesome/
*/

.share-button {
  position: absolute;
  bottom: 0px;
  right: 0px;
  z-index: 2;
}

.toggle-share-button {
  position: relative;
  width: 28px;
  height: 28px;
  z-index: 10;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  box-shadow: inset 0 0 0 1px #c8c7c0;
  margin: 0px;
}

.toggle-share-button:hover {
  box-shadow: inset 0 0 0 2px;
}

.toggle-share-button:after {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  font-family: 'FontAwesome';
  content: '\f1e0';
  line-height: 28px;
  font-size: 14px;
  text-align: center;
  left: -1px;
}

.toggle-share-input {
  display: none;
}

.toggle-share-input:checked + .toggle-share-button:after,
.toggle-share-input:checked + .toggle-share-button:before {
  background-color: white;
  content: '';
  height: 2px;
  width: 14px;
  position: absolute;
  left: 7px;
  top: 13px;
}

.toggle-share-input:checked + .toggle-share-button:after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-animation: bar1 0.3s forwards;
  animation: bar1 0.3s forwards;
}

.toggle-share-input:checked + .toggle-share-button:before {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  -webkit-animation: bar2 0.3s forwards;
  animation: bar2 0.3s forwards;
}

.network-list li {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  list-style-type: none;
  opacity: 0;
  -webkit-transition: all 0.25s cubic-bezier(0.43, 1.17, 0.69, 1.24);
  transition: all 0.25s cubic-bezier(0.43, 1.17, 0.69, 1.24);
}

.network-list a {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  line-height: 28px;
  text-indent: 120%;
  text-decoration: none;
}

.network-list a:before {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: 'FontAwesome';
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-align: center;
  line-height: 28px;
  text-indent: 0;
  box-shadow: inset 0 0 0 1px #c8c7c0;
}

.network-list .twitter a:before {
  content: '\f099';
  color: white;
}

.network-list .twitter a:hover:before {
  box-shadow: inset 0 0 0 2px white;
}

.network-list .facebook a:before {
  content: '\f09a';
  color: white;
}

.network-list .facebook a:hover:before {
  box-shadow: inset 0 0 0 2px white;
}

.network-list .whatsapp a:before {
  content: '\f232';
  color: white;
}

.network-list .whatsapp a:hover:before {
  box-shadow: inset 0 0 0 2px white;
}

input:checked ~ .network-list li {
  opacity: 1;
}

input:checked ~ .network-list li:nth-child(1) {
  left: -38px;
}

input:checked ~ .network-list li:nth-child(2) {
  left: -76px;
}

input:checked ~ .network-list li:nth-child(3) {
  left: -114px;
}

@-webkit-keyframes bar1 {
  0% {
    content: '\f1e0';
    width: 16px;
    height: 20px;
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    top: 0;
    left: 0;
    opacity: 1;
  }
  50% {
    background-color: transparent;
    content: '\f1e0';
    width: 16px;
    height: 20px;
    top: 0;
    left: 0;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50.001% {
    background-color: #fff;
    left: 7px;
    top: 13px;
    content: '';
    height: 3px;
    width: 30px;
  }
  60% {
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(45deg) scale(1);
    transform: rotate(45deg) scale(1);
  }
}

@keyframes bar1 {
  0% {
    content: '\f1e0';
    width: 16px;
    height: 20px;
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    top: 0;
    left: 0;
    opacity: 1;
  }
  50% {
    background-color: transparent;
    content: '\f1e0';
    width: 16px;
    height: 20px;
    top: 0;
    left: 0;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50.001% {
    background-color: #fff;
    left: 7px;
    top: 13px;
    content: '';
    height: 2px;
    width: 14px;
  }
  60% {
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(45deg) scale(1);
    transform: rotate(45deg) scale(1);
  }
}

@-webkit-keyframes bar2 {
  0% {
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50% {
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  60% {
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1);
  }
}

@keyframes bar2 {
  0% {
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  50% {
    background-color: transparent;
    -webkit-transform: rotate(0deg) scale(0.2);
    transform: rotate(0deg) scale(0.2);
    opacity: 0;
  }
  60% {
    -webkit-transform: rotate(0deg) scale(1);
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    -webkit-transform: rotate(-45deg) scale(1);
    transform: rotate(-45deg) scale(1);
  }
}

.bookmark-button {
  /* position: absolute;
    bottom: 1vh;
    right: 1vh; */
}

.toggle-bookmark-button {
  position: relative;
  width: 28px;
  height: 28px;
  z-index: 10;
  display: block;
  border-radius: 50%;
  cursor: pointer;
  color: white;
  box-shadow: inset 0 0 0 1px #c8c7c0;
  margin: 0px;
}

.toggle-bookmark-button:hover {
  box-shadow: inset 0 0 0 2px;
}

.toggle-bookmark-button:after {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  font-family: 'FontAwesome';
  content: '\f097';
  line-height: 28px;
  font-size: 14px;
  text-align: center;
}

.toggle-bookmark-input {
  display: none;
}

.toggle-bookmark-input:checked + .toggle-bookmark-button:before {
  position: relative;
  display: block;
  width: 28px;
  height: 28px;
  font-family: 'FontAwesome';
  content: '\f02e';
  line-height: 28px;
  font-size: 14px;
  text-align: center;
}

.toggle-bookmark-input:checked + .toggle-bookmark-button:after {
  content: '';
}
