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

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

.tight.row { max-width: 64rem !important; margin: auto !important; }
.row { max-width: 80rem !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-color2);
	font-size: 0.85em;
	padding: 10px 20px;	
	border-radius: 4px;
	margin: 30px 0;
	transition: all 0.5s;
}
button:hover, button:focus, 
.button:hover, .button:focus {
	background-color: var(--theme-secondary-color);
	color: var(--theme-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 {
	border-bottom-color: var(--theme-secondary-color);
	transition: border-bottom-color 0.5s;
}
a.active {
	border-bottom-color: var(--theme-secondary-color);
}

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

/* ------- 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%);
}

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

body {
	font-size: 16px;
	font-family: var(--theme-content-font);
}
h1, h2 {
	font-family: var(--theme-heading-font);
}
h1 {
	font-size: 3.25em;
	color: var(--theme-text-color);
	text-align: center;
}
h2 {
	font-size: 2em;
	color: var(--theme-secondary-color);
}
h3, h4, h5 {
	font-family: var(--theme-heading-font);
	font-size: 1.5em;
	font-weight: normal;
	color: var(--theme-text-color);
}
h3 {
	font-weight: bold;
}
h5 {
	font-style: italic;
}
p {
	font-family: var(--theme-content-font);
	font-size: 1em;
	color: var(--theme-text-color);
}


/* --------------- Tables --------------- */
table, tr, td { 
	background-color: transparent;
	font-family: var(--theme-content-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-content-font);
	font-size: 1em;
	margin-right: 5px;
}
input, textarea {
	font-family: var(--theme-content-font);
	font-size: 0.75em;
	border-width: 2px;
	border-color: var(--theme-color);
	border-style: groove;
	border-radius: 5px;
	padding: 5px;
	margin-bottom: 15px;
}
fieldset {
	margin: 15px 0;
}