@font-face {
  font-family: 'Crimson Text';
  src: url(fonts/CrimsonText-Regular.ttf);
}
@font-face {
  font-family: 'Crimson Text';
  src: url(fonts/CrimsonText-Bold.ttf);
  font-weight: bold;
}
@font-face {
  font-family: 'Crimson Text';
  src: url(fonts/CrimsonText-Italic.ttf);
  font-style: italic;
}
body{
  font-family: 'Adobe Garamond Pro', 'EB Garamond', 'Crimson Text', 'Adobe Garamond Pro', 'Garamond','Georgia', serif;
  font-size: 14pt;
  /* background-image: url('../static/bg.png'); */
  background-repeat: repeat;
  background-size: 35px 35px;
  background-attachment: scroll;
  background-opacity:0.7;
  background-color: rgb(250, 247, 245);
  margin: 0px;
  padding-top: 0px;

}
html {
    -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
  /*-webkit-tap-highlight-color: red;*/
  background-color: rgb(250, 247, 245);
  /*overscroll-behavior: none;*/


}
::selection {
  color: white;
  background: #e22613;
}

#header{
  position: fixed;
  width: 100%;
  max-width: 700px;
  padding: 0px;
  margin: auto;
  z-index: 10;
  background-color: rgba(250, 247, 245, 1);
  margin-top: 0px;
  padding-top: 8px;
  top: 0px;
  padding-bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(2px);
  box-shadow: 0px 7px 5px rgb(250, 247, 245), 0px 7px 10px rgb(250, 247, 245), 0px 7px 20px rgb(250, 247, 245), 0px 7px 30px rgb(250, 247, 245), 0px 7px 50px rgb(250, 247, 245);
  overscroll-behavior: none;
}
#header form{
  padding-left: 5px;
  padding-right: 5px;
}

#header #icon{
  vertical-align: middle;
}

  #header #icon{
    float: left;
  }

#logo{
  width:170px;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 10px;
  margin-top: 10px;
  /* margin-right: 50px; */
}
#big_logo, #ex_decreto{
  margin-top:30px;
  width: 100%;
  max-width: 700px;
}
#cross{
  margin-top:30px;
  width: 6%;
  max-width: 40px;
}
#big_text{
  margin-top:30px;
  text-transform: uppercase;
  margin-bottom:60px;
}
#big_text p {
  font-size: 17pt;
  margin: 0px;
  padding: 0px;
  letter-spacing: 4pt;
}

#big_logo{
  margin-top:0px;
}

.home{
  text-align: center;
}
.home #footer{
  margin-top: 10px;
  margin-bottom: 10px;
}
form{
  vertical-align: middle;
  text-align: center;
}
#container{
  max-width: 700px;
  margin: auto;
  margin-top: 8px;
  padding: 8px;
  padding-top: 50px;

}
.home #container{
  padding: 35px;
}
h2{
  color:#ED230D;
  color: black;
  font-weight: normal;
  text-align: center;
  font-weight: bold;
  /*letter-spacing: -2px;*/
  font-size: 17px;
  /* font-variant: small-caps; */
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 10px;
  padding-bottom: 0px;
  margin-bottom: 0px;
}
.subtitle{
  padding-top: 0px;
  margin-top: 0px;
  text-align: center;
  margin-bottom:120px;
}
.classis{
  margin-top:120px;
  padding-bottom: 0px;
  margin-bottom: -5px;
  text-align: center;
  color: #e22613;
}
.reading_text{
  text-align: justify;
  margin-top: 0px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.reading_text p,.reading_text .tr {
  padding:0px;
  margin:0px;
  margin-top:3px;
  margin-bottom: 15px;
}
.reading_text .tr {
   margin-bottom: 25px;
 }
/*
.reading_text > p:first-of-type{
  padding-top: 0px;
  margin-top: 0px;
}
.reading_text > p:last-of-type{
  padding-bottom: 0px;
  margin-bottom: 0px;
}
*/
.reading_text > p:first-of-type::first-letter {
  -webkit-initial-letter: 2;
  initial-letter: 2;
  padding-right: 0.3rem;
}
@-moz-document url-prefix() {
  .reading_text > p:first-of-type::first-letter{
    initial-letter: normal;
    padding-right: 0rem;
  }
}

@media(min-width: 600px){
  .reading_text{
    /*
    column-count: 2;
    column-rule: 1px solid black;
    */
  }
  .reading_text .tr_part{
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 11px);
    padding: 0px;
    padding-right:10px;
    border-right: 0px solid black;
  }
  .reading_text .tr {
      padding: 0px;
    border-right: 0px solid transparent;
     padding-left:10px;
   }
}
@-moz-document url-prefix() {
  .reading_text::first-letter {
    initial-letter: normal;
    padding-right: 0rem;
  }
}
@media (min-height: 300px){
  .vertical-center {
    margin: 0;
    position: absolute;
    width: 100%;
    max-width: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
  }
}

