*,
*::before,
*::after {
  margin: 0;
  padding: 0%;
  box-sizing: border-box;
}

/* Custom properties   */

:root {
  --ff-paragraph: 'Source Sans Pro', sans-serif;
  --ff-secondary: 'Source Code Pro', monospace;
  /* --ff-primary: 'Nothing You Could Do', cursive; */
  --ff-primary: sans-serif;

  --fw-reg: 300;
  --fw-bold: 900;

  --clr-light: hsl(199, 94%, 75%);
  --clr-dark: hsl(239, 96%, 33%);
  --clr-body: rgb(214, 236, 243);
  --clr-responsive: hsl(140, 53%, 73%);

  --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);

  --br: 25px; /* border radius */
}

@media (min-width: 800px) {
  :root {
    --fs-h1: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.125rem;
  }
}

/*  General styles */

html {
  scroll-behavior: smooth;
  background-color: white;
}

/* added a max-width here plus centered. Need to adjust the hamburger */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 15px;
  background-color: var(--clr-body);
  line-height: 1.6;

  width: 90%;
  max-width: 1200px;

  /* border: 2px solid rebeccapurple; */
  border-radius: 25px;
  margin: 1rem auto 2rem auto;

}

.container {
  width: 100%;
  margin: auto;
}

.outlined {
  outline: solid 2px black;
}

/*  why is this?????  do I want a gap between sections? */
section {
  padding: 1em 2em;
}

img {
  display: block;
  max-width: 100%;
}

.centeredPhoto {
  display: block;
  margin: 0 auto;
}

strong {
  font-weight: var(--fw-bold);
}

/* Button(s)   */
.btn {
  /* this was Kevin's */
  /*  display: inline-block;   */
  /* display: block;
  padding:  .5em 2.5em;
  /* background: var(--clr-accent); */
  /*  color: var(--clr-dark);
  text-decoration: none;
  cursor: pointer;
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--fw-bold); */
  /* transition: transform 200ms ease-in-out; */
  /* margin: 0 auto;
  width: 100%;
  outline: 2px purple dashed; */

  /* This is Brad's    */
  cursor: pointer;
  display: inline-block;
  border: 0;
  font-weight: bold;
  padding: 10px 20px;
  background: #1a2ee2;
  color: #fff;
  font-size: 15px;
  border-radius: 25px;

  width: 20%;
  text-decoration: none;
}

.menu-btn {
  /*hamburg thingie */
  cursor: pointer;
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 3;
  display: none;
}

/* ****************** Menu Bar area                     */

.logo {
  height: 40px;
  margin-left: 5px;
}

.btn:hover {
  /* transform: scale(1.1); */
  opacity: 0.8;
}

.img-shopcart {
  display: inline-block;
  max-height: 2rem;
  width: auto;
}

/* ******************** apparent end of  full size Menu bar */

/* typography   */
h1,
h2,
h3 {
  line-height: 1;
  margin: 0;
  text-align: center;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}

.topMarg1 {
  margin-top: 1em;
}

.topMarg2 {
  margin-top: 2em;
}

