/**
* CSS Document for Upper Valley All Addictions Big Book Step Study Joomla 4.x Template
* Last updated 29 March 2023 by Justin Herrin
**/

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5em;
	height: 100vh;
	width: 100%;
	text-align: center;
	background: #fff;
	color: #5c5c5d;
	overflow-x: hidden; /* hide that mobile menu */
}
body.mobile-menu-open {
	overflow: hidden;
}

a,
a:link,
a:visited {
	color: #336666;
	transition: all .3s ease-in-out;
	text-decoration: none;
}
a:hover,
a:focus {
	color: #336666;
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	color: #5c5c5d;
	line-height: 1.2em;
	margin-bottom: 1em;
}
h1 {
	font-size: 32px;
}
h2 {
	font-size: 28px;
}
h3 {
	font-size: 24px;
}
h1 a, h2 a, h3 a {
	color: inherit !important;
	font-weight: inherit !important;
}

p+h2, p+h3, p+h4, p+h5, p+h6 {
	margin-top: 2em;
}

ol+h2, ol+h3, ol+h4, ol+h5, ol+h6, ol+ol, ol+p, p+ol, p+ul,
ul+h2, ul+h3, ul+h4, ul+h5, ul+h6, ul+p, ul+ul, p+p {
	margin-top: 1.5em;
}

strong, .bold {
	font-weight: 600;
}

.button,
a.button:link,
a.button:visited {
	color: #fff;
	background-color: #336666;
	cursor: pointer;
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 25px;
	border-radius: 14px;
	text-transform: uppercase;
	text-decoration: none;
	transition: all 0.3s ease-in-out;
	outline: none;
	border: none;
	appearance: none;
}
.button:hover,
a.button:hover,
a.button:focus,
a.button:active {
	background-color: #85a3a3;
	color: #336666;
	text-decoration: none;
}




/*** Main Body Wrapper Styles ***/
#wrapper {
	max-width: 1200px;
	margin: 0 auto;
	background: #f5f5f5;
	display: flex;
	flex-direction: column;
	text-align: left;
	position: relative;
}


/*** Header Styles ***/
header {
	position: relative;
	background: #336666;
	padding: 20px 20px;
	text-align: center;
}
header .logo {
	max-width: 160px;
	margin: 0 auto;
}
header .logo img {
	display: block;
}

@media (min-width: 800px) {
	header {
		padding: 30px 50px;
	}
	header .logo {
		max-width: 190px;
		margin: 0 auto;
	}
}


/*** Menu Trigger Button Styles ***/
.menu-trigger {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	cursor: pointer;
	opacity: 1;
	transition: all 0.5s ease-in-out;
}
.menu-trigger.active {
	opacity: 0;
}
.menu-trigger .menu-button {}
.menu-trigger .menu-button .menu-button__bar {
	height: 3px;
	background-color: #fff;
	border-radius: 3px;
	margin: 5px;
	width: 30px;
}
@media (min-width: 800px) {
	.menu-trigger {
		display: none;
	}
}


/*** Menu Close Button Styles ***/
.menu-close {
	position: absolute;
	top: 50px;
	right: 50px;
	cursor: pointer;
	width: 30px;
	height: 30px;
}
.menu-close .menu-close__bar {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: 3px;
	background-color: #fff;
	border-radius: 3px;
	width: 30px;
}
.menu-close .menu-close__bar:first-child {
	transform:rotate(45deg);
}
.menu-close .menu-close__bar:last-child {
	transform:rotate(-45deg);
}

@media (min-width: 800px) {
	.menu-close {
		display: none;
	}
}


/*** Main Menu Styles ***/
.main-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100vh;
	transition: all .6s ease-in-out;
	background: #336666;
	padding: 50px;
	z-index: 99;
}
.main-menu.active {
	right: 0;
}
.main-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.main-menu ul li {
	padding: 5px 20px;
	margin: 0 0 20px 0;
}
.main-menu ul li > a:link,
.main-menu ul li > a:visited {
	color: #fff;
	font-weight: 600;
	transition: all 0.3s ease-in-out;
	text-decoration: none;
}
.main-menu ul li > a:hover,
.main-menu ul li > a:focus {
	color: #333;
	text-decoration: none;
}

