body {
  font-family: "Arial", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 768px) {
  body {
      font-size: 16px;
      margin: 20px;
  }
}

@media (min-width: 1024px) {
  body {
      font-size: 18px;
      margin: 30px;
  }
}
/* -------------------- Beginning of Main Page -------------------- */
img {
  max-width: 100%;
  height: auto;
}

/* Adjust font sizes for mobile */  
/* @media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
} */

.index-image img {
  width: 100%; 
  background-image: url('Photos/vegetables.jpg'); 
  background-repeat: space; 
  background-size: 30%;
  background-color: #f4f4f4;
  margin-top: 50px;
  margin-bottom: -25em;
  border: none;
}

.index-container {
  position: relative;
  text-align: left; 
  color: white;
  display: flex;
}

.text-block {
  padding: 0;
  border-radius: 10px;
  max-width: 70%;
  text-align: left;
  color: rgb(247, 243, 243); 
  top: 130px;
  position: absolute;
  margin-left: 20px;
}

.text-block h1 {
  font-size: 1.8em;
  color: #e3e7eb;
  margin-left: 20px;
}

.text-block p {
  font-size: 1.2em;
  color: #e7eaee;
  text-align: justify;
  line-height: 1.4em;
}

.text-block .btn {
  background-color: #0d4d92;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  margin-left: 20px;
  bottom: 50px;
}

.text-block .btn:hover {
  background-color: #0056b3;
}
/* -------------------- End of Main Page --------------------------- */


/* -------------------- Beginning of Search/Add Products Form -------------------- */
/* body {
  font-family: "Arial", sans-serif;
  line-height: 1;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
} */

.container {
  width: 100%;
  max-width: 1200px;
  padding: 25px;
  margin: 0 auto;
  
}

.form-section {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding: 5px;
  background-color: #f4f4f4;
  border-radius: 5px;
  left: 20px;
}

.form-section h1 {
  text-align: center;
  font-size: 25px;
}

.form-section label{
  font-size: 16px;
  color: #3c2a87;
}

.search-add-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-add-container label{
  font-size: 16px;
  color: #3c2a87;
}

/* Search section */
#searchSection {
  flex-direction: column;
  align-items: center;
  margin-top: 100px !important;
  padding-right: 10px;
  width: 340px;
  height: 290px;
}

#searchInput {
  width: 90%;
  max-width: 500px;
  margin: 5px 0;
  margin-left: 15px !important;
}

.form-section p{
  font-size: 12px;
  color: #3c2a87;
  text-align: justify;
  text-align: center;
  margin-top: 40px;
}

#products {
  width: 100%;
  overflow-x: auto;
}

#sort {
  max-width: 150px;
  padding: 8px;
  font-size: 15px;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #81d485;
}

th:first-child, td:first-child {
  width: 36%;
}

th:nth-child(2),
td:nth-child(2),
th:nth-child(3),
td:nth-child(3),
th:nth-child(4),
td:nth-child(4),
th:nth-child(5),
td:nth-child(5),
th:nth-child(6),
td:nth-child(6) {
  width: 15%;
}

/* Button styles */
.btn-edit {
  background-color: #1c1c1d;
  color: white;
  border: none;
  padding: 3px 12px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin-right: 12px;
  cursor: pointer;
  border-radius: 6px;
  width: 80%;
}

.btn-edit:hover {
  background-color: #0056b3;
}

.btn-primary {
  background-color: #0d4d92;
  color: white;
  border-radius: 6px;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
  border-radius: 5px;
  margin: 6px;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-load-products {
  background-color: #28a745;
  color: white;
  margin-top: 20px;
}

/* Product form container */
#productFormContainer {
  background-color: #f4f4f4;
  padding: 12px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}

.form-control {
  width: 100%;
  padding: 10px;
  margin: 3px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.supermarket-lidl {
  color: rgb(14, 34, 15);
}

.supermarket-supervalue {
  color: red;
}

.supermarket-tesco {
  color: blue;
}

.supermarket-aldi {
  color: rgb(255, 166, 0);
}

.supermarket-mns {
  color: rgb(42, 122, 140);
}

.supermarket-dunnes-stores {
  color: rgb(227, 107, 107);
}

.product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.product-details {
  flex: 1;
  margin-left: 10px;
}

.table-header {
  margin: 10px 0;
}

.table-header table {
  width: 200%;
  background-color: #28a745;
}

.table-header th {
  text-align: left;
}

/* Search results */
#searchResultsContainer {
  display: flex;
  justify-content: center;
}

#searchResults table {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

#searchResults th {
  text-align: center;
  padding: 20px;
  background-color: #f4f4f4;
}

