/*
Dwight Daniels Jr, July 7, 2026, IST239-W01, Hands-On Project 07-05

This stylesheet formats the Word Distribution Analysis page.
It controls the page layout, document display areas,
and the word frequency comparison tables.

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 browser default styles */
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;
}

/* Display HTML5 elements correctly */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
   display: block;
}

/* Page body */
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;
}

/* -------------------- Project Styles ------------------ */

/* Main page container */
body > div {
   background-color: #FFDB70;
   margin-top: 0;
   padding-bottom: 30px;
}

/* Main page heading */
body > div > h1 {
   text-align: center;
   font-size: 1.8em;
   font-weight: bold;
   padding-top: 10px;
   margin-bottom: 5px;
}

/* Author headings */
div#author1 > h1,
div#author2 > h1 {
   font-size: 1.2em;
   text-align: center;
   margin: 0;
   padding: 10px 0;
   width: 100%;
}

/* Document section */
section#docs {
   display: flex;
   flex-flow: row nowrap;
   justify-content: center;
}

/* Document display area */
article {
   width: 400px;
   font-size: 0.8em;
   height: 200px;
   overflow: auto;
   padding: 5px;
   margin: 10px 10px 20px;
   background-color: ivory;
   border: 1px solid gray;
}

/* Article headings */
article h1 {
   font-size: 1.4em;
   font-weight: bold;
}

article h2 {
   font-size: 1.15em;
   font-weight: bold;
}

/* Article paragraphs */
article p {
   margin: 10px 0;
}

/* Word count section */
section#counts {
   display: flex;
   flex-flow: row nowrap;
   justify-content: center;
}

/* Word count headings */
section#counts h1 {
   font-size: 1.2em;
   margin-bottom: 5px;
   margin-top: 0;
   border-bottom: 1px solid gray;
   padding-bottom: 5px;
}

/* Word length column */
section#counts div#count {
   text-align: center;
   width: 80px;
   border-left: 1px solid gray;
   border-right: 1px solid gray;
   padding: 0 6px;
}

/* Document 1 frequency column */
section#counts div#count1 {
   text-align: right;
   width: 80px;
   padding-right: 6px;
}

/* Document 2 frequency column */
section#counts div#count2 {
   text-align: left;
   width: 80px;
   padding-left: 6px;
}