@media (min-height: 540px) and (max-aspect-ratio:2) {
  #gravure{
    background-image: url("../static/gravures/easter.jpg");
    background-size: max(100%, 60vh) auto;
    background-position: 50% 8%;
    height: 600px;
    max-height: 40vh;

    max-height: calc(100vh - 400px - 70px);
    width: 100%;
    border: 1px solid black;
    margin-top: 15px;
  }
}
@media (min-height: 1000px) {
  #gravure{
    background-image: url("../static/gravures/easter.jpg");
    background-size: max(100%, 40vh) auto;
    background-position: 50% 8%;
    height: 600px;
    max-height: 40vh;

    max-height: calc(100vh - 400px - 70px);
    width: 100%;
    border: 1px solid black;
    margin-top: 15px;
  }
}
@media (max-width: 576px) {
  #big_text p {
    font-size: 13pt;
    margin: 0px;
    padding: 0px;
    letter-spacing: 2pt;
  }

  #big_logo{
    margin-top:0px;
  }
  #ex_decreto {
    margin-top: 16px;
  }
  #gravure{
    max-height: calc(100vh - 65vw - 70px);
  }
  .home #container{
    padding-bottom: 10px;
  }
}
@media (max-aspect-ratio: 0.5) {
}
.rubrics{
  color:#e22613;
  font-style: italic;
}
.response{
  color:#e22613;
}
h1{
  padding: 20px;
  padding-top: 0px;
  padding-bottom: 0px;
  margin: 0px;
  text-align: center;
  line-height: 110%;
}
.reading_id{
  font-style: italic;
}
h3{
  /* text-transform: uppercase; */
  /* letter-spacing: 3px; */
  margin-top:40px;
  font-size: 18px;
  text-align: center;
}
h4{
  color: #e22613;
  font-weight: normal;
  /*font-style: italic;*/
  padding-bottom: 0px;
  margin-bottom: 4px;
}
svg{
  padding-top: 0px;
  padding-bottom: 0px;
}
.chant svg{
   padding-top: 8px;
   padding-bottom: 3px;
 }
input[type="date"],input[type="submit"],input[type="button"], select{
  appearance: none;
  border: 0px solid white;
  /*border-bottom: 1px solid grey;*/
  border: 0px solid grey;
  padding:5px 15px 5px 15px;
  font-size:17px;
  font-family: 'Adobe Garamond Pro', 'EB Garamond', 'Crimson Text', 'Adobe Garamond Pro', 'Garamond','Georgia', serif;
  border-radius : 5px;
  background: transparent;
  background: rgb(239, 238, 235);
  display: inline-block;
  vertical-align: baseline;
  color: black;
  font-weight: normal;
  height:36px;
  vertical-align: middle;
  margin:2px;
}
input[type=date]{
  height:28px;
  padding:4px 15px 4px 15px;
  vertical-align: bottom;
  max-width:110px;
}
select{
  background-image: url('../static/select.png');
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: 87% center;
  padding:5px 28px 5px 15px;
  max-width:142px;
}
@media(max-width: 500px){
  select{
    max-width:100px
  }
}
input:focus, select:focus{
  outline-offset: 0px;
  outline: 2px solid #D6040D;
}

/* *,
*::before,
*::after {
  box-sizing: border-box;
}
select:after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: grey;
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
} */

a{
  color:black;
  text-decoration: none;
}
.compact{
  margin-bottom: 0px;
}
.compact{
  margin-bottom: 0px;
}
.red{
  color: #e22613;
}
md-block p{
  margin: 0px;
  padding:0px;
}
ol{
  padding-inline-start: 32px;
  writing-mode: horizontal-tb;
  font-size: 15pt;
}
li{
  margin-bottom: 10px;
}

