@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
*{
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Poppins',sans-serif;
}

.banner { grid-area: header; ;font-size: 12px; background-color: #0e6b96;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);}

.article { overflow: hidden; grid-area: article; font-family:verdana;font-size: 22px; margin-right: 20px; background-color: #ffffff; box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 30px 0px rgba(0, 0, 0, 0.29); padding: 20px;}

.footer { grid-area: footer;  font-size: 30px;  text-align:center;background-color: #0e6b96;box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 30px 0px rgba(0, 0, 0, 0.29);}

.nav {grid-area: nav;  font-size: 15px;  text-align:center;background-color: #F0F0F0;;margin-left:20px;}

body{
  display: grid;
  grid-template-areas: 
    "header header"
    "nav article"
    "footer footer";
  grid-template-rows: 100px 1fr 70px;  
  grid-template-columns: 15% 1fr;
  grid-row-gap: 20px;
  grid-column-gap: 20px;
  min-height: 100vh;
  margin: 0;
  background:#F0F0F0;
}

nav.top-nav{
   display: flex;
   width: 100%;
   background: #0e6b96;
   position: relative;
   justify-content: space-between;
   text-align: center;
   padding: 15px 30px;
}
nav.top-nav .icon img{
   height: 100%;
   width: 150px;
   color: #fff;
   cursor: pointer;
}
nav.top-nav ol{
   display: flex;
   list-style: none;
   margin: auto 0;
}
nav.top-nav ol li{
   margin: 0 2px;
}

nav.top-nav ol li a{
   color: #fff;
   font-size: 15px;
   text-decoration: none;
   text-transform: capitalize;
   letter-spacing: 1px;
   padding: 5px 2.5px;
}
nav.top-nav ol li:hover a{
   background: #fff;
   color: #0a5071;
}

nav.top-nav .search_box{
   display: flex;
   margin: auto 0;
   height: 55px;
   line-height: 35px;
}
nav.top-nav .search_box input{
   border: none;
   outline: none;
   background: #fff;
   height: 100%;
   padding: 0 10px;
   font-size: 15px;
   width: 250px;
   transition: 0.5s ease;
}

nav.top-nav #search_button {
    border: none;
    outline: none;
    background: rgb(30, 178, 223);
    height: 100%;
    padding: 0 10px;
    font-size: 15px;
    width: 75px;
    border-radius: 0px 5px 5px 0px;
    cursor: pointer;
    margin-left: -1px;
}

nav.top-nav #search_button:hover {
   background: rgb(29, 198, 250);
}

nav.top-nav #search_cat {
    border: none;
    outline: none;
    background: #fff;
    height: 100%;
    padding: 0 10px;
    font-size: 15px;
    width: 100px;
    border-radius: 5px 0px 0px 5px;
    cursor: pointer;
    margin-right: -1px;
} 

nav.top-nav a.adv_search{
  margin-left: 5px;
  text-decoration: none;
  color: rgb(30, 178, 223);
  border-radius: 5px;
  transition: all .5s ease;
  font-size: 15px;
}
nav.top-nav a.adv_search:hover{
  color: #ffffff;
}

nav.top-nav .bar{
   position: relative;
   margin: auto;
   display: none;
}
nav.top-nav .bar span{
   position: absolute;
   color: #fff;
   font-size: 35px;
}
input#check[type="checkbox"]{
   -webkit-appearance: none;
   display: none;
}

nav.side-nav{
  padding: 5px 0px 5px 10px;
  top: 0;
  bottom: 0;
  background: #ffffff;
  box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 30px 0px rgba(0, 0, 0, 0.29);
}
nav.side-nav ul {
  position: relative;
  list-style-type: none;
}
nav.side-nav ul li a#main {
  padding-left: 10px;
  display: flex;
  align-items: center;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  text-decoration: none;
  color: #000;
  padding: 10px 30px;
  margin-right: 10px;
  height: 50px;
  transition: 0.5s ease;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}
