body{
  margin:0;
  padding:0px;
  background-image:url("images4sellerPg/UCSCCampus.jpg");
  min-height: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  font-family: "Outfit", sans-serif;
}

header{
  height: 80px;
  width: 100%;
  background-color: #1C395E;
  padding: 0px;
  position:sticky;
  top:0;
  z-index: 100;
}
#logo{
  padding:5px;
  margin-left: 10px;
  max-width:60px;
  aspect-ratio: 1/1;
  margin-top: 2px;
}
#buttons{
  float:right;
  padding-top: 15px;
  padding-bottom: 15px;
  padding-right: 10px;
  height: 48px;
  width:250px;
}
button{
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
button:hover{
  opacity: 0.7;
}
a:hover{
  opacity:0.8;
}
#carticon{
  margin-top: 2px;
  height: 100%;
  width: clamp(5px, 13vw, 40px);
  float:right;
  margin-left:12px;
  object-fit: contain;
}
#sell{
  margin-top: 2px;
  height:90%;
  width: clamp(5px, 13vw, 90px);
  background-color: #fffffe;
  font-size: clamp(12px, 3vw, 18px);
  font-family: 'Outfit';
  float:right;
  border:0;
}
#login{
  height:90%;
  margin-top: 2px;
  width: clamp(5px, 13vw, 90px);
  float:left;
  background-color: #EED700;
  font-size: clamp(12px, 3vw, 18px);
  font-family: 'Outfit';
  border:0;
}
#main{
  margin:auto;
  background-color: white;
  opacity: 85%;
  width:80%;
  height:fit-content;
}
/*holds the img icon, name of seller, quick bio, and add Item button together*/
.parent {
  display: flex;
  justify-content: center; /* Centers the content horizontally */
}

#centerItems {
  display: flex;
  flex-direction: row; /* Aligns the child elements in a row */
  align-items: center; /* Aligns the child elements vertically */
  padding: 20px;
  
  gap: 20px; /* Space between the child elements */
}

.child {
  flex: 1; /* Makes the child elements take equal space */
}

#spongeImg img {
  background-color: #777;
  border-radius: 50%; /* Optional: if you want to crop the image into a circle */
  width: 200px; /* Set the width of the image */
  height: auto;  /* Maintain aspect ratio */
  aspect-ratio: 1/1;
}

#spongeBobTxt {
  text-align: left;
  font-size:16px;
}

/*holds the img icon, name of seller, quick bio, and add Item button together*/

/*
.image-cropper {
  width: 50%;
  height: 50%;
  overflow: hidden;
  border-radius: 50%;
}*/

#spongeImg {
  margin: 0 auto;
  height: 70%;
  width: auto;
}

/*addItem button*/
#addItemBut a {
  margin-left:150px;
  background-color: navy;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

#addItemBut a:hover {
  background-color: #000080; /* Darker navy on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  text-decoration: underline;
}
#segment{
  margin:auto;
  padding:40px;
}

/*addItem button*/

.box {
  
  display: flex;
  align-items: center; /* Aligns image and text vertically */
  text-align: center;
  margin:30px 60px 30px 60px;
  padding: 10px;
  border: 1px solid #ccc; /* Adds a border around the box */
}

.box img {
  width: 100px; /* Set the width of the image */
  height: auto;  /* Maintain the aspect ratio */
  margin-right: 20px; /* Adds space between the image and text */
}

.box p {
  margin: 0;
  font-size: 16px; /* Customize the text size */
}
#searchdiv{
  width:100%;
  align-items: center;
  text-align: center;
}
#searchbar{
  margin:10px;
  width:60%;
  height:4vh;
  padding-left:25px;
  border-radius:20px;
  margin-bottom: 20px;
}

input{
  font-size:1rem;
}

.user-cards{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));/*minmax allows you to set the minimum width of the boxes : 1fr = stretching to fill as much as possible*/
  gap:.25rem;
  margin-top:1rem;
}

.card{
  margin:30px;
  display:flex;
  height:auto;
  clear:both;
  border-radius: 10px;
  padding:10px;
  border: 1px solid lightgray;
  margin-top:10px;
}

.cardimage{
  float:left;
  width:150px;
  height:100%;
  border-radius: 5px;
}

.carddesc{
  padding:15px;
  float:left;
  height:100%;
}

.carddesc h3{
  margin:0px;
}

.carddesc p{
  margin: 5px;
  color: gray;
  font-size: 15px;
  margin-left:0;
}

.card button{
  display:flex;
}

.hide{/*important because it allows us to hide stuff*/
  display:none;
}

#addtocart{
  margin-top:10px;
  background-color: #1C395E;
  color:#fffffe;
  border:1px solid #1C395E;
  height:30px;
  padding:5px;
  align-items: center;
  box-shadow:none;
}

#tempFood_Item{
  background-color: #777;
  
  width: 200px; /* Set the width of the image */
  height: auto; 
}

footer{
  display:flex;
  flex-direction:row;
  height: 80px;
  width: 100%;
  background-color: #dadada;
  padding: 0px;
  bottom:0;
  z-index: -5;
  
  align-items: center;
  color:#1C395E
}

footer p{
  float:right;
  margin:5px;
  width:fit-content;
}

footer img{
  float:right;
}