#searchResults td {
  text-align: left;
  padding: 20px;
  border-bottom: 1px solid #ccc;
}

#searchResults .product-column {
  width: 50%;
  text-align: left;
}

#searchResults .quantity-column {
  text-align: right;
}

.button-container {
  display: flex;
  justify-content: center;
}

#searchResults .edit-column {
  display: none;
}

.logged-in #searchResults .edit-column {
  display: table-cell;
}

/* Responsive styles */
@media (max-width: 768px) {
  .search-add-container {
    flex-direction: column;
  }

  #searchSection,
  #productFormContainer {
    width: 100%;
  }

  table {
    font-size: 12px;
  }

  th, td {
    padding: 5px;
  }

  #products {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }
}

@media (min-width: 992px) {
  .search-add-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  h1 {
    text-align: left;
    margin: 30px 0 10px 0;
  }

  form {
    background: #f4f4f4;
    padding: 1px;
    border-radius: 25px;
    margin-bottom: 2px;
  }

  form input[type="text"] {
    margin: 4px 0 1px 0;
    padding: 5px;
    border-radius: 4px;
    font-size: 15px;
  }
}
/* -------------------- End of Search/Add Products Form -------------------- */



/* -------------------- Beginning of Login/Register Form -------------------- */
.containerlogin, .containerregister {
  width: 90%;
  max-width: 500px;
  margin: 100px auto 0;
  padding: 20px;
}

.login-image, .sign-up-image {
  display: none;
}

.login-image img {
  width: 100%; 
  border: none;
}

@media (min-width: 768px) {
  .login-image, .sign-up-image {
    display: flex;
  }
}

.sign-up-image img {
  width: 100%; 
  border: none;
}
/* -------------------- End of Login/Register Form -------------------- */




/* -------------------- Beginning of Navbar Navigation-------------------- */
@media (max-width: 768px) {
  .navbar-nav {
    flex-direction: column;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 10px;
  }
  
  .search-bar {
    width: 100%;
    margin-top: 10px;
  }
}

.navbar {
  position: fixed; /* Make navbar fixed */
  top: 0; /* Position at the top */
  width: 100%; 
  z-index: 1000; /* Ensure navbar is on top */
  padding: 5px 10px; /* Padding inside the navbar */
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility */
}

/* Navbar Logo */
.navbar-brand img {
  width: 280px; /* Width of the logo */
  height: auto; /* Maintain aspect ratio of the logo */
  padding: -40px; /* Add padding around the logo */
  margin-right: 20px;
  margin-left: 20px;
  cursor: default; /* Default cursor for the logo */
}

.navbar-nav .nav-item .nav-link {
  color: #333;
  font-weight: bold; /* Bold text for navbar links */
}

.navbar-nav .nav-item .nav-link:hover {
  color: #007bff; /* Hover color for navbar links */
}

.navbar-nav .nav-item.active .nav-link {
  color: #333; /* Active link color for navbar links */
}

.navbar-collapse {
  display: flex; /* Flex display for navbar collapse */
  justify-content: space-between; /* Space between navbar items */
  align-items: center; /* Center align navbar items */
}

.navbar-nav .nav-link {
  font-size: 18px; /* Font size for navbar links */
  margin-right: 15px; /* Space between navbar links */
}

.search-bar {
  display: flex; /* Flex display for search bar */
  align-items: center; /* Center align search bar items vertically */
}

.search-bar input {
  width: 150px; /* Width of the search input */
  border-radius: 20px; /* Rounded corners for search input */
  padding: 5px 10px; /* Padding inside the search input */
}

.search-bar button {
  background: none; /* No background for search button */
  border: none; /* No border for search button */
  color: #007bff; 
  font-size: 22px; 
  margin-left: 10px; 
  margin-right: 20px;
}

.nav-link {
  display: inline-block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.navbar-nav.ml-auto {
  margin-right: 20px; /* Right margin for navbar items on the right */
}

.hidden-page {
  display: none;
}

#verificationMessage {
  display: none; /* Initially hidden, as was specified in the inline style */
}

.container.mt-5 {
  top: 250px;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem; /* Assuming .mb-4 means margin-bottom of 1.5rem */
 
}

.nav-item {
  position: relative;
}

.nav-item a {
  margin-right: 10px;
}

.nav-item a.disabled {
  pointer-events: none;
  color: #aaa;
}

#btn-login,
#btn-signup {
  min-width: 80px; /* Adjust as needed to fit the text */
  text-align: center;
}

