/*
==========-----
Stylesheet for sermons page
==========-----
*/

@import "colors.css";

/*
Filters
*/

.searchContainer {
	width: 100%;
	max-width: 600px;
	box-sizing: border-box;

	margin: auto;
	margin-top: 25px;
	margin-bottom: 25px;

	position: relative;

	text-align: center;

	padding: 8px;

	background-color: var(--sermon-line-bg-color);
	color: var(--sermon-line-text-color);

	border-radius: 10px;
	box-shadow: 0 0 5px 1px black;
}

.dropdown {
	text-align: center;

	width: 100px;
	margin: auto;
	margin-top: 5px;
	margin-bottom: 5px;

	padding: 3px;

	text-decoration: none;
	color: white;
	background-color: #32394d;

	border: 1px solid black;
	border-radius: 3px;
	box-shadow: 0 0 5px 0 black;
	
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.dropdown:hover {
	color: white;
	background-color: #5d6783;
}

.searchContainer form {
	display: none;
}

.searchContainer h2 {
	margin: 0;
}

input[type=text] {
	width: 100%;
	max-width: 500px;
	padding: 4px;
	margin: 6px 0;
	box-sizing: border-box;
	font-size: 1.05em;

	transition: all 0.2s ease-in-out;
}

input[type=text]:focus, input[type=text]:hover, input[type="select"]:hover {
	background-color: rgb(191, 235, 255);
}

select {
	width: 100%;
	max-width: 500px;
	padding: 4px;
	font-size: 1.05em;
	color: gray;
}

option {
	color: black;
}

option:first-child {
	color: gray;
}

.dateFilter {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-evenly;
}

.dateInput {
	text-align: center;
	font-size: 1.05em;
}

input[type="date"] {
	width: 100%;
	max-width: 180px;

	padding: 4px;
	font-size: 1.05em;
}

button[type="submit"], .clearFilter {
	display: inline-block;

	text-align: center;

	padding: 5px;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 1.05em;

	margin: 20px;
	margin-left: 10px;
	margin-right: 10px;

	text-decoration: none;
	color: white;
	background-color: #32394d;

	border: 1px solid black;
	border-radius: 3px;
	box-shadow: 0 0 5px 0 black;
	
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

button[type="submit"]:hover, .clearFilter:hover {
	color: white;
	background-color: #5d6783;
}

button[type="submit"]:visited, .clearFilter:visited {
	color: white;
}

form:not(:first-of-type) button {
	margin-top: 0;
}

#numSelect {
	color: black;
}

#numSelect option {
	color: black;
}

#orderByBox {
	margin-top: 10px;
}

#orderByBox select {
	margin-bottom: 10px;
}

#orderByBox label {
	font-size: 1.1em;
}

.labelText {
	display: block;
	margin-bottom: 5px;
}

/*
Sermon container
*/

.sermonsContainer {
	width: 100%;
	max-width: 1200px;
	margin: auto;
}

.sermonLine {
	margin-bottom: 20px;
	margin-top: 20px;

	background-color: var(--sermon-line-bg-color);
	color: var(--sermon-line-text-color);

	border-radius: 10px;
	box-shadow: 0 0 5px 1px black;

	display: flex;
	flex-direction: row;
	justify-content: space-between;
	
	transition-duration: 0.2s;
}

.sermonLine:nth-child(odd) {
	background-color: var(--sermon-line-bg-color-2);
}

.sermonData {
	padding: 10px;
	padding-top: 5px;
	
	box-sizing: border-box;
}

.sermonData a {
	color: blue;
}

.sermonLinks {
	padding: 10px;

	box-sizing: border-box;

	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: wrap;
}

.linkHeader {
	font-weight: bold;
	padding: 5px;
	text-align: center;
}

.sermonLinks > div {
	padding: 5px;
}

.sermonLink {
	display: inline-block;

	padding: 6px;
	width: 50px;

	text-align: center;

	text-decoration: none;
	color: white;
	background-color: #32394d;

	border: 1px solid black;
	border-radius: 3px;
	box-shadow: 0 0 5px 0 black;

	transition: all 0.2s ease-in-out;
}

.sermonLink:hover {
	color: white;
	background-color: #5d6783;
}

.sermonLink:visited {
	color: white;
}

.sermonTitle {
	margin-top: 3px;
}

.sermonDesc {
	margin-bottom: 0;
	text-align: justify;

	white-space: pre-wrap;
}

.sermonDate {
	margin: 0;
	font-style: italic;
}

.sermonTitle {
	display: inline-block;
}

#sermonsTypeContainer {
	margin-bottom: 20px;
	font-size: 1.1em;

	background-color: var(--sermon-line-bg-color-2);
	color: black;
	padding: 5px;

	max-width: 225px;
	text-align: center;

	border-radius: 10px;
	box-shadow: 0 0 5px 1px black;
}

/*
Compact sermon listing
*/

.sermonLine.compact {
	margin-bottom: 10px;
	margin-top: 10px;
}

.sermonLine.compact .sermonLinks {
	flex-direction: row;
	padding: 10px;
	padding-bottom: 5px;
	padding-top: 5px;
}

.sermonLine.compact .sermonData {
	padding: 10px;
	padding-bottom: 5px;
	padding-top: 5px;
}

.sermonLine.compact .sermonDesc {
	display: none;
}

.sermonLine.compact .sermonTitle {
	display: inline-block;
}

.sermonLine.compact .sermonLinks {
	justify-content: flex-end;
}

.sermonLine .betweenDash {
	display: none;
}

.sermonLine.compact .betweenDash {
	display: inline-block;
}

.sermonLine.compact p {
	margin-top: 3px;
	margin-bottom: 3px;
}

/*
=====
Mobile responsive styling
=====
*/

/* Tablets/laptops */
@media only screen and (max-width:1367px) {
	.sermonLine.compact .speaker {
		display: none;
	}
}

@media only screen and (max-width:700px) {
	.sermonLine {
		flex-wrap: wrap;
	}
	
	.sermonDesc {
		text-align: left;
	}

	.sermonLine {
		flex: 1 1 0px;
	}

	.sermonData, .sermonLinks {
		width: 100%;
		padding: 10px;
		padding-bottom: 5px;
		padding-top: 5px;
	}

	.sermonLinks, .sermonLine.compact .sermonLinks {
		flex-direction: row;
		justify-content: center;
	}

	.sermonLine.compact p {
		margin-top: 0;
		margin-bottom: 0;
	}

	#sermonsTypeContainer {
		margin: auto;
	}
}