/*
   New Perspectives on HTML and CSS
   Tutorial 5
   Case Problem 3

   Dome Table Style Sheet
   Author: Taylor Sears
   Date:   8/2/15

   Filename:         dtable.css
   Supporting files: bottom.jpg, bottomleft.jpg, bottomright.jpg,
                     left.jpg,right.jpg, tableback.jpg,
                     top.jpg, topleft.jpg, topright.jpg

*/

/* Table style */

table.domeSpecs {
	font-size: 16px;
	margin-bottom: 20px;
	margin-left: 20px;
	float: right;
	border-collapse: collapse;
	
	background-image: url("tan.png");
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: 100%;
}

/* Table Data Style */

table.domeSpecs tbody td {
	padding-top: 0px;
	padding-bottom: 0px;
	padding-left: 5px;
	padding-right: 5px;
}

/* Table Caption */

table.domeSpecs caption {
	font-size: 18px;
	margin-bottom: 10px;
	letter-spacing: 5px;	
}

/* Table Header */

table.domeSpecs thead {
	border-bottom: 2px solid gray;
	background-image: url("top.jpg");
	background-repeat: repeat;
}

table.domeSpecs thead tr {
	height: 40px;
}

table.domeSpecs thead td {
	padding-top: 0px;
	padding-bottom: 0px;
	padding-left: 5px;
	padding-right: 5px;
	letter-spacing: 2px;
}

table.domeSpecs thead th:first-of-type {
	background-image: url("topleft.jpg");
	background-position: left top;
	background-repeat: no-repeat;
}

table.domeSpecs thead th:last-of-type {
	background-image: url("topright.jpg");
	background-position: right top;
	background-repeat: no-repeat;
}

/* Table Body */

table.domeSpecs tbody tr {
	height: 50px;
	border-bottom: 1px gray;
	border-bottom-style: dotted;
}

table.domeSpecs tbody td:first-of-type {
	background-image: url("left.jpg");
	background-position: left top;
	background-repeat: repeat-y;
}

table.domeSpecs tbody td:last-of-type {
	background-image: url("right.jpg");
	background-position: right top;
	background-repeat: repeat-y;
	text-align: right;
}

table.domeSpecs tbody tr:nth-of-type(even) {
	background-color: rgba(152, 228, 215, 0.6);
}

table.domeSpecs tbody tr:nth-of-type(odd) {
	background-color: rgba(255, 255, 255, 0.6);
}

/* Table Column Styles */

table.domeSpecs col.firstColumn {
	width: 22%;
}

table.domeSpecs col.middleColumn {
	width: 28%;
}

table.domeSpecs col.lastColumn {
	width: 22%;
}

/* Table Footer */

table.domeSpecs tfoot {
	border-top: 2px solid gray;
	text-align: center;
	background-image: url("bottom.jpg");
	background-repeat: repeat;
}

table.domeSpecs tfoot tr {
	height: 40px;
}

table.domeSpecs tfoot tr:first-of-type {
	background-image: url("bottomleft.jpg");
	background-position: left bottom;
	background-repeat: no-repeat;
}

table.domeSpecs tfoot td:last-of-type {
	background-image: url("bottomright.jpg");
	background-position: right bottom;
	background-repeat: no-repeat;
}