#doc-sign-container, #popup-container {
	position: fixed;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 99;
}

.no-click {
	pointer-events: none;
}

.doc-sign-bgfadein {
	animation: doc-sign-bgfadein 0.5s forwards;
}

.doc-sign-bgfadeout {
	animation: doc-sign-bgfadeout 0.7s forwards;
}

.doc-sign-bgfadewhite {
	animation: doc-sign-bgfadewhite 0.7s forwards;
}

.doc-sign-doc {
	position: absolute;
	left: 50%;
	-webkit-transform: translate(-50%, 100vh);
	transform: translate(-50%, 100vh);
	display: block;
	background: white;
	border-top: grey solid 10px;
	width: 90%;
	max-width: 900px;
	top: 10vh;
	padding-bottom: 3px;
	
}

.doc-in {
	animation: doc-sign-pagein 0.8s forwards;
}

.doc-out {
	animation: doc-sign-pageout 0.8s forwards;
}

.doc-return {
	animation: doc-sign-pagereturn 0.8s forwards;
}

.doc-leave {
	animation: doc-sign-pageleave 0.8s forwards;
}

.doc-reject {
	animation: doc-sign-pagereject 0.8s forwards;
}

.doc-sign-doc p {
	text-align: left;
	margin-left: 3%;
	margin-right: 3%;
}

.doc-sign-header {
	width: 97%;
	display: inline-block;
	margin-left: 3%;
}

.doc-sign-header img {
	display: inline-block;
	float: left;
	width: 7%;
	padding-right: 1.5%;
}

.doc-sign-header p {
	display: inline-block;
	float: left;
	padding: 0;
	margin: 0;
}

.doc-sign-merckladre {
	margin-top: 0;
	transform: translateY(10px);
	font-size: 1.2em;
}

.doc-sign-divider {
	border-bottom: 2px solid #000;
	width: 91.5%;
	display: inline-block;
	padding: 0;
	margin: 0;
	height: 0px;
}

.doc-sign-address {
	float: right;
	padding-right: 1.5%;
	justify-content: center;
}

.doc-sign-address p {
	display: block;
	float: none;
	text-align: right;
}

.more-link {
	float: right;
	display: inline-block;
}

.back-link {
	float: left;
	display: inline-block;
}

.more-link a, .back-link a {
	cursor: none;
	color: black;
	transition: color 0.2s;
}

.more-link a:hover, .back-link a:hover {
	cursor: pointer;
	color: grey;
	transition: color 0.2s;
}

#newkirk-sig {
	position: relative;
	display: block;
	width: 200px;
	left: 3%;
	margin: -20px 0px -10px 0px;
	z-index: -10;
}

.doc-sign-invert {
	color: white;
	background: black;
	padding-top: 4px;
}

#doc-sign-buttons {
	display: flex;
	justify-content: space-between;
	padding: 0 3%;
}

#doc-sign-buttons button:not(.btn-locked) {
	background: white;
	color: black;
	border: 1px black solid;
	text-weight: normal;
	cursor: pointer;
	transition: color,background 0.2s;
}

#doc-sign-buttons button:hover:not(.btn-locked) {
	background: black;
	color: white;
	transition: color,background 0.2s;
}

.btn-locked {
	color: grey;
	border: 1px grey solid;
}

#popup-container {
	display: none;
}

.popup-window {
	position: relative;
	display: none;
	background: white;
	width: 400px;
	top: 30vh;
	border: solid black 1px;
}

.popup-content {
	border: solid black 2px;
	margin: 2px;
	padding: 10px;
	text-align: right;
}

.popup-header {
	font-weight: bold;
	text-align: left;
	padding: 0;
	margin: 0;
	/*transform: translateY(-10px);*/
}

.popup-content > input:nth-child(2){
	width: 366px;
	position: relative;
	float: left;
	border: solid black 1px;
	margin: 10px 0px;
}

.popup-content > input:nth-child(3),input:nth-child(4),input:nth-child(5) {
	display: inline-block;
	position: relative;
	background: white;
	color: black;
	border: solid black 1px;
	cursor: pointer;
	transition: color,background 0.2s;
	padding: 0px 10px;
}

.popup-content > input:nth-child(3):hover,input:nth-child(4):hover,input:nth-child(5):hover {
	background: black;
	color: white;
	transition: color,background 0.2s;
}

.popup-in {
	animation: popup-in 0.3s forwards;
}

.popup-out {
	animation: popup-out 0.3s forwards;
}

.popup-bgfadein {
	animation: doc-sign-bgfadein 0.3s forwards;
}

.popup-bgfadeout {
	animation: doc-sign-bgfadeout 0.3s forwards;
}

@keyframes doc-sign-bgfadein {
	from {background: #00000000;}
	to {background: #000000DD;}
}

@keyframes doc-sign-bgfadeout {
	from {background: #000000DD;}
	to {background: #00000000;}
}

@keyframes doc-sign-bgfadewhite {
	from {background: #000000DD;}
	to {background: #FFFFFFFF;}
}

@keyframes doc-sign-pagein {
	from {
		-webkit-transform: translate(-50%, 100vh);
		transform: translate(-50%, 100vh);
		opacity: 0;
	}
	to {
		-webkit-transform: translate(-50%, 0vh);
		transform: translate(-50%, 0vh);
		opacity: 1;
	}
}

@keyframes doc-sign-pageout {
	from {
		-webkit-transform: translate(-50%, 0vh);
		transform: translate(-50%, 0vh);
		opacity: 1;
	}
	to {
		-webkit-transform: translate(-50%, -100vh);
		transform: translate(-50%, -100vh);
		opacity: 0;
	}
}

@keyframes doc-sign-pagereturn {
	from {
		-webkit-transform: translate(-50%, -100vh);
		transform: translate(-50%, -100vh);
		opacity: 0;
	}
	to {
		-webkit-transform: translate(-50%, 0vh);
		transform: translate(-50%, 0vh);
		opacity: 1;
	}
}

@keyframes doc-sign-pageleave{
	from {
		-webkit-transform: translate(-50%, 0vh);
		transform: translate(-50%, 0vh);
		opacity: 1;
	}
	to {
		-webkit-transform: translate(-50%, 100vh);
		transform: translate(-50%, 100vh);
		opacity: 0;
	}
}

@keyframes doc-sign-pagereject{
	from {
		-webkit-transform: translate(-50%, 0vh);
		transform: translate(-50%, 0vh);
		opacity: 1;
	}
	to {
		-webkit-transform: translate(-50%, 3vh);
		transform: translate(-50%, 3vh);
		opacity: 0;
	}
}

@keyframes popup-in{
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes popup-out{
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}