@import url("https://fonts.googleapis.com/css2?family=Playwrite+HR:wght@100..400&display=swap");

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

main {
  margin: 0;
  padding: 0;
}

header h1 {
  font-family: "Playwrite HR", sans-serif;
}

.container {
  width: 80%;
  margin: auto;
  margin-bottom: 2rem;
  overflow: hidden;
}

.override .container {
  width: 100%;
  margin-bottom: 0;
}

footer {
  text-align: center;
  padding: 20px 0;
  background-color: #f4f4f4;
  border-top: 1px solid #e4e4e4;
}

/* General styling for labels for consistency */
label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #333;
}

.hero-background {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("app/Presentation/images/pexels-brettjordan-842519.jpg");
  background-position: center;
  background-color: #cccccc;
  overflow: auto;
}

.hero {
  width: 100%;
  height: 100vh;
  text-align: center;
  margin-top: 12rem;
}

.hero-info {
  width: max-content;
  margin: auto;
  margin-top: 2rem;
  border-top: white solid 1px;
  color: white;
  font-size: 1.2rem;
}

.links a {
  display: inline-block;
  padding: 2rem;
  background-color: #ff5733;
  transition: background-color 0.3s ease;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 2rem;
  margin-right: 1rem;
}

.links a:hover {
  background-color: #b23e23;
}

.slogan h1 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 30px;
}

h1 {
  display: block;
  font-size: 2em;
  text-align: center;
}

/* Reset list styles */
ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

