/* IMPORTANT NOTE: Any changes to this CSS file should be made to an Angular component 
%TMAPPS%/Websites/admin-app/src/app/features/favorite-center-settings/favorite-center-setting/favorite-center-setting.default-data.ts
*/

@import url('https://fonts.googleapis.com/css?family=Noto+Sans:400,400i,700,700i');

/* Reset */
html, body, p, ol, ul, li, dl, dt, dd, blockquote, figure, fieldset, legend, textarea, pre, iframe, hr, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
    font-weight: normal;
}

ul {
    list-style: none;
}

button, input, select, textarea {
    margin: 0;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img, embed, iframe, object, video {
    height: auto;
    max-width: 100%;
}

audio {
    max-width: 100%;
}

iframe {
    border: 0;
    width:100%;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

td, th {
    padding: 0;
    text-align: left;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Styles */
body {
    padding-top: 50px;
    color: #333333;
    font-family: 'Noto Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
    text-align: left;
}

button, input, select, textarea {
    font-family: 'Noto Sans', sans-serif;
}

a:hover {
    color: #1086DC;
}

:focus {
    outline: 0;
    border: 0;
}

::-moz-focus-inner {
    outline: 0;
    border: 0;
}

::-webkit-input-placeholder {
    color: #333333;
    opacity: .25;
}

::-moz-placeholder {
    color: #333333;
    opacity: .25;
}

:-ms-input-placeholder {
    color: #333333;
    opacity: .25;
}

::placeholder {
    color: #333333;
    opacity: .25;
}

.c-html-1,
.c-html-2,
.c-html-3 {
    
}

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    padding: 0 10px;
    z-index: 1050;
    background-color: #1d1d1d;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 14px;
    letter-spacing: .02em;
    line-height: 1em;
}

.fav-icon img {
    width: 18px;
    height: 18px;
}

.page {
}

.container {
    width: 100%;
    max-width: 660px;
    margin: 20px auto;
    padding: 20px;
  }
  

.logo {
    display: none;
    padding-bottom: 20px;
}

    .logo img {
        width: 160px;
        height: auto;
        display: block;
    }

.filter-bar {
    padding-bottom: 8px;
    vertical-align: middle;
    box-sizing: content-box;
    border-bottom: 1px solid #e6e6e6;
}

.view, .sort {
  float: left;
  width: 190px;
}

.view {
  margin-right: 25px;
}

.select-label {
  display: table-cell;
    padding-right: 4px;
    font-size: 14px;
}

.select {
  display: table-cell;
  width: 100%;
    height: 25px;
    box-sizing: border-box;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
    cursor: pointer;
}

    .select:after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 448 512' fill='%23333333'><path d='M441.9 167.3l-19.8-19.8c-4.7-4.7-12.3-4.7-17 0L224 328.2 42.9 147.5c-4.7-4.7-12.3-4.7-17 0L6.1 167.3c-4.7 4.7-4.7 12.3 0 17l209.4 209.4c4.7 4.7 12.3 4.7 17 0l209.4-209.4c4.7-4.7 4.7-12.3 0-17z'/></svg>");
        background-position: right center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        opacity: 0.3;
        pointer-events: none;
    }

    .select:hover:after {
        opacity: 1;
    }

    .select select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: transparent;
        border: 0;
        display: block;
        width: 100%;
        height: 24px;
        padding: 0 24px 0 4px;
        overflow: hidden;
        color: #333333;
  font-size: 14px;
        line-height: 1;
        vertical-align: middle;
        cursor: pointer;
    }

.search {
    float: right;
  width: 190px;
    height: 25px;
    box-sizing: border-box;
    border-bottom: 1px solid #e6e6e6;
    position: relative;
}

.search-form {
}

.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0 24px 0 4px;
    width: 100%;
    height: 24px;
    color: #333333;
  font-size: 14px;
    line-height: 1;
}

.search-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: 0;
    padding: 0;
    width: 24px;
    height: 24px;
    opacity: .3;
    cursor: pointer;
}

    .search-btn:hover {
        opacity: 1;
    }

    .search-btn .svg-icon {
        vertical-align: middle;
    }
    .search-clear {
        margin-top: 10px;
        float: left;
        width: 100%;
    }

    .search-clear > a {
        text-decoration: underline;
    }

    .search-label {
        display: inline-block;
        padding-right: 4px;
        font-size: 14px;
    }

    .clearsearch {
        position: relative;
        background-color: #333;
        border-radius: 9px;
        font-size: 12px;
        line-height: 18px;
        text-decoration: none;
        display: inline-block;
        color: #fff;
        padding: 0 20px 0 6px;
        opacity: .8;
    }

    .clearsearch:hover {
        color: #fff;
        opacity: 1;
    }

    .clearsearch::after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        border-top-left-radius: : 0;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='%23FFFFFF'><path fill-rule='evenodd' clip-rule='evenodd' d='M1.75708 1.75745C4.10083 -0.585815 7.89966 -0.585815 10.2424 1.75745C12.5862 4.10071 12.5862 7.89954 10.2424 10.2428C7.89966 12.5861 4.10083 12.5861 1.75708 10.2428C-0.585693 7.89954 -0.585693 4.10071 1.75708 1.75745ZM6.00024 4.58606L7.7688 2.81799L9.18286 4.23206L7.41431 6.00012L9.18286 7.76819L7.7688 9.18225L6.00024 7.41418L4.23267 9.18176L2.8186 7.7677L4.58618 6.00012L2.8186 4.23254L4.23267 2.81848L6.00024 4.58606Z'/></svg>");
        background-position: right 9px center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
    }

