﻿/*
    file_name: style for learner notification 
    author: Xuan Huynh
*/
.modal-open {
    overflow: hidden !important;
}

.notification-section .notification {
    display: inline-block;
    padding: 9px;
    font-size: 23px;
}

.x-user-name .badge,
.notification-section .badge {
    padding: 3px 5px 2px;
    position: absolute;
    top: 3px;
    right: 0;
}

.x-user-name .badge {
    top: -8px;
    right: 3px;
}

.notification-button {
    cursor: pointer;
    color: red;
    display: flex;
}

    .notification-button > i {
        font-size: 24px;
        color: white;
    }

.notification-wrap {
    left: auto;
    right: -10px;
    padding: 0;
    top: calc(100%);
    background: white;
    transition: all .2s;
    transform-origin: center top;
    transform: scaleY(0.5);
    opacity: 0;
}

.notification.open.loaded > .notification-wrap {
    transform: scaleY(1);
    opacity: 1;
}

.notification.child-show > .notification-wrap {
    display: block;
}

.notification-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 12px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

.notification-wrap a:focus,
.notification-wrap a:hover {
    text-decoration: none;
    transition: 300ms ease-in-out;
}

.notification-ul {
    max-height: 620px !important;
    min-width: 400px;
    width: 500px;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
    list-style-type: none;
    padding: 0;
}

    .notification-ul > .no-show-more,
    .notification-ul > .no-show-more + .notification-item-show-more {
        display: none;
    }

ul.notification-ul.scroll-style-3 {
    box-shadow: none !important;
}

@media only screen and (max-width: 1281px) {
    ul.notification-ul.scroll-style-3 {
        height: 450px;
    }

    .notification-wrap.dropdown-menu.js-notifications-wrapper {
        height: 550px
    }
}

.notification-item {
    border-bottom: 0.01rem solid #eee;
    padding: 10px 20px 10px 10px !important;
    white-space: normal !important;
    color: #000 !important;
    display: -webkit-flex;
    display: flex;
    transition: none !important;
}

    .notification-item.seen > .notification-item-unseen {
        display: none;
    }

    .notification-item.unseen > .notification-item-seen {
        display: none;
    }

    .notification-item.unseen {
        background-color: #edf2fa;
    }

        .notification-item.unseen:hover {
            background-color: rgba(68, 73, 80, 0.15);
        }

    .notification-item:not(.unseen):hover {
        background-color: #eee;
    }

.notification-item-icon {
    margin-right: 10px;
    background: #daad45;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    height: 36px;
    width: 36px;
    min-width: 36px;
    line-height: 36px;
    text-align: center;
    -webkit-box-shadow: 1px 2px 6px rgba(0,0,0,.175);
    box-shadow: 1px 2px 6px rgba(0,0,0,.175);
}

.fa-link.notification-item-icon {
    background: #4aaee7;
    display: flex;
    justify-content: center;
    align-items: center;
}

.limit-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-height: 18px;
    max-height: 36px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
}

.notification-item-title {
    font-weight: bold;
}

.notification-item-publish-from {
    padding-top: 2px;
    font-size: 11px;
    color: rgb(153, 153, 153);
}

.fa-circle.notification-item-unseen,
.fa-check-circle.notification-item-seen {
    /*color: cornflowerblue;*/
    font-size: 10px;
    margin-left: auto;
    display: -webkit-flex;
    display: flex;
    align-items: flex-end;
    margin-bottom: 5px;
}

.notification-item-unseen {
    color: orange;
}
.notification-item-seen {
    color: cornflowerblue;
}

.notification-item-show-more {
    padding: 0.6rem 0;
    color: #4aaee7;
    cursor: pointer;
}

#notification-dialog img {
    width: 100%;
}

#notification-dialog .modal-body {
    padding: 0px 30px 15px 30px;
}

#notification-dialog .modal-dialog {
    width: 800px;
}

#notification-dialog .modal-content {
    overflow-y: scroll;
    overflow: auto;
}

#notification-dialog .modal-header {
    padding-top: 15px;
    padding-right: 25px;
    padding-left: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

#notification-dialog .notification-page {
    background-color: white;
    border-top: 1px solid #ccc;
}

#notification-dialog .release-item {
    padding-left: 0px;
    padding-top: 5px;
}

#notification-dialog .notification-sendDate {
    padding-left: 0px;
}

#notification-dialog .notification-title {
    text-align: center;
    font-size: 20px !important;
    font-weight: bold;
    color: #be1c2f;
}

#notification-dialog .scroll-style-3 {
    border-radius: 5px !important;
}

#notification-dialog .modal-footer {
    height: 20px;
    background-color: #be1c2f;
    width: 100%;
    text-align: center !important;
    padding: 7px;
}

    #notification-dialog .modal-footer img {
        width: auto;
    }

.modal-footer {
    border-top: 1px solid #e5e5e5;
}

/*css modal notification-expedite*/
#notification-expedite img {
    width: 100%;
}

#notification-expedite .modal-body {
    padding: 0px 30px 15px 30px;
}

    #notification-expedite .modal-body .notification-instruction {
        display: flex;
        padding-top: 10px;
        top: 11px;
    }

#notification-expedite .modal-dialog {
    width: 800px;
}

#notification-dialog .modal-content, #notification-expedite .modal-content {
    overflow-y: scroll;
    overflow: auto;
}

