#customcontrols {
	z-index: 40;
	position: fixed;
	left: 70px;
	bottom: 30px;
	text-align: center;
	font-size: 24px;
}

#customcontrols button {
	background: none;
	color: var(--r-link-color);
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	z-index: 40;
}

#customcontrols button:hover {
	color: var(--r-link-color-hover);
}

#customcontrols > ul {
	position: fixed;
	left: 45px;
	bottom: 64px;
	list-style-type: none;
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--r-link-color);
	border-radius: 5px;
	padding: 10px;
	background-color: var(--r-background-color);
}

#customcontrols ul > li {
	margin: 0px 5px;
	padding: 0px 5px;
	float: left;
}

#customcontrols.collapsed #collapse-customcontrols,
#customcontrols.collapsed > ul {
	display: none;
}

#customcontrols:not(.collapsed) #expand-customcontrols {
	display: none;
}

@media only screen and (min-width: 500px) {
	#customcontrols > button {
		display: none;
	}
	#customcontrols > ul {
		padding-top: 0px;
		padding-bottom: 0px;
		bottom: 30px;
		border: none;
		background: none;
	}
}

@media (min-width: 360px) and (max-width: 915px) {
	#customcontrols > ul {
		position: fixed;
		left: 19px;
		bottom: 30px;
		list-style-type: none;
		overflow: hidden;
		margin: 0;
		font-size: 15px;
	}
}
@media print {
	#customcontrols {
		display: none !important;
	}
}

.reveal.has-dark-background #customcontrols button {
	color: #f3c7e2;
}
