body {
  display: flex;
  display: -webkit-flex; /* NEW */
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  background-color: #F5DFAF56; 
}

.container {
  max-width: 1080px;
  padding-left: 85px;
  padding-right: 85px;
  text-align: center;
  height: 100%;
  height: auto;
  align-items: center;
  width: 80%; /* Adjust the width to your preference */
  margin-left: auto; /* Center the form horizontally */
  margin-right: auto;
}

h1 {
  font-size: 70px;
  margin-bottom: 20px;
  font-family: 'Grenze Gotisch';
  color: #4A4335;
}

.form {
  margin-bottom: 20px;
  display: flex;
  position: relative;
  
}

textarea#searchInput {
  flex: 1; /* Allows textarea to fill available space */
  padding: 10px 20px; /* Adjust padding as needed */
  margin-right: 10px; /* Ensure there is space between textarea and button */
  

  width: 90%; /* Fixed width */
  font-size: 16px;
  border: none;
  line-height: 1.5; /* This is typical for textareas */
  resize: none; /* Prevent manual resizing */
  overflow: hidden; /* Hide the scrollbar */
  background: none; 
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  
}


textarea#searchInput:focus {
  outline: none; /* This removes the blue border */
  /* Consider adding another style for visual feedback, for example: */
}


.search-container {
  text-align: center;
  position: relative;
  align-items: center;
  width: 100%; /* This ensures that the search container takes up all available horizontal space */
  display: flex;
  /* justify-content: center; */
  background: #fff; /* Assuming a white background */
  border-radius: 22px;
  /* box-shadow: 1px 2px 10px 1px rgba(0, 0, 0, 0.1); */
  padding-top: 1px;
  padding-bottom: 1px;
  padding-left: 1px;
  padding-right: 1px;
}



.search-inner {
  display: flex; /* Use Flexbox */
  align-items: center; /* Center items vertically */
  justify-content: space-between; /* Maximize space between textarea and button */
  padding-right: 25px; /* Adjust padding to ensure button has space on it's right side*/
  width: 100%; /* Use full width of the parent container */
  margin: auto; /* Center the search-inner container */
  position: relative; /* Relative positioning for the button */
}





form#questionInputForm {
  /* this makes the input clickable area spread to through the whole div */
  width: -webkit-fill-available;
  /* aligns the text to the left more strongly */
  text-align: left;
}




#clearBtn {
  cursor: pointer;
  /* below padding makes the button more clickable*/
  padding-top: 5px;
  padding-bottom: 5px;
  padding-right: 5px;
  padding-left: 5px;
  margin: 0;
  background: transparent;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: none; 
  transform: translateY(10%); /* For some reason this needs to be here to vertically align the x button within the search container */
}

#clearBtn svg {
  fill: rgba(0, 0, 0, 1); /* Change color of SVG here */
  width: 20px; /* Adjust the size of SVG here */
  height: 20px; /* Adjust the size of SVG here */
}

#clearBtn:hover svg {
  fill: rgba(0, 0, 0, 1); /* SVG color changes on hover */
}


/* This whole section might not be needed, but the styling lessons from this can be used on the new textarea input */
input[type="text"] {
  flex: auto; /* Use flex to make the input field grow and take available space */
  width: 100%; /* Adjust the width to your preference */
  /*iPhone has weird user agent based styling or something. so these margins combat that*/
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px;
  padding: 15px;
  box-shadow: 1px 2px 10px 1px rgba(0, 0, 0, 0.1);
  border-radius: 30px 30px 30px 30px;
  overflow: hidden;
  border: 0.35px rgba(0, 0, 0, 0.20) solid;
  -webkit-appearance: none;
  justify-content: flex-start;
  align-items: flex-start;
  display: inline-flex;
  resize: none;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}





.question {
  text-align: left;
  width: 100%;
  margin: 20px auto;
  display: none;
}

.questionOutput {
  /* width: 100%;
  margin-left: auto; 
  margin-right: auto;
  padding: 10px; */

  width: 94%;
  margin-left: auto; /* Center the textarea horizontally */
  margin-right: auto;
  margin-top: 2%; /* Add some top margin for spacing */
  padding-top: 3%;
  padding-right: 3%;
  padding-bottom: 3%;
  padding-left: 3%;
  font-size: 24px;
  border: none;
  resize: none;

  background-color: #ffffff;
  border-radius: 30px;
  
  color:#201d17;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}





.answer {
  display: none; /* Hide the answer section initially */
  text-align: left;
  width: 100%;
  margin-left: auto; /* Center the textarea horizontally */
  margin-right: auto;
}

h3 {
  font-size: 30px;
  font-family: 'Grenze Gotisch';
  color: #4A4335;
}

textarea#answerOutput {
  width: 94%;
  margin-left: auto; /* Center the textarea horizontally */
  margin-right: auto;
  /* Add some top margin for spacing */
  /* margin-top: 2%;  */
  padding-top: 3%;
  padding-right: 3%;
  padding-bottom: 3%;
  padding-left: 3%;
  font-size: 24px;
  border: none;
  resize: none;
  /* This removes the orange border */
  /* outline: none;  */
  border-radius: 30px; 
  -webkit-appearance: none;
  justify-content: flex-start; 
  align-items: flex-start; 
  gap: 10px; 
  display: inline-flex;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: #ffffff; 
  color:#201d17;
  /*   Allow vertical scrolling if the content exceeds */
  /* overflow-y: auto;  */
  /* Needed to show scroll bar on Apple devices */
  /* -webkit-overflow-scrolling: touch;  */
}


