
/*
#AB3C31 - magenta
#17A6CA - neon blue
*/





/* ==================================================================== */
/*	--> M I S C							*/
/* ==================================================================== */

:root,
HTML,
BODY {
	background-color: #FFFFFF;
	color: #333333;
}

@media (prefers-color-scheme: dark) {
	:root,
	HTML,
	BODY {
		background-color: #121212;
		color: #EAEAEA;
	}
}

.safe_area {
	position: fixed;
	top: env(safe-area-inset-top);
	bottom: env(safe-area-inset-bottom);
	left: env(safe-area-inset-left);
	right: env(safe-area-inset-right);
	overflow: hidden;
	margin: 0 auto;
	padding: 40px 30px 60px 30px !important;
	max-width: 500px;
	overflow: auto;
}

.button {
	-webkit-user-select: none;
	appearance: none;
	cursor: pointer;
	font-family: 'New Rocker', Helvetica, Arial, sans-serif;
	margin: 0 5px 5px 5px;
	display: inline-block;
	text-align: center;
	text-decoration: none !important;
	transition-delay: 0s;
	transition-duration: 0.1s;
	transition-property: color;
	transition-timing-function: ease-out;
	white-space: nowrap;
	overflow: hidden;
	background-color: #000000;
	border: 2px solid #AB3C31;
	border-radius: 6px;
}

.button,
.button:hover,
.button:active {
	color: #FFFFFF !important;
}

.button.embolden,
.button.embolden:hover,
.button.embolden:active {
	background-color: #AB3C31 !important;
}

@media (prefers-color-scheme: light) {
	.button.embolden,
	.button.embolden:hover,
	.button.embolden:active {
		border: none;
	}
}

@media (prefers-color-scheme: dark) {
	.button.embolden,
	.button.embolden:hover,
	.button.embolden:active {
		border-color: #FFFFFF;
	}
}

/* Small / extra small button variants */
.button.small,
.button.xsmall {
}

.button.embolden {
	background-color: #000000;
	color: #FFFFFF;
}

.button.embolden:hover,
.button.embolden:focus {
	color: #CCCCCC !important;
}

.button.disabled,
.button.disabled:hover,
.button.disabled:focus {
	color: rgba(255,255,255,.6) !important;
	background-color: rgba(255,255,255,.4) !important;
	cursor: not-allowed !important;
	opacity: .6 !important;
	animation-name: none !important;
	box-shadow: rgba(255,255,255,.5) 0 6px 0px -3px !important;
	webkit-box-shadow: rgba(255,255,255,.5) 0 6px 0px -3px !important;
}

.button .glyphicon.right {
	margin-left: 6px;
}

.button .glyphicon.left {
	margin-right: 6px;
}

BUTTON.glyphicon-search {
	margin: 0;
	padding: 6px;
	font-size: 14px;
	border: none;
	background-color: transparent;
	color: #FFFFFF;
}

.pulse,
.shake,
.wobble {
	animation-fill-mode: forwards;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
}

.pulse {
	animation-name: pulse;
	animation-duration: 2s;
}

@keyframes pulse {
	0%,30%,50%,80%,100% {
		transform: scale(1) rotate(0deg);
	}
	40% {
		transform: scale(1.08) rotate(1deg);
	}
	90% {
		transform: scale(1.08) rotate(-1deg);
	}
}

.shake {
	animation-name: shake;
	animation-duration: .5s;
}

@keyframes shake {
	0% {   transform: translate(1px, 1px)   rotate(0deg);  }
	10% {  transform: translate(-1px, -2px) rotate(-1deg); }
	20% {  transform: translate(-3px, 0px)  rotate(1deg);  }
	30% {  transform: translate(3px, 2px)   rotate(0deg);  }
	40% {  transform: translate(1px, -1px)  rotate(1deg);  }
	50% {  transform: translate(-1px, 2px)  rotate(-1deg); }
	60% {  transform: translate(-3px, 1px)  rotate(0deg);  }
	70% {  transform: translate(3px, 1px)   rotate(-1deg); }
	80% {  transform: translate(-1px, -1px) rotate(1deg);  }
	90% {  transform: translate(1px, 2px)   rotate(0deg);  }
	100% { transform: translate(1px, -2px)  rotate(-1deg); }
}

