/* Useful classes for managing padding/margin */
.nopadding {
	padding: 0;
}
.nomargin {
	margin: 0;
}
.columns.slimpadding {
	padding: 0 5px;
}

/* -------------- Row width ------------- */

.tight.row { max-width: 67.5rem !important; margin: auto !important; }
.row { max-width: 70.5rem !important; margin: auto !important; }
.wide.row { max-width: 97.5rem !important; margin: auto !important; }
.full.row { max-width: 100% !important; margin: auto !important; }

/* ----------- Links & Buttons ---------- */
button, .button {
	display: webkit-inline-box;
	background-color: var(--theme-secondary-color);
	font-size: 1.2em;
  	padding: 0.5rem 2rem;
  	border-radius: 1px;
	margin: 30px 0;
	transition: all 0.5s;
	border:1px solid var(--theme-secondary-color)
}
button:hover, button:focus, 
.button:hover, .button:focus {
	background-color: var(--theme-secondary-color);
	transition: all 0.5s;
}
button.square, 
.button.sqaure {
	border-radius: 0;	
}
button.semirounded,
.button.semirounded {
	border-radius: 12px;	
}
button.rounded,
.button.rounded {
	border-radius: 20px;	
}

a {
	text-decoration: none;
	color: var(--theme-secondary-color);
	border-bottom: 1px solid transparent;
	transition: border-bottom-color 1s;
}
a:hover {
	color: var(--theme-secondary-color);
	transition: color 0.5s;
}

/* ---------------- Menus --------------- */
ul.menu {
	list-style-type: none;
}
ul.menu.main {
	width: 100%;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;	
}

/* ---------------- Lists --------------- */
ul {
	padding-left: 0;
	margin-left: 1.5rem;
	list-style-type: square;
}
li {
	font-size: 1.3rem;
	margin-left: 0.5rem;
}
li::marker {
	color: var(--theme-secondary-color);
	font-size: 2rem;
}
@media screen and (max-width: 1024px) {
	ul { margin-left: 1.4rem; }
	li { font-size: 1.2em; margin-left: 0.4rem; }
	li::marker { font-size: 1.8rem; }
}
@media screen and (max-width: 640px) {
	ul { margin-left: 1.2rem; }
	li { font-size: 1.1em; margin-left: 0.3rem; }
	li::marker { font-size: 1.6rem; }
}
@media screen and (max-width: 400px) {
	ul { margin-left: 1rem; }
	li { font-size: 1em; margin-left: 0.2rem; }
	li::marker { font-size: 1.4rem; }
}

/* ------- Hover Effects Classes -------- */
.hover-expand:hover {
	transform: scale(1.02);
	transition: all 0.3s;
}

.hover-push:hover {
	transform: translate(2px, 2px);
	transition: all 0.3s;
}

.hover-change-shadow:hover {
	-webkit-box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 5px 5px 15px 5px rgba(0,0,0,0); 
	box-shadow: inset -1px 3px 8px 5px #1F87FF, 2px 5px 16px 0px #0B325E, 5px 5px 15px 5px rgba(0,0,0,0);
	transition: all 0.5s;
}

.hover-change-background:hover {
	background-color: var(--theme-thertiary-color);
	transition: all 0.5s;
}

.hover-change-tilt:hover {
	-moz-transform: rotate(2deg);
	-webkit-transform: rotate(2deg);
	-o-transform: rotate(2deg);
	-ms-transform: rotate(2deg);
	transform: rotate(2deg);
	transition: all 0.5s;
}


.hidden-content-container {
	position: relative;
}
.hidden-content {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: all 0.5s ease;
}
.hidden-content-container:hover .hidden-content {
	opacity: 1;
	transition: all 0.5s;	
}

