/*
   Hands-on Project 2-5
   Sung Kim | 6-7-26 | IST-239-W01
   Program: Calculator App 
   Purpose: 
      
   This stylesheet defines the visual layout and styling for a web-based calculator.
   It includes a CSS reset, page structure styling, and formatting for the calculator
   table, buttons, and display window to create a consistent user interface.

   Filename: styles.css
   Related: project02-05.html, project02-05.js
*/

/* Reset box-sizing for consistent element sizing */
* {
   box-sizing: border-box;
}

/* Reset default browser styles for all 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,
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;
}

/* Ensure HTML5 elements render properly in older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
   display: block;
}

/* Page layout and base styling */
body {
   line-height: 1;
   width: 960px;
   background: white;
   margin: 30px auto;
   font-family: Verdana, Geneva, sans-serif;
   position: relative;
}

/* Remove default list bullet styling */
ol, ul {
   list-style: none;
}

/* Header styling */
header {
   background: #330570;
   width: 100%;
   color: #FFFFFF;
   font-size: 48px;
   text-align: center;
   line-height: 1.5em; 
}

/* Main content area styling */
article {
   width: 960px;
   height: 450px;
   text-align: left;
   background: #FFCF40;
   padding-top: 25px;
}

/* Calculator table container styling */
table#calculator {
   background-color: rgb(211, 211, 211);
   border: 10px outset rgb(92, 92, 92);
   border-radius: 25px;
   padding: 15px;
   margin: 0 auto;
   box-shadow: rgb(101, 101, 101) 20px 10px 20px;
}

/* Calculator cell sizing and alignment */
table#calculator td {
   width: 40px;
   height: 40px;
   margin: 10px;
   vertical-align: middle;
}

/* Calculator button styling */
table#calculator input {
   border-radius: 7px;
   width: 100%;
   height: 100%;
}

/* Calculator display (textarea) styling */
table#calculator textarea {
   width: 100%;
   height: 100px;
   background-color: rgb(55, 105, 62);
   font-size: 1.4em;
   color: rgba(255, 255, 255, 0.7);
}

/* Optional decimal row styling (if used) */
table#calculator td#decimalTD {
   font-size: 0.9em;
   text-align: right;
}

/* Decimal input field styling */
table#calculator input#decimals {
   width: 35px;
   height: 20px;
   background: transparent;
   text-align: center;
}

/* Styling for Enter button (spans multiple rows) */
.enterButton {
   height: 100%;
   min-height: 140px;
   display: flex;
   justify-content: center;
   align-items: center;
   font-size: 1.1em;
   background-color: #379237;
   color: white;
   font-weight: bold;
}