.nav-link.disabled {
  pointer-events: none;
  color: #aaa;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
/* -------------------- End of Navbar Navigation -------------------- */



/* -------------------- Beginning of Feedback Form -------------------- */
.feedback-section {
  background-color: #d3d3d3; 
  background-color: #5e6593;
  padding: 15px;
  text-align: left;
  position: relative;
  margin-top: 180px;
  width: 100%;
  box-sizing: border-box;
}

.feedback-section p {
  margin-bottom: 10px;
  color: black;
  text-align: center;
}

.message-form {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.search-box {
  background-color: #f5f1f1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 6.5px 10px;
  width: calc(100% - 3px);
  font-size: 15px;
}

.message-form .search-button {
  border: none; /* No border */
  border-radius: 10px; /* Rounded corners */
  background-color: #0d4d92; /* Button color */
  color: white; /* Text color */
  cursor: pointer; /* Pointer cursor */
  font-size: 18px; /* Font size */
  padding: 3px 9px; /* Padding for spacing */
  top: 2.1px;
  position: absolute; /* Position the button relative to the search box */
  right: 3px;
}

#feedbackMessageResponse{
  color: #f9f6f6;
  align-items: center;
}
/* -------------------- End of Feedback Form -------------------- */



/* -------------------- Beginning of Footer Navbar -------------------- */
.footer {
  background-color: #000;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  width: 100%;
  position: relative; /* Ensure footer is positioned correctly */
  bottom: 0;
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Distribute space evenly */
  align-items: flex-start; /* Align items to start vertically */
  max-width: 1200px; /* Limits the maximum width */
  margin: 0 auto;
  padding: 0 20px;
}

.footer .col-md-4 {
  flex: 1; /* Ensure equal width for columns */
  margin: 10px 0; /* Add some vertical margin for spacing */
}

.footer .col-md-2 {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 5px;
}

.footer .logo {
  margin-bottom: 20px;
  height: 80px;
}

.footer .social-icons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.footer .social-icons a {
  color: #fff;
  font-size: 24px;
  margin: 0 5px;
  transition: color 0.3s;
}

.footer .social-icons a:hover {
  color: #6c63ff;
}

.social-icons img {
  width: 36px;
  height: auto;
  margin-right: 10px;
  vertical-align: middle;
}

.footer h5 {
  color: #6c63ff;
  font-size: 21px;
  margin-bottom: 10px;
  text-align: left;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 17px;
}

.footer ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  transition: color 0.3s;
  margin-bottom: 5px;
  margin-left: -18px;
  
}

.footer ul li a:hover {
  color: #6c63ff;
}

.col-12 p {
  color: #534a4a;
}

/* Responsive styles */
@media (max-width: 728px) {
  .footer .container {
    flex-direction: column;
  }

  .footer .col-md-2 {
    width: 100%;
    margin-bottom: 20px;
  }

  .footer .logo {
    margin: 0 auto 20px;
  }

  .footer h5 {
    text-align: center;
  }

  .footer ul li a {
    text-align: center;
  }
}

@media (max-width: 768px) {
.footer .col-md-2 {
    width: 100%!important;
    margin: 5px 0;
    text-align: left;
    flex-direction: column; 
  }

  .footer .social-icons {
    justify-content: center;
  }

  .footer .container {
    padding: 0 20px;
    width: 100% !important;
  }

  .footer .logo {
    width: 100%;
    max-width: 200px;
    height: auto;
  }

  .footer h5 {
    font-size: 18px;
  }

  .footer ul {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .footer .col-md-2 {
    width: 100% !important;
    margin: 5px 0;
    text-align: left;
    flex-direction: column; 
  }

  .footer h5 {
    font-size: 16px;
  }

  .footer ul {
    font-size: 14px;
  }
}
/* -------------------- End of Footer Navbar -------------------- */



/* -------------------- Beginning of Privacy Policy -------------------- */

.privacy-container, .terms-container, .about-container {
  display: flex;
  flex-direction: column;
  margin: 15px;
  padding: 0;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
}

.privacy-text, .terms-text, .about-text {
  width: 100%;
  padding-right: 10px;
  text-align: justify;
  margin-top: 100px;
  margin-left: 10px;
}

.privacy-image, .terms-image, .about-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px; 
  margin-bottom: -70px;
  margin-left: 0;
  margin-right: 0;
}

.privacy-image img, .terms-image img, .about-image img {
  max-width: 100%;
  height: auto;
  border: none;
}

.terms-image img {
  height: 890px;
}

.privacy-image img{
  height: 820px;
}

.privacy-text h1, .terms-text h1, .about-text h1 {
  color: #0d4d92; 
  font-size: 32px;
  text-align: left;
}

.privacy-text h2, .terms-text h2, .about-text h2 {
  color: #0d4d92;
  font-size: 25px;
}

