/* Menology */

#menology {
    padding: 24px 0 3em;
}

#menology .block{
	border-bottom: 0;
}

table.menology {
    width: 100%;
    text-align: left;
    border-spacing: 0;
    border-collapse: collapse;
}

table.pad-s td {
    padding: 2px;
}

table.pad-m td {
    padding: 4px;
}

table.menology td {
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    padding-left: 2px;
    padding-right: 2px;
	padding-bottom: 1em;
}

table.menology td:first-child {
    color: gray;
    margin-right: 5px;
}

table.menology.icons-of-our-lady td.index {
    width: 2%;
    text-align: right;
}

table.menology.numbered-table td{
	width: auto;
}

table.menology.numbered-table td.first-child{
	width: 3em;
	width: min-content;
}

.menology .date_description {
	display: block;
	margin-bottom: .75em;
    font-style: italic;
    color: gray;
}

.menology .date_description:last-of-type{
	margin-bottom: 0;
}

@media(hover : hover) {
    table.menology tr:hover td {
        background: #ead9b344;
    }
}

table.menology td.name {
	background-color: #ddd4;
    border-style: none;
    color: var(--accent-color, #900);
    font-family: 'Kurale', serif;
    font-size: 15px;
    text-transform: uppercase;
}

table.menology td a {
    color: var(--accent-color, #900);
    text-decoration: underline;
}

table.menology .date {
    white-space: nowrap;
}

table.menology .date a.irrelevant {
    color: #a9a9a9;
}

table.menology td.menology-add-x {
	padding-left: 8px;
}

#filter_form{
	display: grid;
	gap: .5em;
	margin-bottom: 1em;
}

#filter_form input, #filter_form select, #filter_form button{
	height: 2em!important;
}

#filter_form .cell{
	display: flex;
	gap: .5em;
	align-items: flex-start;
}

#filter_form .gender-wrap>div{
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
}

#filter_form .ideograph-wrap{
	grid-row: auto / span 2;
}

#filter_form label img {
    vertical-align: -8px
}

.filters p {
    padding: 0 0 8px;
}

.filters label {
    margin: 0 4px 0 0;
    position: relative;
    top: 2px;
	text-align: left;
}

.filters form input[type=text],
.filters form select {
    margin: 1px 0 0;
    width: 100%;
}

.icon-filters .span12 input[name="name"] {
    width: 100%;
}

.filters .sub-row {
    margin: 0;
    padding: 0 0 .5em;
}
.filters .sub-row + .sub-row{
	margin-top: .5em;
}

.filters .by-alph {
    border-bottom: 1px solid var(--accent-color, #900);
}

.filters .sub-row a, .filters .sub-row span {
    color: var(--accent-color, #900);
    text-decoration: underline;
}

.filters .sub-row .current {
    color: #fff;
    text-decoration: none;
	width: min-content;
	position: relative;
	z-index: 2;
}

.filters .sub-row .current:before {
	content:'';
	position: absolute;
	left: -.5em;
	top: -10%;
	width: calc(100% + 1em);
	height: 120%;
	background: #c24827;
	border-radius: 5px;
	z-index: -1;
}

.filters .view_all_button {
    position: relative;
    top: 2px;
    color: #2b2b2b;
    text-decoration: none;
}

.filters #ideograph_help ol{
	display: flex;
    gap: 0.5em;
    list-style: auto;
    margin-top: 2px;
    list-style-position: inside;
}
#ideograph_help img {
    height: 1.25em;
    vertical-align: -0.3em;
}
#ideograph_help li:last-child img{
	filter: drop-shadow(0 0 3px #ffff);
} 

#names {
    margin-bottom: 40px;
	column-count: 2;
}

#names a {
    display: block;
    color: var(--accent-color, #900);
    text-decoration: underline;
    font-size: 16px;
	margin-bottom: .5em;
}

#names a.title {
    color: #c24827;
    font-family: 'Kurale', serif;
    font-size: 35px;
    cursor: text;
    height: 50px;
    text-align: left;
    text-transform: uppercase;
    text-decoration: none;
}

ul.search-filter {
    width: 90% !important;
}

.filters p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.filters label:empty {
    display: none
}

