/* Reset some default styling */
body, h1, h2, h3, p, form, input, textarea, button {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* Apply a natural box layout model to all elements */
*, *:before, *:after {
  box-sizing: border-box;
}

/* Set base body styling */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Form styling */
form {
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 0; /* Remove top-left border-radius of the form */
  border-top-right-radius: 0; /* Remove top-right border-radius of the form */
  margin-top: 0; /* Remove top margin to attach directly below the tabs */
}

/* Label styling */
label {
  display: block;
  margin-bottom: 10px;
  color: #333;
}

/* Textarea and input field styling */
textarea, input[type="text"] {
  width: calc(100% - 22px); /* full width - padding */
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 16px;
  color: #333;
}

/* Submit button styling */
input[type="submit"] {
  width: 100%;
  padding: 10px;
  border: none;
  background-color: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #0056b3;
}

/* Counter styles */

.textarea-container {
  position: relative;
}

#char-counter {
  text-align: right;
  font-size: 0.8em;
  color: #666;
  margin-top: 5px; /* Add a small space above the counter */
}

/* Responsive styling */
@media only screen and (max-width: 600px) {
  body, form {
      padding: 10px;
  }
}

/* Success message styling */
.success-message {
  background-color: #4CAF50; /* Green background */
  color: white; /* White text */
  padding: 10px; /* Some padding */
  margin-bottom: 15px; /* Space below the message */
  border-radius: 5px; /* Rounded corners */
}

/* Hide the message by default */
.success-message.hidden {
  display: none;
}

input[type="text"] {
  margin-bottom: 0px; /* Space between fields */
  width: 100%; /* Adjust width as needed */
  padding: 5px;
  /* Additional styling */
}

.color-mapping-banner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 10px;
  margin: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.color {
  margin: 5px;
  padding: 5px;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ddd; /* Slight outline */
  border-radius: 4px; /* Optional: rounded corners */
}
/* Tab container styling */
.tab {
  overflow: hidden;
  border: 1px solid #ddd;
  background-color: #f1f1f1;
  border-bottom: none; /* Remove bottom border to attach tabs to the form */
}

/* Style the buttons inside the tab */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  font-size: 17px;
  border-bottom: 2px solid transparent; /* Add a transparent bottom border to maintain button height when active */
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #fff;
  border-bottom: 2px solid #fff; /* Make active tab and content area look connected */
}

/* Tab content styling */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-top: none; /* Ensure content is visually part of the tab */
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.note-card {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px 0;
  cursor: pointer;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.note-card:hover {
  background-color: #f0f0f0;
}

.pre-written-notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 10px;
}

.pre-written-notes button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.pre-written-notes button:hover {
  background-color: #0056b3;
}

.view-board-button-container {
  text-align: center; /* Center the button horizontally */
  margin-top: 20px; /* Space above the button */
}

.view-board-button-container button {
  padding: 10px 20px; /* Padding inside the button for better touch area */
  background-color: #007bff; /* Blue background, typical for interactive elements */
  color: white; /* White text for contrast */
  border: none; /* No border for a cleaner look */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.view-board-button-container button:hover {
  background-color: #0056b3; /* Darker blue on hover for visual feedback */
}