nav {
  background-color: #333;
  padding: 15px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #555;
}

body {
  font-family: sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
  color: #333;
}

.teachable-machine-section {
  max-width: 600px;
  margin: 50px auto 30px auto;
  padding: 30px;
  background-color: #e0f2f7; /* Light blue background for this section */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.teachable-machine-section h1 {
  color: #007bff;
  margin-bottom: 20px;
  font-size: 2em;
}

.teachable-machine-section p {
  margin-bottom: 25px;
  font-size: 1.1em;
  color: #555;
}

.teachable-machine-section button {
  background-color: #28a745; /* Green button for start */
  margin-top: 15px;
  padding: 15px 30px;
  font-size: 1.2em;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  border: none;
  color: white;
}

.teachable-machine-section button:hover:not(:disabled) {
  background-color: #218838;
  transform: translateY(-2px);
}

.teachable-machine-section button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

input[type="file"] {
  display: block; /* Make it a block element */
  margin: 20px auto; /* Center it */
  padding: 10px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background-color: #ffffff;
  color: #333;
}

#uploaded-image {
  margin-top: 20px;
  max-width: 100%;
  height: auto;
  border: 2px solid #007bff;
  border-radius: 8px;
}


#label-container {
  margin-top: 20px;
  font-size: 1.2em;
  color: #333;
  min-height: 50px; /* Give some space for labels */
}

#label-container div {
  margin-bottom: 5px;
  font-weight: bold;
  color: #0056b3;
}

main {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

main h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box; /* Ensures padding doesn't increase width */
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Existing button style for contact form, ensure it's not overridden by new section's button style */
main button[type="submit"] {
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

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

/* Remove old webcam-container styles as it's no longer used */
#webcam-container {
  display: none;
}
