/*
   Hands-on Project 4-3
   Sung Kim | 6-14-26 | IST-239-W01
   Program: Book Review Character Counter Styling
   
   Purpose:
   This stylesheet formats the book review page including layout, textarea styling,
   character counter display, and warning message formatting.

   Filename: styles.css
   Related: project04-03.html, project04-03.js
*/

/* Applies consistent box model sizing to all elements */
* {
   box-sizing: border-box;
}

/* Resets default browser styling for consistency */
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, section {
   margin: 0;
   padding: 0;
   border: 0;
   font-size: 100%;
   vertical-align: baseline;
}

/* Ensures HTML5 elements display correctly */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
   display: block;
}

/* Page layout styling */
body {
   line-height: 1;
   width: 960px;
   margin: 0 auto;
   background: white;
   font-family: Verdana, Geneva, sans-serif;
}

/* Removes list styling */
ol, ul {
   list-style: none;
}

/* Header styling */
header {
   background: #5472B2;
   width: 100%;
   color: #FFFFFF;
   font-size: 48px;
   text-align: center;
   line-height: 1.5em;
}

/* Main content container */
article {
   width: 960px;
   height: 600px;
   background: #FFDB70;
   position: relative;
   text-align: left;
}

/* Section title styling */
article h2 {
   font-weight: normal;
   font-size: 2em;
   padding: 20px 0 10px 0;
   text-align: center;
   margin: 0;
}

/* Textarea input styling */
article textarea#comment {
   display: block;
   width: 75%;
   margin: 10px auto;
   height: 350px;
   padding: 15px;
   text-align: left;
   font-size: 1.3em;
   border: 1px solid rgb(102, 51, 0);
}

/* Character count and container layout */
div {
   width: 500px;
   margin-left: 12.5%;
}

/* Warning message styling */
div#warningBox {
   color: red;
   margin-top: 15px;
   font-weight: bold;
}