nav.side-nav h2{
  padding: 10px 10px 10px 0px;
}
nav.side-nav ul li a:hover {
  background: #f0f0f0;
  padding-left: 40px;
}
nav.side-nav ul li a#main:hover {
  background: #f0f0f0;
  padding-left: 40px;
}
nav.side-nav ul li.dropdown a#main:hover {
  margin-right: 0;

}
nav.side-nav ul ul {
  position: absolute;
  left: 100%;
  width: 250px;
  top: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 30px 0px rgba(0, 0, 0, 0.29);
  border-left: 10px solid #0e6b96;
  transition: 0.5s ease-in;
  z-index: 10;
}
nav.side-nav ul ul a {
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1.15em;
  text-decoration: none;
  color: #000;
  padding: 10px 30px;
  height: 50px;
  transition: 0.5s ease;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}
nav.side-nav ul span {
  position: absolute;
  right: 20px;
  font-size:1.5em;
}
nav.side-nav ul .dropdown {
  position: relative;
}
nav.side-nav ul .dropdown:hover ul {
  visibility: visible;
  opacity: 1;
}

.image__img{
  display: block;
  width: 100%;
}

/* PRODUCTS */
.product {
  position: relative;
  overflow: hidden;
  padding: 20px;
  background-color: #ffffff;
}

.product-category {
  text-align: left !important;
  padding: 0 5vw;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: capitalize;
}

.product-container {
  padding: 0 5vw;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-container::-webkit-scrollbar {
  display: none;
}

.product-card {
  width: 175px;
  height: 430px;
  margin-right: 40px;
  margin-bottom:20px;
  padding: 10px;
}

.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info {
  width: 100%;
  height: 100px;
  padding-top: 10px;
}

.product-brand {
  text-transform: uppercase;
  font-size: 20px;
}

.product-short-description {
  width: 100%;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  opacity: 0.5;
  text-transform: capitalize;
  margin: 5px 0;
}

.title{
  text-align: center;
}/*DELETE ADD BACK TO ARTICLE*/

#arrowImg{
  width: 26px;
  height: 44px;
}

.row-container{
    float: left;
    width: 25%;
}

.book_click{
    text-decoration: none;
    color: #000000;
}

.book_click:hover .product-card{
    transform: scale(1.05);
    background-color: #0a5071;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.page_buttons{
    padding: 5px;
    border-radius: 5px;
    background-color: black;
    color: white;
    text-decoration: none;
    margin: 5px;
}

.page_buttons_container{
    width: 100%;
    display: inline-block;
}

.order_form{
  margin-bottom: 10px;
  text-align: center;
}

.book_search{
  padding-right: 5px;
  width: 50%;
  float: left;
  text-align: center;
  border-color: #f0f0f0;
  border-width: 2px 0px 2px 2px;
  border-style: solid;
  padding-left: 5px;
}

.customer_search{
  padding-left: 5px;
  width: 50%;
  float: left;
  text-align: center;
  border-color: #f0f0f0;
  border-width: 2px 2px 2px 0px;
  border-style: solid;
  padding-right: 5px;
}

.search_table{
  height: 350px;
  overflow: auto;
  border: 2px solid #f0f0f0;
  margin-bottom:5px;
}

table {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

tr:nth-child(even) {
  background-color: #dddddd;
}

form#search{
  padding-bottom: 10px;
}


.book-container-img{
width: 25%;
height: auto;
float: left;
}

.book-container-info{
  width: 75%;
  height: auto;
  float: left;
  padding-left: 10px;
}

.desc{
  font-size: 15px;
}

.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: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
}

