



/* Code from ANDY BELL Modern CSS Reset*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}






/*------original code-------------*/




/* Actual Background Behind Grid*/

body {
  background-color: gray;
  min-height: 100vh;
  font-family: Arial;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows:  2fr;    
  margin: 0;
  gap: .75em; 
  grid-template-areas:
  "navbar"
  "main";
     
    /* Desktop  and anything bigger than a phone*/

    @media (width >=80em) {
      grid-template-rows:  3fr;
    }    

   @media (width >=110em) {
      grid-template-rows: 3fr;
    }   


}


/* Slideshow container */
.slideshow-container {
  max-width: 80rem;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}


/* HEADER CODE */
  

.nav-bar ul{
  list-style-type: none;
  background-color: gray;
  padding: 3rem;
  margin: 0;
  overflow: hidden;
  

}

.nav-bar a {
  font-size: 2rem;
  text-decoration: none;
  display: block;
  text-align: center;
  color: white;
  padding: 2rem;
  float: left;
}


.nav-bar a:hover {
  background-color: orange;
  
}


.topnav a.split {
  float: right;

  color: white;


}
/* MAIN AREA*/

main{
  background-color: lightyellow;
  grid-area: main;
  padding: 2rem;
}



.product-grid {
  display: grid;
  background-color: lightyellow;
  padding: 2rem;
  min-width: 300px;
  gap: .5rem;
  object-fit: contain;
  grid-template-columns: 1fr;




  @media (width >=70em) {
      grid-template-columns: repeat(2, 1fr);
  }   
  

  @media (width >=100em) {
      grid-template-columns: repeat(4, 1fr);
  }    
}    
        
    

.card img {
  width: 100%;
  object-fit: contain;
  aspect-ratio: 2 / 3;
}

.card-price {
color: black;
font-size: 2rem;
font-style: normal;
}

.card-title {
  color: black;
  font-size: 2.5rem;
  font-style: normal;
}

.card-description {
margin: 0;
padding: 0;
color: black;
font-size: 2rem;
font-style: normal;
}

.card a {
  text-decoration: none;
}