* {
	font-family: monospace !important;
}

html {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	align-items: center;
	display: flex;
	flex-direction: column;
	font-size: 18px;
	justify-content: center;
	height: 100vh;
	margin: 0;
	padding: 0;
}

#footer {
	font-size: small;
	text-align: left;
}

.connected #footer {
	display: none;
}

#footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#footer li {
	margin: 4px 0;
}

#main {
	display: flex;
	align-items: center;
	flex-flow: column;
	justify-content: space-between;
	padding: 1em 0;
	overflow: auto;
	text-align: center;
	border: 4px solid transparent;
	box-sizing: border-box;
}

.connected #main {
	justify-content: space-between;
}

.highlight #main {
}

#prompt {
	display: flex;
	align-items: center;
	flex-flow: column;
}

#prompt input {
	margin: 4px;
}

.connected #prompt p,
.dialling #prompt p {
	display: none;
}

#info {
	margin: 16px 8px;
	font-size: 18px;
	padding: 8px 0;
	text-align: center;
}

.connected #info {
	display: none;
}

#top {
	display: none;
}

.connected #top {
	display: unset;
}

#filepicker {
	display: none;
}

#filepicker-wrap {
	display: inline-block;
}

#transfers {
	display: none;
	list-style-type: none;
	padding-left: 0;
	margin: 0;
	width: 80%;
	max-width: 400px;
}

.connected #transfers,
.dialling #transfers {
	display: unset;
}

#transfers li {
	border-style: solid;
	border-width: 1px;
	margin: 5px;
	padding: 8px;
}

#transfers li.upload {
	list-style-type: "↑ ";
}

#transfers li.download {
	list-style-type: "↓ ";
}

#transfers li.pending {
	list-style-type: "... ";
}

#qr {
	margin: 4px;
	border: 2px solid;
	width: 256px;
	height: 256px;
	display: none;
}

.dialling #qr[src] {
	display: unset;
}

#magiccode {
	font-weight: bold;
	margin: 4px;
	padding: 16px;
	text-align: center;
	text-transform: uppercase;
}

.connected #magiccode {
	opacity: 0.2;
}

.error #magiccode {
	display: none;
}

#dial {
	text-transform: uppercase;
}

.connected #dial,
.error #dial {
	display: none;
}

#autocomplete {
	height: 1em;
	opacity: 0.5;
}

.connected #autocomplete,
.dialling #autocomplete {
	display: none;
}

.button {
	-webkit-appearance: none;
	appearance: none;
	border: 2px solid;
	font-weight: bold;
	font-size: medium;
	cursor: pointer;
	margin: 8px 0px;
	padding: 16px;
}

.button:hover {
	opacity: 0.75;
}

.button:disabled,
.button:disabled:hover {
	cursor: unset;
	letter-spacing: unset;
}

a {
	text-decoration: none;
}

a:link,
a:visited {
	border-bottom: 1px dotted;
}

a:link:hover,
a:visited:hover {
	border-bottom: 1px solid;
}


#main {
	height: min-content;
	min-height: 200px;
	width: 100%;
}

@media only screen and (min-width: 700px) {
	#main {
		width: min-content;
		min-width: 400px;
		height: 100%;
	}
	#info {
		margin-top: 10vh;
	}
}