header {
  background-color: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

/* Navbar container */
nav {
  background-color: #333;
  overflow: hidden;
}

/* Navbar links */
nav ul li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change the link color to #f2f2f2 on hover */
nav ul li a:hover {
  background-color: #ddd;
  color: black;
}

/* Register form styling */

/* Wrapper for the form to control its layout specifically */
.register-wrapper {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px; /* Adjust based on your preference */
  width: 100%; /* Ensures responsiveness */
  margin: auto;
  margin-top: 2rem; /* Extra space above the form */
  margin-bottom: 2rem; /* Extra space below the form */
  box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

.register-wrapper input[type="text"],
.register-wrapper input[type="email"],
.register-wrapper input[type="password"],
.register-wrapper select {
  width: 100%;
  padding: 8px;
  margin: 5px 0 20px;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.register-wrapper input[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  width: auto; /* Adjust based on your preference */
  align-self: center; /* Center the button in the form */
  margin-top: 20px; /* Extra space above the submit button */
}

/* Hover effect for the submit button for better user interaction feedback */
.register-wrapper input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Login Form Styling */
.login-form-container {
  background-color: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 4rem auto;
  margin-bottom: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-form h1 {
  margin-top: 0;
  text-align: center;
  color: #333;
}

.login-form form {
  display: flex;
  flex-direction: column;
}

.login-form label {
  margin-bottom: 5px;
  color: #666;
  width: max-content;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  width: 100%; /* Ensures inputs use the full width */
}

.login-form input[type="submit"],
.login-form a {
  background-color: #007bff;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-form a {
  text-align: center;
  text-decoration: none;
  color: white;
  display: block;
  margin-bottom: 20px;
}

.login-form input[type="submit"]:hover,
.login-form a:hover {
  background-color: #0056b3;
}

/* Profile page styling */

.profile-wrapper,
.edit-profile-wrapper {
  background-color: #f9f9f9; /* Light grey background */
  padding: 20px;
  margin-top: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  min-width: 600px; /* Adjust based on preference */
}

.profile-wrapper h1,
.edit-profile-wrapper h1 {
  color: #333; /* Dark grey color for the main title */
  text-align: center;
  margin-bottom: 20px; /* Space below the title */
}

.profile-wrapper h2 {
  color: #555; /* Slightly lighter grey for subtitles */
  border-bottom: 2px solid #eee; /* Light line under subtitles for separation */
  padding-bottom: 5px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.profile-wrapper p {
  color: #666; /* Light grey text for readability */
  line-height: 1.6; /* Spacing for readability */
}

.profile-wrapper a {
  display: inline-block;
  background-color: #007bff; /* Bootstrap primary blue */
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 20px;
}

.profile-wrapper a:last-child {
  background-color: rgb(213, 0, 0);
}

.profile-wrapper a:last-child:hover {
  background-color: rgb(150, 0, 0);
}

.profile-wrapper a:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.edit-profile-wrapper form {
  display: grid;
  gap: 15px; /* Space between form elements */
}

.edit-profile-wrapper label {
  display: block;
  color: #666; /* Light grey text for labels */
  margin-bottom: 5px; /* Space below the label */
}

.edit-profile-wrapper button {
  background-color: #007bff; /* Bootstrap primary blue */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  width: max-content;
}

.edit-profile-wrapper input[type="text"],
.edit-profile-wrapper input[type="email"],
.edit-profile-wrapper input[type="password"],
.edit-profile-wrapper select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc; /* Light grey border */
  border-radius: 4px;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.edit-profile-wrapper input[type="submit"] {
  background-color: #007bff; /* Bootstrap primary blue */
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.edit-profile-wrapper input[type="submit"]:hover {
  background-color: #0056b3; /* Darker blue on hover */
}

.session-messages,
.session-errors {
  justify-content: flex-start;
  background-color: #f0f4f8; /* Light grey-blue background */
  color: #333; /* Dark grey text */
  padding: 10px 20px; /* Padding for spacing inside the box */
  margin: 20px 0; /* Margin for spacing outside the box */
  border-radius: 4px; /* Rounded corners */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  font-family: Arial, sans-serif; /* Font styling */
}

.session-messages {
  border-left: 5px solid #007bff; /* Blue border on the left for emphasis */
}

.session-errors {
  border-left: 5px solid red; /* Red border on the left for emphasis */
}

.session-errors ul {
  justify-content: flex-start;
  list-style: none; /* Remove default list styling */
  padding: 0; /* Remove default padding */
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar p {
  margin-right: 20px; /* Space between the logged in text and the nav */
  color: white;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  font-weight: bold;
  border-left: solid 1px white;
}

nav ul li {
  margin-left: 20px; /* Space between nav items */
}

nav ul li:first-child {
  margin-left: 0; /* Remove margin from the first item */
}

/* Choice styling */

.choice-container {
  text-align: center;
  margin-top: 50px;
}
.choice-btn {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  margin: 10px;
}

.menu-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust the space between items */
}

.menu-item {
  flex-basis: calc(
    33.333% - 20px
  ); /* Three items per row, adjust gap if needed */
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  background-color: #fff;
}

.item-image img {
  width: 100%; /* Make image fill the container */
  height: auto;
  border-bottom: 1px solid #ddd;
}

.item-info {
  padding: 15px;
}

.item-info h2 {
  margin-top: 0;
  color: #333;
}

.item-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.item-info span {
  font-weight: bold;
  color: #e63946; /* A nice red for the price */
}

/* Flex container */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.product-wrapper {
  color: white;
  overflow: hidden;
  flex: 0 0 32%;
  height: 200px;
  width: 300px;
  margin: 1rem;
  padding: 1rem;
  background-color: #333333;
}

.basket-items {
  display: block; /* This ensures the default block layout, but might be redundant */
  list-style-type: none; /* Removes default list item bullets */
  padding: 0; /* Removes default padding */
}

.basket-items li {
  padding: 1rem;
  margin: 0 1rem 1rem 0;
  background-color: #ffffff; /* Lighter background for a cleaner look */
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* Smooth transitions for interaction */
}

.basket li:hover {
  transform: translateY(-5px); /* Slight lift effect on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover for depth */
}

.basket ul {
  justify-content: flex-start;
}
.basket ul li:first-child {
  margin-left: 0;
}

.basket-item input {
  padding: 0.6rem;
  margin-left: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.basket-item {
  margin-bottom: 0;
}

.basket-order {
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0 20px 0;
}

.basket-order h1 {
  text-align: start;
}

.subtotal-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 20px 0 20px
}

.subtotal-text {
  font-size: 1rem;
  font-weight: bold;
}

.order-form .btn, #add {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

.order-form {
  margin-bottom: 0;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

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

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

#subtotal {
  font-weight: bold;
  background-color: #f0f0f0; /* Light grey background */
  color: #333; /* Dark grey text for contrast */
  padding: 10px 20px; /* Top and bottom padding of 10px, left and right padding of 20px */
  border-radius: 5px; /* Rounded corners */
  border: 1px solid #ccc; /* Light grey border */
  display: inline-block; /* Allows the use of padding and custom width/height */
  font-size: 1.2em; /* Slightly larger font size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.order-summary {
  padding: 10px 20px; /* Top and bottom padding of 10px, left and right padding of 20px */
  border-radius: 5px; /* Rounded corners */
  border: 1px solid #ccc; /* Light grey border */
}

.order-summary h3 {
  border-top: 1px solid #ccc;
  padding-top: 1rem;
}

.delivery-info textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 10px;
}

.delivery-info label {
  display: block;
  font-weight: bold;
  font-size: 1rem;
  margin: 1rem 0px 1rem 0;
  color: #333;
}

.delivery-info input[type="submit"] {
  background-color: #4caf50; /* A green color */
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.delivery-info input[type="submit"]:hover {
  background-color: #45a049;
}

.delivery-info form {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f9f9;
  margin-bottom: 1rem;
}
th,
td {
  text-align: left;
  padding: 8px;
}
th {
  background-color: #f2f2f2;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
  }
  .menu-item {
    flex-basis: calc(50% - 20px); /* Two items per row on smaller screens */
  }

  .logo,
  nav {
    flex: none;
    text-align: center;
  }

  .logo img {
    margin-left: 3rem;
  }

  nav ul {
    justify-content: center;
    margin: 10px 20px;
  }
}

@media (max-width: 480px) {
  .menu-item {
    flex-basis: 100%; /* Full width on very small screens */
  }
}
