html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  font: inherit;
  background: transparent;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

blockquote,
q {
  quotes: none;
}

ins {
  background-color: #ff9;
  color: #000;
  text-decoration: none;
}

mark {
  background-color: #ff9;
  color: #000;
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title],
dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 0;
  padding: 0;
}

input,
select {
  vertical-align: middle;
}

body {
  font: 13px/1.231 sans-serif;
  *font-size: small;
}

/* Font normalization - yhoo.it/So9s */
select,
input,
textarea,
button {
  font: 99% sans-serif;
}

pre,
code,
kbd,
samp {
  font-family: monospace, sans-serif;
}

/* Normalize monospace sizing - bit.ly/ciqrEn */
html {
  overflow-y: scroll;
}

/* Force Scrollbar in IE */
a:hover,
a:active {
  outline: none;
}

/* Accessible focus treatment - bit.ly/4LqUR */
ul,
ol {
  margin-left: 2em;
}

ol {
  list-style-type: decimal;
}

nav ul,
nav li {
  margin: 0;
  list-style: none;
  list-style-image: none;
}

/* Remove list style for nav */
small {
  font-size: 85%;
}

strong,
th {
  font-weight: bold;
}

td {
  vertical-align: top;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

/* Set sub, sup without affecting line-height: gist.github.com/413930 */
sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

textarea {
  overflow: auto;
}

/* Remove textarea scrollbars - bit.ly/92NrmQ */
.ie6 legend,
.ie7 legend {
  margin-left: -7px;
}

input[type="radio"] {
  vertical-align: text-bottom;
}

/* Align form elements and labels - bit.ly/d5GWMr */
input[type="checkbox"] {
  vertical-align: bottom;
}

.ie7 input[type="checkbox"] {
  vertical-align: baseline;
}

.ie6 input {
  vertical-align: text-bottom;
}

button,
input,
select,
textarea {
  margin: 0;
}

/* Remove Webkit form margin */
body {
  behavior: url("../js/libs/csshover3.htc");
}

/* IE6 Hover Fix */
a:link {
  -webkit-tap-highlight-color: #FF5E99;
}

/* Webkit highlight colour - j.mp/webkit-tap-highlight-color */
button {
  width: auto;
  overflow: visible;
}


label,
button,
input[type="button"],
input[type="submit"],
input[type="image"]

/* Hand cursor on clickable input elements */
  {
  cursor: pointer;
}

pre {
  white-space: pre;
  white-space: pre-wrap;
  word-wrap: break-word;
  padding: 15px;
}

/* Formatting code in blog posts - bit.ly/9AZ74h */
body,
select,
input,
textarea {
  color: #444;
  font-family: Georgia, serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

a,
a:active,
a:visited {
  color: #010167;
  text-decoration: none;
}

a:hover {
  color: #036;
  text-decoration: underline;
}

.left {
  float: left;
}

.right {
  float: right;
}

/* Begin Primary Styles */

h2 {
  color: #FFF;
  font-size: 1.2em;
  font-style: italic;
  padding: 6px 0;
  font-weight: normal;
  padding-left: 10px;
}

h1 {
  color: #010167;
  font-size: 1.3em;
  font-style: italic;
  padding: 14px 0;
}

h3 {
  color: #010167;
  font-size: 1.1em;
  font-style: italic;
  padding: 1px 0;
  font-weight: normal;
}

p {
  font-family: Arial, sans-serif;
}

#container {
  margin-top: 30px;
}

header {
  width: 100%;
  text-align: right;
}

nav {
  width: 100%;
  background: url(../img/nav_bgd.jpg) repeat;
  margin: 20px 0;
  padding:10px;
}

footer {
  border: 1px solid #ccc;
  border-width: 1px 0;
  width: 100%;
  clear: both;
  margin: 30px 0;
  padding: 20px 0;
}

footer img {
  float: left;
  margin-right: 20px;
}

#footertext {
  margin-top: 35px;
  font-style: italic;
}

#footertext span {
  font-size: 0.8em;
}

#footertext a {
  font-weight: bold;
}

#main {
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
  display:flex;
  justify-content:center;
  flex-direction:column;
}

#leftcol {
  float: left;
  width: 200px;
}

