/* JavaScript 7th Edition
   Chapter 9
   Hands-on Project 9-2
   Filename: styles.css
*/

/* Reset */
* {
  box-sizing: border-box;
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
form, label, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output,
ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* Structure */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  width: 960px;
  background: #ffffff;
  margin: 0 auto;
  font-family: Verdana, Geneva, sans-serif;
  color: #222;
}

ol, ul {
  list-style: none;
}

/* Header */
header {
  background: #5472b2;
  width: 100%;
  color: #ffffff;
  font-size: 48px;
  text-align: center;
  line-height: 1.5em;
  margin-bottom: 0;
}

/* Section */
section {
  background-color: #ffdb70;
  margin-top: 0;
  padding-bottom: 20px;
  min-height: 540px;
}

/* Titles */
section h1 {
  font-size: 2.8em;
  text-align: center;
  margin: 0;
  padding: 20px 0;
}

section h2 {
  font-size: 1.6em;
  text-align: center;
  margin: 0;
  padding: 20px 0;
}

/* Form intro */
#intro {
  font-size: 1em;
  width: 88%;
  margin: 0 auto 15px;
  border-bottom: 1px solid gray;
  padding-bottom: 8px;
  line-height: 1.3;
}

/* Form */
form#profileForm {
  width: 90%;
  margin: 0 auto;
  border-bottom: 1px solid gray;
  padding: 10px 0 20px;
}

/* Form table */
table#profile {
  width: 100%;
  font-size: 1em;
  margin: 0 auto 10px;
}

table#profile col#firstCol {
  width: 160px;
}

table#profile td {
  vertical-align: top;
  height: 38px;
  padding: 4px 8px;
}

table#profile label {
  display: inline-block;
  padding-top: 8px;
}

table#profile input,
table#profile select,
table#profile textarea {
  font-size: 1em;
  font-family: Verdana, Geneva, sans-serif;
}

table#profile input,
table#profile select {
  width: 240px;
  padding: 4px 6px;
}

table#profile textarea {
  width: 90%;
  height: 90px;
  padding: 6px;
  resize: vertical;
}

/* Submit button */
#submitRow {
  text-align: center;
  padding-top: 12px;
}

#submitButton {
  width: 150px;
  letter-spacing: 3px;
  background-color: rgb(193, 193, 193);
  border: 1px solid #999;
  border-radius: 12px;
  padding: 5px 10px;
  cursor: pointer;
}

#submitButton:hover,
#submitButton:focus {
  background-color: #e6e6e6;
}

/* RESULT TABLE (result) */
table#order {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: ivory;
}

table#order th {
  border: 1px solid gray;
  text-align: left;
  width: 180px;
  padding: 10px;
  background-color: rgba(232, 191, 102, 1);
}

table#order td {
  border: 1px solid gray;
  padding: 10px;
  line-height: 1.4;
  background-color: #e6e6dc;
}

/* Footer */
footer {
  width: 960px;
  margin: 18px auto 30px;
  font-size: 0.95em;
  line-height: 1.4;
}

footer p {
  margin-bottom: 8px;
}

footer a {
  color: #1d4ea2;
}