div.mobile-only, img.mobile-only {
	display: block;
}

div.not-mobile, img.not-mobile {
	display: none;
}

#game {
	flex-direction: column;
    width: 350px;
    height: 654px;
}

.column {
	flex: 1;
	padding: 0;
}

#chat-section, #settings-section {
	display: none;
}

h2 {
	padding: 5px 20px 0 20px;
}

.header-section {
	margin: 5px 0;
}

.title {
	margin: 10px 0;
}

.header-section .message {
	flex: 1;
}

#routing-message {
	white-space: normal;
	text-align: right;
}

.block {
	
}

/************ METER *************/

#meter {
	flex: 10;
}

/************ PUZZLE *************/

#puzzle-screen-container {
	width: 350px;
	height: 460px;
	margin: 0;
}

#puzzle-screen {
	padding: 10px;
}

.relay {
	margin: 14px;
}

.line.in {
	bottom: 48px;
}

.line.out {
	top: 45px;
}

/************ DIALOG *************/

.dialog > div {
	margin: 20px;
	padding: 5px 20px;
}

.dialog h2 {
	border: none;
	margin: 0 -20px 20px;
	/* this keeps wrapping so I'm leaving it at full width but adding a border with :after */
}

.dialog h2:after {
	content: "";
	position: absolute;
	border-style: none none solid none;
	border-color: #59ddff;
	left: 25px;
	right: 25px;
	bottom: -10px;
}

#info-dialog .example {
	flex-direction: column;
	margin: -10px 0 10px;
}

#info-dialog .relay-row {
	margin: 15px;
}

#match-fail-dialog h2 {
	margin-top: 5px;
}

#match-fail-dialog h2 > span:after {
	content: "\a";
	white-space: pre;
}

#match-fail-dialog .message {
	font-size: 16px;
	white-space: normal;
	margin: 30px 0 40px;
}

.qualities {
	margin: 20px;
}

/************ CHAT *************/

#chat-history-section {
	height: 415px;
}

/************ SETTINGS *************/

#settings-screen {
	border-color: #235561;
}

#settings-section {
	flex: 1 1;
}

#settings-section .content {
	flex: 1 1;
	display: flex;
	flex-direction: column;
}

#settings-screen {
	flex: 1 1;
	margin-top: 10px;
}

#settings-screen h2 {
	border-style: none none solid none;
	border-color: #59ddff;
	color: #ff7efa;
	margin: 20px 0 10px 0;
	padding-bottom: 10px;
}

.message.note {
	margin: 10px 20px 20px 50px;
	font-size: 14px;
}

.vol {
	margin-top: 5px;
}

.vol-meter .vol-label {
	text-align: center;
}

.vol-switch {
	display: none;
}

.vol-switch > .vol {
	justify-content: center;
}

.vol-switch > .vol > div {
	flex: 0;
	padding: 10px;
}

.settings-hint {
	padding: 0 0 0 10px;
}

.hint-radio {
	margin: 10px 0;
}

/************ TABS *************/

#tabs {
	display: flex;
	margin-top: 10px;
}

#tabs div {
	flex: 1;
	text-align: center;
	border-top-style: none;
	border-right-style: none;
	border-color: #235561;
}

#tabs div:hover {
	background: transparent;
}

#tabs div.active:hover {
	background: #16353c;
}

#tabs #settings-tab {
	flex: 0;
	border-right-style: solid;
}

#tabs #settings-tab img {
	width: 18px;
	height: 18px;
	margin: 0 -6px -4px;
}

#tabs .active {
	background: #16353c;
}