@media (min-width: 800px) {
	.main-menu {
		position: relative;
		top: unset;
		right: unset;
		background: none;
		padding: 0;
		z-index: 10;
		height: unset;
	}
	.main-menu ul {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}
	.main-menu ul li {
		padding: 0;
		margin: 0 15px 15px 0;
	}
	.main-menu ul li:last-child {
		margin-right: 0;
	}
	.main-menu ul li > a:link,
	.main-menu ul li > a:visited {
		padding: 8px 12px;
		background: #85a3a3;
		color: #336666;
		border-radius: 3px;
		font-size: 13px;
		text-transform: uppercase;
	}
	.main-menu ul li > a:hover,
	.main-menu ul li > a:focus,
	.main-menu ul li.active a {
		color: #fff;
		background: #336666;
	}
}


/*** Hero Image Bar Styles ***/
.hero {
	max-width: 1200px;
	margin: 0 auto;
}
.hero img {
	display: block;
	width: 100%;
}


/*** Main Content Elements ***/
.content-outer-wrapper {
	background: #fff;
	margin: 0 auto;
}
.content-wrapper {
	padding: 0;
	margin: 0;
}
.content-wrapper a {
	font-weight: 600;
}
.content-wrapper ul {
	margin-left: 46px;
}
.content-wrapper ol {
	margin-left: 46px;
}
.content-wrapper ul li,
.content-wrapper ol li {
	margin-bottom: 18px;
}
.content-wrapper ul li:last-child,
.content-wrapper ol li:last-child {
	margin-bottom: 0;
}
.has-sidebar > .component-wrapper {
	margin: 0 0 50px 0;
}
.sidebar-wrapper .moduletable {
	margin-bottom: 50px;
}

@media (min-width: 800px) {
	.content-wrapper {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		justify-content: space-between;
	}
	.component-wrapper {
		width: 100%;
	}
	.has-sidebar > .component-wrapper {
		width: calc(75% - 50px);
		margin: 0 50px 0 0;
	}
	.sidebar-wrapper {
		width: 25%;
	}
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}
.thin-container {
	max-width: 900px;
	margin: 0 auto;
}


/*** Footer Styles ***/
footer {
	background: #336666;
	color: #fff;
	font-size: 15px;
	text-align: center;
}
footer a,
footer a:link,
footer a:visited {
	color: #fff;
}
footer a:hover,
footer a:focus {
	color: #fff;
	text-decoration: underline;
}


/*** Helpers ***/
.text-center {
	text-align: center;
}
.text-right {
	text-align: right;
}

.red {
	color: #ad0909;
}
.green {
	color: #336666;
}
.muted {
	color: #ccc;
}
.bg-light-gray {
	background: #f5f5f5;
}

.padding-all {
	padding: 15px;
}
.padding-top {
	padding-top: 15px;
}
.padding-right {
	padding-right: 15px;
}
.padding-bottom {
	padding-bottom: 15px;
}
.padding-left {
	padding-left: 15px;
}
.padding-sides {
	padding-left: 15px;
	padding-right: 15px;
}
.no-padding {
	padding: 0;
}
.no-margin {
	margin: 0;
}
.margin-all {
	margin: 15px;
}
.margin-bottom {
	margin-bottom: 15px;
}
.margin-top {
	margin-top: 15px;
}
.margin-sides {
	margin-left: 15px;
	margin-right: 15px;
}

