html, body {
	margin:0;
	padding:0;
	width:100%;
	background-color:#fcfeff;
	font-family: Verdana, sans-serif;
	font-size: 15px;
	overflow-x: hidden;
}

nav {
	position: absolute;
	width: 100%;
	top: 0;
	display: flex;
	align-items: center;
	background:linear-gradient(rgb(247, 237, 237),rgb(247, 238, 238));
	box-shadow:0 0 8px rgba(200,200,255,0.5);
	height: 45px;
	white-space: nowrap;
	border-bottom: 1px solid #a19797;
  transition: 1s;
}

body.loading nav {
	top: -50px;
}

@media (max-width: 500px) {
	nav > a:not(:first-child){
    display: none;
	}
}

nav > a {
	flex: 0 1;
	text-decoration: none;
	padding: 15px;
}

nav > a:hover {
	border-bottom: 2px solid #a19797;
}

nav > a:last-of-type {
	margin-left: auto;
}

nav > a > img {
	vertical-align: middle;
	width: 1em;
	height: 1em;
}

#status {
	margin-top: 10%;
	margin-left:15%;

	width:70%;
	min-height:30%;

	background:linear-gradient(rgb(247, 237, 237),rgb(247, 238, 238));
	box-shadow:0 0 8px rgba(200,200,255,0.5);
	border-radius:3px;
	color:black;
	border: 1px solid #a19797;
}

@media (max-width: 900px) {
	#status {
	 width: 95%;
	 margin-left: 2.5%;
	 margin-top: 50px;
	 margin-bottom: 100px;
	}
}

body.loading #status, body.download #status {
	position:  fixed;
	top: 10%;
	min-height: 35px!important;
}

#status.finished {
	display: none;
}

h1 {
	text-align:center;
	font-family: sans-serif;
	width: 100%;
}

#description {
	text-align:justify;
}

#licenseinfo {
	font-size:0.7em;
	color:#888;
}

#licenseinfo a {
	color:#444;
}

#urlform {
	margin-top:50px;
	margin-bottom:25px;
	padding-left:7%;
	width:86%;
}

body.loading #status #urlform, body.download #status #urlform {
	/*Hide the form while loading tiles and when displaying download link*/
	display: none;
}

input#url {
	width:100%;
	max-width:100%;
	margin-bottom:10px;
	border:0;
	box-shadow:0 0 3px #aaa;
	height:2.5em;
	border-radius: 5px;
	font-size: 1.2em;
	padding-left: 0.5em;
}
input#url:focus {
	box-shadow:0 0 10px #aaf;
}

#dezoomers label {
	display: inline-block;
	margin-right:20px;
	white-space: nowrap;
	font-size:.9em;
}
.button {
	width:30%;
	margin:25px 35% 0;
	background: linear-gradient(rgb(255, 249, 249),rgb(223, 216, 216));
	border: .5px solid #533;
	height: 40px;
	border-radius: 3px;
}

.button {
	width:30%;
	margin:25px 35% 0;
	background: linear-gradient(rgb(255, 249, 249),rgb(223, 216, 216));
	border: .5px solid #533;
	height: 40px;
	border-radius: 3px;
}

.button:active{
	box-shadow: inset 0 1px 3px grey;
}

.button:focus {
	box-shadow:0 0 10px #aaf;
}

a:visited {
	color: #41084d;
}

#percent {
	color:black;
	font-family: sans;
	font-size:1.2em;
	text-align:center;
}
#progressbar {
	width:0;
	background-color:red;
	height:7px;
}


#status a[download] {
	display: block;
	margin: auto;
	padding: 10px;
	text-align: center;
	height: 1em;
	margin-bottom: 10px;
	border: 1px solid black;
	text-decoration: none;
}


#dezoomifiedImage {
	overflow: auto;
}

.error {
	background-color:#ffe9e9;
	padding-left:7px;
	padding-right:7px;
	border-top: 1px solid #ec1313;
	word-wrap: break-word;
	margin: 15px 0px;
}

#errormsg {
  font-family: monospace;
  white-space: pre-wrap;
  font-size: 0.8em;
}

.error h3 {
	/*! color: #060000; */
	text-align: center;
	font-size: 1.5em;
}

.error img {
	vertical-align: middle;
}

div[hidden] {
	display: none;
}

#popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	font-size: .8em;
	width: 300px;
	background:linear-gradient(rgb(227, 222, 222),rgb(236, 231, 231));
	box-shadow:0 0 8px rgba(200,200,255,0.5);
	border-radius:3px;
	color:black;
	border: 1px solid #a19797;
	padding: 5px;
	animation: slidein 1s;
	transition: 1s;
}

#popup > button[title=Close] {
	position: absolute;
	right: 3px;
	padding: 0;
	border: 0;
	width: 17px;
	height: 17px;
}

@keyframes slidein {
  from { bottom: -500px; }
  to { bottom: 20px; }
}