:host {
    display: block;
    // width: 275px;
    // height: 352px;
    // background-color: #FFF;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: 22px;
    // border: none;
    overflow: hidden;
    // box-shadow: 0 3px 81px 0 rgba(49, 48, 118, 0.07);
    height: 200px;
    width: 200px;
    border-radius: 3px;
    background-color: #FFFFFF;
    box-shadow: 0 3px 10px 0 rgba(189, 159, 189, 0.08);
    cursor: auto;
    position: relative;
}

:host(.extended) {
    height: 371px;
}

:host(.assessment) {
    height: 351px;
}

:host.heightCard {
    height: 250px;
}

:host:hover,
 :host.selected {
    border: 2px solid #01CCFF;
    padding-left: 13px;
    padding-right: 13px;
    position: relative;
    .img-container:after {
        opacity: 1;
    }
}

 :host:hover {
    .hide-footer {
        display: none;
    }
}

.tile-selected-img,
.ticked-selected-img,
.ticked-todelete-img {
    display: none;
    z-index: 1000;
    opacity: 1;
}

:host.course-selection:hover .tile-selected-img {
    background: transparent;
    position: absolute;
    top: 10.5px;
    width: 30px;
    height: 30px;
    left: 15px;
    padding: 0;
    display: unset;
    cursor: pointer;
    z-index: 1000;
}

 :host.course-selection.selected .ticked-selected-img {
    background: transparent;
    position: absolute;
    left: 0px;
    top: 3.5px;
    height: 53px;
    width: 56px;
    padding: 0;
    display: unset;
    cursor: pointer;
    z-index: 1000;
}

:host.course-selection.todelete .ticked-todelete-img {
    background-color: #FFFFFF;
    position: absolute;
    right: 14px;
    top: 10px;
    // height: 53px;
    // width: 56px;
    padding: 2px;
    display: unset;
    cursor: pointer;
    z-index: 1000;
    border-radius: 50%;
}

:host:hover .img-container,
 :host.selected .img-container {
    margin: -2px -2px 12px -2px;
}

#checkbox-details {
    top: 79px;
    right: 0;
    bottom: 0;
    left: 15px;
    height: 25px;
    width: 25px;
    border: 1px solid #E3E3E3;
    border-radius: 5px;
    background-color: #F8F8F8;
}

.img-actions {
    position: relative;
}

.main-box {}

.img-actions label {
    top: 88px;
    right: 0;
    bottom: 0;
    left: 32px;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 16px;
    font-weight: 300;
}

#checkbox-details,
.btn-details,
.img-actions label {
    display: none;
    position: absolute;
    z-index: 3;
}

:host:hover {
    #checkbox-details,
    .btn-details,
    .img-actions label {
        display: unset;
    }
    .img-actions:after {
        z-index: 1;
        position: absolute;
        opacity: 1;
        transition: all 0.5s;
        -webkit-transition: all 0.5s;
        content: '\A';
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.6);
    }
    // .footer-img{
    //     display: none;
    // }
}

.tiles-img-container {
    position: relative;
}

.course-box {
    height: 100%;
    cursor: pointer;
}

.course-box.cursor-default {
    cursor: default;
}

.tiles-img-container:hover .img-container:after,
.selected .img-container:after {
    opacity: 1;
}

.img-container:after,
.selected .tiles-container .img-container:after {
    background: rgba(0, 0, 0, .5);
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 9;
    opacity: 0;
    top: 0;
}

.btn-details {
    margin: auto;
    top: 185px;
    right: 0;
    bottom: 27px;
    left: 0;
    height: 30px;
    width: 100px;
    border: 0px solid #FFFFFF;
    border-radius: 3px;
    background-color: rgb(164, 163, 232);
    color: #FFFFFF;
    font-size: 11px;
    line-height: 12px;
}

.tiles-container {
    height: 100%;
}

.tiles-container mat-grid-tile {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E7EEF0;
    opacity: 0.7;
    color: #000000;
    font-size: 15px;
    line-height: 18px;
}

p {
    text-align: left;
}

.course-container {
    margin-top: 24px;
    height: 345px;
}

.course-container mat-grid-list {
    margin-bottom: 40px;
}

.course-container mat-grid-tile {
    max-height: 321px;
    max-width: 275px;
    border-radius: 3px;
    background-color: #FFFFFF;
    box-shadow: 0 3px 81px 0 rgba(49, 48, 118, 0.07);
    overflow: hidden;
    -moz-animation: carousel 30s infinite;
    -webkit-animation: carousel 30s infinite;
    animation: carousel 30s infinite;
}

.img-box {
    height: 120px;
    margin-bottom: 12px;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    // min-width: 275px;
}

.course-container .tiles-container {
    height: 100%;
    text-align: left;
}

.course-container .tiles-container .row {
    padding-top: 10px;
}

