body {
  font-size: 16px;
  color: #fff;
  background-color: #DCDCDC;
  font-family: 'Roboto', sans-serif;
}
a {color: black;}

/** HEADER **/
#header-nav {
  background-color: #181a40eb;
  border-radius: 0;
  border: 0;
}

#logo-img {
  background: url('../images/books-logo-large.png') no-repeat;
  width: 150px;
  height: 150px;
  margin: 10px 15px 10px 0;
}

.navbar-brand {
  padding-top: 25px;
}

.navbar-brand h1 { /* НАЗВАНИЕ САЙТА */
  font-family: 'Lora', serif;
  color: #f6f5d6;
  font-size: 1.5em;
  text-transform: uppercase;
  font-weight: bold;
  text-shadow: 1px 1px 1px #222;
  margin-top: 0;
  margin-bottom: 0;
  line-height: .75;
}
.navbar-brand a:hover, .navbar-brand a:focus {
  text-decoration: none;
}
.navbar-brand h3 { 
  color: #fff;
  font-size: 0.9em;
  font-weight: 600;
  text-transform: uppercase;
}
.navbar-brand span { 
  display: block;
  width: 280px;
  color: #fff;
  font-size: 0.75em;
  font-style: italic;
}


#nav-list {
  margin-top: -70px;
}
#nav-list a {
  color: #f6f5d6;
  text-align: center;
}

#nav-list .active a {
  color: #181a40eb;
  text-align: center;
}

#nav-list a:hover {
  background: #555a6e;
}
#nav-list a span {
  font-size: 1.8em;
}

#phone {
  margin-top: 5px;
}
#phone a { /* Phone number */
  text-align: right;
  padding-bottom: 0;
}
#phone a:hover { /* Phone number */
  background: none;
}
#phone div { /* We Deliver */
  color: #fff;	
  text-align: right;
  padding-right: 15px;
}

.navbar-header button.navbar-toggle, .navbar-header .icon-bar {
  border: 1px solid #fff;
}
.navbar-header button.navbar-toggle {
  clear: both;
  margin-top: -30px;
}
/* END HEADER */

/* FOOTER */
.panel-footer {
  margin-top: 30px;
  padding-top: 35px;
  padding-bottom: 30px;
  background-color: #181a40eb;
  border-top: 0;
}
.panel-footer div.row {
  margin-bottom: 35px;
}
#hours, #address {
  line-height: 1.5;
}
#hours > span, #address > span {
  font-size: 1.3em;
  
}

#hours p {
  color: #f6f5d6;
  font-size: .8em;
  line-height: 1.8;
}
#address a {
	color: #fff;
}
#testimonials {
  font-style: italic;
}
#testimonials p:nth-child(2) {
  
}
#testimonials p:nth-child(3) {
  margin-top: 25px;
  font-weight: bold;
}
/* END FOOTER */

/* HOME PAGE */


#menu-tile {
  position: relative;
  border: 1px solid #3F0C1F;
  overflow: hidden;
  width: 177px;
  height: 250px;
  margin: 0 auto 25px;
}

#menu-tile:hover {
  box-shadow: 0 10px 20px 10px #181a40eb;
}
/*
#menu-tile {
  background: url('../images/book-tile250.jpg') no-repeat;
  background-position: top;
}
*/
#menu-tile span {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  text-align: center;
  font-size: 1.2em;
  /*text-transform: uppercase;*/
  background-color: #181a40eb;
  color: #fff;
  opacity: .8;
}

/* ОПИСАНИЕ КНИГИ */
#book-tile {
  border: 1px solid #3F0C1F;
  overflow: hidden;
  width: 354px;
  height: 500px;
  margin: 0 auto 25px;
}
#book-tiles {
	margin-bottom: 30px;
}
#book-tiles2 {
	position: relative;
}
#bonus {
	float: left;
	width: 110px;
}
#poem {	
	margin-left: 100px;
}
.border-bottom {
border-bottom: 1px dashed black;
}
.book-item-title {
  margin: 0 0 10px;
  color: black;
}
.book-item-details {
  font-size: 1em;
  font-style: italic;
  color: black;
  text-align: justify;
  margin-top: 10px;
}
.book-item-details2 {
  font-size: 1em;
  font-style: italic;
  color: black;
  text-align: justify;
  margin-top: 20px;
  font-weight: bold;
}
.book-item-details3 {
  font-size: 1em;
  color: black;
  text-align: justify;
  margin-top: 20px;
  
}
.book-item-price {
  display: block;
  background-color: green;	
  margin-top: 10px;
  color: white;
  text-align: center;
  position: absolute;
  right: 0px;
  border: 0px solid;
  border-radius: 20px;
  padding: 5px 15px 5px 15px;
  font-size: 1.2em;
  }
/* END ОПИСАНИЕ КНИГИ */

/* ЦЕНЫ ТАБЛИЦА*/

