body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #90A959;
}

header {
    background-color: #8f3e3e;
    color: #FDF5ED;
    text-align: center;
    padding: 1em;
    background-image: url('slice.jpg');
    background-size: cover;
    background-position: center;
}

h1 {
    font-size: 65px;
}

/*header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
  }*/

nav {
    background-color: #386641;
    color: #FDF5ED;
    padding: 1em;
    text-align: right;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
    display: flex; /* Use flexbox for layout */
    justify-content: flex-end; /* Align links to the right */
    gap: 10px; /* Space between lim=nks */
}

nav:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

nav a {
    background-color: #90A959; /* Button background color */
    color: #FDF5ED;
    border: none; /* Remove default link underline */
    padding: 0.5em 1em; /* Adjust padding for button size */
    font-size: inherit; /* Inherit font size */
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    border-radius: 5px; /*Add rounded corners */
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out, background-color 0.3s ease; /* Smooth hover effects */
    display: inline-block; /* Make them behave like block for padding/margin but inline for layout */
  }
  
  nav a:hover {
    transform: scale(1.1);
    opacity: 0.8;
    background-color: #e5533d; /* Button hover color */
  }

  nav a:focus {
    outline: none;
    box-shadow: 0 0 0 2px #FDF5ED; /* Focus style for accessibility */
  }
  
  nav a.active {
    font-weight: bold;
    /* Add other styles for the active link */
  }
  
main {
    display: flex;
    flex-direction:column;
    align-items: center;
    padding: 2rem;
}

main h2 {
    font-size: 36px;
}

main h4 {
    font-size: 28px;
}

main h6 {
    font-size: 22px;
    font-family: Arial, sans-serif;
}

.main-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
    grid-template-columns: 1fr;
    text-align: center;
}

.pizza-cards-wrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
    gap: 5rem; /* Adjust spacing between cards */
    perspective: 500px; /* Adjust the value to control the depth of the 3D scene */
}

.pizza-card {
    background-color: transparent;
    color: #FDF5ED;
    box-shadow: 0 .5rem 2rem #26452c; /* Optional shadow */
    width: 300px; /* Adjust card width */
    height: auto; /* Adjust height as needed based on content */
    margin: 1rem;
}

.pizza-card:hover {
    transform: scale(1.1); /* Slightly scale up on hover */
}
   
.pizza-img {
	width: 100%;
    display: block; /* Prevent extra space below image */
    object-fit: cover; /* Ensure image covers the container */
}

.pizza-card-content {
	color: #FDF5ED;
	padding: 2rem;
    text-align: center;
    width: auto;
}

.pizza-card-heading {
	margin: 0 0 1rem 0; /* Add some space below the heading on the back */
	font-size: 2rem; /* Adjust font size for the back */
	font-weight: 300;
    color:#011304;
}

.pizza-card-paragraph {
	font-size: 1.2rem; /* Adjust font size for the back */
	color: #FDF5ED;
    margin-bottom: 1.5rem; /* Add space before the button */
}

.order-button {
    text-align: center;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #FDF5ED;
    color: #386641;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-button:hover {
    background-color: #e5533d;
    color: white;
  }

.order-button button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 8px;
    background-color: #FDF5ED; 
    color: #386641;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;  
    max-width: 200px;
    width: auto; /* Allow it to shrink if the text is shorter */
    display: block; /* To make width/max-width work as expected */
    margin: 0 auto; /* To center the button horizontally within the .order-button div */
    text-align: center;
}

.order-button button:hover {
    background-color: #e5533d; 
    color: white; /*change text color on hover */
    transform: scale(1.2); /*zoom effect */
}

.menu1 {
    transition: transform 1s ease-in-out;
}

.menu1:hover {
    transform: skew(10deg, 5deg) scale(1.1); 
}

.menu2 {
    transition: transform 0.3s ease-in-out;
}

.menu2:hover {
    transform: rotate(5deg) translateY(-5px); /* Slight rotation and move up */
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */ 
}

.menu3 {
    transition: transform 1s ease-in-out;
}

.menu3:hover {
    scale: 1.2; 
    transform: translateY(50px); /* Move 50 pixels to the right along the Y-axis */
}

.menu4 {
    transition: transform 0.3s ease-in-out;
}

.menu4:hover {
    transform: translate3d(20px, -10px, 50px);
}

.menu5 {
    transition: transform 0.3s ease-in-out;
}

.menu5:hover {
    transform: matrix(1, .05, .05, 1, .05, .25)
}

.menu6 {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bouncy scale */
}

.menu6:hover {
    transform: scale(1.2);
    transform: translateX(50px); /* Move 50 pixels to the right along the X-axis */
}


