/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    box-shadow: #4CAF50;
}

/* Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    font-size: 16px;
    color: #333;
}


/* Header Styles */
header {
    height: 100px;
    background-color: #174a46;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Navigation Styles */
nav ul {
    list-style-type: none;
    display: flex;
    align-items: flex-end;
    padding-left: 0px;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a:focus {
    color: #adebad;
}

/* Main Content Styles */
main {
    padding: 2rem;
    background-color: #b9b994;
}

/* Footer Styles */
footer {
    padding: 1rem 2rem;
    background-color: #5e837b;
    color: white;
    text-align: center;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}




.logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    float: left;
    margin-left: 20px; 
    
}

.intro-image img,
body > img,
main img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}




.intro-image img:not(:first-of-type) {
    margin: 10px right;
    width: 50%;
    max-width: 300px;
}

/* Introduction Section Styles */
.intro {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}


.intro-text,
.intro-image,
.featured-recipe {
    flex: 1;
    min-width: 300px;
}

.intro .intro-text h1 {
    font-size: 3rem;
    text-align: center;
    width: 100%;
}

.intro .intro-text .recipe-link img {
    width: 500px;
    height: auto;
    
}


.body.q-and-a-page table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #8c6565;
  margin-top: 20px;
}

body.q-and-a-page th, 
body.q-and-a-page td {
  padding: 8px;
  text-align: left;
 
  }


body.q-and-a-page th {
  background-color: #b36969;
  color: white;
  
}




.rhondas-chutney-page .image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px; 
}

.rhondas-chutney-page .image-row img {
    flex: 0 0 auto; 
    width: calc((100% - 30px) / 7); 
    height:200px;  
}

#choppedChilli-img {
    height: 500px; 
    width: 600px;   
    display: block;
    float: right;
    
}

   
form {
        width: 500px;
        border: 3px solid rgb(160, 209, 160);
        padding: 1rem;
        border-radius: 20px;
        margin: 20px auto;
        box-shadow: 2px 2px 10px rgb(169, 155, 155); /* Corrected box-shadow syntax */
        font-family: Arial, sans-serif;
        background-color: #e0dbdb; 

}
      

  #submit_button {
    display: block;
    width: 100%;
    border: none;
    font-size: 25px;
    letter-spacing: 5px;background-color: tomato;
    color: white;
    font-weight: bold;
    border-radius: 8px;
   margin-top: 15px;
   cursor: pointer;
  }

  #submit_button:hover {
    background-color: darkred;
  }
 
  fieldset {
    margin: 10px 0;
    padding: 10px;

   
  }
  .input-group {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  form label {
    display: block;
  margin-top: 1em;
  font-weight: bold;
  }

  form input,
  form select,
  form textarea {
    width: 400px;
    border:5px solid darkgray;
    padding: 2px;
    border-radius: 15px;
    margin: 5px auto;
    box-shadow: 2px 2px 10px red; 
  }
    
    #print_button {
        display: none !important;
    }
   
   /* This handles print styling */
@media print {
  /* Hide all images when printing */
  img {
    display: none !important;
  }

  /* Optional: show some specific elements if needed */
  .logo {
    display: block !important; /* Only if you want the logo to stay visible */
  }
}

/* This handles responsive layout on screen (not print) */
@media (max-width: 768px) {
  .form {
    width: 100%;
    margin: 0 auto;
  }
}


  
      table {
  
        margin: 50px auto;
        font-family: Arial, sans-serif;
        border: 2px solid #4CAF50;
        border-radius: 10px;

        
      }
    
      th, td {
        border: 1px solid #ccc;
        padding: 12px 15px;
        text-align: left;
      }
    
     
    
    
      label {
        font-weight: bold;
      }
      main {
        background-color:#fdfffe
      }
      body.q-and-a-page p:hover
       {
        background-color: #bfa512;     
        transform: scale(1.02);       
        cursor: pointer;               
        transition: all 0.3s ease;     
      }