/*define css variables to hold our color scheme*/
:root{
    --dark-brown: #5E4433;
    --medium-gray: #9E9D9B;
    --warm-beige: #B6A389;
    --soft-yellow: #F5DFA3;
    --light-gray: #d1d2d4;
    --accent-yellow: #EFBA4D;
    --cream: #fffaf2;
    --text-dark: #3b302a;
    --blue: #1E90FF;
    --red : #FF6347;
    --green: #32CD32;
    --white: #FFFFFF;
    --black: #000000;

}
 
body{
    /*/*whole background image*/
  background-image: url('myImage.jpg');
      background-size: cover;   /* Makes the image cover the whole screen */
      background-repeat: no-repeat; /* Prevents tiling */
      background-attachment: fixed; /* Makes background stay still when scrolling */
   
    /*whole background color*/
    background-color:var(--cream); 
    /*typography*/
    font-family: 'Lato',Sans-Serif;
    font-weight: 400;
    color: var(--text-dark);
    /*box model stuff CoPaBoMa*/
    margin: 0;/*shorthand*/
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;

    padding: 0;/*shorthand of the below 4 lines*/
    padding-top: 0;
    padding-left: 0;
    padding-right:0 ;
    padding-bottom: 0;
}
h1,h2,h3,h4,h5,h6{
    font-family: 'playfair Display',serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}
 body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar {
  position: fixed;      /* Keeps it in place */
  top: 0;               /* Sticks it to the top */
  left: 0;              /* Aligns to the left */
  width: 100%;          /* Full width */
  background-color: rgba(255, 0, 0, 0.5);  /* 50% transparent red */
  z-index: 1000;        /* Keeps it above other content */
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;        /* Puts items in a row */
  justify-content: center;
}

.navbar ul li {
  margin: 0;
}

.navbar ul li a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}

.navbar ul li a:hover {
  background-color: #575757;
}

/* Push content down so it doesn’t hide under navbar */
.content {
  padding-top: 70px;  /* Adjust this = navbar height */
}

.main-nav{
    background-color: var(--black);
    padding: 10px 0;/*shorthand*/
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0;
    padding-right: 0;
}

.nav-list{
    display: flex;/*this is the container*/
    flex-direction:  row;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    list-style: none;
}

/*this refers to all anchor tags<a> on the li's*/
li.nav-item a{
    color: var(--red);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

/*pseudo-class selector*/
li.nav-item a:hover, li.nav-item.active {
    background-color: var();
    color: var(--green);
    border-radius:5px;
}
/*highlighting the link based on the active page
li.nav-item.activea{
     background-color: var(--warm-beige);
    color: var(--light-gray);
    border-radius:5px;
}*/

/*Main styles*/
.container{
    max-width: 900px;

    /*margin: ;*/
    margin-top: 0 auto;
    margin-bottom: 0 ;
    margin-left: auto; /* ? */
    margin-right: auto;

    text-align: center;
     
    padding-top: 50px; /*to avoid content being hidden under the navbar*/
}

/*banner*/
#banner{
   width: 40%;
    height: 40%;
   border-radius: 10px;
   margin: 10px 0;
}
/*paragraph styles*/
article p.para{
    font-size: 18px;
    line-height: 1.6;
    margin-top: 5px;
    margin-bottom: 5px;

}
article p.bolder{
    font-weight: bold;
}
 
/*Offers and Best styles*/
#offers, #best{
  font-weight: bold;
    color: var(--black);
    width:44%;
    margin: 1%;
    background-color: var(--green);
    padding: 10px;
    border-radius: 10px;
}

#offers ul,#best ol{
    list-style: none;
    text-align: left;
}
#offers{
    float: left;
}
#best{
    float: right;
}
/*featured products*/
#featured-products{
  color: var(--cream);
    background-color: var(--white);
    padding: 20px 0;
    margin-top: 40px;
    clear: both;
}
#contact{
    color: var(--white);
    text-align: left;
    width: 100%;
    margin: 1%;
    background-color: var(--black);
    padding: 10px;
    border-radius: 10px;
}


.products-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;

}
.product-box{
    background-color: var(--green);
    width: 270px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);/*???*/
}
#product1{
    border: 2px solid var(--dark-brown);

}
#product2{
    border-width: 2px;
    border-style: dashed;
    border-color: var(--accent-yellow);
}

#product3{
    border-width: 2px; 
    border-style: dotted;
    border-color: var(--soft-yellow);
}

.product-box h3{
    margin-top: 0;
    color: var(--dark-brown);
}
.product-box span.price{
    font-weight: bold;
    color: var(--blue);
}

.gallery-item img{
    width: 100%;
    height: 200px;
    object-fit: cover;
}
#gallery{
    padding:30px 0;
}
.gallery-grid{
    display: grid;
    /*define the grid columns
    fixed units: grid-template-columns:250px 25-px 250px;
    relative units: grid-template-columns: 1fr 1fr 1fr;
    responsive relative untis
    */
    grid-template-columns:repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item{
    color: #d1d2d4;
    background: rebeccapurple;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition-duration: 1s;
}
.gallery-item:hover{
    transform: translateY(10px);
}
footer{
    background-color: var(--black);
    color: white;
    text-align: center;
    margin-top: 5px;
    padding: 5px;

}
footer a{
    color: var(--white);
    text-decoration: none;
}
footer a:hover{
    text-decoration: underline;
}

#form-paragraph {
  text-align: center;
  font-size: 18px;
  color: var(--medium-gray);
}

.form-section {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 15px;
  margin: 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--dark-brown);
}

label > span {
  color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--warm-beige);
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

input[type="submit"] {
  background-color: var(--dark-brown);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin-right: 10px;
}

button[type="button"] {
  background-color: var(--medium-gray);
}

#food-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 10px;
}

.servings-input {
  display: none;
  margin-top: 5px;
}

.servings-input>label {
  font-size: 14px;
}

input[type="number"] {
  width: 7%;
  padding: 5px;
  border: 2px solid var(--warm-beige);
  border-radius: 8px;
  font-size: 16px;
}

#orderTotal {
  margin-top: 15px;
  padding: 10px;
  background-color: var(--soft-yellow);
  border-radius: 5px;
  display: none;
}

.payment-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--dark-brown);
}

.error {
  border-color: red !important;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.success-message {
  color: green;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

button {
  background-color: var(--dark-brown);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 10px 5px;
}

button:hover {
  background-color: var(--warm-beige);
  color: var(--dark-brown);
}

   .video-container {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 ratio */
      height: 0;
      overflow: hidden;
      max-width: 100%;
      margin: 20px auto;
    }

    .video-container video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }   