header .logo:after, header:after, #advance-resources h2:after, .games .game:after, .games:after, section#main .sec-l:after, section#main .sub-sec-m .shelve-inner-div:after, section#main .cat .categories figure, section#main:after, .igcse ul li:after, #search-div figure:after {
  display: block;
  clear: both;
  content: "";
}

section#main .shelve, section#main .sub-l, section#main .sub-r {
  margin-bottom: 1em;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border: 1px solid #2e2019;
}

section#main .shelve h2, section#main .sub-l h2, section#main .sub-r h2, section#main .shelve h3, section#main .sub-l h3, section#main .sub-r h3 {
  font-size: 16px;
  background-color: #ad9262;
  padding: 5px;
  padding-top: 3px;
  padding-bottom: 3px;
  color: #fff;
  border-radius-top-left: 5px;
  -moz-border-radius-top-left: 5px;
  -webkit-border-radius-top-left: 5px;
  -ms-border-radius-top-left: 5px;
  -o-border-radius-top-left: 5px;
  border-radius-top-right: 5px;
  -moz-border-radius-top-right: 5px;
  -webkit-border-radius-top-right: 5px;
  -ms-border-radius-top-right: 5px;
  -o-border-radius-top-right: 5px;
  border-radius-bottom-left: 0;
  -moz-border-radius-bottom-left: 0;
  -webkit-border-radius-bottom-left: 0;
  -ms-border-radius-bottom-left: 0;
  -o-border-radius-bottom-left: 0;
  border-radius-bottom-right: 0;
  -moz-border-radius-bottom-right: 0;
  -webkit-border-radius-bottom-right: 0;
  -ms-border-radius-bottom-right: 0;
  -o-border-radius-bottom-right: 0;
  border-bottom: 1px solid #2e2019;
}

section#main .shelve div, section#main .sub-l div, section#main .sub-r div {
  padding: 5px;
}

section#main .sub-sec-m .shelve-inner-div figure .uploaded, section#main .cat .categories figure .uploaded, #search-div figure .uploaded {
  float: right;
  color: #ad9262;
  font-size: 12px;
}

section#main .sub-sec-m .shelve-inner-div figure, section#main .cat .categories figure, #search-div figure {
  background-color: #eee;
  padding: 4px;
  box-shadow: 0 1px 2px 2px #2e2019;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

section#main .sub-sec-m .shelve-inner-div figure img, section#main .cat .categories figure img, #search-div figure img {
  float: left;
  margin-right: 10px;
  width: 40px;
  height: 40px;
}

section#main .sub-sec-m .shelve-inner-div figure figcaption, section#main .cat .categories figure figcaption, #search-div figure figcaption {
  display: inline;
  color: #330000;
}

section#main .sub-sec-m .shelve-inner-div .view-all {
  float: right;
  margin: 3px 4px;
}

section#main .sub-sec-m .shelve-inner-div .view-all:hover {
  text-decoration: underline;
  color: #ad9262;
}

.btn {
  background-color: #ad9262;
  color: #330000;
  padding: 0 5px;
  font-size: 11px;
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  -ms-border-radius: 2px;
  -o-border-radius: 2px;
}

.btn:hover {
  color: white;
}

.clear {
  display: block;
  clear: both;
  content: "";
}

.red {
  color: red;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

li {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: blue;
}

a:visited {
  color: blue;
}

body {
  background-color: #330000;
}

.container {
  width: 98%;
  margin: 10px auto;
}

header .logo {
  margin-right: .5cm;
}

header img {
  float: left;
  width: 150px;
  height: 150px;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

header hgroup {
  float: left;
  margin-top: 1cm;
}

header hgroup h1, header hgroup h2, header hgroup h3, header hgroup h4, header hgroup h5, header hgroup h6 {
  color: #fff;
}

header hgroup h2 {
  color: #999;
}

.user-det {
  display: inline;
  float: left;
  margin-top: 10px;
  color: white;
}

nav {
  width: 55%;
  float: right;
}

nav ul {
  padding: .7em 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  margin-right: 10px;
  padding: .5em;
  color: #fff !important;
  font-size: 13px;
}

nav ul li a:hover, nav ul li a:focus, nav ul li a:active {
  background-color: #cc9966;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

#banner {
  background-color: #2e2019;
  background: radial-gradient(ellipse, #000, #2e2019);
  height: 200px;
}

#banner .banner {
  width: 60%;
  float: left;
}

#banner .banner img {
  width: 100%;
  height: 200px;
}

#banner .search {
  float: left;
  color: #fff;
  margin-left: 10px;
  margin-top: 1.5cm;
}

