@import "compass/css3";

* {
  box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 12.5px;
	background: url(../images/bg.jpg);
	background-attachment: fixed;
	width:100%;
	overflow-x: hidden;
}

a {text-decoration: none;}

.tv-page{
    max-width: 900px;
	min-height:400px;
    margin: 0 auto;
    box-shadow: 0 10px 10px gray;
	background:white;
	height:100%;
	
}
.tv-content .col-sm-3 {
    min-width: 230px;
}
@media (max-width: 930px) {
   
        .tv-content .col-sm-8 {
            width: 100%;
        }
        .vertical-menu a {
            background-color: #111 !important;
        }
        .cl-menu li a {color:white !important;}
        .cl-menu li li { display: none;          }

  
}

#logotv{
    background: url("../images/logo.png") no-repeat;
    width: 120px;
    height: 120px;
    display: block;
    background-size: cover;
    position: inherit;
    top: -45px;
    margin: auto;
    left: 30px;
}
.label_name{
    position: inherit;
    top: -80px;
    left: 32px;
    letter-spacing: 8px;
    font-family: fantasy;
    font-size:20px;
}
.info_name{
    position: inherit;
    top: -88px;
    left: 30px;
    font-size: 12px;
}

.responsive-banner {
    display: inline-block;
    width: 100%;
    max-width: 1000px;
    position: relative;
   height: 150px;
    overflow: hidden;
      background-image: linear-gradient(to bottom right, #D45BA1, #A784E0);
      background-repeat: no-repeat;
    text-align: left;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  }
  .responsive-banner.second {
    background-image: linear-gradient(to bottom right, #F4C28E, #E67163);
  }
  .responsive-banner.third {
    background-image: linear-gradient(to bottom right, #214b7d, #507fb9);
  }
  .container-envelope {
    max-width: calc(100%);
    color: #fff;
     display: -webkit-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
    min-height: 300px;
    max-height: 450px;
  }
  .col-xs-12 {
    -webkit-box-flex: 0;
      -webkit-flex: 0 0 100%;
      -ms-flex: 0 0 100%;
      flex: 0 0 100%;
      max-width: 100%;
    -webkit-align-self: flex-end;
              -ms-flex-item-align: end;
                      align-self: flex-end;
  }
  
.logo_group{
    text-align:center;position:relative;max-width:180px;top:-60px;left:-24px;
}

.responsive-banner svg, img {
    fill: rgba(0, 0, 0, 0.1);
    position: absolute;
  }
  .responsive-banner img {
    max-width : 50%;
  }
  .responsive-banner .cirle-a {
    bottom: -80px;
    left: -80px;
  }
  .responsive-banner .cirle-b {
    top: -30px;
    right: 70%;
  }
  .responsive-banner .cirle-c {
    top: -330px;
    right: -300px;
  }
  .responsive-banner  .cirle-d {
    top: 195px;
        right: 145px;
  }
  .responsive-banner img {
    top: 0;
    right: 0;
  }

.navibar {
  width: 100%;
  background-color: #282A35;
  overflow: auto;
}

.navibar a {
  float: left;
  padding: 9px;
  color: white;
  text-decoration: none;
  font-size: 12.5px;
}

.navibar a:hover {
  background-color: #000;
}

.tv-content{
	padding: 10px;
}


/** TITLE BOX AND PLUGINS **/
.pl-title{
  background: url(../images/title.png) no-repeat;
    background-size: 35px 22px;
    border-bottom: solid 3px #214b7d;
    height: 24px;
    width: 100%;
    margin-top: 10px;
}

.pl-title .pl-name{
  margin-left: 28px;
  font-size: 15px;
  float: left;
}

.pl-title .pl-more{

font-size: 13px; 
float: right;
margin-top: 4px;
}

.top-book-side ul{
	list-style: none; 
	padding: 0;
    margin: 0;
}

.top-book-side li{
	border-bottom: solid 1px #eee;
	padding: 5px;
	margin-left:0px;
}

.top-book-side li:hover{
	background: #ccc;
}

.top-book-side span{
	display: block;
	float:left;
  display: -webkit-box;
    -webkit-line-clamp: 2;  /* Giới hạn 2 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Thêm dấu "..." nếu vượt quá */
}
.top-book-side img{
	width:40px; height:50px;
}



/** VERTICAL MENU **/
.vertical-menu {
    width: 100%;
}

.vertical-menu a {
    background-color: #eee;
    color: black;
    display: block;
    padding: 12px;
    text-decoration: none;
}

.vertical-menu a:hover {
    background-color: #ccc;
}

.vertical-menu a.active {
    background-color: #4CAF50;
    color: white;
}

/** TOP SLIDER **/
.content-slider li{

    text-align: center;
    color: #214b7d;
}
.content-slider h3 {
    margin: 0;
    padding: 70px 0;
}

.lSAction > a {
    z-index: 99 !important;
	background: transparent;
	    text-decoration: none;
}

.lSPager .active{
	background: transparent !important;

}


/* OTHER */

.article-title{
	width:100%;
	margin: 0 auto;
	padding:10px;
	font-size:1.4em;
	border-bottom: 1px solid #eee;
	font-weight: bold;
}


.space{margin-top:30px;}
.footer {
	padding:10px;
  display:block;
   background-color: #214b7d;
   color: white;
   text-align: center;
}

/** pagination **/

.pagination a {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
}

.pagination a.active {
    background-color: dodgerblue;
    color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

/** item view **/
.item-view{padding: 10px;display: flex;  flex-wrap: wrap;}
.item-cover{
  width: 175px;
  height: 250px;
  background-size: cover;
  background-position: center;
  margin: 5px auto;
  display: block;
      border-radius: 10px; 
      transition: background-size 0.5s; /* add a transition effect */

}

.item-cover:hover {
  background-size: 120% 120%;
}

/* Style the left column */
.left-view {

  margin: 10px;
  padding: 10px;
  padding-bottom: 0px;
  margin-bottom: 0px;
  width: 180px;
}

/* Style the right column */
.right-view {
  flex: 1; 
  margin-left:5px;
  min-width:380px;
}


/* Make the columns responsive */
@media (max-width: 650px) {
  .item-cover {
    width: 100%;
  }
  .left-view{
      margin: 0 auto;
  }
}

.tentp{
    font-size: 1.4em;
    font-weight: bold;
    color:#394a9a;
    margin-bottom: 5px;
	padding-top: 5px;
	padding-bottom: 5px;
}

.tbl-book-info tr{
	border-bottom: solid 1px #eee;
}

.tbl-book-info td{
	padding-top: 3px;
	padding-bottom: 3px;
}

.phienban-title{
    margin:15px 0 10px;
    font-weight:bold;
    font-size:1.1em;
	color: #1e7145;
}

.each-tppop{
	padding:10px;
	border-left: solid 1px #eee;
}

.each-tppop:hover{
	background: #eee;
}

.each-tppop:first-child{
border-left: 0px;
}

.tinhtrang{
    font-weight: bold;
    font-style: italic;
}
.tinhtrang .avaiable{
    color:green;
}
.tinhtrang .unavaiable{
    color:red;
}
.tinhtrang .bookborrow{
    color:#fd7a05;
}

/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #f1f1f1;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 6px 16px;
    transition: 0.3s;
    font-size: 14px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ccc;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

/* IMAGE MODAL */

#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

#myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */

  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  -webkit-animation-name: fadeIn; /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
  
}

.modal img{
	height:90%;
	width:auto;
	left:30%;
}

/* Modal Content */
.modal-content {
  border:none !important;
  top: 0;
  background-color: #d1d1d1;
  width: 100%;
  height:100%;
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s;
  
}

/* Caption of Modal Image */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

/* The Close Button */
.close {
  color: white;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-top:8px !important;
}

.unlink {
  color: white;
  float: right;
  font-size: 14px;
  font-weight: bold;
  margin-top:12px !important;
  margin-right:20px;
}

.bookmark {
  color: white;
  float: right;
  font-size: 14px;
  font-weight: bold;
  margin-top:12px !important;
  margin-right:20px;
}

.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 2px 16px;
  background-color: #214b7d;
  color: white;
}

.modal-body {
	padding: 2px 16px;
	height:100%;
	background-color: #d1d1d1;
}


/* Add Animation */

/* Add Animation */
@-webkit-keyframes slideIn {
  from {bottom: -300px; opacity: 0} 
  to {bottom: 0; opacity: 1}
}

@keyframes slideIn {
  from {bottom: -300px; opacity: 0}
  to {bottom: 0; opacity: 1}
}

@-webkit-keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

@keyframes fadeIn {
  from {opacity: 0} 
  to {opacity: 1}
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

/* LIST VIEW */
.item-data{
	float:left;
	padding:10px;
	max-width: 220px;
}
.item-data a{
	min-height:280px;
	margin-bottom: 10px;
    text-align: left;
	display: block;
    overflow: hidden;
	text-decoration: none;
	padding:10px;
}
.item-data a:hover{
	background: #eee;

}

.item-data img{
	text-align: center;
	max-width:200px;
	
	overflow: hidden;
    display: block;
    position: relative;
    margin: 10px auto 0;
    text-align: center;
    background: #fff;
    height: 200px;
    white-space: nowrap;
}

.item-title{
	text-overflow: ellipsis;
    position: relative;
    text-align: justify;
    margin: 15px auto 0;
    letter-spacing: .1px;
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.38;
    color: #242424;
    max-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;


}

.post-action{
    margin-top: 10px;
    margin-bottom: 10px;
}

.login-fn{
	float:right;
}

.book-list{display: inline-block;}

@media screen and (max-width: 480px){
	.item-data{
		min-width:50%;
	}
}

@media screen and (max-width: 320px){
	.item-data{
		min-width:100%;
	}
}


/** RESIZE **/

@media screen and (max-width: 575px) {

  .navibar .nav-name{
    display: none;
  }
  .navibar .fa, .fas, .fa-brands{
    font-size: 18px;
  }
}

@media (min-width: 950px){
	.s-container {margin-left:8%; width: 85%; float:left;}
}

.read-btn{
	width: 200px;
  height: 100%;
  margin: 0 auto;
  -webkit-perspective: 1000;
  -webkit-backface-visibility: hidden;
  background: #fff;
}

.read-button {
 
  display: inline-block;
  width: 150px;
  height: 40px;
  font-size: 1.3em;
  font-weight: light;
  font-family: 'Trebuchet MS', sans-serif;
  text-transform: uppercase;
  text-align: center;
  line-height: 40px;
  letter-spacing: 0px;
  color: white;
  border: none;
  border-radius: 0%;
  background: #214b7d;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(#214b7d, .25);
margin-left: 10px;
  margin-top:5px;
}

.read-button:hover {
  -webkit-animation: none;
}

@-webkit-keyframes pulse {
  0% {
    @include transform(scale(.95));
  }
  70% {
    @include transform(scale(1));
    box-shadow: 0 0 0 50px rgba(#5a99d4, 0);
  }
  100% {
    @include transform(scale(.95));
    box-shadow: 0 0 0 0 rgba(#5a99d4, 0);
  }
}

.content-page{width:100%;}
.main-content{display: flex;}
.left-conlumn{margin-right: 10px;max-width: 200px;width: 100%;}
.info-content{padding: 10px; width:100%;margin-left:5px;position: relative;}
.right-conlumn{max-width:200px;width:100%; margin-left:5px;}

.loginPopup {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

/* Popup content */
.popup-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 300px;
  text-align: center;
  border-radius: 10px;
  height:250px;
}

/* Close button */
.loginPopup .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.loginPopup .close:hover,
.loginPopup .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.loginPopup .google-login-btn {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  width: 100%;
  overflow: hidden;
  border-radius: 5px;
  background-color: #d6523e;
  cursor: pointer;
  padding:0px;
}
.loginPopup .google-login-btn .icon {
  display: inline-flex;
  height: 100%;
  padding: 15px 20px;
  align-items: center;
  justify-content: center;
  background-color: #cf412c;
  margin-right: 15px;
}
.loginPopup .google-login-btn .icon svg {
  fill: #fff;
}
.loginPopup .google-login-btn:hover {
  background-color: #d44a36;
}
.loginPopup .google-login-btn:hover .icon {
  background-color: #c63f2a;
}



.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #333;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 10px 20px;
  text-decoration: none;
  font-size: 13px;
  color: #b8c1ec;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
  background-color: rgba(33, 75, 125, 0.8);
  padding-left: 30px;
}

.sidenav .submenu {
  display: none;
  padding-left: 20px;
}

.sidenav a.expand::after {
  content: '\25BC';
  float: right;
  font-size: 16px;
  transition: transform 0.3s;
}

.sidenav a.expand.open::after {
  transform: rotate(180deg);
}

.sidenav .submenu a {
  font-size: 13px;
  color: #d1d1d1;
  padding-left: 20px;
}

.sidenav .submenu a:hover {
  color: #ffffff;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 36px;
  margin-left: 50px;
  color: #b8c1ec;
  cursor: pointer;
}

#tv-page{
  transition: margin-left .5s;
}

@media screen and (max-width: 880px) {
  .left-conlumn{display: none;}
  .btn-nav{display:block !important;}
}

@media screen and (max-width: 720px) {
  .right-conlumn{display: none;}
}

@media screen and (max-width: 380px) {
  .blockquote-container{display: none !important;}
}


.thongke {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  animation: fadeIn 1.5s ease-in-out, pulse 2s infinite alternate;
  max-width: 250px;
  width: 100%;
  margin-bottom: 5px;
}
.thongke p {
  font-size: 9px;
  color: #333;
  margin: 0;
  font-weight: bold;
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s;
}
.thongke p .highlight-number {
  color: #ff6347;
  font-size: 1.3em;
}
@keyframes pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

.comments-box {
  width: 100%;
  max-width: 600px;
  margin: 5px auto;
  padding: 5px;
  background-color: #f9f9f9;
  border-radius: 10px;

  opacity: 0; /* Initial state for fade-in */
  transform: translateY(20px); /* Start with a slight offset */
  animation: fadeInSlideUp 1s ease forwards; /* Apply animation */
  max-height: 236px; /* Set maximum height */
    overflow-y: auto; /* Enable vertical scroll if content exceeds height */
}

.comments-box .comment {
  display: flex;
    align-items: flex-start;
  margin-bottom: 5px;
  padding: 6px;
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #ccc;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInSlideUp 0.8s ease forwards;
  animation-delay: 0.6s;
}

.comments-box .comment p {
  margin: 0;
  font-size: 11px;
  color: #555;
  display: -webkit-box; /* Display as a box to enable line clamping */
    -webkit-box-orient: vertical; /* Set box orientation to vertical */
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    overflow: hidden; /* Hide overflow text */
    text-overflow: ellipsis; /* Add ellipsis (...) at the end of truncated text */
}

.comments-box .comment strong {
  color: #000;
}

.comments-box .comment:last-child {
  margin-bottom: 0;
}

.book-cover {
  width: 36px;
  height: 55px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-right: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}


.book-cover[title="Book 2"] {
  background-image: url('https://via.placeholder.com/50x70?text=Book+2');
}

@keyframes fadeInSlideUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInText {
  to {
      opacity: 1;
  }
}


p.reg-content {
  font-family: 'Roboto', sans-serif; 
  font-size: 13px; 
  line-height: 1.3; 
  color: #444; 
  margin-bottom: 13px; 
  transition: color 0.3s ease;
}

p.reg-content:hover {
  color: #0066cc; /* Add interactivity by changing color on hover */
}


.spinner {
  width: 40px;
  height: 40px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
