/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

/*
 * Fonts
 */
.sacramento-regular {
  font-family: "Sacramento", cursive;
  font-weight: 400;
  font-style: normal;
}
.m-plus-rounded-1c-regular {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}


.search-area {
  margin-bottom: 1.5rem;
}

.pager-info {
  font-size: .8rem;
  font-weight: lighter;
  text-align: center;
}

.ui.inverted.segment.masthead {
  min-height: 260px;
  position: relative;
  z-index: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    filter: blur(8px);
    background-image: url(/aig-mid22922-316-xl_TP_V.jpg);
    background-position: center;
    background-size: contain;
  }

  h1 {
    font-size: 6em;
    margin: 0;

    a {
      color: white;

      &:visited {
        color: white;
      }

      &:hover {
        color: white;
      }

      &:active {
        color: white;
      }
    }
  }

  h2 {
    font-size: 1.2em;
    margin: 0;
  }
}

.login-menu {
  position: absolute;
  z-index: 100;
  top: 1em;
  right: 1em;
}

.ui.basic.segment.ad-area {
  padding-bottom: 70px;
}

.ui.vertical.stripe {
  padding: 3em 0em;
}

.ui.right.floated.header {
  margin-left: 0;
  margin-right: 0;
}

.ui.compact.menu.list-type-menu {
  margin-bottom: 1em;
}

.ui.grid.books {
  margin-top: .5em !important;
  margin-bottom: .5em !important;
}

/* .title-img {
  box-shadow: 2px 2px 2px rgb(192, 192, 192);
  margin: 10px;
} */

.book {
  background-color: white;
  border: solid 1px #e6e6e6;
  border-radius: 10px;
  display: flex;
  margin: 0;
  padding: 0.5em 1em;
}

.book-img {
  border: solid 1px #e6e6e6;
  min-height: 165px;

  img {
    width: 100%;
  }
}

.book-administration {
  font-size: .9em;

  form {
    display: inline-block;

    select {
      font-size: .9em;
    }
  }
}

.book-description {
  padding-left: 1em;
  display: flex;
  flex: 1;
  flex-direction: column;

  /* titleは最長6行表示にする
     -webkit-line-clampは、Webkit系ブラウザでのみ有効
     -webkit-box-orientは、-webkit-line-clampを使用するために必要なプロパティ
     flex-grow: 1;は、残りのスペースを占めるために必要
     max-height: 7.2em;は、6行分の高さを確保するための設定
   */
  .book-title {
    flex-grow: 1;
    max-height: 7.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-height: 1.2;
    text-overflow: ellipsis;
    a {
      color: black;
    }
  }

  .book-info {
    margin-top: auto;
    .row {
      display: flex;

      .book-publisher {
        margin-bottom: 3px;
      }
      .book-release {
        width: 100%;
      }
    }
  }
}

.footer {
  text-align: center;
  background-color: #f5f5f5;
  color: rgba(0,0,0,.87);

  left: 0px;
  right: 0px;
  bottom: 0px;
  position: fixed;
  height: 48px;
  padding: 10px;

  .rss-icon {
    vertical-align: middle;
  }
}

/* book */
.book-detail {
  .book-title {
    a {
      color: black;
    }
  }
  .description {
    white-space: pre-wrap;
  }
}

/* login */
.grid.login {
  background-color: #DADADA;
  height: 100%;

  .column {
    max-width: 450px;
  }

  .title {
    color: #00B5AD;
  }

  .ui.form input[type=email]:focus {
    border-color: #85b7d9;
  }
}

@media only screen and (max-width: 767px) {
  .mb1line {
    width: 100%;
  }

  .my-pagination {
    float: none !important;

    .pagination {
      font-size: 0.7em !important;
    }

    .pager-info {
      text-align: start;
    }
  }
}