#content {
  float: left;
  margin-bottom: 30px;
  max-width:1050px;
  padding: 20px 10px 20px 10px;
  padding-left:10%;
  padding-right:10%;
}

#content p {
  margin-bottom: 20px;
  font-size: 0.9em;
  float: left;
}

#resources {
  float: left;
  width: 100%;
  margin-bottom: 30px;
}

#resources p {
  margin-bottom: 20px;
  font-size: 0.9em;
  float: left;
}

#resources img {
  float: left;
}

#about {
  float: right;
  width: 804px;
  margin-bottom: 30px;
}

#about p {
  margin-bottom: 20px;
  font-size: 0.9em;
  *float: left;
}

#about img {
  *float: right;
}

.leftnav {
  width: 100%;
  background: url(../img/nav_bgd.jpg) repeat-x;
}

.leftnav ul {
  margin: 0;
  list-style: none;
  list-style-image: none;
}

.leftnav ul li {
  padding: 7px 10px;
  border-top: 1px solid #010167;
}

.leftnav ul li a {
  font-style: italic;
  color: #444;
  text-decoration: none;
}

.buttonbar {
  float: right;
  margin: 20px 0;
}

.buttonbar div {
  margin: 0 10px;
}

.thumblinks {
  clear: both;
}

/* Left Column Thumbnails */
#thumb1 {
  background: url('../img/left_column/pilgrim.jpg');
}

#thumb2 {
  background: url('../img/left_column/bruce.jpg');
}

.thumbpanel {
  width: 200px;
  height: 200px;
  /* border: 1px solid #010167;*/
  margin: 20px 0;
}

.buybtn {
  float: left;
  background: url('../img/buttons/buy.jpg') 0 0;
  width: 85px;
  height: 29px;
  cursor: pointer;
}

.buybtn:hover {
  background-position: 0 -29px;
}

.findbtn {
  float: right;
  background: url('../img/buttons/find_out_more.jpg') 0 0;
  width: 141px;
  height: 29px;
  cursor: pointer;
}

.findbtn:hover {
  background-position: 0 -29px;
}

.thumbpanel .buybtn {
  margin-top: 170px;
}

/* Homepage Featured Books */
#featured {
  border-top: 1px solid #ccc;
}

#featured p {
  font-size: 0.85em;
  margin-top: 5px;
}

#feat1 {
  background: url('../img/abbey_featured.png') no-repeat;
}

#feat2 {
  background: url('../img/pilgrim_featured.png') no-repeat;
}

#feat3 {
  background: url('../img/bruce_featured.jpg') no-repeat;
}

#feat4 {
  background: url('../img/ruins_featured.jpg') no-repeat;
}

#feat5 {
  background: url('../img/Guide_featured.jpg') no-repeat;
}

#feat6 {
  background: url('../img/carnegie_new_featured.jpg') no-repeat;
}

#feat7 {
  background: url('../img/Additional_new_featured.jpg') no-repeat;
}

#feat8 {
  background: url('../img/poor.jpg') no-repeat;
}

.featpanel {
  float: left;
  width: 250px;
  height: 254px;
  border: 1px solid #010167;
  margin-right: 20px;
  overflow: hidden;
  margin-bottom: 20px
}

.fdetail {
  margin-top: 118px;
  background: #FFF;
  padding: 8px;
}

.fdetail .buybtn {
  margin-left: 5px;
}

.last {
  margin: 0;
}

/* Interested in .... */
#interested {
  clear: both;
  padding: 20px 0 0 0;
}

#interested img {
  float: left;
}

/* Book Thumbnail Page */
.bookpanel {
  width: 350px;
  max-width:100%;
  float: left;
}

.bookpanel img {
  float: left;
}

.bookpanel h1 {
  color: #010167;
  font-family: Georgia, serif;
  font-size: 1.3em;
  font-style: italic;
  padding: 5px;
}

.bookpanel h3 {
  color: #010167;
  font-family: Georgia, serif;
  font-size: 1.1em;
  font-style: italic;
  padding: 1px 0;
  font-weight: normal;
}

.bookshort {
  width: 180px;
  float: right;
  font-family: Arial, sans-serif;
}

.findbtn,
.buybtn {
  margin: 5px;
}

/* Categories Page */
.category {
  width: 1200px;
  float: left;
  margin-bottom: 10px;
}

