body {
  font-size: 15px;
  line-height: 1.3;
  /*font-family: Arial, Helvetica, sans-serif;*/
  font-family: Georgia, 'Times New Roman', Times, serif;
  margin: 5px;
  padding-bottom: 30px;
}

@media only screen and (min-width: 600px) {
  body {
    background-color: rgb(238, 238, 214);
  }

  div#container {
    /*limit to 600px wide and centre in viewport on screens > 600px effective*/
    width: 600px;
    margin: auto;
    background-color: white;
    padding-top: 10px;
    padding-bottom: 20px;
  }
}

nav.main-nav {
  background: black;
  display: flex;
  justify-content: space-between;
  color: white;
}

div#sizebuttons {
  float: right;
  font-size: 18px;
  padding: 4px;
  margin: 3px 10px;
}

img.navhead {
  float: left;
  margin: 2px;
}

p.navheader {
  float: left;
  font-size: 25px;
  /*margin-left: 10px;*/
  margin-top: 3px;
  margin-bottom: 3px;
}

div#today {
  clear: both;
}

p {
  margin-block-end: 0.5em;
  margin-block-start: 0.5em;
  margin-right: 4px;
}

p.todo {
  color: green;
  background-color: palegoldenrod;
}

p.liturgicalDay {
  font-variant: small-caps;
  margin-top: 0px;
  color: darkblue;
}

span.smallcaps {
  font-variant: small-caps;
}

span.ref {
  color: darkred;
  font-size: 0.8em;
  ;
}

h1.mainTitle {
  margin-bottom: 0px;
}

/*Captions for psalms and canticles*/
caption,
.caption {
  font-size: 1.2em;
  font-weight: bold;
  text-align: left;
  color: darkred;
  border-top: 1px silver solid;
  padding-top: 5px;
}

h3.caption {
  font-size: 1.2em;
}

h4.caption {
  font-size: 0.9em;
  border-top: none;
}

span.subtitle {
  font-size: 0.9em;
  font-weight: normal;
  font-style: italic;

}

p.rubric {
  border-top: 1px silver solid;
  padding-top: 14px;
  color: red;
  font-style: italic;
}

/*Layout for psalms, gloria and canticles*/
p.psalm {
  margin-left: 2em;
}

div.psalm p:first-of-type {
  margin-left: 0.5em;
}

div.psalm p:first-of-type::first-letter {
  color: darkred;
  float: left;
  font-size: 2em;
  line-height: 1;
  font-weight: bold;
  margin-right: 5px;
  margin-left: 0em;
}

p.lessonintro {
  font-style: italic;
  font-size: 1.1em;
  margin-left: 0.5em;
}

p.psalm span.pNumber {
  margin-left: -2em;
  padding-right: 1em;
  font-size: 0.7em;
}

p.collect {
  margin-left: 1em;
  line-height: 20px;
}

p.gloria {
  margin-left: 2em;
  font-style: italic;
  color: DarkBlue;
}

.speaker {
  vertical-align: top;
  font-weight: normal;
  font-style: italic;
  color: darkred;
  width: 5em;
  padding-right: 1em;
}

/* Table for responsorial sections */

td.text {
  vertical-align: top;
  font-weight: normal;
}

/* Tab content and buttons */
button.tablinks {
  border: 1px solid #aaa;
  border-radius: 1px;
  padding: 5px;
  font-style: italic;
}

button.tablinks.active {
  background-color: #ccc;
}

.tabcontent {
  display: none;
}

.tabcontent.open {
  display: block;
}

/* Tabs */

.container--tabs .nav-tabs {
  float: left;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style-type: none;
  border-bottom: 1px solid #ddd;
}

.container--tabs .nav-tabs>li {
  float: left;
  margin-bottom: -1px;
}

.container--tabs .nav-tabs>li>a {
  float: left;
  margin-right: 2px;
  line-height: 1.42857143;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  font-style: italic;
  color: #555;
}

.container--tabs .nav-tabs>li>a:hover {
  border-color: #eee #eee #ddd;
  background-color: #ddd;
}

.container--tabs .nav-tabs>li.active>a,
.container--tabs .nav-tabs>li.active>a:hover,
.container--tabs .nav-tabs>li.active>a:focus {
  cursor: default;
  background-color: #eee;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
  font-style: normal;
}

.container--tabs .tab-content {
  /*float: left;*/
  width: 100%;
}

.container--tabs .tab-content>.tab-pane {
  display: none;
}

.container--tabs .tab-content>.tab-pane.active {
  display: block;
  padding: 0.5%;
  padding-top: 30px;
  /*background-color: #efefef;*/
  /*border-bottom: 1px solid #ddd;*/

}

.container--tabs .tab-content>.active {
  display: block;
}

div#settings {
  margin: 20px;
  padding: 2px;
  background-color: lightgrey;
  font-family: Arial, Helvetica, sans-serif;
  display: none;
}

div#settings p{
  font-style: italic;
}

div#settings section{
  border-bottom: 1px black solid;
  padding: 4px;
}

div#settings.active{
  display: block;
}

button.settings{
  background-color: black;
  border: 1px solid black;
  color:white;
  padding: 3px;
}

button.sbtn{
  background-color: black;
  color: white;
  font-size: 1.5em;
  margin-right: 15px;
  margin-top: 5px;
  padding: 0;
  border: none;
}

/* Place the page buttons bar at the bottom of the page, and make it stick */
div#pagebuttons {
  display: none;
  background-color:  rgba(238, 238, 214, 0.5);
  overflow: hidden;
  position: fixed;
  margin: -5px;
  bottom: 0;
  width: 100%;
}

/* Style the links inside the navigation bar */
div#pagebuttons button {
  color: #f2f2f2;
  background-color: black;
  text-align: center;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 17px;
}

div#pagebuttons button.left_cpb {
  float: left;
}

div#pagebuttons button.right_cpb {
  float: right;
}
