/* Typography */
body {
  background-color: #F1E3D4;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #662D10;
  margin-top: 60px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  color: inherit;
}

/* Custom Styling */
.mystyle {
  font-style: oblique;
  text-align: center;
}

.centered-img {
  display: block;
  margin: 0 auto 40px;
  width: 300px;
  height: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Dropdown Visibility Defaults */
#dropdown-classes,
#dropdown-assignments,
#dropdown-favorites,
#dropdown-programming {
  display: none;
}

/* Navigation Bar */
#sddm {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #662D10;
  z-index: 9999;
}

/* Menu List */
#sddm ul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu Items */
#sddm li {
  position: relative;
  min-width: 180px;
  height: 100%;
  font-size: 14px;
}

/* Menu Links */
#sddm li > a {
  display: block;
  padding: 20px 15px;
  width: 160px;
  text-align: center;
  color: #FFF;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

#sddm li > a:hover {
  background-color: #A86C3A;
}

/* Dropdown Container */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #F1E3D4;
  border: 2px solid #A86C3A;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-width: 160px;
  z-index: 9999;
}

/* Dropdown Visibility Triggers */
#sddm li:hover .dropdown,
#sddm li:focus-within .dropdown,
.dropdown.open {
  display: block;
}

/* Dropdown Links */
.dropdown a {
  display: block;
  padding: 4px 10px;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: #662D10;
  background-color: #F1E3D4;
  text-decoration: none;
  border-bottom: 1px solid #A86C3A;
}

.dropdown a:hover {
  background-color: #662D10;
  color: #FFF;
}

/* Dynamic Content Area */
#class-content {
  outline: none;
}

/* Footer */
.site-footer {
  background-color: #662D10;
  color: #FFF;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  margin-top: 40px;
  width: 100%;
}
/* Contact Form Layout */
form#contactForm {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 20px;
  background-color: #fff;
  border: 2px solid #A86C3A;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Fieldset and Legend */
form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

form legend {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  color: #662D10;
}

/* Labels and Inputs */
form label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #662D10;
}

form input,
form textarea,
form select {
  width: 100%;
  padding: 8px 10px;
  margin-top: 5px;
  border: 1px solid #A86C3A;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  box-sizing: border-box;
}

/* Placeholder Styling */
::placeholder {
  color: #A86C3A;
  opacity: 0.7;
}

/* Submit Button */
form button[type="button"] {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #662D10;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button[type="button"]:hover {
  background-color: #A86C3A;
}
/* Input Width Variants */
.input-short {
  max-width: 200px;
}

.input-medium {
  max-width: 300px;
}

.input-full {
  width: 100%;
}

/* Optional: tooltip-style messages */
.form-note {
  font-size: 0.9em;
  color: #555;
  margin-top: 4px;
}

/* Validation feedback */
input.invalid,
textarea.invalid {
  border: 2px solid red;
  background-color: #ffe6e6;
}

input.valid,
textarea.valid {
  border: 2px solid green;
}


/* Optional: tooltip-style messages */
.form-note {
  font-size: 0.9em;
  color: #555;
  margin-top: 4px;
}

.error-message {
  color: red;
  font-size: 0.85em;
  display: none;
}