.bookmark mat-icon {
    height: 66.99px;
    width: 45.01px;
    font-size: 25px;
    color: #00CCFF;
}

.course-published {
    opacity: 0.5;
    font-size: 13px;
    line-height: 15px;
    text-align: left;
}

.course-content {
    opacity: 0.8;
    color: #000000;
    font-size: 15px;
    line-height: 20px;
}

.assessment-details {
    padding-top: 20px
}

.course-content p {
    /* height: 40px; */
    overflow: hidden;
    display: block;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: Roboto;
    font-size: 13px;
    font-weight: 500;
    line-height: 14px;
    /* width: 100%; */
    color: #002940;
}

.footer-img {
    position: absolute;
    bottom: 5px;
    width: 100%;
}

.footer-img-selectCourse {
    position: relative;
}

.course-details {
    margin-top: 10px;
    margin-bottom: 20px;
}


/* Course Duration */

h1,
h2,
h3,
h4 {
    /* GLOBAL CSS OVERRIDE */
    margin-bottom: 0px;
    margin-top: 0px;
    text-align: unset;
}

.course-duration h1 {
    opacity: 0.7;
    color: #000000;
    font-size: 18px;
    line-height: 21px;
    margin-bottom: 0px;
}

.course-duration h2 {
    color: #555;
    font-weight: 400;
    font-size: 14px;
}

.course-duration h3 {
    color: #999;
    font-size: 13px;
    line-height: 15px;
    margin-bottom: 0px;
    margin-top: 0px;
}


/* Course Duration End */


/* Course Assessment */

.course-assessment {
    height: 62px;
    padding-left: 8px;
}

.count-text {
    opacity: 0.7;
    font-size: 12px;
}

.course-assessment>.col-xs-4 {
    height: 100%;
    padding-right: 2px;
    padding-left: 7px;
    border-right: 1px dotted #DCDCDC;
    h1,
    h4 {
        height: 27px;
    }
    ;
}

.level-text {
    opacity: 0.7;
    color: #002940;
    font-family: Roboto;
    font-size: 13px;
    margin: 0 0 2px 0;
}

.skill-text {
    opacity: 0.5;
    font-size: 12px;
    display: inline-block;
    padding-right: 5px;
}

.course-assessment {
    h1,
    h2,
    h3 {
        color: #000000;
    }
    h1 {
        font-size: 24px;
        line-height: 28px;
    }
    h2 {
        margin-top: 5px;
        opacity: 0.7;
        font-size: 13px;
        line-height: 15px;
    }
    h3 {
        opacity: 0.5;
        font-size: 12px;
        line-height: 14px;
    }
    h4 {
        opacity: 0.7;
        color: #F77724;
        font-size: 13px;
        line-height: 15px;
    }
    h4.usecase-completed {
        color: #008000;
    }
}


/* Course Assessment End */

.course-rating mat-icon {
    height: 15px;
    width: 15.98px;
    color: #00CCFF;
}

.course-rating mat-icon:not(:last-child) {
    margin-right: 6px;
}

.course-users {
    height: 43px;
}

.course-users p {
    opacity: 0.5;
    color: #000000;
    font-size: 13px;
    line-height: 15px;
    margin-top: 8%;
    text-align: center;
}

#slider-arrow-left,
#slider-arrow-right {
    position: relative;
    height: 100%;
}

#slider-arrow-left img,
#slider-arrow-right img {
    margin: auto;
    position: absolute;
    top: 0px;
    left: 0;
    bottom: 0px;
}

#slider-arrow-left img {
    height: 37.99px;
    left: 40px;
}

hr {
    border-top: 1px dotted #DCDCDC;
    margin-bottom: 3px;
    margin-top: 3px;
}


/* Footer */

footer {
    margin-top: 10px;
}

.footer-overdue {
    background-color: #fef3de;
    margin-top: 0px;
    padding-top: 7px;
    margin-left: -8px;
    padding-left: 10px;
    margin-right: -8px;
    padding-right: 10px;
}

.usr-info-avatar {
    height: 29px;
    width: 29px;
    padding: 0.5px;
}

.usr-info-avatar>span {
    font-size: 15px;
    line-height: 15px;
    margin-left: 0;
    text-align: center;
    color: #FFF;
    font-weight: 500;
}

.btn-assessment {
    height: 45px;
    width: 147px;
    margin-top: 36px;
    border-radius: 2px;
    font-size: 14px;
    line-height: 16px;
    color: #4c4c4c;
    border: 1px solid #9B9B9B;
    background-color: #FFFFFF;
}

footer .course-assessment .content {
    display: flex;
}

footer .course-assessment {
    margin-top: 14px;
    float: right;
}

footer .course-assessment .usr-info-avatar {
    margin-left: 12px;
}

