/* Style file for generic stories */

*{
  box-sizing: border-box;
}

/* Style for paragraphs */

p.a {
  font-family: "Arial", Helvetica, sans-serif;
  font-size: 1em;
  text-align: left;
  margin-bottom: 0mm;
  line-height: 120%;
}

p.t {
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
  text-align: left;
  margin-bottom: 0mm;
  line-height: 120%;
}

p.tj {
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
  text-align: justify;
  margin-bottom: 0mm;
  line-height: 120%;
}

/* Style for images */

img.l { float: left; padding: 25px; }
img.r { float: right; padding: 25px; }
img.t { vertical-align: top; }

figure { float: right; margin-left: 15px; margin-right: 0px; display: table;}
figcaption { display: table-caption; caption-side: bottom; }

/* Style for tables */

table.a { display: inline; }

td.a {
  font-family: "Arial", Helvetica, sans-serif;
  font-size: 1em;
  text-align: left;
  vertical-align: top;
  margin-bottom: 0mm;
  line-height: 120%;
}

/* Style for quotes */

q { display: inline; }
q:before { content: open-quote; }
q:after { content: close-quote; }

/* Make the base font size dependent on screen size */
/* Use absolute sizes (rem) for the parent object */
.fontflex{
font-size: 1.4rem;
}

@media screen and (max-width: 700px) {
  .fontflex {
    font-size: 1rem;
  }
}

/* Add pagination at the bottom of thte page */
.footer {
  font-size: 0.75em;
  position: static;
  left: 0;
  bottom: 0;
  width: 100%;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.pagination a {
  color: white;
  margin: 8px 2px;
  padding: 4px 24px;
  min-width: 3em;
  font-size: 1em;
  text-align: center;
  text-decoration: none;
  background-color: #b7d7e7;
}

.pagination a.active {
  color: white;
  background-color: #dddddd;
}

.pagination a:hover:not(.active) {
  background-color: #cccccc;
}

