@charset "utf-8";

/*
   New Perspectives on HTML5 and CSS3, 8th Edition
   Tutorial 5
   Review Assignment
   
   Author:   Djenebou Sawadogo 
   Date:     10/31/2025
   
   Filename: tf_print2.css

   This file contains the printer styles used with the Trusted
   Friends Parents Tips page

*/



/* Hidden Objects */

nav, header h1, section#left, footer {
  display: none;
}

/* Page Box Styles */

@page {
  size: 8.5in 11in;
  margin: 0.5in;
}

/* Header Styles */

header img {
  display: block;
  width: 100%;
}

/* Typography Styles */

article header {
  margin-bottom: 0.2in;
}
article h1 {
  font-size: 24pt;
  line-height: 26pt;
}
aside {
  background-color: rgb(211, 211, 211);
  margin-top: 0.3in;
}
aside h1 {
  font-size: 18pt;
  line-height: 20pt;
}
aside img {
  width: 0.8in;
}
p {
  font-size: 12pt;
  margin: 0.1in 0;
}


/* Hypertext Styles */

a {
  color: black;
  text-decoration: none;
}
a::after {
  content: " (" attr(href) ")";
  font-weight: bold;
  word-wrap: break-word;
}


/* Page Break Styles */

aside {
  page-break-after: always;
}
ol, ul, img {
  page-break-inside: avoid;
}
p {
  orphans: 3;
  widows: 3;
}

@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body::before {
    content: "PRINT CSS ACTIVE";
    display: block;
    padding: 8px;
    background: #ddd;
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
  }
}
