* {
    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;
}



/****** Browse Page/Product card *****/

.browse {
    grid-area: main;
    display: flex;
    justify-content: space-around; /* Change space-between to space-around */
    align-items: stretch;
    flex-wrap: wrap;
    /*background: rgb(98, 175, 137);*/
    background-image: url("/images/IMG_0007.PNG");
    padding: 2rem; /* Add padding around the cards */
}

.card-link {
    text-decoration: none;
    color: inherit;
    width: 250px;
    margin: 1rem; /* Add margin around each card */
}

.practice {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 5px;
    justify-content: space-around;
    align-items: center;
    background: rgb(255, 255, 255);
    width: 100%; /* Make the card take full width */
}
.card {
    /* Add shadows to create the "card" effect */
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
  }
.cardimg{
    border-radius: 5px 5px 0 0;
    width:250px;
    height:300px;
  }
  
  /* On mouse-over, add a deeper shadow */
.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
  /* Add some padding inside the card container */
.container {
    padding: 2px 16px;
  }
.price{
    text-decoration: none; /* Remove underline */

    position: relative;
    top:.65rem;
    right:.15rem;
    width: 50px;
  }
.offers{
    text-decoration: none; /* Remove underline */

    position: relative;
    top:-.5rem;
    right:-10rem;
    width: 100px;
  }
.newused{
    text-decoration: none; /* Remove underline */

    margin-bottom: 1rem;
    
  }
.cardh4{
    text-decoration: none; /* Remove underline */

    margin-top: .5rem;
  }

/***** 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);
}