#banner .search .search-input {
  display: inline;
  padding: 0 4px 2px 0;
  background-color: #642918;
  border-radius-top-left: 4px;
  -moz-border-radius-top-left: 4px;
  -webkit-border-radius-top-left: 4px;
  -ms-border-radius-top-left: 4px;
  -o-border-radius-top-left: 4px;
  border-radius-top-right: 0;
  -moz-border-radius-top-right: 0;
  -webkit-border-radius-top-right: 0;
  -ms-border-radius-top-right: 0;
  -o-border-radius-top-right: 0;
  border-radius-bottom-left: 0;
  -moz-border-radius-bottom-left: 0;
  -webkit-border-radius-bottom-left: 0;
  -ms-border-radius-bottom-left: 0;
  -o-border-radius-bottom-left: 0;
  border-radius-bottom-right: 4px;
  -moz-border-radius-bottom-right: 4px;
  -webkit-border-radius-bottom-right: 4px;
  -ms-border-radius-bottom-right: 4px;
  -o-border-radius-bottom-right: 4px;
}

#banner .search .search-input input[name="search"] {
  width: 200px;
  border-radius-top-left: 4px;
  -moz-border-radius-top-left: 4px;
  -webkit-border-radius-top-left: 4px;
  -ms-border-radius-top-left: 4px;
  -o-border-radius-top-left: 4px;
  border-radius-top-right: 0;
  -moz-border-radius-top-right: 0;
  -webkit-border-radius-top-right: 0;
  -ms-border-radius-top-right: 0;
  -o-border-radius-top-right: 0;
  border-radius-bottom-left: 0;
  -moz-border-radius-bottom-left: 0;
  -webkit-border-radius-bottom-left: 0;
  -ms-border-radius-bottom-left: 0;
  -o-border-radius-bottom-left: 0;
  border-radius-bottom-right: 4px;
  -moz-border-radius-bottom-right: 4px;
  -webkit-border-radius-bottom-right: 4px;
  -ms-border-radius-bottom-right: 4px;
  -o-border-radius-bottom-right: 4px;
}

#banner .search .search-input span.search-ion {
  padding-top: 10px;
}

#banner .search .search-cat {
  margin-left: 1.5cm;
  margin-top: 10px;
}

#banner .search .search-cat p {
  display: inline;
  margin-right: 20px;
}

#banner .search .search-cat form {
  display: inline;
}

.main {
  background: #fff;
  padding: 3px;
}

.main .adv-res {
  position: absolute;
  top: 2.8em;
  width: 100%;
}

.main .adv-res {
  display: none;
}

.main .res-h-active {
  background: #642918;
  color: #fff;
}

.main .res-cont-active {
  display: block;
}

#advance-resources {
  margin-top: .6em;
  border: 1px solid #2e2019;
  min-height: 170px;
  border-radius: 6px;
  -moz-border-radius: 6px;
  -webkit-border-radius: 6px;
  -ms-border-radius: 6px;
  -o-border-radius: 6px;
}

#advance-resources h1 {
  border-bottom: 1px solid #2e2019;
  padding: 5px;
  font-size: 20px;
}

#advance-resources .resources {
  position: relative;
  margin-left: 20px;
  margin-top: 20px;
}

#advance-resources .resources input[type="text"] {
  width: 200px;
  height: 25px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  border: 1px solid #2e2019;
}

#advance-resources .resources input[type="submit"] {
  width: 70px;
}

#advance-resources #wiki-h, #advance-resources #dic-h, #advance-resources #gog-h {
  position: absolute;
  top: -.5em;
  left: 11.3em;
}

