
/* Notifications */

.notification {
    padding: 0.6em;
    border-radius: 0.2em;
    font-size: 1.3em;
}

.notification::before,
.notification::after {
    color: rgba(97,106,120,0.7);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.notification::before {
    content: "\f0f3";
    font-family: "FontAwesome", sans-serif;
    transform-origin: top center;
}

.notification::after {
    font-family: Arial, sans-serif;
    font-size: 0.7em;
    font-weight: 700;
    position: absolute;
    top: -15px;
    right: -15px;
    padding: 5px 8px;
    line-height: 100%;
    border: 2px #fff solid;
    border-radius: 60px;
    background: #3498db;
    opacity: 0;
    content: attr(data-count);
    transform: scale(0.5);
    transition: transform, opacity;
    transition-duration: 0.3s;
    transition-timing-function: ease-out;
}

.notification.notify::before {
    animation: ring 1.5s ease;
}

.notification.show-count::after {
    transform: scale(1);
    opacity: 1;
}

@keyframes ring {
    0% {
        transform: rotate(35deg);
    }
    12.5% {
        transform: rotate(-30deg);
    }
    25% {
        transform: rotate(25deg);
    }
    37.5% {
        transform: rotate(-20deg);
    }
    50% {
        transform: rotate(15deg);
    }
    62.5% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}
