/*!
 * HTML-Sheets-of-Paper (https://github.com/delight-im/HTML-Sheets-of-Paper)
 * Copyright (c) delight.im (https://www.delight.im/)
 * Licensed under the MIT License (https://opensource.org/licenses/MIT)
 */

 .page {
   /* Styles for better appearance on screens only -- are reset to defaults in print styles later */

   /* Reflect the paper width in the screen rendering (must match size from @page rule) */
   width: 21cm;
   /* Reflect the paper height in the screen rendering (must match size from @page rule) */
   min-height: 29.7cm;

   /* Reflect the actual page margin/padding on paper in the screen rendering (must match margin from @page rule) */
   padding-left: 2cm;
   padding-top: 2cm;
   padding-right: 2cm;
   padding-bottom: 2cm;
}
/* Use CSS Paged Media to switch from continuous documents to sheet-like documents with separate pages */
@page {
  /* You can only change the size, margins, orphans, widows and page breaks here */

  /* Paper size and page orientation */
  size: A4 portrait;

  /* Margin per single side of the page */
  margin-left: 2cm;
  margin-top: 2cm;
  margin-right: 2cm;
  margin-bottom: 2cm;
}

.page {
  display: flex; 
  flex-direction: column;
}

.page-title {
  padding: 0 100px;
  height: 5rem;
  border-bottom: 3px solid black;
}

.page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  flex: 1;
}

.first-part h4 {
  font-size: 2rem;
  font-weight: 400;
}

.first-part {
  width: 90%;
  font-size: 1.6rem;
}

.first-part h5,
.second-part h5 {
  font-size: 2rem;
  font-weight: 700;
}

.first-part {
  padding-top: 20px;
  border-bottom: 2px solid black;
}

.first-part .first-part-title, 
.first-part .first-part-body {
  margin-bottom: 3rem;
}

.first-part .first-part-title i {
  margin: 0 10px 15px 0;
  color: var(--contractor-primary);
}

.first-part .first-part-title a {
  text-decoration: underline;
}

.first-part .first-part-title a:hover {
  color: var(--contractor-primary);
}


.second-part .second-part-content,
.third-part .third-part-content {
  margin-bottom: 3rem;
}

.second-part-content {
  width: 100%;
  margin-top: 10px;
}

.general-rules {
  color: #f3970d;
}

.opening-rules h1 {
  padding: 15px;
}

.table-rule-detail, td {
  border: 2px solid black;
}

.table-rule-detail-left {
  width: 30%;
}

.table-rule {
  margin: 0;
  width: 100%;
}

.rule-table-title {
  font-size: 1.5rem !important;
}

.second-rule-table-title {
  margin-top: 15px;
}

.first-table-rule {
  padding: 0 17px;
  width: 100%;
}

.second-table-rule {
  width: 100%;
  padding: 15px;
  border: 2px solid #efefef;
}

ol {
  width: 100%;
  padding-left: 15px;
}

.opening-rules ul {
  flex-direction: column;
}

.rule-end {
  text-align: right;
  margin-top: 15px;
}

.rules-details p {
  font-size: 14px !important;
}

footer {
  min-height: 100px;
}