.svg-icon {
    fill: #333333;
}

.home-icon {
    float: left;
    width: 24px;
    height: 50px;
    margin-right: 8px;
    position: relative;
    cursor: pointer;
}

.fav-icon img,
.home-icon svg,
.top-action-link .svg-icon,
.top-action-link img,
.search-btn .svg-icon,
.action-link .svg-icon,
.action-link img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.article {
    position: relative;
    padding: 20px 0 10px 0;
    border-bottom: 1px solid #e6e6e6;
}

.article-title,
.article-date,
.article-preview {
    padding-right: 180px;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
}

    .article-title:hover .ext-link {
        opacity: .3;
    }

        .article-title:hover .ext-link:hover {
            opacity: 1;
        }

    .article-title a {
        vertical-align: middle;
    }

.article-date {
    padding-top: 2px;
    font-size: 12px;
    opacity: .5;
}

.article-preview {
    padding-top: 12px;
    font-size: 14px;
}

.article-actions {
    padding-top: 10px;
}

.top-action-link {
    float: left;
    position: relative;
    width: 44px;
    height: 50px;
    opacity: .8;
}

.action-link {
    float: left;
    position: relative;
    width: 24px;
    height: 24px;
    margin: 0 6px;
    opacity: .3;
}

    .top-action-link:hover,
    .action-link:hover {
        opacity: 1;
    }

.article-actions .action-link:first-child {
    margin-left: 0;
}

.article-img {
    position: absolute;
    top: 20px;
    right: 0;
    width: 160px;
    height: 110px;
    background-size: cover;
    background-position: center;
    opacity: .75;
    transition: opacity 250ms ease 0ms;
}

    .article-img:hover {
        opacity: 1;
    }

    .article-img a {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-size:cover;
        background-position:center;
    }

.more-results {
    padding-top: 30px;
}

.btn-more-results {
    background-color: #f5f5f5;
    border: 1px solid #dedede;
    border-radius: 5px;
    display: table;
    width: 100%;
    height: 50px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.btn-more-results,
.btn-more-results:hover {
  color: #2d2d2d;
}


.btn-more-results span {
    display: table-cell;
    vertical-align: middle;
}

.fav-icon {
    float: left;
    width: 24px;
    height: 50px;
    margin-right: 8px;
    position: relative;
}

.fav-title {
    float: left;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.top-view {
  display: inline-block;
  margin-right: 10px;
  text-decoration: underline;
}

.top-view:hover {
    color: inherit !important;
}

.top-article-title {
    float: left;
    height: 50px;
    line-height: 50px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: calc(100% - 244px);
}

.top-center {
    margin: 0 auto;
    display: table;
}

.top-right {
    position: absolute;
    top: 0;
    right: 10px;
}

.top-bar .svg-icon {
    fill: #ffffff;
}

.top-action-link img,
.action-link img {
    width: 16px;
    height: 16px;
}

.gray {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
    -moz-filter: grayscale(100%);
    -ms-filter: grayscale(100%);
    -o-filter: grayscale(100%);
    filter: url(resources.svg#desaturate);
    filter: gray;
    -webkit-filter: grayscale(1);
}

.top-action-link.disabled,
.action-link.disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.25;
}

.top-bar:after,
.top-center:after,
.filter-bar:after,
.article-actions:after {
    content: "";
    display: table;
    clear: both;
}

#menu {
    cursor: pointer;
}

.overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000;
    opacity: .5;
    z-index: 99999;
}

.overlay.show {
  display: block;
  z-index: 10000;
}

.fav-status {
    cursor: pointer;
}

    .fav-status.favorited {
        cursor: pointer;
        opacity: 1;
    }

.action-link.fav-status div {
    width: 24px;
    height: 24px;
}

.top-action-link.fav-status div {
    width: 44px;
    height: 50px;
}

.fav-status div {
    width: 24px;
    height: 24px;
    background-image: url("heart-1.png");
    background-repeat: no-repeat;
    background-size: 16px 16px;
    background-position: center;
}

.fav-status.favorited div {
    background-image: url("heart-3.png");
}

.fav-status.favorited.fav-anim div {
    animation-name: pulse;
    animation-duration: 250ms;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(.65);
    }

    75% {
        transform: scale(.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Loader CSS */

.fav-loader {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 36px;
    height: 36px;
    z-index: 10000;
}

.fav-loader-icon {
    fill: #1086DC;
    -webkit-animation: spin 1.25s infinite linear;
    animation: spin 1.25s infinite linear;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


/* Media Queries */
@media only screen and (max-width: 767px) {
  select:active,
  input:active,
  textarea:active {
    font-size: 16px;
  }
}

@media only screen and (max-width: 660px) {
  .view, .sort, .search {
    float: left;
    display: block;
    margin-top: 12px;
    width: 100%;
  }

  .view {
    margin-top: 0;
    margin-right: 0;
  }
}

@media only screen and (max-width: 500px) {
  .article-title,
  .article-date,
  .article-preview {
    padding-right: 100px;
  }

  .article-img {
    width: 80px;
    height: 80px;
  }
}

@media only screen and (max-width: 440px) {
  .top-article-title {
    display: none;
  }
}
