* {
	box-sizing: border-box;
}

*:focus, input:focus + label {
	outline: none;
	box-shadow: inset 0 0 0 2px #FFFBEF;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
	margin: 0 auto 20px 23px;
	border-radius: 5px 5px 0px 0px;
}

.radiotab {
	position: absolute;
	opacity: 0;
}

.label {
	width: 100%;
	padding: 11px 10px;
	background: #E5E5E5;
	cursor: pointer;
	font-weight: normal;
	font-size: medium;
	color: #A20A22;
	text-decoration: none;
	font-variant: small-caps;
	transition: background 0.3s, color 0.3s;
	border: none;
	border-radius: 0;
	text-align: center;
}

.label:hover {
	background: #CCC;
	text-decoration: underline;
}

.label:active {
	background: #FFCC33;
}

.radiotab:checked + .label {
	background: #FFFBEF;
	color: #A20A22;
	border-top: solid 1px #FFCC33;
	border-left: solid 1px #FFCC33;
	border-right: solid 1px #FFCC33;
	border-bottom: none;
}

.panel {
	display: none;
	padding: 10px 15px 15px;
	background: #FFF;
	width: 100%;
	border-left: solid 1px #FFCC33;
	border-bottom: solid 1px #FFCC33;
	border-right: solid 1px #FFCC33;
}

.radiotab:checked + .label + .panel {
	display: block;
}

@media (min-width: 600px) {
	.panel {
		order: 99;
	}
	
	.label {
		width: 25%;
		border-radius: 10px 10px 0 0;
		border-bottom: solid 1px #FFCC33;
	}
}