.wobble {
	animation-name: wobble;
	animation-duration: 2.5s;
	transform: translate(1px, -2px)  rotate(-1deg);
	transform-origin: 20%;
}

@keyframes wobble {
	0% {   transform: translate(1px, -1px)   rotate(1deg);  }
	10% {  transform: translate(-1px, -2px) rotate(-1deg); }
	20% {  transform: translate(-3px, 0px)  rotate(1deg);  }
	30% {  transform: translate(3px, 2px)   rotate(0deg);  }
	40% {  transform: translate(1px, -1px)  rotate(1deg);  }
	50% {  transform: translate(-1px, 2px)  rotate(-1deg); }
	60% {  transform: translate(-3px, 1px)  rotate(0deg);  }
	70% {  transform: translate(3px, 1px)   rotate(-1deg); }
	80% {  transform: translate(-1px, -1px) rotate(1deg);  }
	90% {  transform: translate(1px, 2px)   rotate(0deg);  }
	100% { transform: translate(1px, -1px)   rotate(1deg);  }
}




/* ==================================================================== */
/*	--> W I N D O W S   &   P O P U P S				*/
/* ==================================================================== */

.overlay {
	position: fixed;
	inset: 0;
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	backdrop-filter: blur(20px) saturate(1.8);
	background-color: rgba(0,0,0,.4);
	z-index: 1000;
	visibility: visible;
	pointer-events: none;
	opacity: 0;
	-webkit-transition: opacity .3s linear;
	   -moz-transition: opacity .3s linear;
	    -ms-transition: opacity .3s linear;
	     -o-transition: opacity .3s linear;
		transition: opacity .3s linear;
}

.window {
	border: 1px solid rgba(255,255,255,.3);
	box-shadow: #000000 0 6px 0px -3px;
	border-radius: 20px;
	width: 90%;
	max-width: 350px;
	max-height: 90%;
	inset: 50% auto auto 50%;
	transform: translate(-50%,-50%);
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	backdrop-filter: blur(20px) saturate(1.8);
	background-color: rgba(0, 0, 0, 0.7);
	position: fixed;
	z-index: 1001;
	padding: 0;
	overflow: auto;
	pointer-events: none;
	opacity: 0;
	-webkit-transition: all .3s ease-in-out;
	   -moz-transition: all .3s ease-in-out;
	    -ms-transition: all .3s ease-in-out;
	     -o-transition: all .3s ease-in-out;
		transition: all .3s ease-in-out;

}

.window_content {
	position: relative;
	max-height: 80vh;
	padding: 40px 40px;
	overflow: auto;
	z-index: 1;
}

.close_button {
	position: absolute;
	inset: 0 0 auto auto;
	height: 40px;
	width: 40px;
	line-height: 40px;
	font-size: 26px;
	text-align: center;
	cursor: pointer;
	font-weight: normal;
	color: #AB3C31;
	z-index: 2;
}

BODY.open_inform_modal #inform_modal_overlay {
	pointer-events: auto;
	opacity: 1;
}

#inform_modal {
	text-align: center;
	width: 90%;
	max-width: 350px;
	max-height: 90%;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	text-align: center;
	color: #FFFFFF;

}

BODY.open_inform_modal #inform_modal {
	pointer-events: auto;
	opacity: 1;
}

#inform_modal * {
	text-align: center;
}

BODY.open_inform_modal {
	overflow: hidden;
	height: 100%;
}

A:active,
A:focus {
	outline: 1px solid #AB3C31 !important;
	color: #AB3C31 !important;
}





/* ==================================================================== */
/*	--> C U S T O M   A C T I O N S					*/
/* ==================================================================== */

#custom_alert,
#custom_confirm,
#custom_prompt {
	display: none;
	position: fixed;
	inset: 0;
	-webkit-backdrop-filter: blur(20px) saturate(1.8);
	backdrop-filter: blur(20px) saturate(1.8);
	background-color: rgba(0,0,0,.5);
	z-index: 1002;
	visibility: visible;
	pointer-events: none;
}