.table {
color: black;	
}
.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
  background-color: lightyellow;
}
tr { border: 1px solid #ccc; }


/*КОНЕЦ ЦЕНЫ*/

/*ФОРМА*/
.buytext h1 {
	padding: 0 20px 20px 0;
	font-size: 1.2em;
	color: black;
	text-align: justify;
}

.buyform {
    display: flex;
	justify-content: center;
}

input, textarea {
	border: solid 1px #CCCCCC;
	margin-top: 10px;
	padding: 4px;
	outline: 0;
	background: #F9F9F9;
	font-size: 1.2em;
	color: black;
	width: 500px;	   
	}
textarea {
	height: 200px;
	line-height: 150%;
}
.send input {
	width: 500px;
	border: 2px solid #E0E0F3;
	background-color: lightyellow;
	font-size: 1.2em;
}
input:hover, textarea:hover, input:focus, textarea:focus {
	border-color: lightyellow;
}
.send input:hover {
	border: 2px solid #C0C0E3;
}

.action {
    color: red; 
}

.order_form .error {
    color: red; 
}

.order_form label {
    color: black; 
}

.order_form select {
    display: block;
    background: #F9F9F9;
    font-size: 1.2em;
    color: black;
    width: 500px;
}


/*КОНЕЦ ФОРМЫ*/


/* END HOME PAGE */

/********** Large devices only **********/
@media (min-width: 1200px) {

}

/********** Medium devices only **********/
@media (min-width: 992px) and (max-width: 1199px) {
  /* Header */
  #logo-img {
    background: url('../images/books-logo-medium.png') no-repeat;
    width: 100px;
    height: 100px;
    margin: 5px 5px 5px 0;
  }
  #nav-list {
    margin-top: -30px;
	
}

.navbar-brand span { 
padding-top: 10px;
}
  /* End Header */
  
}

/********** Small devices only **********/
@media (min-width: 768px) and (max-width: 991px) {
.navbar-brand span { 
    width: 180px;
  }
  
  /*ФОРМА*/
.send input, input, textarea {
	width: 100%;
}
.buyform {
    display: block;
}
textarea {
	height: 100px;
	line-height: 120%;
}

.order_form select { 
    width: 100%;
}
#nav-list {
    margin-top: 0px;
	margin-left: 0px;
}
#nav-list a {
    padding: 10px 10px 10px 10px;
} 

/*КОНЕЦ ФОРМА*/
  
}

/********** Extra small devices only **********/
@media (max-width: 767px) {
  /* Header */
  .navbar-brand {
    padding-top: 10px;
    height: 100px;
  }
  .navbar-brand h1 { /* Restaurant name */
    padding-top: 10px;
    font-size: 5vw; /* 1vw = 1% of viewport width */
  }
  .navbar-brand h3 { /* Kosher cert */
    font-size: 1em;
    margin-top: 12px;
  }
  .navbar-brand p { /* Star-K */
    font-size: 0.75em;
  }
  #nav-list {
  margin-top: 0px;
}

  #collapsable-nav a { /* Collapsed nav menu text */
    font-size: 1.2em;
  }
  #collapsable-nav a span { /* Collapsed nav menu glyph */
    font-size: 1em;
    margin-right: 5px;
  }

  #call-btn > a {
    font-size: 1.5em;
    display: block;
    margin: 0 20px;
    padding: 10px;
    border: 2px solid #fff;
    background-color: #181a40eb;
    color: #f6f5d6;
  }
    #mail-btn > a {
    font-size: 1em;
    display: block;
    margin: 0 20px;
    padding: 10px;
    border: 2px solid #fff;
    background-color: #181a40eb;
    color: #f6f5d6;
  }
  #xs-deliver {
    margin-top: 5px;
	margin-bottom: 20px;
    font-size: .7em;
	color: black;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
   /* End Header */ 
   
     /* Footer */
  .panel-footer section {
    margin-bottom: 30px;
    text-align: center;
  }
  .panel-footer section:nth-child(3) {
    margin-bottom: 0; /* margin already exists on the whole row */
  }
  .panel-footer section hr {
    width: 75%;
  }
  /* End Footer */
  
  /*НАЧАЛО ИНФО ПРО КНИГУ*/
  h3.book-item-title {
  text-align: center;
}
.book-item-price {
   right: 10%;
   left: 10%;
 }
 /*КОНЕЦ ИНФО ПРО КНИГУ*/
 
 
 /*ФОРМА*/
.send input, input, textarea {
	width: 100%;
}
.buyform {
    display: block;
}
textarea {
	height: 100px;
	line-height: 120%;
}
.order_form select { 
    width: 100%;
}
/*КОНЕЦ ФОРМА*/



/*ТАБЛИЦА ЦЕНЫ*/
	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr { 
		display: block; 
	}
	
	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
	
	tr { border: 1px solid #ccc; }
	
	th, td { 
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee; 
		position: relative;
		padding-left: 35% !important; 
	}
	
	td:before, th:before { 
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6	px;
		left: 6px;
		width: 35%; 
		padding-right: 10px; 
	}
	
	/*
	Label the data
	*/
	th:nth-of-type(1):before { content: "№"; }
	td:nth-of-type(1):before { content: "Название. Title"; }
	td:nth-of-type(5):before { content: "Цена. Price"; }
	td:nth-of-type(7):before { content: "Цена. Price"; }
		
}
/*КОНЕЦ ТАБЛИЦА ЦЕНЫ*/



/********** Super extra small devices Only :-) (e.g., iPhone 4) **********/
@media (max-width: 374px) {
  /* Header */
  .navbar-brand h1 { /* Restaurant name */
    font-size: 5.5vw;
  }
  /* End Header */
    
  
  /* Home page */
  .col-xxs-12 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    float: left;
    width: 100%;
  }
  #book-tile {
   width: 290px;
   height: 400px;
  }
  
}

