/* JavaScript 7th Edition
   Chapter 11
   Hands-on Project 11-4

   Filename: styles.css
*/

/* Apply natural box layout model to all elements */
* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

/* Body and page layout */
body {
   font-family: Verdana, Geneva, sans-serif;
   background-color: #f4f6f9;
   color: #222;
   line-height: 1.5;
}

/* Header styling */
header {
   background-color: #f39c12;
   color: #ffffff;
   padding: 20px;
   text-align: center;
   border-bottom: 4px solid #d35400;
}

header h1 {
   font-size: 1.8em;
   letter-spacing: 0.5px;
}

/* Main content container */
article {
   max-width: 720px;
   margin: 30px auto;
   background-color: #ffffff;
   padding: 25px 30px;
   border-radius: 8px;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

article h2 {
   color: #d35400;
   margin-bottom: 18px;
   border-bottom: 2px solid #f0f0f0;
   padding-bottom: 8px;
}

/* Table styling for UV Index and Safe Exposure tables */
table {
   width: 100%;
   border-collapse: collapse;
   margin-bottom: 25px;
}

caption {
   font-weight: bold;
   font-size: 1.1em;
   text-align: left;
   margin-bottom: 10px;
   color: #333;
}

th, td {
   border: 1px solid #dcdcdc;
   padding: 10px 14px;
   text-align: left;
}

th {
   background-color: #fdf2e9;
   color: #333;
   width: 65%;
}

td {
   background-color: #ffffff;
   font-weight: bold;
   color: #1a5276;
   text-align: right;
}

tr:nth-child(even) th {
   background-color: #fae5d3;
}