/*
https://github.hubspot.com/pace/docs/welcome/
*/

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace .pace-activity {
  display: block;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: #007bff;
  -webkit-transition: -webkit-transform 0.3s;
  transition: transform 0.3s;
  -webkit-transform: translateX(100%) translateY(-100%) rotate(45deg);
  transform: translateX(100%) translateY(-100%) rotate(45deg);
  pointer-events: none;
}

.pace.pace-active .pace-activity {
  -webkit-transform: translateX(50%) translateY(-50%) rotate(45deg);
  transform: translateX(50%) translateY(-50%) rotate(45deg);
}

.pace .pace-activity::before,
.pace .pace-activity::after {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: block;
    border: 5px solid #fff;
    border-radius: 50%;
    content: '';
}

.pace .pace-activity::before {
    margin-left: -40px;
    width: 80px;
    height: 80px;
    border-right-color: rgba(0, 0, 0, .2);
    border-left-color: rgba(0, 0, 0, .2);
    -webkit-animation: pace-theme-corner-indicator-spin 3s linear infinite;
    animation: pace-theme-corner-indicator-spin 3s linear infinite;
}

.pace .pace-activity::after {
    bottom: 50px;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-top-color: rgba(0, 0, 0, .2);
    border-bottom-color: rgba(0, 0, 0, .2);
    -webkit-animation: pace-theme-corner-indicator-spin 1s linear infinite;
    animation: pace-theme-corner-indicator-spin 1s linear infinite;
}

@-webkit-keyframes pace-theme-corner-indicator-spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(359deg); }
}
@keyframes pace-theme-corner-indicator-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(359deg); }
}


/*
--------------------------------------------------------------------------------------------------

MOJE

*/

.fab_container {
    bottom: 0;
    position: fixed;
    margin: 1em 1em 2.5em 1em;
    right: 0px;
  }
  
  .buttons {
    box-shadow: 0px 5px 11px -2px rgba(0, 0, 0, 0.18), 
                0px 4px 12px -7px rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: block;
    width: 56px;
    height: 56px;
    margin: 20px auto 0;
    position: relative;
    -webkit-transition: all .1s ease-out;
    transition: all .1s ease-out;  
    text-align: center;
    line-height: 56px;
    background-color: cornflowerblue;
    color: white;
  }
  
  .buttons:active, 
  .buttons:focus, 
  .buttons:hover {
    box-shadow: 0 0 4px rgba(0,0,0,.14),
      0 4px 8px rgba(0,0,0,.28);
  }
  
  .buttons:not(:last-child) {
    width: 40px;
    height: 40px;
    margin: 20px auto 0;
    opacity: 0;
    -webkit-transform: translateY(50px);
    -ms-transform: translateY(50px);
    transform: translateY(50px);
    text-align: center;
    line-height: 40px;
    background-color: cornflowerblue;
    color: white;
  }
  
  .fab_container:hover 
  .buttons:not(:last-child) {
    opacity: 1;
    -webkit-transform: none;
        -ms-transform: none;
            transform: none;
    margin: 15px auto 0;
  }
  
  /* Unessential styling for sliding up buttons at differnt speeds */
  
  .buttons:nth-last-child(1) {
    -webkit-transition-delay: 25ms;
            transition-delay: 25ms;
    background-image: url('https://cbwconline.com/IMG/Share.svg');
    background-size: contain;
  }
  
  .buttons:not(:last-child):nth-last-child(2) {
    -webkit-transition-delay: 50ms;
            transition-delay: 20ms;
    background-image: url('https://cbwconline.com/IMG/Facebook-Flat.png');
    background-size: contain;
  }
  
  .buttons:not(:last-child):nth-last-child(3) {
    -webkit-transition-delay: 75ms;
            transition-delay: 40ms;
    background-image: url('https://cbwconline.com/IMG/Twitter-Flat.png');
    background-size: contain;
  }
  
  .buttons:not(:last-child):nth-last-child(4) {
    -webkit-transition-delay: 100ms;
            transition-delay: 60ms;
    background-image: url('https://cbwconline.com/IMG/Google%20Plus.svg');
    background-size: contain;
  }
  
  /* Show tooltip content on hover */
  
  [tooltip]:before {
    bottom: 25%;
    font-family: arial;
    font-weight: 600;
    border-radius: 2px;
    background: #585858;
    color: #fff;
    content: attr(tooltip);
    font-size: 12px;
    visibility: hidden;
    opacity: 0;
    padding: 5px 7px;
    margin-right: 12px;
    position: absolute;
    right: 100%;
    white-space: nowrap;
  }
  
  [tooltip]:hover:before,
  [tooltip]:hover:after {
    visibility: visible;
    opacity: 1;
  }

  .help-block {
    color:red;
  }