.preloader {
    display: none;
    margin: 0 auto;
    width: 30px;
	height: 30px;
	background: url('../img/wait-ajx.gif') center center/contain no-repeat;
}

#dk0-form_type_of_sanctity {
    min-width: 115px;
    width: 90%;
}

#dk0-form_type_of_sanctity li.dk-option {
    white-space: nowrap;
}

#dk1-form_church_title {
    min-width: 165px;
    width: 90%;
}

#dk1-form_church_title li[data-value^="group"] {
    font-weight: 700;
}

.reset-button,
.update-button {
    background: linear-gradient(to top, #940306, #E41A1C);
    border: 1px #cc0507 solid;
    color: #fff;
    margin: 0 auto;
    padding: 6px 8px 8px;
    text-align: center;
    box-sizing: border-box;
    font-size: 15px;
    width: 100%;
}

.pagination{
	position: relative;
}

.pagination:before{
	content:'\f021';
	color: var(--grey);
	font-family: FontAwesome;
	font-size: 2em;
	margin: auto;
	position: absolute;
	right: 0;
	bottom: 100%;
	animation: 1s rotateFull infinite;
	display: none;
}

@keyframes rotateFull{
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.loading-page .pagination:before{
	display: block
}

@media (hover: hover) {
    .reset-button:hover,
    .update-button:hover {
        background: #940306;
    }
}

.filters-button {
    margin-right: auto;
    text-align: center;
    cursor: pointer;
    text-align: justify;
    cursor: pointer;
    color: var(--accent-color, #900);
    text-decoration: none !important;
    display: inline-block;
    border-radius: 12px;
    background: #FBF5EA44;
    white-space: nowrap;
    font-weight: bold;
}


@media screen and (max-width: 767px) {
    .filters {
        line-height: 1.75;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    table.menology thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    table.menology td {
        border: none;
        position: relative;
        font-size: 16px;
    }

    table.menology td.menology-name {
        margin-left: 5px;
    }

    table.menology td.menology-add {
        margin-left: 15px;
    }

    table.menology td.menology-add-x {
        padding-left: 0;
    }
	
	#names a.title{
		text-align: center;
		width: 100%;
	}
}

.form-filter {
    display: none;
}

@media screen and (max-width: 520px) {
    #names .boxer a {
        width: 20%;
    }
}

@media screen and (max-width: 480px) {
    #names .boxer a {
        width: 50%;
    }

    .meno-wrapper {
        margin: 0 -10px;
    }

    #menology {
        width: 100%;
    }
}

@media screen and (max-width: 1200px) {
    
    .filters .sub-row{
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(1.6em, 1fr));
		gap: .125em .25em;
	}
	
	.filters .sub-row label{
		grid-column: 1/-1;
	}
	
	.filters .sub-row .noselection{
		grid-column: 1/span 2;
	}
	
	.filters .sub-row .sobor{
		grid-column: span 6/-1;
		text-align: right;
	}
}


@media (min-width: 521px){
	#filter_form{
		grid-template-columns: 1fr 1fr;
	}
	
	#filter_form .name-wrapper{
		grid-column: 1 / span 2;
	}
	
	.filters #ideograph_help ol{
		margin-top: 5px;
	}
	
	#filter_form .reset-button{
		grid-column: auto / -2;
	}
	
	#filter_form .submit-wrap{
		grid-column: auto / -1;
	}
	
	table.menology td {
		width: 25%;
	}
	
	table.menology td.menology-add-x {
		width: 50%;
	}
}

@media (min-width: 1201px){
	#filter_form{
		grid-template-columns: repeat( auto-fill, minmax(250px, 1fr) );
	}
	.filters .sub-row a+a,
	.filters .sub-row a+span,
	.filters .sub-row span+a{
		margin-left: .5em;
	}
	
	#menology{
		display: flex;
		gap: 40px;
	}
	
	#menology>.block{
		padding-left:0;
		padding-right:0;
	}
	
	#menology>.block>h2{
		margin-left:16px;
		margin-right:16px;
	}
	
	.saints-with-ikon #menology{
		display: block;
	}
	
	.saints-with-ikon .filters{
		text-align: center;
	}
	
	.saints-with-ikon table.menology, 
	.saints-with-ikon .pagination{
		width: fit-content;
		margin: auto;
	} 
}