.notifications {
    bottom: 30px;
    right: 20px;
    width: 400px;
    position: fixed;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    border-radius: 6px;
    background-color: #FFF;
    z-index: 2000;
    font: normal 12px HelveticaNeue, Helvetica, Arial, sans-serif;
    color: #000;
    overflow: hidden;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #dbdbdb));
    background-image: -webkit-linear-gradient(top, #ffffff, #dbdbdb);
    background-image: -moz-linear-gradient(top, #ffffff, #dbdbdb);
    background-image: -o-linear-gradient(top, #ffffff, #dbdbdb);
    background-image: -ms-linear-gradient(top, #ffffff, #dbdbdb);
    background-image: linear-gradient(top, #ffffff, #dbdbdb);
    -webkit-box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.5);
    -webkit-animation-name: flipInX;
    -moz-animation-name: flipInX;
    -ms-animation-name: flipInX;
    -o-animation-name: flipInX;
    animation-name: flipInX;
    -webkit-animation-duration: 1s;
    -moz-animation-duration: 1s;
    -ms-animation-duration: 1s;
    -o-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    -ms-animation-fill-mode: both;
    -o-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-backface-visibility: visible;
    -moz-backface-visibility: visible;
    -ms-backface-visibility: visible;
    -o-backface-visibility: visible;
    backface-visibility: visible;
}

.notifications .notification {
    cursor: pointer;
    border-bottom: 1px solid #C1C1C1;
    position: relative;
    -webkit-box-shadow: 0px 1px 0px white;
    -moz-box-shadow: 0px 1px 0px white;
    box-shadow: 0px 1px 0px white;
    text-shadow: 0px 1px 0px white;
}

.notifications .notification:last-child {
    border-bottom: none;
    -webkit-box-shadow: 0px 0px 0px transparent;
    -moz-box-shadow: 0px 0px 0px transparent;
    box-shadow: 0px 0px 0px transparent;
}


.notifications h2 {
    font-size: 14px;
    font-weight: bold;
    margin: 0;
    padding: 10px 0;
    line-height: normal;
}

.notifications p {
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
}

.notifications .left {
    position: absolute;
    height: 100%;
    width: 45px;
    padding: 0 10px;
    top: 0;
    left: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.notifications .right {
    margin-left: 70px;
}

.notifications .icon {
    font-family: "Entypo";
    font-size: 35px;
    line-height: 0px;
    margin-top: 10px;
    text-align: center;
}

.notifications .img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-position: 50% 50%;
    background-size: auto 100%;
    -webkit-box-shadow: rgba(0, 0, 0, 0.4) -1px 0px 16px inset;
    -moz-box-shadow: rgba(0, 0, 0, 0.4) -1px 0px 16px inset;
    box-shadow: rgba(0, 0, 0, 0.4) -1px 0px 16px inset;
}

.notifications .success {
    background-color: #63a153;
    color: #FFF;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #81c270), color-stop(100%, #63a153));
    background-image: -webkit-linear-gradient(top, #81c270, #63a153);
    background-image: -moz-linear-gradient(top, #81c270, #63a153);
    background-image: -o-linear-gradient(top, #81c270, #63a153);
    background-image: -ms-linear-gradient(top, #81c270, #63a153);
    background-image: linear-gradient(top, #81c270, #63a153);
    text-shadow: rgba(0, 0, 0, 0.4) 0px 1px 0px;
}

.notifications .error {
    background-color: #FA565D;
    color: #FFF;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #fa565d), color-stop(100%, #d1363d));
    background-image: -webkit-linear-gradient(top, #fa565d, #d1363d);
    background-image: -moz-linear-gradient(top, #fa565d, #d1363d);
    background-image: -o-linear-gradient(top, #fa565d, #d1363d);
    background-image: -ms-linear-gradient(top, #fa565d, #d1363d);
    background-image: linear-gradient(top, #fa565d, #d1363d);
    text-shadow: rgba(0, 0, 0, 0.4) 0px 1px 0px;
}

@-moz-keyframes flipInX {
    0% {
        -moz-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        -moz-transform: perspective(400px) rotateX(-10deg);
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        -moz-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        -moz-transform: perspective(400px) rotateX(0deg);
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@-webkit-keyframes flipInX {
    0% {
        -webkit-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        -webkit-transform: perspective(400px) rotateX(-10deg);
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        -webkit-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        -webkit-transform: perspective(400px) rotateX(0deg);
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@-o-keyframes flipInX {
    0% {
        -o-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        -o-transform: perspective(400px) rotateX(-10deg);
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        -o-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        -o-transform: perspective(400px) rotateX(0deg);
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@-ms-keyframes flipInX {
    0% {
        -ms-transform: perspective(400px) rotateX(90deg);
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        -ms-transform: perspective(400px) rotateX(-10deg);
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        -ms-transform: perspective(400px) rotateX(10deg);
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        -ms-transform: perspective(400px) rotateX(0deg);
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes flipInX {
    0% {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }

    40% {
        transform: perspective(400px) rotateX(-10deg);
    }

    70% {
        transform: perspective(400px) rotateX(10deg);
    }

    100% {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@media screen and (max-width: 640px){
    .notifications{
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }
    .notifications .right {
        margin-left: 15px;
        text-align: center;
    }
}