/*
 css file for sidebar
 layouts/partial/sidebar.html
 */

.topic {
  /* background-image setting */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  /* border */
  border: solid 1px #ddd;
  border-radius: 4px;
  /*box-sizing: border-box;*/


  /* box shadow */
  box-shadow: 0 0 5px #ccc;
  -webkit-transition: all 0.2s ease-out;
  -moz-transition: all 0.2s ease-out;
  transition: all 0.2s ease-out;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 6px 7px 6px 7px;
  background-color:rgba(255,255,255,0.5);
  background-blend-mode:lighten;

  display:block;

}

.topic:hover {
  filter:alpha(opacity=50);
  -ms-filter: "alpha(opacity=50)";
  -moz-opacity:0.5;
  -khtml-opacity: 0.5;
  cursor: pointer;
  background-color:rgba(180,180,180,0.3);
  box-shadow: 0 0 9px #bbb;
  color: #333;
}

.imgsize{
  width: 24vw;
  height: 18vw;
  /*border: solid 5px red; */
}

.bannersize{
  width: 24vw;
  height : 18vw;
 /* padding-bottom: 25%;*/
/*  border: solid 5px blue;*/
}

.topic img{
  width: 100%;
  height: auto;
  z-index: 1;
}

.topic a {
  display: block;
  font-family: serif;
}

.topic h1 {
  font-size: 16px;
  justify-content: center;
  text-align: center;
}

.topic div.title {

  display: table-cell;
  vertical-align: middle;
  /*
  -webkit-align-items: center;
  align-items: center; 
  -webkit-justify-content: center; 
  justify-content: center; 
  */
  text-align: center;

  font-size: 19px;
  height: 15vw;
  padding-left:  2vw;
  padding-right: 2vw;
  width: 20vw;
  margin:auto;
  padding:auto;
  z-index: 1;
  text-shadow:  2px  2px 8px #fff,
               -2px  2px 8px #fff,
                2px -2px 8px #fff,
               -2px -2px 8px #fff;

}

.topic div.date {
  text-align: center;
 /* height: 1vw; */
  font-size: 13px;
  justify-content: center; 
  /*margin: 2vw 0 -5vw 0; */

  position: absolute;
  bottom: 4vw;
  height: 3vw;
  margin: auto;
  padding-bottom:3vw;
  z-index: 3;
  text-shadow:  1px  1px 2px #fff,
               -1px  1px 2px #fff,
                1px -1px 2px #fff,
               -1px -1px 2px #fff;
}

@media screen and (min-width: 720px) {
  .topic div.date {
    position: relative;
  }
}
@media screen and (max-width: 1000px) {
  .topic div.title {
    font-size:12px;
  }
  .topic div.date {
    font-size:9px;
  }
}
@media screen and (max-width: 720px) {
  .topic div.date {
    position:absolute;
    font-size: 13px;
    color: #555;
    justify-content: center; 
    text-align: center;
    position: absolute;
    bottom: 7px;
    height: 13px;
    z-index: 4;
    margin-left: 52px;
    padding-bottom: 23px;
  }
  .topic div.title {
    font-size:15px;
    height: 170px;
    width: 215px;
    padding-left:  12px;
    padding-right: 12px;
  }
}

.topic_list {
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255,255,255,0.6);
  /*
  border: solid 8px hotpink;
  box-sizing: border-box;
  */
}

.topic_list-narrow {
  display: box;
  align: center;
  margin: 0 auto;
  width: 100vw;
  height: 105%;
  /*
  border: solid 4px orange;
  box-sizing: border-box;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  */
}

.slick-initialized .slick-slide{
  opacity: 0.4;
}

.slick-initialized .slick-slide.slick-active{
  opacity: 1;
  border: solid 1px #bbb;
  border-radius: 4px;
  box-shadow: 0 0 11px #ccc;
}

.slick-prev:before {
  color: #445;
  opacity: 0.5;
}

.slick-next:before {
  color: #445;
  opacity: 0.5;
  /*color: #348; */
}
