/* general fonts */
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.618;
}

/* override reboot.scss */
main a, footer a {
    text-decoration: none;
}
main a:hover, footer a:hover {
    text-decoration: underline;
}

/* general layout */
main p {
	margin: 1em 0;
}
main p:first-child {
	margin-top: 0;
}
main p:last-child {
	margin-bottom: 0;
}

/* FJFI navbar logo */
img.fjfi-logo-navbar {
    height: 34px;
    margin-left: 30px;
    margin-right: 15px;
}

/* footer layout and style */
footer {
    display: flex;
    gap: 2em;
    justify-content: space-around;
    margin-top: 2em;
    margin-bottom: 2em;
    padding-top: 2em;
    box-shadow: 0 -2px 2px -2px gray;
}

/* Tabbed area based on https://codepen.io/MPDoctor/pen/mpJdYe */
.tabbed {
	overflow-x: hidden; /* so we could easily hide the radio inputs */
}

/* hiding the inputs */
.tabbed [type="radio"] {
	display: none;
}

.tabs {
	display: flex;
	align-items: stretch;
	list-style: none;
	padding: 0;
	border-bottom: 1px solid #ccc;
}
.tab > label {
	display: block;
	margin-bottom: -1px;
	padding: 10px 15px;
	border: 1px solid #ccc;
	background: #f8f8f8;
	color: #666;
	line-height: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.3s;
}
.tab:hover label {
	border-top-color: #333;
	color: #333;
}

.tab-content {
	display: none;
}

/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) label,
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) label,
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tabs .tab:nth-of-type(3) label,
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tabs .tab:nth-of-type(4) label,
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tabs .tab:nth-of-type(5) label {
	border-bottom-color: #fff;
	border-top-color: orange;
	background: #fff;
	color: #222;
}

.tabbed [type="radio"]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1),
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2),
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3),
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4),
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tab-content:nth-of-type(5) {
	display: block;
}