/*
   Hands-on Project 11-5
   Sung Kim | 7-26-26 | IST-239-W01

   Purpose:
   This project retrieves content for a science fiction review and commentary website.
   The page loads a list of authors from a JSON file and archived reviews from a Perl script.
   It also retrieves podcast information from an XML file and converts it into HTML.
   The project demonstrates how Fetch processes JSON, text, and XML responses.

   This file controls the layout and appearance of the science fiction blog content.

   Filename: styles.css
   Related: project11-05.html, project11-05.js, authorlist.json, sfpod.xml, sfreviews.pl
*/

/* Applies border-box sizing to every page element. */
* {
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}

/* Removes default spacing and borders from common page elements. */
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-size: 100%;
   font: inherit;
   vertical-align: baseline;
}

/* Displays HTML5 structural elements as blocks in older browsers. */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
   display: block;
}

/* Sets the page width, font, background, and centered layout. */
body {
   line-height: 1;
   width: 960px;
   background: white;
   margin: 0 auto;
   font-family: Verdana, Geneva, sans-serif;
}

/* Removes bullets and numbering from lists. */
ol, ul {
   list-style: none;
}

/* Formats the main project heading across the top of the page. */
body > header {
   background: #5472B2;
   width: 100%;
   color: #FFFFFF;
   font-size: 48px;
   text-align: center;
   line-height: 1.5em;
   margin-bottom: 0;
}

/* Formats the main science fiction blog area. */
body > section {
   background-color: #FFDB70;
   margin-top: 0;
   padding: 10px 40px;
   user-select: none;
}

/* Adds spacing around the blog introduction. */
body > section > header {
   margin: 0 auto;
   padding: 20px 0;
}

/* Formats the blog introduction heading. */
body > section > header > h1 {
   font-size: 1.8em;
   text-align: center;
   margin-bottom: 10px;
}

/* Sets readable line spacing for the introduction paragraph. */
body > section header > p {
   line-height: 1.2;
}

/* Positions the archived author list beside the review. */
div#reviewarchives {
   float: left;
   margin: 0 20px 10px 10px;
}

/* Formats the archived reviews heading. */
div#reviewarchives h1 {
   font-size: 0.8em;
   font-weight: bold;
   margin-bottom: 8px;
}

/* Formats the author selection list. */
div#reviewarchives select {
   width: 210px;
   font-size: 1em;
   color: white;
   background-color: rgb(102, 74, 74);
}

/* Sets the width of the book review article. */
article#review {
   width: 650px;
}

/* Formats the selected book title. */
article#review header > h1 {
   font-size: 1.4em;
   font-weight: bold;
   letter-spacing: 0.1em;
   margin-bottom: 5px;
}

/* Formats the selected book author. */
article#review header > h2 {
   font-size: 1.1em;
   font-weight: bold;
   margin-bottom: 20px;
}

/* Formats the review paragraphs. */
article#review > p {
   font-size: 1em;
   line-height: 1.2;
   margin: 0 0 12px;
}

/* Italicizes the first review summary paragraph. */
article#review > p:first-of-type {
   font-style: italic;
}

/* Makes the review rating bold. */
article#review > p:nth-of-type(2) {
   font-weight: bold;
}

/* Positions the podcast summaries on the right side of the page. */
aside#podcastList {
   float: right;
   width: 200px;
   font-size: 0.9em;
}

/* Formats each podcast title. */
/* FIXED: Added the missing colon to the margin-bottom declaration. */
aside#podcastList h1 {
   font-weight: bold;
   margin-bottom: 8px;
}

/* Formats the podcast title links. */
aside#podcastList h1 a {
   text-decoration: none;
   color: gray;
}

/* Formats each podcast summary paragraph. */
aside#podcastList p {
   line-height: 1.2;
   font-size: 0.9em;
   margin-bottom: 20px;
   border-bottom: 1px solid gray;
}