#advance-resources #dic-h {
  left: 22.6em;
}

#advance-resources #gog-h {
  left: 34em;
}

#advance-resources h2 {
  font-size: 18px;
  margin-top: 10px;
  width: 200px;
  border: 1px solid #642918;
  padding: 5px;
  border-radius: 8px;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  -ms-border-radius: 8px;
  -o-border-radius: 8px;
}

#advance-resources h2:hover {
  cursor: pointer;
  background: #642918;
  color: #fff;
}

#advance-resources h2 img {
  float: left;
  margin-right: 5px;
  width: 20px;
  height: 20px;
}

.games {
  padding: 10px;
}

.games img {
  width: 90px;
  height: 90px;
}

.games .game {
  float: left;
  padding: 0 13px;
  max-width: 150px;
  max-height: 300px;
  margin-bottom: 2cm;
  margin-right: .1em;
}

h1.radial-header {
  background-color: #330000;
  background: radial-gradient(circle, #330000, black);
  color: #fff;
  margin-bottom: 10px;
  padding: 6px 10px;
  font-size: 14px;
}

section#main {
  margin-top: 1.5em;
  justify-content: space-between;
  padding-bottom: 1em;
}

section#main .sec-l {
  width: 75%;
  float: left;
  box-sizing: border-box;
}

section#main .sub-sec-l {
  width: 28%;
  float: left;
}

section#main .sub-sec-l #list-cat {
  padding: 0;
}

section#main .sub-sec-l #list-cat ul {
  width: 100%;
  margin-top: 1px;
}

section#main .sub-sec-l #list-cat li {
  background: radial-gradient(#2e2019, black);
  width: 100%;
  margin-bottom: 1px;
  list-style-image: url("../images/li-bul.png");
  list-style-position: inside;
}

section#main .sub-sec-l #list-cat li:first-child {
  border-radius: 7px 7px 0 0;
}

section#main .sub-sec-l #list-cat li:last-child {
  border-radius: 0 0 7px 7px;
}

section#main .sub-sec-l #list-cat a {
  color: #ad9262;
}

section#main .sub-sec-l #list-cat a:hover {
  color: #fff;
}

section#main .sub-sec-m {
  width: 69%;
  float: left;
  margin: 0 10px;
}

section#main .sub-sec-m h2 {
  background-color: #2e2019;
  background: #fff;
  color: #000;
}

section#main .sub-sec-m h2 .add-remove {
  font-size: 16px;
  margin-right: .2em;
  float: right;
  color: #330000;
}

section#main .sub-sec-m h2 .add-remove:hover {
  cursor: pointer;
  color: #ad9262;
}

section#main .sub-sec-m .dim {
  color: green;
}

section#main .sub-sec-m .shelve-inner-div {
  display: none;
}

section#main .sub-sec-m .shelve-inner-div figure {
  margin-bottom: -8px;
}

section#main .sub-sec-m .shelve-inner-div figure #btns {
  display: block;
}

section#main .sub-sec-m .shelve-inner-div figure .uploaded {
  margin-right: 4px;
}

section#main .sub-sec-m .shelve-inner-div .view-all {
  margin-top: 10px;
  color: #330000;
}

section#main .sub-sec-m .shelve {
  margin-bottom: -1px;
}

section#main .sub-sec-m .btn {
  margin-right: -2px;
}

section#main .description {
  width: 68%;
}

section#main .description .book-det {
  float: left;
  text-align: center;
  width: 36%;
  margin-right: .7em;
}

section#main .description .book-det p {
  font-size: 12px;
}

section#main .description .book-det h3 {
  font-size: 16px;
}

section#main .description .book-det p, section#main .description .book-det h3 {
  margin-bottom: 5px;
}

section#main .description .book-det img {
  height: 140px;
  width: 120px;
}

section#main .description .book-desc {
  float: left;
  width: 60%;
}

section#main .description .book-desc h5 {
  color: #642918;
  margin-bottom: 8px;
  font-weight: bolder;
  font-size: 18px;
}

section#main .description .book-desc .bd {
  margin-bottom: 10px;
}

