
@font-face {       
font-family: 'BPnoScript';
src: url(https://humantooth.neocities.org/fonts/BPnoScript.woff) format('woff');
font-weight:normal; }

body {
    background-image: url('/Home%20Page%20/img/backgroundcollage.png');
    background-size: cover;
    background-color: #d3bee8;
    font-family: 'BPnoScript';
    margin: 10%;
}


.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
    background-color:  #d4bfe8;
    border-radius: 20px;
    padding:20px;
    margin-bottom: 20px;
    box-shadow: 10px 10px 9px #cdecd0;
    border-right: solid #fdfffe;
    border-bottom: solid #fdfffe;
    padding:20px;
}

header img {
max-width: 100px;
height: auto;
display: block;
margin: 0 auto;
min-width: 80%
}



nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    width: 100%; 

}

nav a {
    padding: 8px 15px;
    border-radius: 20px; 
    text-decoration: none;
    color: #674a84;
     background-color: #cdecd0;
     
}

nav a:hover{
  animation: wobble 1s ease-in-out 1;
  background-color: #674a84;
  color:#cdecd0;
}

.nav-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
width: 100%;
gap:1.5rem;
align-items: center; /* green border */
}

.nav-links li {
  position: relative;
  display: flex; 
  border-radius: 20px;
  padding:0;


}


.nav-links a {
  text-decoration: none;
  font-size: 17px;
  width: max-content;
}


.dropdown-content {
  display: none;
  position: absolute;
  min-width: 0;
  box-sizing: border-box;
  top: 100%;
  z-index: 999;
  right: 0;
  padding: 0;
  margin: 0 3px;
/* green border */
}

.dropdown-content {
  display: none;
  padding: 0;
  box-sizing: border-box;
  align-content: end;
}



.dropdown-content li a {
  padding: 8px 15px;
  text-align: right; /* prevent wrapping */
  display: block;
  width: max-content;
  box-sizing: border-box;
  margin: 3px 0;
  
}

.dropdown:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* right-align the dropdown content */
}

.dropdown-content li a:hover {
  background-color: #674a84;
}


 .container{
min-height: 100vh;  
max-width: 100%;
gap:10px;
}

.backbutton {
    font-size: 180%;
    padding: 5%;
    color: #674a84;
    text-decoration: none;
}

.backbutton:hover {
  text-decoration: underline;
}

main {
  background-color: hsl(270, 48%, 83%);
  padding: 5%;
  height: fit-content;
  border-radius: 20px;
  box-shadow: 10px 10px 9px #cdecd0;
  border-right: solid #fdfffe;
  border-bottom: solid #fdfffe;
  background-image: url(/streetscrapbook/img/asfalt-dark.png);
  
}
.titleimg {
  max-width: 100%;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.title {
    background-color:#cdecd0;
    text-align: center;
    border-radius: 20px;
    padding:10px;
    margin-bottom: 20px;
  
}

.title p {
  padding:5px;
}

.regretz {
    max-width: 100%;
}

.rating {
  display: flex;
  flex-wrap: nowrap;       /* Prevent wrapping */
  justify-content: space-between; /* Push them apart */   /* Optional: align vertically */
  gap: 1rem;                /* Optional: space between images */
  overflow-x: auto;   
  align-items: flex-start;
      /* Optional: scroll if container too small */
}
.rating img.scale {
  width: 20%;          /* Responsive width */
  height: auto;        /* Keep aspect ratio */
  flex-shrink: 0;      /* Don't shrink on small screens */
  padding: 10px;
  object-fit: contain; /* Ensures the image fits within bounds nicely */
}



.scale {
height:2%;
min-width: 0px;

}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

.item-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  overflow: auto;
}

.image-wrapper {
  position: relative;/* your border color */
  padding: 8px;   
  border-radius: 20px;
}

.item-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* The review overlay */
.review {
  position: absolute;
  inset: 0;
  background-color: rgba(103, 74, 132, 0.95);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 0.5rem;
  border-radius: 8px;
  pointer-events: none; /* allows hover to register on img */
}

.image-wrapper:hover .review {
  opacity: 1;
}

.item-info h2 {
  margin-top: 0.5rem;
}

.price {
  font-size: 0.9rem;
  color: #444;
}

/* my rating borders */
.image-wrapper.tomato, 
.image-wrapper.redshelf
{
    border: greenyellow 5px dashed;
   
}

.image-wrapper.firstaid {
    border: rgb(221, 255, 0) 5px dashed;
}



@media (max-width: 768px) {
  nav {
    justify-content: center; /* center nav container itself */
  }


  .rating img.scale {
  width: 38%;          /* Responsive width */
  height: auto;        /* Keep aspect ratio */
  flex-shrink: 0;      /* Don't shrink on small screens */
  padding: 10px;
  object-fit: contain; /* Ensures the image fits within bounds nicely */
}

  .nav-links {
    display: flex;
    align-items: center; /* centers children (the li) horizontally */
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    gap: 0.5rem; /* space between items */
  }


  .nav-links li {
    width: auto;
    text-align: center; /* space between items */
  }

    .nav-links li a {
      display: flex;
      justify-content: center;
      align-items: center; /* centers text inside the link */
  
      
    }
  }
    
     @media (max-width: 600px) {
    .container {
    flex-direction: column;
    gap:0
    }  

header img {
transform: scale(1.4);
margin-bottom: 13px;
}
.shop-grid {
    display: flex;
    flex-direction: column;
}

 
/* Wobble animation for header */
@keyframes wobble {
  16.65% { transform: skew(-12deg); }
  33.3%  { transform: skew(10deg); }
  49.95% { transform: skew(-6deg); }
  66.6%  { transform: skew(4deg); }
  83.25% { transform: skew(-2deg); }
  100%   { transform: skew(0); }
}
     }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/backgroundcollage.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #d3bee8;
  z-index: -1;
}