/* Containers and overall organization */
#content-container-outer {
	max-width: 100% !important;
	position: relative;
	max-width: 140em;
	margin: calc(var(--top-bar-title-height) + 1px) auto 0 auto;
	display: flex;
}

#side-panel-left, #side-panel-right {
	width: 0;
}

#rite-page-container {
	position: relative;
	width: 100%;
	border-left: 1px solid var(--border-color);
	border-right: 1px solid var(--border-color);
}

#size-change-listener {
	position: fixed;
	height: 0;
	width: 100%;
}

/* Options panel and its gear button */
#options-gear-wrapper {
	position: absolute;
	top: 18px;
	right: 18px;
	height: 35px;
	background-color: transparent;
}

#options-gear {
	height: 100%;
}

#options-panel-background {
	position: fixed;
	width: 100%;
	height: 100%;
	background-color: rgba(249, 249, 249, .7);
	margin: 0;
	padding: 0;
	z-index: 1;
}

#options-panel-wrapper {
	position: fixed;
	left: 50vw;
	top: 50vh;
	transform: translate(-50%, -50%);
	width: 30em;
	min-height: 50vh;
	max-width: 100%;
	background-color: var(--generic-white-background-color);
	border-radius: 3px;
	border: 1px solid var(--border-color);
}

#options-panel {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 21px 21px 7px 21px;
	font-family: "Old Standard TT", times;
}

.options-panel-section-head {
	text-align: center;
	font-variant: small-caps;
	color: red;
	margin: 0;
	font-weight: normal;
}

.option-disabled {
	color: #333;
}

#coincidences-list-container {
	flex-grow: 0;
	flex-basis: 50%;
	height: 100%;
}

.coincidences-label {
	margin-top: 0;
	margin-bottom: 0;
	font-weight: normal;
	font-style: italic;
	color: red;
}

.coincidence-entry {
	margin-left: 5px;
	cursor: not-allowed;
	font-size: 16px;
}

.non-dicitur {
	color: #333;
	font-size: 14px;
	font-style: italic;
}

.permitted-entry {
	cursor: pointer;
}

#desired-select-container {
	display: flex;
	flex-direction: column;
	height: 100%;
}

#bottom-panel-options-container {
	margin-top: auto;
	border-top: 1px solid var(--border-color);
	padding-top: 7px;
}

#bottom-panel-toggle-button {
	width: 100%;
}

#bottom-panel-explanation {
	font-size: 14px;
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
	font-style: italic;
}

/* Rite container and formatting for hour itself */
#rite-container {
	font-family: "Old Standard TT", times;
	font-size: 20px;
	padding: 10px 40px 10px 40px;
	min-height: calc(100vh - 71px - var(--top-bar-title-height));
	background-color: var(--generic-white-background-color);
	display: block;
}

.rite-item {
	margin: 0;
	padding: 0;
}

.date-header {
  font-family: "Old Standard TT", times;
  font-weight: normal;
  text-align: center;
  margin-top: 0;
  margin-bottom: -14px;
  font-size: 16px;
}

.large-title {
	font-family: "Old Standard TT", times;
	font-variant: small-caps;
	font-weight: normal;
	color: red;
	font-size: 26px;
	text-align: center;
	margin-bottom: 0;
}

.large-subtitle {
	font-family: "Old Standard TT", times;
	font-variant: small-caps;
	font-weight: normal;
	color: black;
	font-size: 18px;
	text-align: center;
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.25;
}

.small-title {
	font-family: "Old Standard TT", times;
	font-variant: small-caps;
	font-weight: normal;
	color: red;
	font-size: 22px;
	text-align: center;
	margin-bottom: 0;
}

.section-header {
	font-family: "Old Standard TT", times;
	font-variant: small-caps;
	font-weight: normal;
	color: red;
	font-size: 22px;
	text-align: center;
	margin: 0;
}

.item-header {
	font-variant: small-caps;
	font-weight: normal;
	color: red;
	font-size: 20px;
	text-align: center;
	margin: 0;
}

.rite-text {
	font-family: "Old Standard TT", times;
	line-height: 1.25;
	margin-top: 7px;
	margin-bottom: 14px;
	text-align: justify;
	hyphens: auto;
}

.verse-number {
	color: red;
	font-size: 8px;
}

.rite-text-translation.line-by-line {
	font-size: 14px;
	color: #222;
	margin-top: 0;
	line-height: 1;
	padding-left: 10px;
}

.rite-text-rubric {
	color: red;
	font-size: 16px;
}

.black-rubric {
	color: black;
}

.small-rubric {
	font-size: 14px !important;
}

.rite-text-rubric-above-paragraph {
	margin-top: 7px;
	margin-bottom: -7px;
	font-size: 16px;
}

/* Formatting for specific items */
.aperi-domine, .sacrosanctae {
	font-size: 16px !important;
}

.aperi-domine.rite-text-translation.line-by-line, .sacrosanctae.rite-text-translation.line-by-line {
	font-size: 12px !important;
}

