@import url('//fonts.googleapis.com/css?family=Montserrat:600,800|Press+Start+2P');

@keyframes flip-in {
	0% {
		transform: scale(0) rotateX(0deg);
	}

	50% {
		transform: scale(0.5) rotateX(180deg);
	}

	100% {
		transform: scale(1) rotateX(0deg);
	}
}

@keyframes flip-out {
	0% {
		transform: scale(1) rotateX(0deg);
	}

	50% {
		transform: scale(0.5) rotateX(180deg);
	}

	100% {
		transform: scale(0) rotateX(0deg);
	}
}

@keyframes pop-in {
	0% {
		transform: scale(0);
	}

	100% {
		transform: scale(1);
	}
}

@keyframes pop-out {
	0% {
		transform: scale(1);
	}

	100% {
		transform: scale(0);
	}
}

@keyframes slide-up-overshoot {
	0% {
		transform: translateY(100%);
	}

	75% {
		transform: perspective(20px) rotateX(-1deg) translateY(-10px);
	}

	100% {
		transform: perspective(0) translateY(0);
	}
}

@keyframes ready-set-slide-down {
	50% {
		transform: perspective(20px) rotateX(-1deg) translateY(-10px);
	}

	100% {
		transform: perspective(0) translateY(100%);
	}
}

@keyframes slide-in-overshoot {
	0% {
		transform: translateX(-100%);
	}
	75% {
		transform: skewX(-15deg) translateX(30px);
	}
	100% {
		transform: skewX(0) translateX(0);
	}
}

@keyframes ready-set-slide-out {
	50% {
		transform: skewX(-15deg) translateX(10px);
	}
	100% {
		transform: skewX(0) translateX(-100%);
	}
}

@keyframes flash {
	0% {
		opacity: 0.3;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0.3;
	}
}

@keyframes coin-toss {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(2);
	}
}

@keyframes coin-flip {
	0% {
		transform: rotateX(180deg);
	}
	100% {
		transform: rotateX(3780deg);
	}
}

@keyframes coin-flip-reverse {
	0% {
		transform: rotateX(180deg);
	}
	100% {
		transform: rotateX(3600deg);
	}
}

:root {
	--pageBg: #f4fcff;
	--colorDefaultText: #333;
	--colorMediumText: #888;
	--colorLighterText: #aaa;
	--colorDisabledText: #ccc;
	--colorFaint: #e8e8e8;
	--primary: #405784;
	--secondary: white;
	--tertiary: #44b2b5; /* Used in cases where secondary is a light color */
	--accentColor: #ff2882; /* Used as a pop of flashy color */
	--accentColorDarker: #a51a54;
	--primaryBtnBg: #44b2b5;
	--primaryBtnText: white;
	--secondaryBtnBg: #405784;
	--secondaryBtnText: white;
	--footerTextColor: #405784;
	--activeLinkColor: white;
	--successGreen: rgb(33, 162, 93);
	--successGreenDarker: rgb(24, 115, 66);
	--colorAttendedEvent: var(--successGreen);
	--brandPrimary: #012f65;
	--brandSecondary: #76a22f;
	--heading-with-extender-color: #ccc;
	--mainFont: -apple-system, BlinkMacSystemFont, sytem-ui, 'Helvetica Neue', arial, sans-serif;
	--blockFont: 'Montserrat', 'Sanchez', 'Lato', -apple-system, BlinkMacSystemFont, sytem-ui,
		'Helvetica Neue', arial, sans-serif;
}

* {
	box-sizing: border-box;
	--subtle-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1), 0 4px 8px 0 rgba(0, 0, 0, 0.2);
	--subtle-shadow-up: 0 -1px 2px 0 rgba(0, 0, 0, 0.1), 0 -4px 8px 0 rgba(0, 0, 0, 0.2);
}

html,
body,
#svelte {
	padding: 0;
	margin: 0;
	background: var(--pageBg);
	font-family: var(--mainFont);
	font-weight: 400;
	color: var(--colorDefaultText);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	max-width: 100vw;
	height: 100vh; /* Fallback for browsers that do not support Custom Properties */
	max-height: calc(var(--vh, 1vh) * 100);
	height: calc(var(--vh, 1vh) * 100);
	overflow: hidden;
}

body {
	scroll-behavior: smooth;
}

main {
	height: calc(100% - 56px);
	width: 100%;
	margin: 56px auto 0 auto;
	padding: 1rem 0.25rem 1rem 0.25rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: auto;
}

main > h1 {
	text-align: center;
}

.main {
	padding-left: 1rem;
	padding-right: 1rem;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
}

input,
textarea,
select,
button {
	font-family: var(--mainFont);
	font-size: 1rem;
}

