/*  JavaScript 7th Edition
    Chapter 11
    Project 11-3

    Filename: styles.css
*/

/* apply a natural box layout model to all elements */
* {
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}

/* reset rules */
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,
fieldset, 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-size: 100%;
   font: inherit;
   vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
   display: block;
}

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

ol, ul {
   list-style: none;
}

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

/* main content */
article {
   width: 960px;
   text-align: left;
   background: #FFDB70;
   padding: 20px;
   min-height: 450px;
}

article img {
   display: block;
   margin: 0 auto 15px auto;
}

article h1 {
   font-weight: bold;
   font-size: 28px;
   text-align: center;
   margin-bottom: 20px;
   color: #2c3e50;
}

/* login form */
form {
   width: 420px;
   margin: 0 auto 25px auto;
   background: #FFFFFF;
   padding: 20px;
   border: 2px solid #5472B2;
   border-radius: 6px;
}

form label {
   display: inline-block;
   width: 120px;
   font-weight: bold;
   margin-bottom: 12px;
   color: #333;
}

form input[type="text"],
form input[type="password"] {
   width: 240px;
   padding: 6px;
   margin-bottom: 12px;
   border: 1px solid #999;
   border-radius: 4px;
}

form input[type="button"] {
   display: block;
   margin: 10px auto 0 auto;
   padding: 8px 20px;
   font-size: 16px;
   font-weight: bold;
   background: #5472B2;
   color: #FFFFFF;
   border: none;
   border-radius: 4px;
   cursor: pointer;
}

form input[type="button"]:hover {
   background: #3d568a;
}

/* order result container */
div#orderResult {
   width: 720px;
   margin: 0 auto;
   text-align: center;
   font-size: 16px;
   color: #222;
}

/* summary table */
table#summary {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 25px;
   background: #FFFFFF;
}

table#summary th,
table#summary td {
   border: 1px solid #5472B2;
   padding: 10px;
   text-align: left;
}

table#summary th {
   width: 200px;
   background: #5472B2;
   color: #FFFFFF;
   font-weight: bold;
}

/* individual order tables */
table.orderList {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 20px;
   background: #FFFFFF;
}

table.orderList th,
table.orderList td {
   border: 1px solid #666;
   padding: 8px 10px;
   text-align: left;
}

table.orderList tr:first-child th {
   background: #2c3e50;
   color: #FFFFFF;
   font-weight: bold;
}

table.orderList tr:nth-child(2) th {
   background: #d9e2f3;
   color: #111;
   font-weight: bold;
}

table.orderList td:nth-child(2),
table.orderList td:nth-child(3),
table.orderList td:nth-child(4),
table.orderList th:nth-child(2),
table.orderList th:nth-child(3),
table.orderList th:nth-child(4) {
   text-align: right;
}