@media (max-width: 767px) {
    .carousel .row .span3 {
        display: block;
        float: left;
        width: 25%;
        margin-left: 0;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
}

.assessRow2 {
    padding: 10px;
}

.assessRow3 {
    padding: 15px;
    display: table;
}

.assessRow3 span {
    padding: 6px;
    ;
}

.assessRow1Img {
    float: left;
    padding: 10px;
    width: 20%;
}

.assessRow1Name {
    float: left;
    padding: 13px;
    color: #000000;
    font-family: Roboto;
    font-size: 16px;
    line-height: 18px;
}

.assessSkill {
    display: inline-block;
    color: #000000;
    font-size: 13px;
    text-align: center;
    height: 26px;
    border: 0.5px solid #D4CFCF;
    ;
    padding: 0px 12px 4px 12px;
    border-radius: 89px;
    margin-right: 6px;
    float: left;
    float: left;
}

.assessRow4 {
    padding: 15px;
    float: left;
}

.assessDate {
    opacity: 0.8;
    color: #000000;
    font-family: Roboto;
    font-size: 17px;
    line-height: 19px;
}

.assessDueDate {
    opacity: 0.5;
    color: #000000;
    font-family: Roboto;
    font-size: 13px;
    line-height: 15px;
    float: left;
}

.assessmentName {
    opacity: 0.7;
    color: #000000;
    font-family: Roboto;
    font-size: 13px;
    line-height: 18px;
    display: contents;
}

.checkImg {
    width: 8%;
}


/* mixin for multiline */

@mixin multiLineEllipsis($lineHeight: 1.2em, $lineCount: 1, $bgColor: white) {
    overflow: hidden;
    position: relative;
    line-height: $lineHeight;
    max-height: $lineHeight * $lineCount;
    text-align: justify;
    margin-right: -1em;
    padding-right: 1em;
    &:before {
        content: '...';
        position: absolute;
        right: 0;
        bottom: 0;
    }
    &:after {
        content: '';
        position: absolute;
        right: 0;
        width: 1em;
        height: 1em;
        margin-top: 0.2em;
        background: $bgColor;
    }
}

.block-with-text {
    @include multiLineEllipsis($lineHeight: 1.1em, $lineCount: 2, $bgColor: white);
}

.course-dulration {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    opacity: 0.7;
    color: #335466;
    font-family: Roboto;
    /* font-size: 13px; */
    line-height: 22px;
    text-align: left;
}

.star-icon {
    width: 10px;
    height: 12px;
    color: orange;
    font-size: 15px;
    line-height: 22px;
}

.rating-star {
    padding-left: 0px;
}

.course-desc {
    margin-top: 45px;
}

.popover__title {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 36px;
    text-decoration: none;
    color: rgb(228, 68, 68);
    text-align: center;
    padding: 15px 0;
}

.popover__content {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    /* left: 150px; */
    transform: translate(0, 10px);
    background-color: #BFBFBF;
    padding: 1.5rem;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
    width: auto;
    top: 125px;
    margin: 0 171px;
    height: 476px;
    border-radius: 2px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.06), 0 4px 14px 0 rgba(0, 0, 0, 0.12);
    overflow-y: scroll;
    width: 300px;
}

.popover__content:before {
    position: absolute;
    z-index: -1;
    content: '';
    left: -14px;
    top: 111px;
    border-style: solid;
    /* border-width: 0 12px 15px 16px; */
    border-color: transparent transparent #BFBFBF transparent;
    transition-duration: 0.3s;
    transition-property: transform;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid #BFBFBF;
}

.popover__wrapper:hover .popover__content {
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transform: translate(0, -20px);
    transition: all 0.5s cubic-bezier(0.75, -0.02, 0.2, 0.97);
}

.popover__message {
    text-align: center;
}

.discription {
    opacity: 0.7;
    color: #002940;
    font-family: Roboto;
    font-size: 13px;
    line-height: 15px;
    text-align: left;
    margin: 0;
    // text-transform: capitalize!important;
}

.assess-desc {
    opacity: 0.7;
    color: #002940;
    font-family: Roboto;
    font-size: 13px;
    line-height: 15px;
}

.setDueDateDiv {
    height: 44px;
    width: 173px;
    border: 0.5px solid #01A6FF;
    border-radius: 3px;
    background-color: #FAFAFA;
    margin: 0 13px;
}

.setDueDateDiv img {
    margin: -29px 0 28px 123px;
}

.setDueDateDiv h3 {
    height: 13px;
    width: 100px;
    opacity: 0.7;
    color: #002940;
    font-family: Roboto;
    font-size: 11px;
    line-height: 13px;
    margin: 6px 0;
}

.setDueDateDiv h4 {
    height: 14px;
    width: 73px;
    color: #002940;
    font-family: Roboto;
    font-size: 12px;
    margin: 0 18px;
}

.deleteIcon {
    float: right;
    cursor: pointer;
    width: 20px;
    height: 20px;
    margin-right: 15px;
}