textarea#answerOutput:focus {
  outline: none; /* This removes the blue border */
}




.spinner {
  border: 4px solid #f3f3f3; /* Light gray border */
  /* border-top: 4px solid #95B7F5; Blue border */
  border-top: 4px solid #59719F; /* Darker Blue border */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite; /* Animation for spinning */
  margin: 20px auto; /* Adjust the margin to position the spinner */
  display: none; /* Hide the spinner initially */
}

@keyframes spin {
  0% { transform: rotate(0deg); } /* Starting position */
  100% { transform: rotate(360deg); } /* Ending position */
}










/* Styles for the button container */
.button-group {
  display: flex;            /* Use Flexbox layout */
  justify-content: right;  /* Horizontally center the buttons */
  gap: 10px;                /* Add space between buttons */
  margin-top: 6px;
}


/* Style the buttons */
button {
  background-color: white;

  display: inline-block;    /* Make the buttons inline elements */
  margin-top: 0;            /* Remove the top margin since buttons are now side by side */
  border: none;
  border-radius: 30px; 

  align-items: center;

  color: black;
  padding: 10px 20px;
  text-align: center;
  display: block;

  padding: 10px 30px; /* Increase the padding to make the buttons larger */
  transition: box-shadow 0.2s, transform 0.2s; /* Smooth transition for shadow and transform */
}



/* Style when button is pressed down */
button:active {
  box-shadow: none; /* Remove box-shadow to give it a flat look */
  transform: translateY(3px); /* Slightly move the button downwards */
  transform: scale(0.95); /* Reduces the button's size to 95% */
}



/* Style the icons */
button i {
  font-size: 20px !important; /* Increase the font size to make the icons larger. the !important directive here is indeed needed.*/
}







#copyTexttoClipboard {
  color: #474747db;
}


#goodResponseButton {
  /* color: #A4EDB7; Easter version  */
  color: #73a5a0db;

}

#badResponseButton {
  /* color: #F5A2CC; Easter version */
  color: #B4593Cdb;
}


#submitFeedbackButton {
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}




textarea#feedbackText {
  resize: none;
  height: 200px;
  width: 94%;

  align-items: center;
  text-align: left;
  font-size: 16px;
  border: none;
  border-radius: 30px; 
  -webkit-appearance: none;
  outline: none; /* This removes the blue border */

  margin-left: auto; /* Center the textarea horizontally */
  margin-right: auto;

  margin-top: 10px; /* Add some top margin for spacing */
  margin-bottom: 10px; /* Add some top margin for spacing */

  padding-top: 3%;
  padding-right: 3%;
  padding-bottom: 3%;
  padding-left: 3%;

  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}








.feedback-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 5px;
  font-size: 16px;
  display: none;
  z-index: 2;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}








/*======================================= Responsive Styles =======================================*/


/*========================== Mobile Styles ==========================*/

@media screen and (max-width: 480px) {
  
  .container {
    /* Adjust the max-width for phones */
    text-align: center;
    padding: 30px;
  }
  
  h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }
  
  input[type="text"] {
    font-size: 14px;
    padding: 12px;
  }
  
  h3 {
    font-size: 24px;
  }

  .questionOutput {
    font-size: 20px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }
  
  textarea#answerOutput {
    font-size: 20px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }

  .button-group {
    gap: 4px;                /* Add space between buttons */
  }

    /* Style the buttons */
  button {
    padding: 8px 22px; /* Increase the padding to make the buttons larger */
  }

  /* Style the icons */
  button i {
    font-size: 18px !important; /* Increase the font size to make the icons larger. the !important directive here is indeed needed.*/
  }

  textarea#feedbackText {
    font-size: 15px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }
  
  p {
    font-size: 14px;
  }
}


















/*========================== TABLET Styles ==========================*/
@media screen and (min-width: 481px) and (max-width: 768px) {
 
  .container {
    padding: 30px;
  }
  
  h1 {
    font-size: 50px;
    margin-bottom: 30px;
  }
  
  input[type="text"] {
    font-size: 18px;
  }
  
  h3 {
    font-size: 20px;
  }
  

  .questionOutput {
    font-size: 20px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }

  textarea#answerOutput {
    font-size: 20px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }

  .button-group {
    gap: 8px;                /* Add space between buttons */
  }

  /* Style the buttons */
  button {
    padding: 10px 22px; /* Increase the padding to make the buttons larger */
  }

  /* Style the icons */
  button i {
    font-size: 21px !important; /* Increase the font size to make the icons larger. the !important directive here is indeed needed.*/
  }

  textarea#feedbackText {
    font-size: 15px;
    width: 90%;
    padding-right: 5%;
    padding-left: 5%;
    padding-top: 4%;
    padding-bottom: 4%;
  }
  
  p {
    font-size: 18px;
  }
}
