*,
*::before,
*::after {
box-sizing: border-box;
}

* {
  /* outline: solid blue 2px; */
}

/* 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: rgb(8, 192, 248);
  --clr-dark: rgb(3, 6, 167);
  /* --clr-accent: #16e8bd;   */     /* original by KP */
  --clr-accent: silver; 

  --clr-outside: rgb(214, 236, 243);
  --clr-inside: ivory;
  /* --clr-inside: purple; */

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --bs: 0.25em 0.25em 0.75em rgba(0,0,0,.25),
  0.125em 0.125em 0.25em rgba(0,0,0,.15);
}

@media (min-width: 800px) {
  :root {

    --fs-h1: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 1.50rem;
    --fs-body: 1.125rem;
   
  }
}

/*  General styles */

html {
  scroll-behavior: smooth;
}

/* added a max-width here plus centered. Need to adjust the hamburger */
body{
  /* background: var(--clr-light); */
  /* background-color:rgb(214, 236, 243); */
  background-color: var(--clr-outside);
  /* color: var(--clr-dark); */
  margin: 0;
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.container {
  border: solid blue 2px;
  border-radius: 20px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

section {
  padding: 1em 2em;
}

img {
  display: block;
  max-width: 100%;
}

strong { font-weight:  var(--fw-bold); }

/* doesn't seem to work about 2 minutes to go in Styling the Services Section */
/* I took this focus out because it is distracting on the portfolio pictures. Even using his download */
/*    it left a border after I clicked and cvame back. */
:focus {
  /* outline: 3px solid var(--clr-accent);
  outline-offset: 3px; */
}

/* 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;
  
  
}

@media (max-width: 600px) {
  .btn {
    width: 30%;
    margin: 1rem auto;
  }
}

.btn:hover {
  /* transform: scale(1.1); */

  opacity: .8;
}


/* 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); }

.ourSlogan {
  color: red; 
  text-align: center;
  margin-top: 1rem;
  font-size: 250%;
}

.menu-bar {
  /* position: fixed;
  z-index: 2;
  margin-top: 0;
  border-radius: 0; */
  background-color: var(--clr-inside);
  outline: 2px red solid;
}

.section__title {
  margin-bottom: .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: .25em 1em;
    margin-bottom: 1em;
  }

  .section__subtitle--work {
    color: var(--clr-accent);
    font-weight: var(--fw-bold);
    margin-bottom: 2em;
    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: .50;
  right: 0;
  z-index: 100;
  opacity: .8;
  transform: translateX(100%);
  transition: transform 250ms cubic-bezier(.5, 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: .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(.625turn);
}

.nav-open .hamburger::before {
  transform: rotate(90deg) translateX(-6px);
}

.nav-open .hamburger::after {
  opacity: 0;
}


/* hamburger  */

.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;

    }

    /* this goes around everything below the image at top */
    .contentWrapper {
        width: 1007px;
        margin: auto;
        padding-top: 1rem;
        border: solid blue 3px;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
        border-bottom-left-radius: 1rem;
        border-bottom-right-radius: 1rem;
        /* background-color: rgb(245, 245, 30); */
        background-color: ivory;
    }
}

/* Intro section */

.intro {
  position: relative;
  background-color: var(--clr-inside);
}

.intro__img {
  box-shadow: var(--bs);
}

.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 {
/*    display: grid; 
    width: min-content;
    min-width: 1000px;
    margin: 0 auto;
    grid-column-gap: 1em;
    grid-template-areas: 
    "img title"
    "img subtitle";
    grid-template-columns: min-content max-content;  */
  }

  .intro__img {
  margin: 0 auto;
/*    min-width: 1250px;  */
    width: min-content;
  }

.fullsize {
    display: block;
}

.phonesize {
    display: none;
}

 .section__subtitle--intro {
    /* align-self: start;
    grid-column: -1 / 1;
    grid-row: 2;
    text-align: right;
    position: relative;
    left: -.5em;
    width:  calc(100% + 1.5em); */
  }
}

/* general Information (hours, phones, etc) */
.info {
  background-color: var(--clr-inside);
}

/* 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;
    }
  }



  /* was "My Work" now "Featured Books"  */

  .featured-books {
    background-color: var(--clr-inside);
    color: var(--clr-dark);
    text-align: center;
  }


/* 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: .5rem auto;
  /* max-width: 300px; */
  width: 300px;
  height: 409px;
  transition: 
  transform 750ms cubic-bezier(.5, 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: .9;
}

/*  .bookSearchResults and following are used on respDisplayListingsGrid  */

@media (min-width: 600px) {
    .bookSearchResults {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
        grid-gap: 1rem;
        background-color: azure;
    }
}

 /* 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: .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;
}
}


/*  Categories.htm   page*/

.categoriesWrapper {
    background-color: var(--clr-inside);
    width: 90%;
    height: 90vh;
    margin: 0 auto;
    padding-top: 3rem;

}    

.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: .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 .5em;
}

.social-list__link {
  padding: .5em;
}

.buyBox {
/*    display: block;
    margin: 0 auto;
*/
/* outline: solid 3px red; */
}


/*  Quick Search page   (/shopping/respQuicSearch.htm)    */
/* .searchForm is displayed on a line on a large screen, up and down on a phone */
.searchForm {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  max-width: 75%;
}

@media (max-width: 600px) {
  .searchForm {
  display: flex;
  flex-direction: column;
  width: 100%;
}
}


.social {
  margin-bottom: 2rem;;
  background-color: var(--clr-inside);
  padding: .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%;
  /* outline: 1px black solid; */
  text-align: center;
}

@media (max-width: 600px) {
  .SocialTable {
    max-width: 90%;
    margin: 10px auto;
    /* background-color: lightcoral; */
    padding: 1rem 0;
  }
}



/* these are from the individual pages that the images linked to. Can be deleted */
/* individual portfolio item styles */
/* .portfolio-item-individual {
  padding: 0 2em 2em;
  max-width: 1000px; 
  margin: 0 auto;
} */

/* .portfolio-item-individual p {
  max-width: 600px;
  margin-left:auto;
  margin-right: auto;
} */