/* 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;
}

.table_scroll{
  height: 400px;
  overflow: auto;
}

.sort{
  background-color: #ffffff;
  margin-top: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  top: 0;
  bottom: 0;
  background: #ffffff;
  box-shadow: 0 0px 8px 0 rgb(0 0 0 / 20%), 0px 0px 30px 0px rgb(0 0 0 / 29%);
}

@media screen and (max-width: 1100px) {
  .row-container {
    width: 33.33%;
  }
}
@media screen and (max-width: 800px) {
  .row-container {
    width: 50%;
  }
  .customer_search{
    width: 100%;
    border-width: 2px 2px 2px 2px;
  }
  
  .book_search{
    width: 100%;
    border-width: 2px 2px 2px 2px;
  }
  .book-container-img{
    width: 100%;
    }
    
  .book-container-info{
    width: 100%;
  }
}
@media screen and (max-width: 650px) {
  .row-container {
    width: 100%;
  }
}

@media screen and (max-width: 1150px){
  body{
    grid-template-rows: 170px 1fr 70px;
    grid-template-columns: 20% 1fr;  
  }
    
  nav.top-nav{
    display: block;
    padding: 0;
  }
  nav.top-nav .icon{
    display: inline-block;
    padding: 15px 30px;
  }
  nav.top-nav .search_box{
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
  }
  nav.top-nav .search_box input{
    width: 45%;
    height: 55px;
  }
  nav.top-nav #search_cat {
    width: 150px;
}
  nav.top-nav ol{
    display: flex;
    flex-direction: column;
    background: #fff;
    height: 0;
    visibility: hidden;
    transition: 0.3s;
    position: relative;
    z-index: 999;
    
  }
  nav.top-nav ol li{
    text-align: center;
    transition: 0.3s 0.1s all;
    opacity: 0;
  }
  nav.top-nav ol li a{
    color: #000;
    font-size: 28px;
    padding: 25px; 
    display: block;
    transition: 0.45s ease-in-out;
  }

  nav.top-nav ol li a:hover{
    background: rgb(240, 240, 240);
    color: #0a5071;
  }

  nav.top-nav ol li:nth-child(1){
    transform: translateX(-150px);
  }
  nav.top-nav ol li:nth-child(2){
    transform: translateX(-200px);
  }
  nav.top-nav ol li:nth-child(3){
    transform: translateX(-250px);
  }
  nav.top-nav ol li:nth-child(4){
    transform: translateX(-300px);
  }
  nav.top-nav ol li:nth-child(5){
    transform: translateX(-350px);
  }
  nav.top-nav .bar{
    display: block;
    position: absolute;
    top: 20px;
    right: 80px;
    cursor: pointer;
  }
  nav.top-nav .bar #times{
    display: none;
  }
  #check:checked ~ nav.top-nav .bar #times{
    display: block;
  }
  #check:checked ~ nav.top-nav .bar #bars{
    display: none;
  }
  #check:checked ~ nav.top-nav ol{
    visibility: visible;
    height: 368px;
    box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.2), 0px 0px 30px 0px rgba(0, 0, 0, 0.29);
  }
  #check:checked ~ nav.top-nav ol li:nth-child(1),
  #check:checked ~ nav.top-nav ol li:nth-child(2),
  #check:checked ~ nav.top-nav ol li:nth-child(3),
  #check:checked ~ nav.top-nav ol li:nth-child(4){
    transform: translateX(0);
    opacity: 1;
  }
}

@media screen and (max-width: 800px){
  table {
    font-size: 10px;
  }
  body{
      grid-template-columns: 30% 1fr;  
  }
  nav.top-nav .search_box input{
    width: 25%;
    height: 55px;
    font-size: 10px;
    height: 50px;
  }
  nav.top-nav #search_cat {
  width: 100px;
  font-size: 10px;
  }
  nav.top-nav #search_button {
    font-size: 10px;
  }
  nav.top-nav a.adv_search{
    font-size: 10px;
  }
  nav.side-nav ul li a#main {
    font-size: 10px;
    padding-left: 15px;
  }
  h1{
    font-size: 25px;
  }
  h3{
    font-size:15px;
  }
  .product-category {
    font-size: 20px;
  }
}