/* ============================
   ITWP 1000 - Homework 6
   styles.css
   ============================ */

/* general page setup */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f8f8f8;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* main header */
h1 {
  text-align: center;
  color: #333333;
  margin-top: 20px;
}

/* center the form on the page */
form {
  display: inline-block;
  text-align: left;
  margin: 20px auto;
  background-color: #ffffff;
  border: 2px solid #333333;
  border-radius: 10px;
  padding: 20px 40px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* fieldset and legend styling */
fieldset {
  border: 1px solid #333333;
  border-radius: 8px;
  margin: 20px 0;
  padding: 15px;
}

legend {
  font-weight: bold;
  color: #333333;
}

/* labels and inputs */
label {
  display: block;
  margin: 10px 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  max-width: 300px;
  padding: 5px;
  margin-top: 4px;
  border: 1px solid #999999;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="range"] {
  width: 300px;
  margin-top: 10px;
}

/* checkbox and radio inputs */
input[type="checkbox"],
input[type="radio"] {
  margin-left: 5px;
}

/* submit and reset buttons */
input[type="submit"],
input[type="reset"] {
  background-color: #333333;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background-color: #555555;
}

/* textarea styling */
.textinput {
  width: 100%;
  max-width: 400px;
  height: 100px;
  border: 1px solid #999999;
  border-radius: 5px;
  padding: 5px;
  font-family: Arial, sans-serif;
}

/* comment div styling */
.comment {
  margin-top: 10px;
}

/* footer links */
footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
}

footer a {
  color: #333333;
  text-decoration: none;
  margin: 0 5px;
}

footer a:hover {
  text-decoration: underline;
}
