/* JavaScript 7th Edition Chapter 12 Chapter case Bonsai Expressions Style sheet 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 rules */
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;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
   display: block;
}

html {
   display: flex;
   height: 100%;
}
body, html {
   width: 100%;
   height: 100%;
   min-height: 100vh; /* Ensures the minimum height of the body is at least the height of the viewport */
}


body {
   font-family: Arial, sans-serif;
   background-position: center center; 
   background-repeat: no-repeat;
   background-attachment: fixed; 
   background-size: contain; 
   margin: 0; 
}



header, footer {
   background-color: #233916;
   color: rgba(22, 20, 20, 0.866);
   padding: 10px 0;
   text-align: center;
}

nav ul {
   list-style-type: none;
   padding: 0;
}

nav ul li {
   display: inline;
   margin-right: 10px;
}

nav ul li a {
   color: rgba(18, 6, 6, 0.863);
   text-decoration: none;
}

main {
   margin: 15px;
   padding-bottom: 60px; 
}


article {
   margin-bottom: 20px;
}

footer {
   font-size: 0.8em;
   position: fixed;
   bottom: 0;
   width: 100%;
   box-sizing: border-box;
   padding: 10px; 
   background-color: #233916; 
   color: #fff; 
   text-align: center; 
}
/* New styles for links in the footer */
footer a {
   color: #ffffff; /* Sets link color to white */
   text-decoration: none;
}

footer a:hover, footer a:active {
   color: #cccccc; /* Lighter grey on hover/active */
}

section {
   background-color: white;
   box-shadow: 5px 0 20px #000000, -5px 0 20px rgb(120, 120, 120);   
   flex: 1;
}

section > h1 {
   text-align: center;
   padding-top: 20px;
   font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
   font-size: 2.3em;
   color: rgba(91,155,213,1.00);
   letter-spacing: 0.08em;
}

span.plusminus img {
   display: inline-block;
   width: 30px;
   margin: -5px 30px -5px 10px;
}
dl#faq {
   display: block;
   width: 85%;
   margin: 0 auto;
   padding-bottom: 10px;
   font-family: Segoe, "Segoe UI", "DejaVu Sans", "Trebuchet MS", Verdana, "sans-serif";
}

dl#faq dt {
   background: url("images/minus.png") left center/25px no-repeat ;   
   font-size: 1.4em;
   display: block;
   margin: 10px 0 10px;
   text-indent: 60px;
   color: rgba(91,155,213,1.00); 
   cursor: pointer;
   user-select: none;
}

/* Style for dt when the answer is visible (minus icon shown) */
dl#faq dt {
   background: url("images/minus.png") left center/25px no-repeat;
   cursor: pointer;
   /* Other styles... */
}

/* Style for dt when the answer is hidden (plus icon shown) */
dl#faq dt.hiddenAnswer {
   background: url("images/plus.png") left center/25px no-repeat;
}

/* Initially hide the answer */
dt + dd {
   display: none;
}

/* When the hiddenAnswer class is not present on dt, display the answer */
dt:not(.hiddenAnswer) + dd {
   display: block;
}

/* Styles for paragraphs within the dd element */
dl#faq dd p {
   font-size: 1.2em;
   line-height: 1.2;
   margin: 0 0 15px 65px;
   /* Other styles... */
}

/* Footer styles... */


footer {
   background-color: rgba(91,155,213,1.00);
   box-shadow: 5px 0 20px #000000, -5px 0 20px rgb(120, 120, 120);   
   height: 50px;
}
footer p {
   color: ivory;
   text-align: center;
   line-height: 3;

}

footer p span {
   color: #ffab00;
}

footer {
   font-size: 0.8em;
   position: fixed;
   bottom: 0;
   width: 100%;
   box-sizing: border-box;
   padding: 10px; 
   background-color: #233916; 
   color: #fff; 
   text-align: center; 
}


.hidden {
   display: block; /* or 'flex', 'grid', etc., depending on your layout needs */
}


