* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Helvetica, sans-serif;
    min-height: 100vh;
    background: rgb(255, 255, 255);
    color: #0C3B2E;
    display: grid;
    grid-template-rows: 4rem 1fr 3em;
    grid-template-areas:
        "header"
        "main"
        "footer"; 
}

/**** Header *****/

header {
    grid-area: header;
    background-color: #c1c0cb;
    color: white;
    display: flex;
    justify-content: space-between; /* Center content horizontally */
    align-items: center;
    padding: 0 1rem; /* Add some padding for spacing */
}

.logo {
    display: flex;
    align-items: center;
    width: 55px;
    height: 55px;
    border-radius: 4px;
}

h1 {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem; /* Adjust font size */
    color: rgb(94, 94, 94);

}

.headerTitle {
    display: flex;
    align-items: center;
    position: relative;
    width:20%;
    top: 1rem;
    left: 5rem; /* Adjust the left position as needed */
}

/***** Search Bar ****/

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

.search {
  width: 100%;
  position: relative;
  display: flex;
}

.searchTerm {
  width: 100%;
  border:3px solid #00B4CC;
  border-right: none;
  padding: 5px;
  height: 25px;
  border-radius: 5px 0 0 5px;
  outline: none;
  color: #9DBFAF;
}

.searchTerm:focus{
  color: #00B4CC;
}

.searchButton {
  width: 27px;
  height: 25px;
  border: 1px solid #00B4CC;
  background: #00B4CC;
  text-align: center;
  color: #fff;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  font-size: 20px;
}


/*Resize the wrap to see the search bar change!*/
.wrap{
    grid-area: header;
    display: flex;
    align-items: center;
    width: 30%;
    margin-left: 5rem;
}

.searchform{
    width:100%;
    display:flex;
}



/******** Nav Bar ********/

.navBar {
    grid-area: header;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: sticky;
    margin-left: 0rem;
}


nav {
    display: flex;
   
}

ul {
    list-style-type: none;
    display: flex; /* makes list display horizontal */
    
}

li {
    margin-right: 1rem; /* Add space between nav items */
    font-size: 1.2rem;
    padding-top: .72rem;
    padding-bottom: .72rem;
}

.navButton {
    text-decoration: none;
    color: rgb(94, 94, 94);
    display: flex;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.navButton:hover {
 
    height:100%;
    width:100%;
    background-color: #adadad;
}



/**** View Product *****/
.sell{
    grid-area: main;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(98, 175, 137);


}

.sellimg{
    display: flex;
    width:300px;
}
.productInfo{
    margin-left: 2rem;;


}
.sellbutton{
    display: relative;
    width:80px;
    height:30px;
    border-radius: 15px;
    background-color: dodgerblue;

}

.sellbutton2{
    display: relative;
    width:80px;
    height:30px;
    border-radius: 15px;
    background: rgb(98, 175, 137);
    border:dodgerblue;

}

.btn {
    border: 2px solid black;
    background: rgb(98, 175, 137);
    color: black;
    font-size: 16px;
    cursor: pointer;
    display: relative;
    width:80px;
    height:30px;
    border-radius: 15px;
  }
  
  .info {
    border-color: rgb(38, 20, 229);
    color: rgb(38, 20, 229);
    background: rgb(98, 175, 137);
    top:px;

  }

  .info:hover {
    background:rgb(38, 20, 229);
    color: white;
  }

  .btn2 {
    border: 2px solid black;
    background: rgb(38, 20, 229);
    color: black;
    font-size: 16px;
    cursor: pointer;
    display: relative;
    width:80px;
    height:30px;
    border-radius: 15px;
  }
  .info2 {
    border-color: rgb(38, 20, 229);
    color: white;
    background: rgb(38, 20, 229);
    top:px;

  }

  .alert {
    color: rgb(255, 8, 8)
  }



/***** FOOTER ****/
footer {
    background-color: #c1c0cb;
    color: rgb(94, 94, 94);
    grid-area: footer;
    position: sticky;
    bottom: 0;
    display: flex;
    writing-mode: horizontal-tb;
    justify-content: space-between;
    align-items: center;
}

.socialmedialogos{
    margin-right: 1rem;
    display:flex;
}

.spansociallogo{
    display: flex;
    margin-left: 1rem;
}

.flash-message {
    position: fixed;
    top: 4rem; /* Positions the message at the bottom of the nav bar */
    left: 20%; /* Centers the message by pushing from the left */
    width: 60%; /* Message width is 60% of the viewport width */
    height: auto; /* Fixed height for the message */
    line-height: 40px; /* Vertically centers the text inside the message */
    text-align: center;
    color: #fff;
    z-index: 1000; /* Ensures the message is above other content */
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.flash-message .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.error {
    background: rgba(255, 102, 51, 0.7);
}

.success {
    background: rgba(108, 192, 112, 0.7);
}