section#main .description .book-desc td {
  padding-right: 2em;
  padding-bottom: 5px;
}

section#main .description .btn {
  padding: .1cm .2cm;
  margin-right: 1em;
  font-size: 12px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

section#main .description .btn:hover {
  background-color: #642918;
  text-decoration: underline;
}

section#main .description p.add-to-lib {
  margin-top: 10px;
}

section#main .description p.add-to-lib a.add-to-lib {
  margin-left: 1em;
}

section#main .cat {
  width: 67% !important;
  margin-left: 2% !important;
}

section#main .cat .categories h1, section#main .cat .categories h2, section#main .cat .categories h3, section#main .cat .categories h4, section#main .cat .categories h5, section#main .cat .categories h6 {
  margin-bottom: 10px;
}

section#main .cat .categories figure {
  margin-bottom: 10px;
}

section#main .sec-r {
  width: 25%;
  float: left;
}

section#main .sec-r .sub-l {
  display: none;
}

section#main .sec-r .ions {
  margin-right: 5px;
  float: right;
  color: #2e2019;
}

section#main .cat {
  width: 70%;
  margin-left: 0;
}

section#main video {
  width: 100px;
  height: 70px;
}

#stf-add2lib {
  width: 60% !important;
  margin-left: 8% !important;
}

#add2lib {
  width: 90%;
}

#add2lib, #stf-add2lib {
  background-color: #EFDFBB;
  margin: 1em auto;
  min-height: 200px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

#add2lib .add2lib-div, #stf-add2lib .add2lib-div {
  margin-left: 10%;
}

#add2lib p, #stf-add2lib p {
  margin: 10% 0 5% 0;
  font-size: 20px;
}

#add2lib a, #stf-add2lib a {
  margin-right: 10px;
  background-color: #330000;
  padding: 10px;
  color: #fff;
  margin: 0 0 0 6em !important;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

#add2lib a:hover, #stf-add2lib a:hover {
  text-decoration: underline;
  opacity: .6;
}

#error-page {
  background-color: #EFDFBB;
  margin: 1em auto;
  min-height: 200px;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
  text-align: center;
  line-height: 2em;
  color: red;
}

#error-page .error-page {
  margin-top: 2em;
}

.igcse ul {
  margin-left: 1em;
}

.igcse ul a {
  line-height: 1.5em;
}

.igcse ul img {
  width: 25px;
  height: 25px;
  float: left;
  margin-right: 5px;
  margin-bottom: 3px;
}

footer {
  background-color: #330000;
  margin: -10px;
  padding-bottom: 1em;
  color: #fff;
  padding: 7px;
}

footer p {
  text-align: center;
}

footer a {
  margin-right: 10px;
  color: #fff;
}

.login-page .logo {
  width: 50%;
  margin: 10px auto;
}

.login-page img {
  width: 200px;
  height: 200px;
  margin-left: 8em;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.login-page hgroup {
  color: white;
}

html {
  height: 100%;
}

body#login {
  background-image: url("../images/bs6.jpg");
  height: 100%;
}

#auth {
  width: 50%;
  margin: 2em auto;
  background: white;
  padding: 1em;
}

input[type="submit"] {
  font-size: 13px !important;
  padding-top: 4px !important;
}

fieldset {
  padding: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

fieldset legend {
  background: linear-gradient(#330000, black);
  color: white;
  font-size: 13px;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

table caption {
  display: table-caption;
  text-align: left;
}

#tab-grp {
  position: relative;
  width: 140% !important;
}

#tab-grp #tab-header-2, #tab-grp #tab-header-3 {
  position: absolute;
  top: 0;
}

#tab-grp #tab-header-2 {
  left: 8em;
}

#tab-grp #tab-header-3 {
  left: 16.5em;
}