@media (min-width: 800px) {
	.padding-all {
		padding: 30px;
	}
	.padding-top {
		padding-top: 30px;
	}
	.padding-right {
		padding-right: 30px;
	}
	.padding-bottom {
		padding-bottom: 30px;
	}
	.padding-left {
		padding-left: 30px;
	}
	.padding-sides {
		padding-left: 30px;
		padding-right: 30px;
	}
	.margin-all {
		margin: 30px;
	}
	.margin-bottom {
		margin-bottom: 30px;
	}
	.margin-top {
		margin-top: 30px;
	}
	.margin-sides {
		margin-left: 30px;
		margin-right: 30px;
	}
}

.pull-right {
	float: right;
}
@media (min-width: 800px) {
	.pull-left-spacing {
		float: left;
		margin: 0 20px 0 0;
	}
}

.alert {
	position: relative;
	padding: .75rem 1.25rem;
	margin-bottom: 1rem;
	border: 1px solid transparent;
	border-radius: .25rem;
}
.alert-danger {
	color: #721c24;
	background-color: #f8d7da;
	border-color: #f5c6cb;
}
.alert-success {
	color: #155724;
	background-color: #d4edda;
	border-color: #c3e6cb;
}
.alert-info {
	color: #004085;
	background-color: #cce5ff;
	border-color: #b8daff;
}
.alert-green {
	background-color: #dce8ea;
	border-color: #bdd7db;
}

.table {
	width: 100%;
	margin-bottom: 1rem;
	vertical-align: top;
	border: 1px solid #ddd;
	border-collapse: collapse;
}
.table > :not(caption) > * > * {
	padding: 0.5rem 0.5rem;
	border-bottom-width: 1px;
}
.table > tbody {
	vertical-align: inherit;
}
.table > thead {
	vertical-align: bottom;
}
.table-bordered > tbody > tr > * {
	border: 1px solid #ddd;
}
.table-responsive {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}



/*** Offline Styles ***/
#offline-wrapper {
	max-width: 500px;
	margin: 50px auto;
	background: #336666;
	padding: 30px;
}
#offline-wrapper .offline-logo {
	max-width: 200px;
	display: block;
	margin: 0 auto 20px auto;
}
#offline-wrapper fieldset {
	border: 0;
	margin-top: 20px;
	text-align: left;
}



/* Pagination styles */
.pagination {
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-size: 14px;
}
.pagination ul.pagination {
	list-style: none;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
}
.pagination ul.pagination li a {
	border: 1px solid #dedede;
	line-height: 1.25;
	position: relative;
	display: block;
	padding: .5rem .75rem;
	font-weight: 600;
	margin-left: -1px;
	transition: all 0.3s ease-in-out;
}
.pagination ul.pagination li a::before {
	display: none;
}
.pagination ul.pagination li a:hover,
.pagination ul.pagination li.active a {
	background-color: #e9e6da;
	color: #000;
}
.pagination ul.pagination li.disabled > span {
	color: #999;
	pointer-events: none;
	cursor: auto;
}

@media (min-width: 800px) {
	.pagination {
		flex-direction: row-reverse;
		justify-content: space-between;
		align-items: center;
	}
	.pagination ul.pagination {
		margin: 0;
	}
}




/*** Form Elements Styles ***/
input:not([type=checkbox]):not([type=radio]),
select,
textarea {
	-webkit-appearance: none;
	box-sizing: border-box;
	border: 2px solid #e6e6e6;
	font-size: inherit;
	font-family: inherit;
	line-height: inherit;
	width: 100%;
	padding: 15px;
	border-radius: 5px;
	outline: none;
	transition: all .35s ease-in-out;
	min-height: 40px;
	box-shadow: none;
}
select {
	background-image: linear-gradient(45deg, transparent 50%, #ccc 50%), linear-gradient(135deg, #ccc 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 15px) calc(1em + 4px);
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}
input:not([type=checkbox]):not([type=radio]):hover,
select:hover,
textarea:hover,
input:not([type=checkbox]):not([type=radio]):focus,
select:focus,
textarea:focus {
	border-color: #85a3a3;
}
button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}


/*** Webform Styles ***/
.bfQuickMode label {
	font-weight: 600;
	display: block;
	margin: 30px 0 10px 0;
}
