/******************* BOOKS ************************/

.container .books{
    height: calc(100% - 80px);
    width: 100%;
    display: block;
    background: white;
}

.container .books_bt {
    border-radius: 100%;
    background: #5db6d0;
    padding: 20px; 
    width: 40px;
    height: 40px;  
    display: inline-block;
  }
  .container .books_bt:hover {
    border-radius: 100%;
    padding: 20px; 
    width: 40px;
    height: 40px;  
    display: inline-block;
    cursor: pointer;
    background: #86d6ee;
  }
.container .books_bt a{
    margin-left:-5px;
  }
  .container .books_bt:hover a{
    color: black;
  }

  .container .books{
    width: 100%;
  }
  .container .books .title{
    text-align: left;
    font-size: 25px;
    font-weight: bold;
    color: #5db6d0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-left: 25%;
  }

  .container .books .bookshelve{
    width: 100%;
    min-height: 550px;
    /* padding-top:20px; */
    /* margin-top:20px; */
    background: url('../assets/book-bg.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    width: 100%;
    position: relative;
  }

  .container .books .bookshelve .shelve{
    width: 70%;
    min-height: 550px;
    display: table;
    table-layout: fixed; 
    border-collapse: separate;
    border-spacing: 50px;  
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 50px;
  }

  .container .books .bookshelve .shelve .book{
    height: 550px;
    display: table-cell;
    text-align: center;
    position: relative;
  }
  .container .books .bookshelve .shelve .book:hover{
    transition: background-color 2s ease-out 100ms
  }

  .container .books .bookshelve .shelve .book .img_tales{
    width: 300px;
    height: 430px;
    background: url('../assets/book-tales.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top:-60px;
    transition: opacity 0.6s linear;
  }
  .container .books .bookshelve .shelve .book .img_sweet{
    width: 300px;
    height: 430px;
    background: url('../assets/book-sweet.jpg');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
    position: absolute; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top:-60px;
    transition: opacity 0.5s linear;
  }

  .container .books .bookshelve .shelve .book .img_tales.overlay,
  .container .books .bookshelve .shelve .book .img_sweet.overlay {
    opacity: 0.4;
    transition: opacity 0.5s linear;
  }
 
  .container .books .bookshelve .shelve .book .title.overlay,
  .container .books .bookshelve .shelve .book .title.overlay{
    color: #86d6ee;
    transition: color 0.5s linear;
  }

  .container .books .bookshelve .shelve .book .title{
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 20px;
    text-align: center;
    color: black;
    margin-top:450px;
    width: 100%;
    margin-left: 0px;
  }

  .container .books .bookshelve .shelve .book .button{
    margin-top: 20px;
    background: #5db6d0;
    width: 100px;
    height: 40px;
    color:white;
    line-height: 30px;
    padding-left:5px;
    padding-right:5px;
    padding-top: 10px;
    border-radius: 50px;
    cursor: pointer;   
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    text-align: center;
    position: absolute; 
    margin-top:250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .container .books .bookshelve .shelve .book .button.overlay{
    background: #8ad9f1;
    color: black;
    transition: background-color 0.5s linear;
    transition: color 0.5s linear;
  }

   /******************************* MODAL ***************************/
.modal{
  z-index: 999;
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal .box{
  width: 50%;
  height: 50%;
  background: white;
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  margin-top : -80px;
  padding: 50px;
}

.modal .box .close{
  width: 40px;
  height: 40px;
  float: right;
  margin-top: -30px;
  margin-right: -30px;
  cursor: pointer;
}
.modal .box .template{
  z-index: 9999;
}
.modal .box .template .img{
    width: 300px;
    height: 430px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    display: block;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

.modal .box .template .title{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 30px;
  color:#5db6d0;
  text-align: center;
  font-weight: bold;
  margin-left:34%;
  margin-top:-430px;
}

.modal .box .template .description{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 15px;
  color:black;
  text-align: left;
  margin-left:34%;
  width: 65%;
  margin-top: 20px;
}

.modal .box .template .button{
    margin-top: 20px;
    background: #5db6d0;
    width: 200px;
    height: 40px;
    color: white;
    line-height: 30px;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 10px;
    border-radius: 50px;
    cursor: pointer;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 16px;
    text-align: center;
    position: absolute;
    margin-top: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-decoration: none;
}
.modal .box .template .button:hover{
  background: #8ad9f1;
  color: black;
}

@media only screen and (max-width: 700px){
    .container .books{
      /* background-color: blue; */
      min-height: 1300px;
    }

    .container .books .bookshelve .shelve{
      margin-top: 350px;
    }

    .container .books .bookshelve .shelve .book{
      height: 550px;
      display: table-row;
    }

 /******************************* MODAL MOBILE***************************/
  .modal .box{
    width: 80%;
    height: 70%;
    padding: 10px;
  }
 .modal .box .template {
  width: 100%;
 }

  .modal .box .template .img {
    width: 260px;
    height: 350px;
    position: absolute;
    margin-top: -140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .modal .box .template .title{
    margin-top:380px;
    font-size: 20px;
    margin-left: 0;
  }

  .modal .box .template .description{
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color:black;
    text-align: center;
    margin-left:0px;
    width: 100%;
    margin-top: 40px;
  }

  .modal .box .template .button{
    margin-top: 280px;
  }
}

  @media only screen and (min-width: 700px)  and  (max-width: 1024px){
    .container .books{
      /* background-color: blue; */
      min-height: 1300px;
    }

    .container .books .bookshelve .shelve{
      margin-top: 350px;
    }

    .container .books .bookshelve .shelve .book{
      height: 550px;
      display: table-row;
    }

    .container .books .title{
      margin-left: 25vh;
      font-size: 30px;
    }
      /******************************* MODAL MOBILE***************************/
      .modal .box{
        width: 80%;
        height: 70%;
        padding: 10px;
      }
     .modal .box .template {
      width: 100%;
     }
    
      .modal .box .template .img {
        width: 260px;
        height: 350px;
        position: absolute;
        margin-top: -140px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
      .modal .box .template .title{
        margin-top:420px;
        font-size: 25px;
        margin-left: 0;
      }
    
      .modal .box .template .description{
        font-size: 15px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        color:black;
        text-align: center;
        margin-left:0px;
        width: 100%;
        margin-top: 40px;
      }
    
      .modal .box .template .button{
        margin-top: 280px;
      }
      
  }