#notification-dialog .modal-header, #notification-expedite .modal-header {
    background-color: #bf1e2d;
    overflow: hidden;
    padding: 10px 0 10px 0px;
}

    #notification-dialog .modal-header .modal-title-name, #notification-expedite .modal-header .modal-title-name {
        justify-content: center;
        display: flex;
        color: #fff;
        font-weight: bold;
    }

    #notification-dialog .modal-header .close, #notification-expedite .modal-header .close {
        right: 30px;
        top: 10px;
        position: absolute;
        color: #fff;
        opacity: 1 !important;
    }

#notification-expedite .notification-page {
    background-color: white;
    /*border-top: 1px solid #ccc;*/
}

    #notification-expedite .notification-page:first-child {
        border-top: none !important;
    }

#notification-expedite .notification-sendDate {
    font-size: 12px;
    color: #999;
}

#notification-expedite .notification-link {
    margin: 10px 4px 0px 0;
}

#notification-dialog .notification-title, #notification-expedite .notification-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

#notification-expedite .scroll-style-3 {
    border-radius: 5px !important;
}


.modal-footer {
    border-top: 1px solid #e5e5e5;
}
/*end css  modal notification-expedite*/

.no-notification {
    text-align: center;
    padding: 5% 2%;
}

.notification-item-none {
    padding-top: 2%;
}

i.fas.fa-grin-beam-sweat {
    color: burlywood;
    font-size: 40px;
    -webkit-box-shadow: 1px 2px 6px rgba(0,0,0,.175);
    box-shadow: 1px 2px 6px rgba(0,0,0,.175);
    border-radius: 50%;
}

.notification-wrap .nav-tabs > li.active > a {
    border: none !important;
}

.notification-wrap .nav-tabs {
    border-bottom: none;
}

ul.nav-tabs > li.highPriority.active > a,
ul.nav-tabs > li.highPriority > a {
    color: #d93025;
}

ul.nav-tabs > #notiLablehigh,
ul.nav-tabs > #notiLableother {
    width: 50%;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

ul.nav-tabs > li.otherPriority.active > a,
ul.nav-tabs > li.otherPriority > a {
    color: goldenrod;
}

.js-notifications-wrapper .nav-tabs li a .badge {
    position: inherit;
    display: inline-flex;
    margin-top: -20px;
}

/* ipad mini - Portrait */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 1) {
    #notification-dialog .modal-dialog {
        width: 650px;
    }
}

/* ipad pro - Portrait */
@media only screen and (min-device-width: 1024px) and (max-device-width: 1366px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
    #notification-dialog .modal-dialog {
        width: 800px;
    }
}

.button-noti-on {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 15px;
    z-index: 999;
}

    .button-noti-on a.gift {
        background: #36af46 center no-repeat;
    }

    .button-noti-on a {
        display: block;
        width: 50px;
        height: 50px;
        border-radius: 100%;
        line-height: 50px;
        text-align: center;
        /* border: 1px solid #000; */
        font-size: 2.5em;
        transition: all 0.4s ease-in-out;
        -webkit-transition: all 0.4s ease-in-out;
        -moz-transition: all 0.4s ease-in-out;
        -o-transition: all 0.4s ease-in-out;
        -ms-transition: all 0.4s ease-in-out;
    }

.fone.ring {
    /* animation: ring-outer 3000ms infinite; */
    -webkit-animation: ring 3s ease infinite;
    animation: ring 3s ease infinite;
}

.button-noti-on a > span {
    color: white;
}

.fone {
    position: relative;
    display: block;
    margin: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    box-shadow: 0 0 0 0em rgba(52, 152, 219, 0), 0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    transform: translate3d(0, 0, 0) scale(1);
}

    .fone.ring::before {
        animation: ring-inner 3000ms infinite;
    }

    .fone::before {
        top: 0;
        left: 0;
        width: inherit;
        height: inherit;
        background-color: rgba(255,255,255, 0.1);
        border-radius: 100%;
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(0);
    }

@keyframes ring {
    0% {
        -webkit-transform: rotate(-15deg);
        -ms-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    2% {
        -webkit-transform: rotate(15deg);
        -ms-transform: rotate(15deg);
        transform: rotate(15deg);
    }

    4% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    6% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    8% {
        -webkit-transform: rotate(-22deg);
        -ms-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }

    10% {
        -webkit-transform: rotate(22deg);
        -ms-transform: rotate(22deg);
        transform: rotate(22deg);
    }

    12% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    14% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    16% {
        -webkit-transform: rotate(-12deg);
        -ms-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }

    18% {
        -webkit-transform: rotate(12deg);
        -ms-transform: rotate(12deg);
        transform: rotate(12deg);
    }

    20% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    /* Shout out border box */
    0% {
        box-shadow: 0 0 0 0em rgba(52, 152, 219, 0), 0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }

    33.3333% {
        box-shadow: 0 0 0 0em rgba(52, 152, 219, 0.1), 0em 0.05em 0.1em rgba(0, 0, 0, 0.5);
    }

    66.6666% {
        box-shadow: 0 0 0 0.5em rgba(52, 152, 219, 0), 0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }

    100% {
        box-shadow: 0 0 0 0em rgba(52, 152, 219, 0), 0em 0.05em 0.1em rgba(0, 0, 0, 0.2);
    }
}