ol.with_translation > li{
  margin-bottom: 3px;
  margin-top: 3px;
}

label {
  text-align: center;
  display: inline-block;
  font-weight: normal;
  margin: 10px;
}

.imgButton {
  background-color: white;
  height: 110px;
  width: 150px;
  border-radius: 10px;
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.2), inset 0px 0px 1px 0px rgba(255, 255, 255, 1);
  margin-bottom: 10px;
  border: 1px solid #D7D7D7;
  background-size:auto 100%;
}

input[type="radio"]:checked+label {
  color: #D6040D;
}

input[type="radio"]:checked+label .imgButton {
  outline-offset: 2px;
  outline: 5px solid #D6040D;
}

input[type="radio"] {
  display: none;
}
#footer{
  color: dimgrey;
  /*
  color: black;
  text-transform: uppercase;
  letter-spacing: 3px;
  */
  /*font-style: italic;*/
  text-align: center;
  font-size: 15px;
  padding-top: 10px;
}

#footer a{
  color: dimgrey;

  text-decoration: underline;
  text-underline-offset: 5px;
  transition: color 0.5s, text-decoration-color 0.5s;
}
#footer a:hover{
   text-decoration: underline;
   text-underline-offset: 5px;
  text-decoration-color: #D6040D;
   color: #D6040D;
 }
#credits a {
  text-decoration: underline;
}
#credits{
  margin-bottom: 60px;
  text-align: justify;
}

.lettrine::first-letter {
  -webkit-initial-letter: 2;
  initial-letter: 2;
  padding-right: 0.3rem;
}
@-moz-document url-prefix() {
  .lettrine::first-letter {
    initial-letter: normal;
    padding-right: 0rem;
  }
}
.justified{
  text-align: justify;
}
#param-button{
  background-image: url("settings.png");
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: center center;
  width: 35px;
  vertical-align: middle;
}
#param-button{
  float: right;
}

iframe{
  width: 100%;
  border: 0px solid white;
  overflow: hidden;
}

#TextMeasurer text{
  opacity: 0;
  color:transparent;
}

.tr{
  margin: 0px;
  margin-top: 2px;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 13pt;
  column-span:1;
  /*font-size: 13pt;
  color: #a6a6a6;*/
}

#donate {
  /*animation: glow 4s ease-in-out infinite alternate;*/
}

#advanced-param H4{
  margin-top: 5px;
  margin-bottom: 3px;
}
#advanced-param{
  padding-top: 15px;
}
#advanced-param .param-block{
  margin-top: 5px;
  margin-bottom: 3px;
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px red, 0 0 20px red, 0 0 25px red, 0 0 30px red, 0 0 35px red;
    color: white;
  }

  to {
    text-shadow: 0 0 20px transparent;
    color: grey;
  }
}


.control_block{
  border-radius: 5px;
  /*box-shadow: inset 0px 0px 1px rgba(0,0,0,0.1);*/
  background-color: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
}
.control_rule{
  height: 1px;
  background-color: rgba(0,0,0,0.1);
  width: calc(100% - 20px);
  margin: auto;
}
.control_element{
  text-align: right;
  padding: 0px 3px 3px 3px;
}
.control_element label{
  float: left;
  vertical-align: center;
  font-weight: normal;
  font-size: 18px;
  padding:1px 3px 5px 3px;
  margin-top:7px;
  margin-bottom: 0px;
}
.control_element select{
vertical-align: center;
  background-color: transparent;
  max-width: 100%;
  font-size: 18px;
}
.visual_select{
  text-align: center;
}

.control_title{
  font-weight: normal;
  margin-bottom: 8px;
  margin-top: 12px;
}

.beta{
  vertical-align:super;
  font-size: 13px;
  text-transform: uppercase;
  color: #D6040D;
}

@media print {
  /* All your print styles go here */
  #header,
  #footer,
  #nav {
    display: none !important;
  }
  h1, h2, h3, h4, .rubrics, .reading_id {
    break-after: avoid-page;
  }
  .tr{
    break-before: avoid-page;
  }
  .p{
    break-inside: avoid-page;
  }
}
.section{
  margin-top:8px;
  margin-bottom:8px;
}