input[type='submit'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

button {
	margin: 0;
}

.underline-on-hover:hover,
.underline-on-hover:focus {
	text-decoration: underline;
}

@media (max-width: 600px) {
	main {
		padding: 1rem 0.25rem 1rem 0.25rem;
	}

	h2 {
		font-size: 18px;
		margin: 3px 0 12px 0;
	}
}

h1,
h2,
h3 {
	color: var(--primary);
	font-family: var(--blockFont);
}

h1,
h2 {
	font-weight: 800;
}

ul {
	padding: 0;
}

hr {
	width: 100%;
}

.font-small {
	font-size: 0.7rem;
}
.font-smaller {
	font-size: 0.5rem;
}
.bold,
.bold * {
	font-weight: 600;
}
.align-center {
	text-align: center;
}
.align-left {
	text-align: left;
}
.align-right {
	text-align: right;
}
.center {
	margin: 0 auto;
}
.no-float {
	float: none;
}
.pad-bottom-1em {
	padding-bottom: 1em;
}
.top-3px {
	top: 3px;
}
.top-2px {
	top: 2px;
}
.upper {
	text-transform: uppercase;
}
.dc-chart .pie-slice {
	fill: #000;
}
.tr-header {
	background-color: var(--secondary);
}
.dragover-highli.ght {
	background-color: #ff0;
}
.flex-1 {
	display: flex;
	flex: 1;
}
.flex-shrink-0 {
	display: flex;
	flex-shrink: 0;
}
.flex-center {
	display: flex;
	justify-content: center;
	align-items: center;
}
.flex-space-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.flex-space-around {
	display: flex;
	justify-content: space-around;
	align-items: center;
}
.flex-align-start {
	display: flex;
	align-items: flex-start;
}
.flex-align-end {
	display: flex;
	align-items: flex-end;
}
.flex-justify-end {
	display: flex;
	justify-content: flex-end;
}
.flex {
	display: flex;
}
.flex-col {
	display: flex;
	flex-direction: column;
}
.flex-pull-right {
	margin-left: auto;
}
.flex-pull-left {
	margin-right: auto;
}
.flex-push-bottom {
	margin-top: auto;
}
.flex-align-center {
	align-items: center;
}
.flip {
	display: inline-block;
	transform: rotate(180deg);
}
.full-width {
	width: 100%;
}
.full-width-small-screen {
	width: 100%;
}
@media (min-width: 600px) {
	.full-width-small-screen {
		max-width: 600px;
	}
}
.no-margin-top {
	margin-top: 0;
}
.color-primary {
	color: var(--primary);
}
.color-secondary {
	color: var(--secondary);
}
.color-tertiary {
	color: var(--tertiary);
}
.title-case {
	text-transform: capitalize;
}
.margin-1rem {
	margin: 1rem;
}
.margin-top-1rem {
	margin-top: 1rem;
}
.margin-bottom-1rem {
	margin-bottom: 1rem;
}
.max-width-200 {
	max-width: 200px;
}
.pad-1rem {
	padding: 1rem;
}
.search-wrapper {
	position: relative;
}
.search-wrapper:before {
	content: '\1F50D';
	position: absolute;
	left: 5px;
	top: 5px;
}
.search-wrapper input[type='search'] {
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	height: 36px;
	padding: 0 5px 0 1.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
}
.primary-text {
	color: var(--primary);
}
.row-if-large {
	display: flex;
	flex-direction: column;
	align-items: space-evenly;
	align-items: space-around;
	justify-content: center;
}
.row-if-large > .form-group:first-of-type {
	margin-bottom: 1rem;
}
.form-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.5em;
}
.dismiss-btn,
.delete-btn {
	border: none;
	background: transparent;
	color: var(--colorDisabledText);
	outline: none;
	font-size: 1.5rem;
	height: 30px;
	width: 30px;
	line-height: 0;
	cursor: pointer;
}
.dismiss-btn {
	padding: 0;
	font-size: 2.5rem;
	position: absolute;
	top: 1rem;
	right: 0.5rem;
}
button,
a.style-as-button {
	text-decoration: none;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 0;
	font-weight: 400;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	background-image: none;
	background-color: #fff;
	border: 1px solid var(--colorDisabledText);
	color: #333;
	padding: 0.625rem;
	font-size: 1rem;
	height: 2.5rem;
	line-height: 1;
	user-select: none;
	border-radius: 0.1875rem;
	text-decoration: none;
	white-space: normal;
	touch-action: manipulation;
}
button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}
@media screen and (min-width: 400px) {
	button {
		max-width: 50vw;
	}
}
button.primary {
	background-color: var(--primaryBtnBg);
	border-color: var(--primaryBtnBorder);
	color: var(--primaryBtnText);
}
button.secondary {
	background-color: var(--secondaryBtnBg);
	border-color: var(--secondaryBtnBorder);
	color: var(--secondaryBtnText);
}
button.success {
	background-color: #1b9a1b;
	border-color: #147114;
	color: #fff;
	text-decoration: none;
}
button.danger {
	background-color: #de4558;
	border-color: #941616;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
button.big {
	height: 55px;
	font-size: 1.25rem;
	padding: 12px;
}
button.success.big {
	min-width: 100px;
}
button.update-score {
	margin: 1rem auto;
}
button .fa {
	margin-right: 0.5rem;
}
.alert-error {
	color: #c90a0a;
}
.events-list {
	list-style-type: none;
}
.attendance-highlight {
	font-weight: bold;
	width: 100%;
	padding: 5px;
	background-color: var(--brandSecondary);
	background-color: var(--colorAttendedEvent);
	border-radius: 3px;
	color: white;
}

@media screen and (min-width: 600px) {
	.row-if-large {
		flex-direction: row;
		align-items: center;
		justify-content: space-evenly;
		justify-content: space-around;
	}
	.row-if-large > .form-group:first-of-type {
		margin-bottom: 0;
	}
}