.category img {
  float: left;
}

.category h1 {
  color: #010167;
  font-family: Georgia, serif;
  font-size: 1.3em;
  font-style: italic;
  padding: 5px;
}

.category h3 {
  color: #010167;
  font-family: Georgia, serif;
  font-size: 1.1em;
  font-style: italic;
  padding: 1px 0;
  font-weight: normal;
}

.catshort {
  width: 800px;
  float: left;
  font-family: Arial, sans-serif;
  padding-left: 50px;
}

.catshort p {
  margin-right: 10px;
}

/* Book Page */
.top {
  width: 420px;
  margin: 0 20px 20px 0;
  float: left;
}

#summary {
  clear: both;
  padding-bottom: 10px;
}

.mainimage {
  background: url('../img/left_column/pilgrim.jpg');
  width: 200px;
  height: 200px;
  float: left;
  margin-bottom: 20px;
}

/* contact Page */

#contact {}

label {
  font-weight: bold;
  color: #010167;
  font-style: italic;
}

#contact h2 {
  height: 34px;
  color: #FFF;
}

#contact label {
  display: block;
  font-weight: bold;
  width: 110px;
  margin: 0px 0 10px;
}

#contact input {
  float: left;
  font-size: 12px;
  padding: 4px 2px;
  border: solid 1px #ccc;
  width: 800px;
  margin: 0px 0 10px;
}

#contact .submit-button {
  clear: both;
  height: 29px;
  background: #666666 url('../img/buttons/submit.jpg');
  text-align: center;
  float: left;
  line-height: 31px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: bold;
  border: 0;
  cursor: pointer;
  width: 85px;
}

#contact textarea {
  float: left;
  font-size: 12px;
  padding: 4px 2px;
  border: solid 1px #ccc;
  width: 800px;
  margin: 0px 0 20px;
  height: 100px;
}

#contact .submit-button:hover {
  background-position: 0 -29px;
}

.contactmessage {
  clear: both;
  float: left;
  padding: 20px 0 0 0;
  color: #010167;
  font-size: 1.1em;
  font-style: italic;
  padding: 1px 0;
  font-weight: normal;
}

.toggle {
  display: none;
}

.leftnav .toggle li {
  border-top: 0;
  border-bottom: 1px solid #010167;
}

/* End Primary Styles */

.hidden {
  display: none;
  visibility: hidden;
}

/* Hide for all */
.clearfix:before,
.clearfix:after {
  content: "\0020";
  display: block;
  height: 0;
  overflow: hidden;
}

/* The Magnificent Clearfix - j.mp/bestclearfix */
.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}


/*
 *	Media Queries
 */
@media all and (orientation:portrait) {
  /* Style adjustments for portrait mode goes here */
}

@media all and (orientation:landscape) {
  /* Style adjustments for landscape mode goes here */
}

@media screen and (max-device-width: 480px) {
  /* Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome) - bit.ly/dufD2N */
}


/*
 *	Print Styles
 */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    text-shadow: none !important;
    filter: none !important;
    -ms-filter: none !important;
  }

  a,
  a:visited {
    color: #444 !important;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
  }

  .ir a:after,
  a[href^="javascript:"]:after,
  a[href^="#"]:after {
    content: "";
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  @page {
    margin: 0.5cm;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

.smWidth {
  width: 210px;
}

.xsWidth {
  width: 125px;
}

.xsWidth span,
.smWidth span {
  float: left;
  text-align: center;
}

/* Dropdown Button */
.dropbtn {
  color: white;
  font-size: 16px;
  border: none;
  padding:0px;
  max-width:230px;
  width:100%;
  display:flex;
  justify-content:center;
}

.dropbtn > a:hover{
  text-decoration:none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
  position: relative;
  display: inline-block;
  width:100%;
  text-align:center;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  color:black;
  padding:5px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Links inside the dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content p{
  color:black !important;
}


/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}

nav ul{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  padding:10px;
}

nav ul li{
  display:flex;
  align-items:center;
  min-width: 200px;
}


nav ul li a:hover{
  text-decoration:none;
  background:#0a0945;
}

nav ul li *{
  font-size: 16px !important;
  color:white !important;
}

img{
  max-width:100%;
}