body {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
}
body,
h1{
    margin: 0;
    padding: 0;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #F0F0F0;
    margin-right: auto;
}

.dark-mode .header {
    background-color: #333;
}

.dark-mode {
    background-color: #333;
    color: #f5f5f5;
}

.dropdown {
    position:absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
}

.dark-mode .dropdown {
    background-color: #333;
    color: #ffffff;
}

.help-text-wrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -5px;
}

.help-text {
    text-align:center;
    font-size: 20px;
    margin-bottom: -130px;
    margin-top: 5vmax;
}

.allergy-q-wrapper{
    display:flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: -5px;
}

/* For THINGS TO AVOID header */
.allergy-q{
    text-align:center;
    font-size: 20px;
    margin-bottom: 20px;
    margin-top: 1px;
    margin-bottom: -15px; 
}

/* For SELECTION OPTIONS buttons */
.middle-buttons {
    display: flex;
    justify-content: center;
    gap: 2.5px;
    margin-top: 60px; 
    align-items: center; 
    height: 30vh; 
}

/* For FILTER buttons */
.middle-buttons2 {
    display: flex;
    justify-content: center;
    gap: 2.5px;
    margin-top: 35px; 
    align-items: center; 
    margin-bottom: 100px;
}

/* For SELECTION OPTIONS buttons */
.dropdown-button {
    background-color: #e0e0e0;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 50px;
    width: 110px; /* Adjust the number to set the desired number of buttons per row */
    transition: background-color 0.2s;
    margin: 0 5px;
}

.dark-mode .dropdown-button {
        background-color: #555;
        color: #000000;
}

.dropdown-button:hover {
    background-color: #954d00;
    color: #ffffff;
    box-shadow: 0px 15px 20px #954d0079;
    transition: background-color 0.7s;
}

.dropdown-button.selected {
        background-color: #954d00;
        color: #ffffff;
        box-shadow: 0px 15px 20px #954d0079;
}

/* For DARK MODE button */
.toggle-button {
        background-color: #b6aeae;
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 14px;
        transition: background-color 0.3s;       
}

/* For DARK MODE button */
.toggle-button:hover {
        background-color: #898888;
}

.dropdown-select {
        width: 100%;
        padding: 10px;
        font-size: 16px;      
}

.wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
 
/* For SUBMIT button */
.button {  
    width: 140px;
    height: 45px;
    color: #000;
    background-color: #e0e0e0;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease 0s;
    cursor: pointer;
    outline: none;
}


.button2 {  
    width: 140px;
    height: 45px;
    color: #000;
    background-color: #e0e0e0;
    border: none;
    border-radius: 45px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease 0s;
    cursor: pointer;
    outline: none;
}
 
/* For SUBMIT button */
.button:hover {
    background-color: #954d00;
    box-shadow: 0px 15px 20px #954d0079;
    color: #ffffff;
    transform: translateY(-7px);
}
  
.dark-mode .button {
      background-color: #555;
      color: #000000;
}
  
.dark-mode .button:hover {
      background-color: #954d00;
      box-shadow: 0px 15px 20px #954d0079;
      color: #ffffff;
      transform: translateY(-7px);
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f5f5f5; /* Change this to your desired background color */
    padding: 10px; /* Adjust padding as needed */
    text-align: center;
   }

/* Dark mode styles for the footer */
.dark-mode .footer {
    background-color: #333;
    color: #f5f5f5;
}

#title:hover {
    cursor: pointer;
}




/* For the Results Page */

* {
    box-sizing: border-box;
}

/* Float four columns side by side */
.column {
    float: left;
    width: 20%;
    padding: 0 10px;
    justify-content: center;
  }
  
  /* Remove extra left and right margins, due to padding in columns */
  .row {
    margin: 0 -2px;
    display: flex;
    justify-content: center; /* Center the columns */
    flex-wrap: wrap; /* Allow cards to wrap if they exceed the width of the container */
    gap: 20px; /* Adjust the gap between cards */
}
  
  /* Clear floats after the columns */
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Style the counter cards */
  .card {
    flex-grow: 1;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding: 14px;
  text-align: center;
  background-color: #f1f1f1;
  margin-bottom: 6vh;
  /* Define CSS variables for mouse position */
  --mouse-x: 0;
  --mouse-y: 0;

  /* Use CSS transform to tilt the card based on mouse position */
  transform: perspective(1000px) rotateY(calc(var(--mouse-x) * 10deg)) rotateX(calc(var(--mouse-y) * -10deg));
  transition: transform 0.3s ease-out;
  }
  
  /* Responsive columns - one column layout (vertical) on small screens */
  @media screen and (max-width: 600px) {
    .column {
      width: 100%;
      display: block;
      margin-bottom: 20px;
    }
  }

  .results-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Adjust as needed */
}

.results-text {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px; /* Adjust as needed */
    margin-top: 5vmax;
}

.dark-mode .card {
    background-color: #333; /* Change card background color */
    color: #f5f5f5; /* Change text color inside cards */
    box-shadow: 0 4px 8px 0 rgba(255, 255, 255, 0.2); /* Adjust box shadow */
}

/* Add styles for dark mode in the results text */
.dark-mode .results-text {
    color: #f5f5f5; /* Change text color */
}

/* Add these styles in your CSS file or style section */

.card1 {
    /* Other card styles... */
    transition: transform 0.3s ease; /* Smooth transition for the tilt effect */
  }
  
  .card1:hover {
    transform-origin: center;
  }
  
  .card1:hover {
    transform: perspective(800px) rotateY(calc(-5deg * var(--mouse-x, 0)) rotateX(calc(5deg * var(--mouse-y, 0))));
  }