/*
   New Perspectives on HTML and CSS
   Tutorial 8
   Case Problem 1

   dessertWeb Print Styles
   Author: Mauricio Rivas Briceno
   Date:   11/07/2025

   Filename:         dwprint.css
   Supporting Files: 

*/

@page {
  size: 8.5in 11in;
  margin: 0.5in;
}

/* Step 10 – Hide unnecessary elements when printing */
header,
section#left,
section#right,
nav,
aside,
footer,
hgroup h2,
article p:last-of-type {
  display: none;
}

/* Step 11 - Adjust heading sizes and spacing for printo */
h1 {
  font-size: 200%
  margin-bottom: 0.2in;
}

h2 {
  font-size: 150%;
  margin-top: 0.5in;
}

/* Step 12 - Improve list readability for print */
li {
  line-height: 1.5em;
}

/* Step 13 - Format ordered list for print */
ol {
  margin-left: 0.5in;
  list-style-type: decimal;
}

/* Step 14 - Always start a new page before the last h2 */
h2:last-of-type {
  page-break-before: always;
}


  
	

  