.ourSlogan {
  color: red;
  text-align: center;
  margin-top: 1rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

/* start of navbar styling */

.menu-bar {
  height: 70px;
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: var(--clr-light);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.menu-bar ul {
  display: flex;
  margin-left: 20px;
}

.menuButtons {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.menu-bar ul li {
  list-style: none; /* turns off bullets */
  padding: 12px;
}

.menu-bar ul li a {
  text-decoration: none;
}

.menu-bar ul li a:hover {
  padding-bottom: 2px;
  border-bottom: solid 1px black;
}

/*    end of navbar styling */

/* .searchForm are the author/title search boxes on the top of each page. */
/* this is found in /js/navbar.js */

.searchForm input {
  padding: 5px;
  height: 2rem;
}

.searchFormWrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  margin: 0 auto 0.5rem auto;
  background-color: var(--clr-light);
}

.searchFormWrapperModal {
  display: none;
}

.section__title {
  margin-bottom: 0.25em;
}

.section__title--intro {
  font-weight: var(--fw-reg);
}

.section__subtitle {
  margin: 0;
  font-size: var(--fs-h3);
}

.section__subtitle--intro,
.section__subtitle--about {
  background: var(--clr-accent);
  font-family: var(--ff-primary);
  padding: 0.25em 1em;
  margin-bottom: 1em;
}

.section__subtitle--featured {
  color: var(--clr-dark);
  font-weight: var(--fw-bold);
  margin-bottom: 0.5em;
  text-align: center;
}
/* used on respDisplayListingsgrid.asp     */
.pageSubject {
  margin-bottom: 1rem;
}

.about-me {
}

.my-services p,
.about-me__body {
  font-family: var(--ff-paragraph);
}

.designer {
  font-family: var(--ff-paragraph);
  font-size: 1rem;
}

/* header */

/* first, I turned off the logo at UL and hamburg at UR on >600 screens */
@media (min-width: 600px) {
  header {
    display: none;
    /* background-color: rgb(146, 144, 238);  */
    /* position: sticky;
    top: 0px; */
    padding: 0;
  }
  .jsHeader {
    width: 100%;
  }
  /* .logo, */
  .nav-toggle {
    display: none;
  }
}

.largeScreenNav {
  display: none;
}
@media (min-width: 600px) {
  .largeScreenNav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* background: var(--clr-accent); */
  }
}

header {
  display: flex;
  justify-content: space-between;
  padding: 0em;
  line-height: 1;
}

/* used position: absolute to move it up and out of the body */
/* .logo {
  max-width: 40px;
  position: absolute;
  left: 1em;
  top: 1em;
  z-index: 1000;
} */

.nav {
  position: fixed;
  background: var(--clr-light);
  color: var(--clr-dark);
  top: 0;
  /* bottom: 0; */
  left: 0.5;
  right: 0;
  z-index: 100;
  opacity: 0.8;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(0.5, 0, 0.5, 1);
}

.nav__list {
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav__link,
.nav__link-full {
  color: black;
  font-weight: var(--fw-reg);
  font-size: var(--fs-h2);
  text-decoration: none;
}

@media (min-width: 600px) {
  .nav__link-full {
    font-size: 1rem;
  }
}

.nav__link:hover {
  color: var(--clr-accent);
}

.nav__link-full:hover {
  /*  color: var(--clr-accent);   */
}

.nav-toggle {
  padding: 0.525em;
  background: transparent;
  border: 0;
  cursor: pointer;
  position: absolute;
  /* position: sticky;  */
  right: 1em;
  top: 1em;
  z-index: 1000;
}

/* nav-open is toggled in .js using nav-toggle */

.nav-open .nav {
  transform: translateX(0);
}

.nav-open .nav-toggle {
  position: fixed;
}

.nav-open .hamburger {
  transform: rotate(0.625turn);
}

.nav-open .hamburger::before {
  transform: rotate(90deg) translateX(-6px);
}

.nav-open .hamburger::after {
  opacity: 0;
}

.hamburger {
  display: block;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  background: var(--clr-accent);
  width: 2em;
  height: 2px;
  border-radius: 1em;
  transition: transform 250ms ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
}

.hamburger::before {
  top: 6px;
}
.hamburger::after {
  bottom: 6px;
}

@media (min-width: 600px) {
  .topImage {
    margin: 0 auto;
    /* border-top-left-radius: 1rem;
        border-top-right-radius: 1rem; */
    /* border: 3px solid blue; */
    border-bottom: 0;
    width: 100%;
    height: 400px;
  }

  /* this goes around everything below the image at top */
  .contentWrapper {
    margin: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
}

/* Intro section */

.intro {
  position: relative;
  background-color: #fff;
}

.intro h3 {
  margin-bottom: 1rem;
}

.ourStore {
  background-color: var(--clr-inside);
}

.ourStore p {
  text-indent: 2rem;
}

.section__subtitle--intro {
  display: inline-block;
}

.fullsize {
  display: none;
}

.phonesize {
  display: block;
}

@media (min-width: 600px) {
  .intro__img {
    margin: 0 auto;
    /*    min-width: 1250px;  */
    width: min-content;
    box-shadow: var(--bs);
  }

  .fullsize {
    display: block;
  }

  .phonesize {
    display: none;
  }
}

/* about us section */

.about-us__img {
  box-shadow: var(--bs);
  margin: 0 auto;
}

/*    ****************** about-me  ********************* */
/* about me section */

.about-me {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--clr-inside);
}

.about-me__img {
  margin: 0 auto;
  box-shadow: var(--bs);
}

@media (min-width: 600px) {
  .about-me {
    display: grid;
    grid-template-columns: 1fr 200px;
    grid-template-areas:
      'title     img'
      'subtitle  img'
      'text      img';
    grid-column-gap: 2em;
  }

  .section__title--about {
    grid-area: title;
  }

  /* need to check the text on smaller screens so no wrap */
  .section__subtitle--about {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    left: -1em;
    width: calc(100% + 2em);
    padding-left: 1em;
    padding-right: calc(200px + 4em);
  }

  .about-me__img {
    grid-area: img;
    position: relative;
    z-index: 2;
  }
}

/* default (up to screen size of 600px) is for centering images one across which works
           Then above 600 it goes to display: grid */

/* .portfolio {}   */

/* .portfolio__img {
  max-width: 300px;
  margin: 2rem;
} */

.portfolio__img {
  display: block;
  margin: 0.5rem auto;
  /* max-width: 300px; */
  width: 300px;
  /* height: 409px; */
  transition: transform 750ms cubic-bezier(0.5, 0, 0.5, 1), opacity 250ms linear;
}

/* this is from KP's final */
.portfolio__img:hover,
.portfolio__item:focus .portfolio__img {
  transform: scale(1.2);
  opacity: 0.9;
}

/*  .bookSearchResults and following are used on respDisplayListingsGrid  */

@media (min-width: 600px) {
  .bookSearchResults {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1rem;
    background-color: azure;
  }
}

@media (max-width: 600px) {
  .bookSearchResults {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1rem;
    background-color: yellowgreen;
  }
}


/* reduce margins and center content on responsive devices */
.outputWrapper {
  width: 90%;
  margin: 0 auto;
}

.book__item {
  overflow: hidden;
  background-color: ivory;
  /* border: 3px blue solid; */
  box-shadow: var(--bs);
  padding: 1rem;
}

.book__item:not(:first-of-type) {
  margin-top: 2em;
}

@media (min-width: 600px) {
  /* this is to reset rest of books to not have too much top margin on larger screens */
  .book__item:not(:first-of-type) {
    margin-top: 0rem;
  }
}

.book__item-image {
  width: 150px;
  margin: 0 auto;
  margin-top: 0.5rem;
  border: solid 1px black;
}

/* Now for formatting for the respDisplayBook     which is an individual title   */

@media (min-width: 600px) {
  .bookWrapper {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: 1fr 2fr;
    grid-template-areas:
      'title    title'
      'cover    info'
      'price    info';
  }

  .bookTitle {
    grid-area: title;
  }

  .bookCover {
    grid-area: cover;
  }

  .bookPrice {
    grid-area: price;
  }

  /* .bookDescript Section is the "what is the book about" section */

  .bookDescript p {
    text-indent: 2rem;
    line-height: 1.25;
  }
}

/*  Categories.htm   page*/

.categoriesWrapper {
  /* background-color: var(--clr-light); */
  width: 90%;
  height: 90vh;
  margin: 0 auto;
  padding-top: 3rem;
  overflow: scroll;
}

.categoriesWrapper li {
  font-size: 5rem;
}
.categoriesWrapper a {
  font-size: 1rem;
}

@media (min-width: 600px) {
  /* .categoriesWrapper a {
        font-size: .75rem; 
    } */
}

/*  .portfolio is the "Featured Selections" of books on the home/landing page   */

@media (min-width: 600px) {
  .portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  /* .portfolio__item {}  */

  .portfolio_img {
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
}

/* The footer section */

.footer {
  /* background: var(--clr-dark);  */
  background-color: var(--clr-inside);
  color: var(--clr-dark);
  text-align: center;
  padding: 0.5em 0;
  margin-top: 0em;
  margin-bottom: 1rem;
  font-size: var(--fs-h3);
  padding-bottom: 0em;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer__link {
  font-weight: var(--fw-reg);
}

.footer__link:hover,
.social-list__link:hover {
  opacity: 0.7;
}

.footer__link:hover {
  text-decoration: underline;
}

.social-list {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 2em 0 0;
  padding: 0;
}

.social-list__item {
  margin: 0 0.5em;
}

.social-list__link {
  padding: 0.5em;
}

.buyBox {
  /*    display: block;
    margin: 0 auto;
*/
  /* outline: solid 3px red; */
}

/* *************************************************************** */
/* Snip-Cart Style follows                                         */
/* *************************************************************** */
.snip-button {
  display: block;
  margin: 1em auto;
  font-size: 1rem;
  background-color: aliceblue;
  color: darkblue;
  padding: 0.5rem 0.5rem;
  border-radius: 0.25rem;
}

.social {
  /* margin-bottom: 2rem; */
  background-color: var(--clr-inside);
  padding: 0.5rem 0;
}

/* Social Table is at the bottom of the page and has facebook and twitter links*/
.SocialTable {
  width: 90%;
  margin: 0px auto;
}
.SocialData {
  /* margin-left: 20%; */
  width: 50%;
  text-align: center;
}

@media (max-width: 600px) {
  .SocialTable {
    max-width: 90%;
    margin: 10px auto;
    /* background-color: lightcoral; */
    padding: 1rem 0;
  }
}

/*****************************/
/****** Responsive below *****/
@media (max-width: 800px) {
  :root {
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
  }
  .container {
    width: 100%;
  }

  .btn {
    width: 30%;
    margin: 1rem auto;
  }

  .menu-btn {
    display: block;
    right: 60px;
  }

  .menu-btn:hover {
    opacity: 0.5;
  }

  .menu-bar {
    background-color: var(--clr-responsive);
  }

  .menu-bar ul.main-items {
    /* the list of menu items    */
    display: block;
    color: black;
    font-weight: bolder;
    font-size: 16px;
    padding: 1rem;
    position: absolute;
    top: 100px;
    left: 1%;
    background-color: #f2f2f2;
    opacity: 0.9;
    width: 40%;
    transform: translateX(-500px);
    z-index: 3;
  }

  .menu-bar ul.main-items.show {
    transform: translateX(10px);
  }

  .menu-bar .cartInfo {
    /* display: none; */
    background-color: gold;
  }

  .searchFormWrapper {
    display: none;
    /* flex-direction: column; */
  }

  .searchFormWrapperModal {
    display: flex;
    flex-direction: column;
  }

  /* respDisplayBook.asp  */
}