.hover-flip .item .container {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.hover-flip .item .container .front,
.hover-flip .item .container .back {
  transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;

  background-size: cover;
  background-position: center;
  backface-visibility: hidden;
  height: auto;
}
.hover-flip .item .container .front {
  transform: rotateY(0deg);
}
.hover-flip .item .container:hover .front {
  transform: rotateY(-180deg);
}
.hover-flip .item .container .back {
  transform: rotateY(180deg);
}
.hover-flip .item .container:hover .back {
  transform: rotateY(0deg);
}
.hover-flip .item .container .back {
  width: 100%;
  height: 100%;
  background-color: var(--theme-dark-grey);
  position: absolute;
  top: 0;
  left: 0;
}
.hover-flip .item .container .back .inner {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* --------- Main Site Structure -------- */
main {
	margin: 5rem auto;
}
@media screen and (max-width: 1024px) {
	main {
		margin: 3rem auto;
	}
}
@media screen and (max-width: 640px) {
	main {
		margin: 1rem auto;
	}
}

/* ---------- Textual Elements ---------- */

body {
	font-size: 16px;
	font-family: var(--theme-font);
}
h1, h2, h3 {
	font-family: var(--theme-heading-font);
}
h1 {
	font-size: 2.5em;
	color: var(--theme-secondary-color);
	text-align: center;
}
h2 {
	font-size: 1.8em;
	color: var(--theme-secondary-color);
	font-weight: bold;
}
h3 {
	font-size: 1.3em;
	color: var(--theme-secondary-color);
	font-weight: bold;
}
h4, h5 {
	font-family: var(--theme-font);
	font-size: 1em;
	font-weight: normal;
	color: var(--theme-text-color);
}
h5 {
	font-style: italic;
}
p {
	font-family: var(--theme-font);
	font-size: 1.3em;
	color: var(--theme-text-color);
}
b, strong {
	color: var(--theme-secondary-color);
}
@media screen and (max-width: 1024px) {
	h1 { font-size: 3.75em; }
	h2 { font-size: 1.8em; }
	p { font-size: 1.2em; }
	h3, h4, h5 { font-size: 1.2em; }
}
@media screen and (max-width: 640px) {
	h1 { font-size: 3.25em; }
	h2 { font-size: 1.6em; }
	p { font-size: 1.1em; }
	h3, h4, h5 { font-size: 1.1em; }
}
@media screen and (max-width: 400px) {
	h1 { font-size: 2.27em; }
	h2 { font-size: 1.4em; }
	p { font-size: 1em; }
	h3, h4, h5 { font-size: 1em; }
}


/* --------------- Tables --------------- */
table, tr, td { 
	background-color: transparent;
	font-family: var(--theme-font);
	font-size: inherit;
	border-style: none;
	border-spacing: 0;
}
td {
	padding: 10px 5px;
}
tr:nth-child(odd) {
	background-color: #eee;
}
th {
	font-family: var(--theme-heading-font);
	font-size: 1.1em;
	border-style: none;
}

/* --------------- Webforms --------------- */
label {
	font-family: var(--theme-font);
	font-size: 1em;
	margin-right: 5px;
}
input, textarea,
input[type=color],
input[type=date],
input[type=datetime-local],
input[type=datetime],
input[type=email],
input[type=month],
input[type=number],
input[type=password],
input[type=search],
input[type=tel],
input[type=text],
input[type=time],
input[type=url],
input[type=week] {
	font-family: var(--theme-font);
	font-size: 0.75em;
	border-width: 2px;
	border-color: var(--theme-secondary-color);
	border-style: groove;
	border-radius: 5px;
	padding: 5px;
	margin-bottom: 15px;
}
fieldset {
	margin: 15px 0;
}



/* ---------------- Views ----------------- */
.views-element-container {
  display: inline-block;
  margin-bottom: 5rem;
}
@media screen and (max-width: 1024px) {
	.views-element-container {
  	margin-bottom: 3rem;
  }
}
@media screen and (max-width: 640px) {
	.views-element-container {
  	margin-bottom: 1rem;
  }
}

/* ------------ Mini Gallery -------------- */
.mini-gallery {
	display: inline-block;
}
.mini-gallery ul {
	margin: 0;
	list-style: none;
}
.mini-gallery ul li {
	width: 32%;
	float: left;
	margin: 0.1rem 1% 0.1rem 0;
}
.view-footer {
	text-align: center;
}
.view-footer a {
	font-size: 1.5rem;
}

@media screen and (max-width: 1024px) {
	.view-footer a {
		font-size: 1.3rem;
	}	
}
@media screen and (max-width: 640px) {
	.view-footer a {
		font-size: 1.1rem;
	}
}
/* ------------ Full Gallery -------------- */
.block-views-blockfull-gallery-block-1 ul {
	margin-left: 0;
	list-style: none;
}
.block-views-blockfull-gallery-block-1 ul li {
	/*max-width: 23%;*/
	display: inline-block;
	margin: 1%;
}
@media screen and (max-width: 1024px) {
	.block-views-blockfull-gallery-block-1 ul li {
		max-width: 31%;
	}
}
@media screen and (max-width: 640px) {
	.block-views-blockfull-gallery-block-1 ul li {
		max-width: 48%;
	}
}

/* ---------------- Events ---------------- */
.event .icon {
	text-align: center;
	margin-bottom: 0.3rem;
}
.event .icon img {
	max-width: 100px;
}
.event .icon i,
.event .icon svg {
	font-size: 75px;
	color: var(--theme-secondary-color);
}
.event.node.teaser {
	text-align: center;
	margin-bottom: 3rem;
}
.event.node.teaser h3 {
	margin: 0.5rem auto;
}
.event.node .field {
	margin: 1.5rem auto;
	text-align: center;
}
.event.node .field .text p {
	font-size: 0.9em;
}

/* --------------- Fixed Header ------------ */
.fixed {
	position: fixed;
	z-index: 1000;
	width: 100%;
}

.block-page-title-block {
	margin-top: 130px;
}
.front .block-page-title-block {
	margin-top: 0;
}
.front #banner {
	margin-top: 130px;
}
@media screen and (max-width: 640px) {
	.block-page-title-block {
		margin-top: 175px;
	}	
}

/* --------------- Footer ------------------ */
#copyright {
	text-align: left;
	margin: 0.2rem 0;
}
#igd {
	text-align: right;
	margin: 0.2rem 0;
}
@media screen and (max-width: 640px) {
	#copyright, #igd {
		text-align: center;
		margin: 0.5rem 0;
		font-size: 0.8rem;
	}
}