body { 
  font-size: 12px;
}

.cpecw .wrapper {
  display: grid;
  border: 1px solid #000;
  margin: 0 auto;
  background-color: #fff;
  padding: 0px 1.5em; 
  border-radius: 8px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
  height: 282mm;
}
.cpecw h1 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cpecw h2 {
  font-size: 1.3rem;
}
.cpecw h3 {
  font-size: 1.1rem;
  margin-top: 15px; 
  color: #1c6ea4;
}
.cpecw h4 {
  font-size: 1.1rem;
}
.cpecw h1,
.cpecw h2,
.cpecw h3,
.cpecw h4,
.cpecw h5,
.cpecw h6 {
  clear: both;
  display: block;
  font-family: sans-serif;
}
 
.cpecw p {
  font-family: sans-serif;
}

/*************************/
/* TOP OF DOCUMENT */
/*************************/

.cpecw .header { 
  text-align: center;
}
.cpecw .header h1 {
  text-transform: uppercase;
  font-weight: bold;
}
.cpecw .header img {
  max-width: 300px;
}

/*************************/
/* CERTIFICATE BODY */
/*************************/

.cpecw .cert-body { 
  margin: auto; 
  width: 80%;
  text-align: center;
  background-color: #ccc;
  border: 5px inset #1c6ea4;
  border-radius: 10px;
  padding: 15px;
}
.cpecw .cert-body h3,
.cert-body h2 {
  text-transform: uppercase;
  font-weight: bold;
}
.cpecw .cert-footer {
  width: 49%;
  float: left;
  padding-top: 20px;
}
.cpecw .cert-sign {
  width: 49%;
  text-align: center;
  float: right;
}
.cpecw .cert-sign img {
  max-width: 90px;
  text-align: center;
}

/*************************/
/* COMPLIANCE */
/*************************/

.cpecw .compliance {
  clear: both;
  border: 0px solid #000;
  margin: auto;
  text-align: center;
  padding: 15px;
  width: 100%;
}
.cpecw .comp1 {
  width: 50%;
  float: left;
  text-align: left;
}
.cpecw .comp2 {
  width: 50%;
  float: right;
  text-align: left;
}
.cpecw .compliance h3 {
  font-weight: bold;
  text-transform: uppercase;
}

/*************************/
/* LOWER DOCUMENT */
/*************************/
.cpecw .lower {
  clear: both;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
  text-align: center;  
  padding: 20px 0; 
  font-size: 0.85em;
  width: 95%;
}
.cpecw .lower-left {
  width: 20%;
  float: left; 
  text-align: center;
}
.cpecw .lower-right {
  width: 78%;
  float: right; 
  text-align: justify;
}
.cpecw .lower-left img {
  max-width: 100px; 
  margin: 0 auto;
}

/*************************/
/* FOOTER */
/*************************/

.cpecw .footer {
  clear: both;
  margin: auto; 
  margin-top: 60px;
  text-align: center;
  font-size: 0.75em;
  width: 100%;
}

/*************************/
/* PRINT OVERRIDES */
/************************
*/

@media print {
  @page {
    size: 8.5in 11in;
  }
   
  * {
    overflow: hidden !important;
  } 
  .cpecw.wrapper {
    max-width: 100%;
    border: none;
    padding: 0;
    height: initial;
    overflow: none;
    margin: 0;
  }
  
  .cpecw a,
  a:visited {
    text-decoration: none;
  }
 
  .cpecw .footer {
    font-size: 0.85em;
    margin-top: 60px; 
  }

  .cpecw a[href]:after {
    content: none !important;
  }
 
}