.menu7 {
    transition: transform 0.3s ease-in-out;
}

.menu7:hover {
    transform: matrix3d(1, 0, 0, 0,
                        0, 1, 0, 0,
                        0, 0, 1, 0,
                        50, 20, -50, 1); /* Move 50px right, 20px down, 30px away from the viewer */
}

.menu8 {
    transition: transform 0.3s ease-in-out;
}

.menu8:hover {
    transform: rotate3d(0.5, 0.8, 0.2, 15deg);
}

.menu9 {
    transition: transform 0.3s ease-in-out;
}

.menu9:hover {
    transform: translateZ(50px); /* Move 50 pixels forward along the Z-axis */
}

.menu10 {
    transition: transform 0.3s ease-in-out;
}

.menu10:hover {
    transform: scale3d(1.2, 1.1, 1.1); /* Scale up slightly in all directions */
}

footer {
    background-color: #386641;
    color: #FDF5ED;
    text-align: center;
    padding: 1em;
}

/*Animations*/
.animate {
    animation-duration: 1.5s;
    animation-fill-mode: both;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80% {
      transform: translateY(0);
    }
  
    40% {
      transform: translateY(-30px);
    }
  
    50% {
      transform: translateY(-15px);
    }
  
    60% {
      transform: translateY(-30px);
    }
  
    90%, /* Hold at the bottom before the next cycle */
    100% {
      transform: translateY(0);
    }
}

.bounce {
    animation-name: bounce;
    animation-iteration-count: infinite;
}

/*.sprite {
    background: url("images/mySprite.png") no-repeat;
}
  .ie {
    width: 50px; /* Icon width 
    height: 50px; /* Icon height 
    display: inline-block; /* Display icon as inline block 
    background-position: 0 -200px; /* Icon background position in sprite 
}  
ul.menu {
    list-style-type: none;
}
ul.menu li {
    padding: 5px;
    font-size: 16px;
    font-family: "Trebuchet MS", Arial, sans-serif;
}
ul.menu li a {
    height: 50px;
    line-height: 50px;
    display: inline-block;
    padding-left: 60px; /* To sift text off the background-image 
    color: #3E789F;
    background: url("images/mySprite.png") no-repeat; /* As all link share the same background-image 
}
ul.menu li.firefox a {
    background-position: 0 0;
}
ul.menu li.chrome a {
    background-position: 0 -100px;
}
ul.menu li.ie a {
    background-position: 0 -200px;
}
ul.menu li.safari a {
    background-position: 0 -300px;
}
ul.menu li.opera a {
    background-position: 0 -400px;
}
ul.menu li.firefox a:hover {
    background-position: 0 -50px;
}
ul.menu li.chrome a:hover {
    background-position: 0 -150px;
}
ul.menu li.ie a:hover {
    background-position: 0 -250px;
}
ul.menu li.safari a:hover {
    background-position: 0 -350px;
}
ul.menu li.opera a:hover {
    background-position: 0 -450px;
}
*/

/* Media Query for Tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .pizza-cards-wrapper {
      display: flex;/* Ensure it's a flex container */
      flex-wrap: wrap; /* Allow wrapping if needed */
      justify-content: center; /* Center the cards horizontally */
      gap: 3rem; /* Adjust spacing for tablets */
    }
  
    .pizza-card {
      width: calc(50% - 1.5rem); /* Roughly two cards per row with spacing */
      margin: 1.5rem auto; /* Add horizontal auto margins to center each pair */
    }
  
  }
  
  /* Media Query for Mobile */
  @media (max-width: 767px) {
    .pizza-cards-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center; /* Ensure centering of items */
      gap: 4rem;
      width: 100%; /* Take full width */
      box-sizing: border-box; /* Include padding/border in width */
    }
  
    .pizza-card {
      width: 90%; /* Make cards wider on mobile */
      max-width: 350px; /* Optional: maximum width for mobile */
      margin: 2rem auto; /* Center the cards horizontally */
      box-sizing: border-box;
      width: auto; /*content determines the initial width*/
    }

  }
  
  /* Media Query for Desktop*/
  @media (min-width: 1025px) {
    .pizza-cards-wrapper {
      /* Maintain a horizontal layout, adjust as needed for your desktop design */
      flex-direction: row;
      justify-content: center; /* Or space-around, space-between, etc. */
      gap: 4rem; /* Adjust spacing for desktop */
    }
  
    .pizza-card {
      width: 20rem; /* Adjust card width for desktop */
      margin: 0; /* Remove default margin, use gap */
    }

    
  }