.aperi-domine::first-letter, .sacrosanctae::first-letter, .absolutio::first-letter, .lectionis-titulum::first-letter, .evangelium-matutini::first-letter, .hymnus::first-letter, .capitulum::first-letter, .antiphona::first-letter, .martyrologium::first-letter, .pater-noster-secreta::first-letter, .ave-maria-secreta::first-letter, .credo-secreta::first-letter, .preces:first-letter, .pater-noster-clara-voce::first-letter, .pater-noster-semisecreta::first-letter, .credo-semisecreta::first-letter, .confiteor::first-letter, .oratio-sanctae-mariae::first-letter, .formula-lectionis::first-letter, .invitatorium::first-letter, .pro-prandio::first-letter, .pro-coena::first-letter, .itinerarium::first-letter, .formula-indulgentiam-articulo-mortis::first-letter {
	color: red;
}

.textus-psalmi::first-letter, .lectio-incipiens::first-letter, .lectio-sequens::first-letter, .epiphania-venite-incipit::first-letter, .textus-psalmi-precibus::first-letter, .collecta::first-letter, .oratio-dirigere::first-letter, .hymnus.te-deum::first-letter {
	float: left;
	font-size: 94px;
	margin-right: 0.1rem;
	color: red;
	line-height: 0;
	initial-letter: 3;
	-webkit-initial-letter: 3;
}

.lectio-sequens::first-letter, .textus-psalmi-precibus::first-letter, .collecta::first-letter, .oratio-dirigere::first-letter, .hymnus.te-deum::first-letter, .lectio-incipiens.lectio-commemorationis::first-letter {
	font-size: 60px !important;
	initial-letter: 2;
	-webkit-initial-letter: 2;
}

/* Technically colors all items red, but in effect since all except the Oremus are already colored red, only adds red for that. */
.collecta-primaria::first-letter, .commemorationes::first-letter, .antiphona-bmv::first-letter, .officium-capituli::first-letter {
	color: red;
}

.collecta, .oratio-dirigere {
	min-height: 50px;
}

.collecta.triduum {
	margin-top: 7px;
}

.rubricum {
	margin-bottom: 0;
}

.side-by-side-column-container {
	display: flex;
	gap: 30px;
}

.left-column-latin {
	flex-basis: 0;
	flex-grow: 1;
}

.right-column-vernacular {
	flex-basis: 0;
	flex-grow: 1;
}

/* Next hour button. Child of rite-page-container. */
#next-hour-button-container {
	padding: 0 40px 60px 40px;
	background-color: var(--generic-white-background-color);
}

#next-hour-button {
	float: right;
	font-family: "Old Standard TT", times;
	font-size: 16px;
	background-color: transparent;
}

#next-hour-button:hover {
	background-color: var(--button-color-hover);
}

#next-hour-button-icon {
	position: relative;
	top: 4px;
	height: 20px;
	padding-left: 4px;
}

.next-hour-button-forbidden:hover {
	background-color: transparent !important;
	cursor: not-allowed;
}

#next-hour-forbidden-tooltip {
	position: relative;
	top: 6px;
	font-family: "Old Standard TT", times;
	font-size: 16px;
}

/* Bottom select panel */
#bottom-easy-select-container {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

#bottom-easy-select-hide {
	width: 100px;
	height: 20px;
	background-color: var(--button-color);
}

#bottom-easy-select-hide:hover {
	background-color: var(--button-color-hover);
}

#bottom-easy-select-content-container {
	background-color: rgba(249, 249, 249, .8);
	border: 1px solid var(--border-color);
	border-radius: 3px;
	font-family: times;
	padding: 7px 7px 10px 7px;
}

#bottom-easy-select-hide-icon {
	height: 30px;
	margin-top: -5px;
}

.bottom-easy-select-hide-icon-closed {
	transform: rotate(180deg);
}

#date-selector-container {
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 7px;
}

#date-selector-text {
	height: 30px;
	font-size: 18px;
	border: 1px solid var(--border-color);
	border-radius: 3px;
	cursor: pointer;
	font-family: times;
	color: black;
}

.date-selector-button {
	width: 30px;
	height: 30px;
	padding-top: 5px;
	text-align: center;
	font-size: 24px;
}

.date-selector-button:hover {
	background-color: var(--button-color-hover);
}

#rite-selector-container {
	width: 100%;
	margin-top: 10px;
	display: flex;
	justify-content: center;
	gap: 7px;
	min-height: 35px;
	flex-wrap: wrap;
}

.rite-selector-button {
	background-color: var(--button-color);
	height: 25px;
	text-align: center;
	font-size: 16px;
}

.rite-selector-button:hover {
	background-color: var(--button-color-hover);
}

.rite-selector-button-selected {
	background-color: var(--button-color-toggled) !important;
}

/* Large Screens */
@media only screen and (min-width: 2000px) {

	#rite-container {
		padding: 10px 100px 10px 100px;
	}

	.collecta, .oratio-dirigere {
		min-height: 60px;
	}

	#next-hour-button-container {
		padding: 0 30px 60px 30px;
	}

	#next-hour-forbidden-tooltip {
		top: 5px;
	}
}

/* Printing to pdf (or actual printers) */
@media print {
	#options-panel, #side-panel-left, #side-panel-right, #bottom-easy-select-container, #next-hour-button-container {
		display: none;
	}
}