#tab-grp .myLib-tit {
  -moz-box-shadow: -4px 0 0 rgba(0, 0, 0, 0.2);
  -webkit-box-shadow: -4px 0 0 rgba(0, 0, 0, 0.2);
  box-shadow: -4px 0 0 rgba(0, 0, 0, 0.2);
  background: #ad9262 !important;
  background: -moz-linear-gradient(220deg, transparent 10px, #ad9262 10px) !important;
  background: -webkit-linear-gradient(220deg, transparent 10px, #ad9262 10px) !important;
  background: -ms-linear-gradient(220deg, transparent 10px, #ad9262 10px) !important;
  background: -o-linear-gradient(220deg, transparent 10px, #ad9262 10px) !important;
  background: linear-gradient(220deg, transparent 10px, #ad9262 10px) !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  color: #fff !important;
  float: left;
  font: bold 12px/35px 'Lucida sans', Arial, Helvetica;
  height: 35px;
  padding: 0 30px;
}

#tab-grp .myLib-tit:hover {
  background: -moz-linear-gradient(220deg, transparent 10px, #2e2019 10px) !important;
  background: -webkit-linear-gradient(220deg, transparent 10px, #2e2019 10px) !important;
  background: -ms-linear-gradient(220deg, transparent 10px, #2e2019 10px) !important;
  background: -o-linear-gradient(220deg, transparent 10px, #2e2019 10px) !important;
  background: linear-gradient(220deg, transparent 10px, #2e2019 10px) !important;
  color: #fff;
  cursor: pointer;
}

#tab-grp .tab-content {
  display: none;
}

#tab-grp #tab-content-1, #tab-grp #tab-content-2, #tab-grp #tab-content-3 {
  position: absolute;
  top: 35px;
}

#tab-grp .header-active {
  background: linear-gradient(220deg, transparent 10px, #330000 10px, black) !important;
}

#tab-grp .cont-active {
  display: block;
}

table {
  border-collapse: collapse;
}

table td, table th, table tr {
  font-size: 12px;
  border: 1px solid #2e2019;
}

table th, table td {
  padding: 5px;
}

table tr:nth-child(even) {
  background-color: #FAF0E6;
}

table tr:nth-child(odd) {
  background-color: rgba(240, 128, 128, 0.4);
}

table th {
  color: #ad9262;
  box-shadow: 0 2px 1px 0 #000;
  -moz-box-shadow: 0 2px 1px 0 #000;
  -o-box-shadow: 0 2px 1px 0 #000;
  -webkit-box-shadow: 0 2px 1px 0 #000;
  -ms-box-shadow: 0 2px 1px 0 #000;
  background: linear-gradient(#000 20%, #330000 60%);
}

.shelf td, .shelf th {
  font-size: 17px;
}

.shelf .ion-book, .shelf .explore, .shelf .folder {
  font-size: 30px;
}

.hcopy {
  margin: 0 auto;
}

.shelf-cat {
  color: #2e2019 !important;
}

form h3 {
  background: radial-gradient(circle, #330000, black);
  padding: .2cm .4cm;
  color: #fff;
  border-radius: 0.4em;
  -moz-border-radius: 0.4em;
  -webkit-border-radius: 0.4em;
  -ms-border-radius: 0.4em;
  -o-border-radius: 0.4em;
}

.div-input {
  background-color: #2e2019 !important;
  box-shadow: 0px 1px 2px black;
  display: flex;
  margin-bottom: 1em;
  margin-top: 5px;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.div-input input {
  width: 92%;
  flex-grow: 1;
  margin-left: .4em;
  border-radius-top-left: 0;
  -moz-border-radius-top-left: 0;
  -webkit-border-radius-top-left: 0;
  -ms-border-radius-top-left: 0;
  -o-border-radius-top-left: 0;
  border-radius-top-right: 4px;
  -moz-border-radius-top-right: 4px;
  -webkit-border-radius-top-right: 4px;
  -ms-border-radius-top-right: 4px;
  -o-border-radius-top-right: 4px;
  border-radius-bottom-left: 4px;
  -moz-border-radius-bottom-left: 4px;
  -webkit-border-radius-bottom-left: 4px;
  -ms-border-radius-bottom-left: 4px;
  -o-border-radius-bottom-left: 4px;
  border-radius-bottom-right: 0;
  -moz-border-radius-bottom-right: 0;
  -webkit-border-radius-bottom-right: 0;
  -ms-border-radius-bottom-right: 0;
  -o-border-radius-bottom-right: 0;
}

.div-input input:hover {
  border: 1px solid #330000;
}

.div-input i {
  padding: 3px 0 0 5px;
  font-size: 14px;
  color: #fff;
}

.checkbox {
  margin-bottom: 15px;
  margin-top: 7px;
}

input[type="submit"] {
  background: radial-gradient(circle, #330000, #000);
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.5);
  color: #fff;
  margin-top: 6px;
  padding: 5px;
  width: 20%;
  font-size: 15px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

input[type="submit"]:hover {
  background: radial-gradient(circle, #ad9262, black);
}

.error-div, .msg {
  padding: 5px 5px;
  font-size: 12px;
  text-align: center;
  border-radius: 3px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
}

.error-div {
  background: #FA8072;
  color: #8B0000;
}

.msg {
  background-color: #9ACD32;
  color: #006400;
}

#faqs {
  width: 98% !important;
}

.answered {
  background-color: #eee;
  padding: 3px 10px;
  font-weight: bolder;
  margin: 10px 0;
}

.qa {
  margin-top: 10px;
}

.qa h3 {
  background: radial-gradient(circle, #330000, #000);
  color: #fff;
  padding: 4px 7px;
  font-size: 14px;
  border-radius: 5px 5px 0 0;
}

.qa .faq {
  padding: 5px;
  border: 1px solid #330000;
}

.qa .faq .status {
  float: right;
  margin-right: 4px;
  color: #2e2019;
  font-size: 12px;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.qa .faq h4 {
  background: linear-gradient(#ad9262, #ccc);
  padding: 4px 10px;
  font-size: 13px;
}

.qa .faq .counters {
  padding: 6px 0;
}

#ask-link {
  background: #330000;
  color: #fff;
  font-size: 14px !important;
  padding: 5px;
  margin-bottom: 10px !important;
}

#ask-link:hover {
  background: #ad9262;
}

#overlay {
  display: none;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  color: white;
  background-color: #000;
  opacity: .7;
}

.form-frame {
  display: none;
  width: 500px;
  height: 50%;
  margin-top: -10cm;
  background-color: #fff;
  position: fixed;
  left: 20%;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

.form-frame .close {
  width: 25px;
  height: 25px;
  float: right;
  margin-right: .5em;
  margin-top: .5em;
  font-size: 13px;
  background-color: #2e2019;
  color: #fff;
  padding: 3px;
  padding-left: 8px;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

.form-frame .close:hover {
  background-color: #f00;
  opacity: .9;
  font-weight: bolder;
  cursor: pointer;
}

.form-frame .form {
  position: absolute;
  left: 10%;
  top: 6%;
}

.form-frame .form h3 {
  background: radial-gradient(circle, #330000, black);
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.7);
  width: 400px;
  padding: 5px .4cm;
  margin-bottom: 10px;
  color: #fff;
  font-size: 15px;
  border-radius: 0.4em;
  -moz-border-radius: 0.4em;
  -webkit-border-radius: 0.4em;
  -ms-border-radius: 0.4em;
  -o-border-radius: 0.4em;
}

.form-frame .form form {
  margin-top: .5cm;
}

.form-frame .form form label {
  color: #642918;
}

.form-frame .form form select {
  margin-bottom: 10px;
  width: 100%;
  border-radius-top-left: 0;
  -moz-border-radius-top-left: 0;
  -webkit-border-radius-top-left: 0;
  -ms-border-radius-top-left: 0;
  -o-border-radius-top-left: 0;
  border-radius-top-right: 4px;
  -moz-border-radius-top-right: 4px;
  -webkit-border-radius-top-right: 4px;
  -ms-border-radius-top-right: 4px;
  -o-border-radius-top-right: 4px;
  border-radius-bottom-left: 4px;
  -moz-border-radius-bottom-left: 4px;
  -webkit-border-radius-bottom-left: 4px;
  -ms-border-radius-bottom-left: 4px;
  -o-border-radius-bottom-left: 4px;
  border-radius-bottom-right: 0;
  -moz-border-radius-bottom-right: 0;
  -webkit-border-radius-bottom-right: 0;
  -ms-border-radius-bottom-right: 0;
  -o-border-radius-bottom-right: 0;
}

.form-frame .form form select:hover {
  border: 1px solid #330000;
}

.form-frame .form form textarea {
  width: 100%;
  min-height: 100px;
}

@media only screen and (max-width: 880px) {
  header img {
    width: 130px;
    height: 120px;
  }
  header hgroup h1, header hgroup h2 {
    font-size: 25px;
  }
  header nav ul li a {
    margin-right: 2px;
    padding-right: 2px;
    font-size: 13px;
  }
  #banner .banner {
    width: 50%;
    float: left;
  }
  #banner .banner img {
    width: 100%;
    height: 200px;
  }
  #banner .search {
    float: left;
    color: #fff;
    margin-left: 10px;
  }
  #banner .search .search-input input[name="search"] {
    width: 150px;
  }
  #banner .search .search-cat {
    margin-left: 0;
    margin-top: 1em;
  }
  #banner .search .search-cat p {
    margin-right: 5px;
  }
  .sec-l {
    margin-right: 10px;
  }
  .sec-l .sub-sec-l {
    display: none;
  }
  .sec-l .det {
    display: block !important;
  }
  .sub-sec-m {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .sub-sec-m #shelve {
    width: 100%;
  }
  .sec-r {
    width: 32% !important;
  }
  .sec-r .sub-l {
    display: block !important;
  }
}

@media only screen and (max-width: 390px) {
  .container {
    width: 95% !important;
  }
  header img {
    width: 70px;
    height: 80px;
    margin-right: 3px;
  }
  header hgroup {
    margin-top: .8em;
    float: left !important;
  }
  header hgroup h1, header hgroup h2 {
    font-size: 18px;
  }
  header nav {
    width: 100%;
  }
  header nav ul li a {
    margin-right: 2px;
    padding-right: 2px;
    font-size: 13px;
  }
  #banner {
    position: relative;
  }
  #banner .banner {
    width: 100%;
    float: none;
  }
  #banner .banner img {
    width: 100%;
    height: 200px;
  }
  #banner .search {
    position: absolute;
    top: 0;
    left: 1em;
    float: none;
    color: #fff;
  }
  #banner .search .search-input input[name="search"] {
    width: 200px;
  }
  .sec-l {
    float: none;
    display: block !important;
    width: 100% !important;
    border-bottom: 2px dotted #2e2019 !important;
    margin-bottom: 10px;
  }
  .sec-l figure {
    margin: 0 .5em;
  }
  .sec-l figure img {
    width: 50px !important;
    height: 80px !important;
  }
  .sec-l figure figcaption {
    font-size: 12px;
  }
  .sec-r {
    float: none;
    width: 100% !important;
  }
  .sec-r .sub-l {
    display: block !important;
  }
  .description {
    width: 100% !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
  }
  .description .book-det {
    width: 100% !important;
    margin: 0 auto;
  }
  .description .book-desc {
    width: 100% !important;
    padding-left: 5px;
  }
  .description .div-btn {
    margin-left: 3em;
  }
  .cat .categories figure {
    float: none !important;
    margin-left: 2px !important;
    margin-bottom: 1em !important;
  }
  .cat .categories figure img {
    float: left;
    margin-right: 6px;
  }
}

#search-div figure {
  margin-bottom: 1em;
}

#search-div figure .uploaded {
  margin-right: 4px;
}

#search-div figure #author-isbn {
  float: left;
}

#search-div figure img {
  height: 70px;
}

.terms li {
  text-indent: 20px outset;
  margin-left: 20px;
  vertical-align: middle;
  line-height: 1cm;
}

.terms li:before {
  content: "*";
  color: #330000;
  font-size: .6cm;
  margin-right: 10px;
  vertical-align: middle;
}

.terms h3 {
  background: #330000;
  color: white;
  padding: .2cm;
  width: 50%;
  text-align: center;
  border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}

.selected {
  border-bottom: 2px solid #330000;
}