p {
  line-height: 1.5;
  color: #666;
  font-size: 16px;  
}



@media (min-width: 768px) {
  .privacy-container, .terms-container, .about-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .privacy-text, .terms-text, .about-text {
    width: 60%;
    padding-right: 30px;
  }

  .privacy-image, .terms-image, .about-image {
    width: 40%;
    margin-top: 150px;
  }
}
/* -------------------- End of Privacy Policy -------------------- */



/* -------------------- Beginning of Contact Us -------------------- */
.contact-container {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 110px;
}

.contact-info, .contact-form-container {
  width: 48%; /* Adjust as needed */
}

.contact-info h1 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0d4d92;
}

.contact-info h2 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 25px;
  color: #0d4d92;
}

.contact-info h3 {
  font-size: 1.2em;
  margin-top: 20px;
  margin-bottom: 5px;
  color: #0d4d92;
}

.contact-info p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-form-container {
  margin-top: 30px;
}

.contact-form-container h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #0d4d92;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
}

.contact-form-container .form-group input[type="name"],
.contact-form-container .form-group input[type="email"],
.contact-form-container .form-group input[type="subject"],
.contact-form-container .form-group textarea {
  width: 100%; 
  padding: 1px;
  box-sizing: border-box; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

button[type="submit"] {
  background-color: #0d4d92;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  width: auto; /* Adjust width to content */
  align-self: center; /* Align button in the center of the form */
}

button[type="submit"]:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .contact-container {
      flex-direction: column;
  }

  .contact-info, .contact-form-container {
      width: 100%;
      margin-bottom: 30px;
  }

  .contact-info h1 {
      font-size: 2em;
  }

  .contact-info h2, .contact-form-container h2 {
      font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .contact-info h1 {
      font-size: 1.8em;
  }

  .contact-info h2, .contact-form-container h2 {
      font-size: 1.3em;
  }

  .contact-info h3 {
      font-size: 1.1em;
  }
}
/* -------------------- End of Contact Us -------------------- */



/* -------------------- Begin of Terms of Service -------------------- */
/* @media (min-width: 768px) {
  .terms-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .terms-text {
    width: 60%;
    padding-right: 30px;
  }

  .terms-image {
    width: 40%;
    margin-top: 150px;
  }
}

.terms-container {
  display: flex;
  flex-direction: column;
  margin: 10px;
  padding: 0;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto; 
  justify-content: space-between;
}

.terms-text {
  width: 100%;
  padding-right: 10px;
  text-align: justify;
  margin-top: 100px;
  margin-left: 10px;
}

.terms-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: 0;
  margin-right: 0;
}

.terms-image img {
  max-width: 100%;
  height: auto;
  border: none; 
} 

.terms-text h1 {
  color: #0d4d92; 
  font-size: 32px;
  text-align: left;
}

.terms-text h2 {
  color: #0d4d92; 
  font-size: 25px;
}

p {
  line-height: 1.5; 
  color: #666; 
  font-size: 16px;  
} */
/* -------------------- End of Terms of Service -------------------- */



/* -------------------- Beginning of About Us -------------------- */
/* .about-container {
  display: flex;
  flex-direction: column;
  margin: 10px;
  padding: 0;
  width: 100% !important;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-text {
  width: 100%; 
  padding-right: 50px; 
  text-align: justify;
  margin-top: 100px;
}

.about-image {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.about-image img {
  width: 750px; 
  height: auto; 
} 

.about-text h1 {
  color: #0d4d92; 
  font-size: 40px;
  text-align: left;
}

.about-text h2 {
  color: #0d4d92;
  font-size: 25px;
}

p {
  line-height: 1.3; 
  color: #666; 
  justify-content: left;
  font-size: 14px;    
} */
/* -------------------- End of About Us -------------------- */



/* -------------------- Beginning of How it Works -------------------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4; 
}

.container-works {
  width: 100% !important;
  max-width: 1200px;
  margin: 10px auto;
  background: white;
  padding: 0;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-top: 100px;
  margin-bottom: -150px;
}

.container-works h1 {
  color: #0d4d92; /* Dark grey color for headers */
  font-size: 40px;
  margin-left: 20px;
  font-size: 1.8em;
  margin-top: 30px;
}

.container-works h2 {
  color: #0d4d92;
  font-size: 25px;
  margin-left: 20px;
  font-size: 1.6em;
}

p, li {
  line-height: 1.6;
  margin-left: 20px;
  font-size: 1em;
  color: #2d3034;
}

ul, ol {
  margin-left: 20px;
}

a {
  color: #0d4d92;
} 

a:hover {
  text-decoration: underline;
}
/* -------------------- End of How it Works -------------------- */