/**************************** BAKCGROUND OVERLAYS ******************************/

#background-overlay {
	position: fixed;
	background: rgba(0, 0, 0, 0);
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 12;
	transition: 0.3s all;
}

#background-overlay.visible {
	background: rgba(0, 0, 0, 0.65);	
}

#background-overlay.animout {
	background: rgba(0, 0, 0, 0);
}

#background-overlay.animin {
	background: rgba(0, 0, 0, 0.65);
}

#background-overlay.two-popups {
	z-index: 100010;
}


/***************************** GENERAL STYLING *******************************/

.armory-popup {
	position: fixed;
    z-index: 100001;
    left: 50%;
    margin: 0 auto 0;
    width: 100%;
    max-width: 600px;
    height: auto;
    transform: translate(-50%, -50%);
    top: 50%;
	transition: opacity 0.3s ease;
	opacity: 0; 
	pointer-events: none;
}

.armory-popup.small {
	max-width: 300px;
}

.armory-popup.small .innerwrap {
	padding: 26px 40px 26px;
}

.armory-popup.medium {
	max-width: 450px;
}

.armory-popup.black > div {
	background: black;
}

.armory-popup.black > div p {
	color: white;	
}

.armory-popup.medium .innerwrap {
	padding: 32px 43px;
}

.armory-popup.small.bottompad .innerwrap { 
	padding-bottom: 56px;	
}

.armory-popup.movable {
	position: absolute !important;
}

.armory-popup .innerwrap {
	background: white;
	border-radius: 9px;
	z-index: 1000;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	padding: 12px 30px 7px;
	text-align: center;
	position: relative;
}

.armory-popup.large .innerwrap {
	padding: 30px 30px 40px;
}

.armory-popup .innerwrap::before {
	/* border: 2px solid rgba(58, 89, 92, 0.5);
    width: 98.2%;
    height: 94%; 
	content: "";
	
    position: absolute;
    display: block;
    top: 2px;
    border-radius: 7px;
    left: 2px;
    right: 2px;
    z-index: 2;
    background-color: #f2f2f2;
	*/
}

.armory-popup.terms {
	height: 400px !important;
	z-index: 2000000;
}
.armory-popup.terms .innerwrap {
	height: 100% !important;
	overflow-y: scroll;
	padding: 20px 60px 60px 60px;
	text-align: left;
}
.armory-popup.help .innerwrap {
	padding: 35px 35px 55px;
}
.armory-popup.help ul li {
	list-style: outside;
	text-align: left;
	margin: 0 0 0 1em;
}
.armory-popup.help .innerwrap img {
	clear: both;
	display: block;
	margin: 20px auto;
}
.armory-popup.help .innerwrap p {
	text-align: left;
	display: block;
	float: none;
}
.armory-popup.help .innerwrap p:first-of-type {
	text-indent: 0;
}
.armory-popup.help .innerwrap p.footnote {
	font-style: italic;
	text-indent: 0;
	color: #999;
}
.armory-popup.help .first-time {
	margin: 50px -35px -60px;
	color: #999;
	border-top: 1px dotted #ddd;
	padding: 30px 80px 30px 80px;
	background: #eee;
}
.armory-popup.help .first-time p {
	text-align: center;
}
.armory-popup.magnet .innerwrap {
	padding: 0;
}
.armory-popup .innerwrap img {
	border-radius: 6px;
}
.armory-popup p {
	margin: 0 0 1em 5px;
    z-index: 6;
    position: relative;
    display: inline-block;
    font-size: 18px;
    font-family: 'Fira Sans';
    color: gray;
    font-weight: 500;
	line-height: 1.4em;
}

.armory-popup p:last-of-type {
	margin-bottom: 0;	
}

.armory-popup.update {
	position: fixed;
    left: 16px;
    bottom: 24px;
    font-size: 16px;
    padding: 10px 0;
    top: auto;
    margin: auto;
    transform: none;
    width: auto;
	transition: 0.4s all;
} 

