@import '../../../../../assets/scss/variables';

:host {
  position: relative;
  display: block;
}

.feed-container {
  margin-top: 10px;
  background-color: white;
  border-radius: 4px;
  min-height: 155px;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 55% 45%;
  box-shadow: 0px 0px 10px 0px #dce2e9;

  .info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 20px 20px 20px 25px;

    .title {
      font-size: 15px;
      font-weight: bold;
      color: #1f466c;
      text-transform: uppercase;
    }

    .heading {
      padding-top: 5px;
      font-size: 24px;
      font-weight: bold;
      color: #000000;
    }

    .text {
      padding-top: 5px;
      font-size: 16px;
      color: #000000;
      text-align: left;
      line-height: 22px;
      white-space: pre-wrap;
    }
  }

  .books {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-y: hidden;
    overflow-x: scroll;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0 0px 0px;

    .book-image {
      cursor: pointer;
      margin: 18px 10px 0 0;
      margin: 0 10px 0 0;
      display: block;
      height: 140px;
      min-width: 85px;
      border-radius: 8px;
    }

    .book-layer-fade {
      position: absolute;
      min-height: 155px;
      min-width: 55px;
      z-index: 20;
      right: 0px;
      opacity: 0.7;
      background-color: white;
      box-shadow: -8px 0px 14px 3px white;
      border-radius: 5px;
    }

    .book-layer-fade-plain {
      position: absolute;
      min-height: 155px;
      min-width: 55px;
      z-index: 20;
      right: 0px;
      opacity: 0.7;
      border-radius: 5px;
    }

    .book-layer-fade-start {
      position: absolute;
      min-height: 155px;
      min-width: 55px;
      z-index: 20;
      left: 55%;
      opacity: 0.7;
      background-color: white;
      box-shadow: 3px 0 14px 8px white;
      border-radius: 5px;
    }

    .book-layer-fade-start-plain {
      position: absolute;
      min-height: 155px;
      min-width: 55px;
      z-index: 20;
      left: 55%;
      opacity: 0.7;
      border-radius: 5px;
    }

    .icon {
      position: absolute;
      top: -10px;
      right: 0;
      z-index: 30;
      opacity: 1;
      cursor: pointer;
    }

    .icon-start {
      position: absolute;
      top: -10px;
      left: 55%;
      z-index: 30;
      opacity: 1;
      cursor: pointer;
    }

    .recommendation-icon {
      position: absolute;
      z-index: 25;
      right: 30px;
      top: -5px;
    }

    .last {
      display: block;
      height: 140px;
      min-width: 53px;
    }
  }

  .icon {
    margin-top: 40px;
  }

  .icon-start {
    margin-top: 40px;
  }
}