BODY.open_custom_alert #custom_alert,
BODY.open_custom_confirm #custom_confirm,
BODY.open_custom_prompt #custom_prompt {
	pointer-events: auto !important;
	display: block !important;
}

#custom_alert DIV,
#custom_confirm DIV,
#custom_prompt DIV {
	text-align: center;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 80%;
	max-width: 500px;
}

#custom_alert P,
#custom_confirm P,
#custom_prompt P {
	text-align: center;
	color: #FFFFFF;
	margin: 0 0 20px 0;
	text-shadow: 1px 1px 2px #000000;
}

#custom_alert P.XS,
#custom_confirm P.XS,
#custom_prompt P.XS {
	font-size: 18px;
	font-weight: 500;
}

#custom_prompt INPUT,
#custom_prompt INPUT:focus {
	width: 100%;
	cusor: text;
	display: block;
	border: none;
	background-color: rgba(255,255,255,.4);
	border-radius: 6px;
	border-top: 1px solid rgba(0,0,0,.3);
	border-bottom: 1px solid rgba(255,255,255,.15);
	font-family: 'Merriweather', Helvetica, Arial, sans-serif;
	font-weight: 400;
	margin: 0 auto;
	padding: 10px 15px;
	font-size: 18px;
	color: #FFFFFF;
	outline: none;
}

#custom_prompt INPUT::placeholder {
	color: rgba(255,255,255,.3);
}

#custom_alert BUTTON,
#custom_confirm BUTTON,
#custom_prompt BUTTON {
	margin: 20px 10px 0 10px;
}






/* ==================================================================== */
/*	--> S H A R E   M O D A L					*/
/* ==================================================================== */

#share_modal {
}

#share_modal .XS {
	font-family: 'Merriweather', Helvetica, Arial, sans-serif;
}

#share_modal P {
	margin: 0;
	padding: 0;
}

#share_url {
	padding: 10px;
	margin: 0 0 10px 0;
	color: #000000;
	background-color: rgba(255,255,255,.5);
	border-radius: 6px;
	border: none;
	width: 100%;
	display: block;
	font-size: 18px;
	cursor: pointer;
	border-radius: none;
}

#clipboard_confirmation {
	margin: 0;
	padding: 5px 7px;
	text-align: center;
	display: none;
	background-color: green;
	color: #FFFFFF;
	border-radius: 6px;
	text-shadow: none;
	font-weight: bold;
}

#share_modal UL {
	list-style-type: none;
	margin: 0;
	padding: 10px 0 0 0;
}

#share_modal LI {
	margin: 10px 0 0 0;
	padding: 0;
	display: block;
	font-size: 20px;
	white-space: nowrap;
	vertical-align: middle;
	line-height: 32px;
}

#share_modal LI A {
	color: #17A6CA;
	text-decoration: none;
}

#share_modal IMG {
	width: 32px;
	height: 32px;
	display: inline-block;
	vertical-align: middle;
	margin: 0 10px 0 0;
	transform: scale(.8);
	transition: transform .2s ease-out;
}

#share_modal LI:hover IMG {
	transform: scale(1);
}






/* ==================================================================== */
/*	--> A C T I O N   L O A D I N G					*/
/* ==================================================================== */

#action_loading {
	display: none;
	text-align: center;
	position: fixed;
	inset: 0;
	z-index: 5000;
}

#action_loading DIV {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width: 64px;
	height: 64px;
}

#action_loading DIV:after {
	content: ' ';
	display: block;
	width: inherit;
	height: inherit;
	border-radius: 50%;
	animation: action_loading 1.2s linear infinite;
	border-width: 6px;
	border-style: solid;
	border-color: #FFFFFF transparent #FFFFFF transparent;
}
@keyframes action_loading {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

BODY.show_action_loading {
	pointer-events: none;
	opacity: .5;
}

BODY.show_action_loading #action_loading {
	display: block;
}





