main {
	display: block;
	margin: 10px auto;
	padding: 0 1em;
	max-width: 1000px;
	width: 100%;
}

body.wide main, main.wide {
	max-width: none;
}

header {
	position: sticky;
	top: 0;
	background-color: #222;
	border: 1px #222 solid;
	z-index: 1010;
	display: flex;
}
header h1 {
	color: white;
	font-variant: small-caps;
	font-size: 2em;
	margin: auto 0px;
	padding: auto 0px;
	padding-right: 20px;
	margin-right: 5px;
	border-right: 2px #444 solid;
}
header h1 small {
	color: #aaa
}

nav#main-menu {
	display: flex;
	flex-wrap: wrap;
	flex-grow: 1;
	max-width: 1000px;
	margin: 0px auto;
}
body.wide nav#main-menu {
	max-width: none;
}

nav#main-menu a, nav#main-menu input[type=submit] {
	background: none;
	border: none;
	margin: 0px;
	color: white;
	font-size: 1em;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

nav#main-menu > .right { margin-left: auto; }
nav#main-menu > .right ~ .right { margin-left: 0px; }

nav#main-menu a:hover:not(.active), nav#main-menu input[type=submit]:hover {
	cursor: pointer;
	background-color: #555;
	color: white;
}

nav#main-menu a.active {
	background-color: #ddd;
	color: black;
}

input.btn:disabled {
	opacity: 0.25;
}

/******************************************************************************/

#mapa {
	width: 100%;
	height: 400px;
	cursor: crosshair;
}

@media only screen and (min-width: 768px) {
	/* For computers: */
	#panel {
		width: 20%; float: right;
	}

	#mapa {
		position: absolute;
		top: 0px;
		left: 0px;
		width: 80%;
		height: 100%;
	}
}

#panel {
	padding: 10px 5px;
	max-height: 100vh;
	overflow-y: scroll;
}

#team-status {
	color: white;
	background-color: #444444;
}

#team-status ul {
	padding: 0px;
	list-style-position: inside;
	list-style: none;
}

.panel {
	margin-bottom: 20px;
}

h2 {
	font-variant: small-caps;
}

.cipher-list .cipher {
	border: 1px #aaa solid;
	border-radius: 3px;
	padding: 3px 5px;
	margin-bottom: 2px;
}
.cipher-list .cipher.solved {
	background-color: rgb(169, 241, 169);
}
.cipher-list .cipher.skip {
	background-color: rgb(255, 193, 193);
}
.cipher-list .cipher.highlight {
	background-color: rgb(238, 238, 187);
	transition: 1s;
}
/* .cipher-list .cipher.companion { opacity: 0.7; } */
.cipher-list .cipher .title {

}
.cipher-list .cipher ul {
	list-style-position: inside;
	list-style-type: none;
	padding-left: 0px;
	margin: 0px;
}

.hint {
	text-decoration:underline;
	text-decoration-style: dotted;
	cursor: help;
}

.hintX {
	cursor: help;
}

.cipher-simple-wrap {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px;
	justify-content: center;
	width: 100%;
}
.cipher-simple {
	border: 1px #aaa solid;
	border-radius: 3px;
	min-width: 100px;
	text-align: center;
}
.cipher-simple.found {
	background-color: rgb(169, 241, 169);
}
.cipher-simple.companion {
	opacity: 0.6;
}
.cipher-simple .title {
	font-weight: bold;
}