.armory-popup.update.hide {
	display: block !important;
	transform: scale(0.95);
	opacity: 0;
	transition: 0.4s all;
}
.armory-popup.update i {
	display: inline-block;
	margin-right: 4px;
}

.armory-popup.update i::before {
	content: "\f058";
	font-family: "Font Awesome 5 Free";
}

.armory-popup.update .innerwrap {
	background: rgb(110,255,53);
	background: -webkit-linear-gradient(rgba(110,255,53,1) 0%, rgba(18,186,3,1) 100%);
	background: -o-linear-gradient(rgba(110,255,53,1) 0%, rgba(18,186,3,1) 100%);
	background: linear-gradient(rgba(96,148,153,1) 0%, rgba(58,89,92,1) 100%);
	padding: 7px 20px 6px;
	color: white;
	border-radius: 3px;
}
/*
rgb(58, 89, 92)*/

.armory-popup.update .innerwrap::before {
    border: 1px solid white;
	border-image: linear-gradient(to bottom, white 0%, #114805 100%) 1;
    width: calc(100% - 6px);
    height: 88%;
    position: absolute;
    content: "";
    display: block;
    top: 2px;
    border-radius: 4px;
    left: 2px;
    right: 2px;
    z-index: 2;
	background: none;
}

.armory-popup a.close, i.close {
    top: 12px !important;
    right: 12px !important;
    z-index: 3;
    position: absolute;
}

.armory-popup a, i.close:hover {
	color: rgba(58, 89, 92, 0.7);
	cursor: pointer;
}

.armory-popup.animout {
	transform: translate(-50%, -100%) scale(0.9) !important;
	opacity: 0;
}

.armory-popup .ui {
	margin: 0 auto;
	display: flex;
	flex-direction: row;
}

.armory-popup button {
    border-radius: 6px;
    cursor: pointer;
    width: auto;
    height: 35px;
    margin: 0;
	float: none;
    font-size: 14px;
    padding: 0 15px;
	display: table;
    transition: 0.25s all;
    background: rgb(58, 89, 92);
    color: white;
	border: none;
}

.armory-popup button.centered {
    margin: 5px auto 10px;
}

.armory-popup button:hover {
	color: #fac100;	
	background: rgb(28, 59, 62);
}

.armory-popup button a {
	color: white;
	text-decoration: none;
}

.armory-popup button:hover a {
	color: #fac100;	
}

.armory-popup .ui {
    margin: 5px auto 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
	gap: 7px;
}

.armory-popup p + .ui {
	margin-top: 12px;	
}

.armory-popup.confirm-operation span:not(.fa-times) {
	font-size: 15px;
    margin: 15px 0 0 0;
    display: block;
    font-style: italic;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 89, 92, 0.8);
    color: white;
	padding: 3px 0;
}

.armory-popup h3 {
	font-family: museo, sans-serif;
    margin: 0.2em 0 2em;
    font-size: 26px;
    color: silver;
    font-weight: 200;
}

.armory-popup.form_popup h4 {
	font-family: "Fira Sans", sans-serif;
	margin: 20px 0 10px 0;
}

.armory-popup.form_popup .innerwrap {
	padding-bottom: 38px !important;
}

.armory-popup.form_popup p {
	font-family: "Fira Sans", sans-serif;
	font-size: 18px;
	font-weight: 400;
}


/************************* TRANSITIONS ********************/

.armory-popup.show {
	opacity: 1;
	pointer-events: auto;
}

.armory-popup.fade-out {
	opacity: 0 !important;
}


/************************* SETTINGS POPUPS ********************/

.armory-popup.settings h3 {
	margin-bottom: 10px;
}


/*
.armory-popup[data-vistime] {
	animation-iteration-count: 1;
	opacity: 0;
} 


@keyframes popup-opacity-pulse {
	0% {
		opacity: 0;
		transform: scale(0.95);
	}
	15% {
		opacity: 1;
		transform: scale(1);
	}
	85% {
		opacity: 1;
		transform: scale(1);		
	}
	100% {
		opacity: 0;
		transform: scale(0.95);
	}
}
*/