/* Load Social Media Icons */
.social_networks
{
	margin: 0 0;
	display: inline-block;
	height: 0px;
	margin-top: -42px;
	flex: 0 0 auto;
}
.social_networks img
{
	height: 32px;
	width: 32px;
	display: inline-block;
	vertical-align: middle;
}
.social_networks:hover img {
	opacity: 0.4;
}
.social_networks a:hover img {
	opacity: 1;
}
@media (max-width: 855px) {
	.social_networks {
		display: none;
	}
}

#siteInfo {
	margin-bottom: 1em;
}
#siteInfo + #display_head {
	margin-top: -1.28em;
	border-top: 1px solid #ddd;
}

/* PM Warning from support stuff */
.pm-warning
{
	margin: 2ex;
	padding: 2ex;
	border: 2px dashed #cc3344;
	color: black;
	background-color: #ffe4e9;
}

/* Site Menu */
#top_section #site_nav
{
	padding-top: 5px;
}
@media (min-width: 856px) and (max-width: 1024px) {
	#top_section {
		padding: 0;
	}
}

/* Top Stuff such as search box and language box */
#header
{
	padding-top: 0;
	display: block;
	position: relative;
}

h1.forumtitle {
	float: left;
	margin-top: 16px;
}
h1.forumtitle > a img {
	width: 486px;
	height: 65px;
	object-fit: contain;
}
#header .site_header_box_container {
    position: absolute;
    right: 0;
    float: right;
    padding: 0 9px 7px;
    background: #fff;
    border: 1px solid #bbb;
    border-top: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 -2px 0 #fff, 0 2px 3px rgba(0, 0, 0, 0.16);
}
#header .site_header_box
{
	float: left;
}
@media (max-width: 800px) {
	.site_header_box_container {
		display: none;
	}
}
#header #languages_form
{
	padding: 0;
}

/* The extras need a reset */
.site_header_box_container_extras
{
	clear: both;
}

/* Adverts, we all love them */
.anzeige_banner
{
	overflow: hidden !important;
}
.anzeige_banner iframe
{
	min-width: 320px;
	max-width: 468px;
	width: inherit;
}
.anzeige_banner ins
{
	display:inline-block;
	width: 468px;
	height:60px;
}
.anzeige_banner_upper
{
	display: table;
	margin: 0 auto;
	float: right;
	width: 468px;
	margin-top: 3em;
}
.anzeige_banner_below
{
	margin: 0 auto;
}
.anzeige_title
{
	text-align: center;
}
#footer {
	margin-top: 1em;
}
#footer div.inner_wrap ul {
	margin-top: 0.1em;
}

/* Sometimes we don't want to float */
div.navigate_section_no_float
{
	float: none;
}

/* Site menu */
@media (max-width: 480px) {
	.menu_icon.site_menu_opener {
		width: 24px;
		height: 24px;
		padding: 5px;
		float: right;
		background-position: 5px;
		box-sizing: content-box;
	}
}

/* Don't let the last dropmenu get out of boundaries */
#site_nav > li:last-child ul {
	right: 0;
}

/* Header ads */
@media screen and (max-width: 1100px) {
	.anzeige_banner_upper {
		float: none;
	}
}
@media screen and (max-width: 980px) {
	h1.forumtitle {
		width: 50%;
	}
}
@media screen and (max-width: 480px) {
	h1.forumtitle {
		max-width: none !important;
	}
	.site_header_box_container {
		display: none;
	}
	.anzeige_banner ins {
		width: 95vw;
	}
	.anzeige_banner_upper {
		width: auto;
	}
	.anzeige_banner_below {
		width: 100%;
	}
}

/* Search box and language box */
@media screen and (max-width: 800px) {
	h1.forumtitle a, h1.forumtitle {
		width: auto;
		text-align: center;
		float: none;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	#header .site_header_box_container {
		float: none;
		text-align: center;
	}
	#header .site_header_box {
		display: inline-block;
		border-radius: 6px;
		float: none !important;
	}
}

/* header fix (should no longer be need in 2.1 gold) */
@media (max-width: 720px)  {
	#header {
		width: 100%;
	}
}

/*
 * The following should no longer be required in 2.1 Gold
 * Related issue: https://github.com/SimpleMachines/SMF/issues/5665
 */
#site_menu .site_popup_container {
	display: block;
	position: relative;
	background: none;
	margin: 0;
	height: auto;
}
#site_menu .popup_window {
	position: relative;
	width: auto;
	box-shadow: none;
	border: none;
	border-radius: 0;
	background: none;
	background-image: none;
	margin: 0;
	top: 0;
	padding: 0;
	z-index: 1;
}
#site_menu .popup_heading {
	display: none;
}
@media (min-width: 1024px) {
	#mobile_generic_menu_site {
		display: block !important;
	}
}
@media (min-width: 851px) {
	div#mobile_site_menu.site_popup_container {
		display: block;
	}
}
@media (min-width: 481px and max-width:1024) {
	div#mobile_generic_menu_site.site_popup_container {
		display: none;
    }
}
/*@media (max-width: 480px) {*/
@media (max-width: 850px) {
	#mobile_generic_menu_site .dropmenu > li {
		width: 100%;
	}
	.site_menu_opener {
		float: right;
		display: inline-block;
		background: url(../images/icons/menu.svg) no-repeat;
		height: 20px;
		width: 20px;
	}
	#site_menu .site_popup_container {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(40, 64, 80, 0.5);
		z-index: 7;
	}
	#site_menu .popup_window {
		position: relative;
		z-index: 99;
		width: 90%;
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
		border: 1px solid #777;
		border-radius: 7px 7px 3px 3px;
		min-height: 285px !important;
		max-height: 5em;
		overflow-x: hidden !important;
		overflow-y: scroll !important;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		background-image: linear-gradient(to bottom, #e2e9f3 0%, #fff 70%);
		top: 15%;
		padding: 0;
		margin: 0 auto;
	}
	#site_menu .popup_heading {
		display: block;
	}
}
#section_menu .section_popup_container {
	display: block;
	position: relative;
	background: none;
	margin: 0;
	height: auto;
}
#section_menu .section_popup_window {
	position: relative;
	width: auto;
	box-shadow: none;
	border: none;
	border-radius: 0;
	background: none;
	background-image: none;
	margin: 0;
	top: 0;
	padding: 0;
}
#section_menu .section_popup_heading {
	display: none;
}
@media (min-width: 721px) {
	#mobile_section_menu.section_popup_container {
		display: block;
	}
}
@media (max-width: 720px) {
	.section_menu_opener {
		float: right;
		display: inline-block;
		background: url(../images/icons/menu.svg) no-repeat;
		height: 20px;
		width: 20px;
	}
	#section_menu .section_popup_container {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(40, 64, 80, 0.5);
		z-index: 5;
	}
	#section_menu .section_popup_window {
		position: relative;
		z-index: 99;
		width: 90%;
		box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
		border: 1px solid #777;
		border-radius: 7px 7px 3px 3px;
		min-height: 285px !important;
		max-height: 5em;
		overflow-x: hidden !important;
		overflow-y: scroll !important;
		-webkit-overflow-scrolling: touch;
		background: #fff;
		background-image: linear-gradient(to bottom, #e2e9f3 0%, #fff 70%);
		top: 15%;
		padding: 0;
		margin: 0 auto;
	}
	#section_menu .section_popup_heading {
		display: block;
	}
}

.site_title_bar {
	margin-bottom: 1em;
}
