/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767px) { 
	.show-on-small-only {
		display: block;
	}
	.hide-on-small-only {
		display: none !important;
	}
	.infobox {
		text-align: left;
		margin: 0;
	}
	.sponsor_wrapper {
		max-width: 85%;
	}
	.logo {
		text-align: left;
	}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) { 
	.hide-on-small-only {
		display: block;
	}
	.show-on-small-only {
		display: none !important;
	}
	body {
		background-color: #ebebeb;
	}

	.container.content-area {
		padding-top: 0 !important;
	}

	.site-main {
		background-color: white;
		min-height: 500px;
	}	
	
	.header_right {
			float: right;
			width: 50%;
	}
	
	.logo {
		width: 50%;
	}
	
	.site-main {
		padding: 30px;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
}

/* TEAM PAGE */

.team-table {
	td:first-child {
		white-space: nowrap;
	}
}

@media (max-width: 767px) { 
	.team_img_container p {
		width: 100%;
	}
	.team_img_container img {
		margin-right: 0;
	}
}

.team-section {
	padding: 10px 0;
	padding-top: 20px;
}

.team_img_container {
	margin-bottom: 30px;
	margin-top: 25px;
}

.team_img_container img {
	display: inline-block;
}

.team_img_container p, .team_img_container div {
	display: inline-block;
}

.team_details table {
	margin-bottom: -5px;
}

.team_details table td {
	padding: 3px 5px;
	border-bottom: none;
	vertical-align: top;
}

/* CSS FOR GAME TABLES */

.game_table_wrapper {
	overflow-x: auto;
}

.game_table {
	width: calc(100%-20px);
	border: 1px solid gray;
	border-radius: 3px;
	padding: 0 5px;
}

.game_table > thead {
	font-weight: bold;	
	color: black;
}

.game_table img {
  height: 15px;
	width: 15px;
}

.game_table td {
	white-space: nowrap;
}

.played_game_table td:nth-child(8n + 7) {
	text-align: right;
	padding-right: 10px;
}

.game_table tr:hover {
	background-color: #80808026;
	cursor: pointer;
}

.game_table tr:nth-child(2n) {
	background-color: #f5f5f5;
}

.export_ical {
	margin-top: 15px;
}

.ajax_output .loading {
	text-align: center;
	color: #d03641;
}

/* CSS FOR MOBILE GAME TABLE */

.mobile_game_table_wrapper .dateHeader {
	background-color: #d03641;
	color: white;
	padding: 2px 5px;
	border-radius: 3px;
}

.mobile_game_table_wrapper p {
	padding-left: 5px;
	margin-bottom: 0;
	width: calc(100%- 30px);
}

.mobile_game_table_wrapper p.teamRow {
	border-top: 1px solid #80808096;
}

.mobile_game_table_wrapper img {
	position: absolute;
	right: 25px;
	margin-top: -35px;
	height: 20px;
	width: 20px;
}

.mobile_game_table_wrapper.results_table p.teamRow {
    padding-right: 30px;
}

.mobile_game_table_wrapper.results_table p.teamRow span {
	white-space: nowrap;
}

.mobile_game_table_wrapper .result:hover {
	cursor: pointer;
	background-color: #f3f3f3;
}

/* CSS FOR RANKING TABLE */
.ranking_table_wrapper {
	overflow-x: auto;
}

.ranking_table {
	border: 1px solid gray;
}

.ranking_table tr:nth-child(2n) {
	background-color: #f5f5f5;
}

.ranking_table thead {
	font-weight: bold;
	color: black;
}

.ranking_table .muensingen {
	font-weight: bold;
}

.ranking_table tr.directPromotion td {
	background-color: #00800047;
  color: black;
	border-bottom: 2px solid darkgrey;
}

.ranking_table tr.promotionCandidate td {
	background-color: #00806e29;
    color: black;
		border-bottom: 2px solid darkgrey;
}

.ranking_table tr.relegationCandidate {
	  background-color: #ff995054;
    color: black;
		border-top: 2px solid darkgrey;
}

.ranking_table tr.directRelegation {
	background-color: #ff000054;
  color: black;
	border-top: 2px solid darkgrey;
}

.ranking_table_wrapper.show-on-small-only p {
	  padding-bottom: 0;
    margin-bottom: 0;
    height: 32px;
    background-color: #d03641;
    color: white;
    padding-left: 10px;
    padding-top: 9px;
    border: 1px solid gray;
    font-weight: bold;
}

.show-on-small-only  > .ranking_table {
	margin-top: 0;
	border-top: none;
}

/* CATLIST FOR MOBILE */

.lcp_catlist > li {
	display: block;
	min-height: 50px;
	border-top: 1px solid black;
	padding: 5px;
	color: #d03641;
	position: relative;
}

.lcp_catlist > li:last-child {
	border-bottom: 1px solid black;
}

.lcp_catlist > li > a {
	color: #6E6D6D;
}

.lcp_catlist > li a:first-child {
	/* width: 70px; */
	/* display:  block; */
	display: block;
	width: calc(100% - 75px);
}

.lcp_catlist > li > a:nth-child(2) {
	position: absolute;
	height: 50px;
	width: 70px;
	overflow: hidden;
	margin-left: 10px;
	top: 5px;
	right: 5px;
}

.lcp_catlist > li > a:hover {
	color: red;
}

.lcp_catlist > li img {
	display: block;
	width: 100%;
	height: auto;
	margin-top: auto;
}

/* ### SPONSOR PAGE ### */
.sponsor_wrapper {
	display: flex;
  flex-wrap: wrap;
	margin-bottom: 40px;
}

.sponsor {
	width: 100%;
	display: flex;
	justify-content: center;
  align-items: center;
	box-shadow: 0 1px 10px 0 rgba(0, 0, 0, 0.19);
    border: 1px solid #cecece;
}

.sponsor_big {
	max-width: 300px;
	padding: 20px;
	margin-right: 20px;
	margin-bottom: 20px;
	height: 200px;
}

.sponsor_medium {
	width: 198px;
	height: 132px;
	padding: 20px;
	margin-right: 20px;
	margin-bottom: 20px;
}

.sponsor_small {
	max-width: 150px;
	height: 100px;
	padding: 20px;
	margin-right: 20px;
	margin-bottom: 20px;
}

.sponsor img {
	width: auto;
	max-height: 100%;
	height: auto;
}

.sponsor_mini_wrapper {
	display: flex;
}

.sponsor_mini_wrapper .sponsor:hover {
	cursor: pointer;
	border-bottom: 1px solid gray;
	justify-content: center;
	align-items: center;
}

.sponsor.sponsor-mini {
	box-shadow: none;
	border-top: 1px solid white;
	border: none;
	border-bottom: 1px solid white;
	margin-right: 10px;
}

.sponsor.sponsor-mini img {
	max-width: 80px;
}

.sponsor.sponsor-mini:first-child img {
	max-height: 40px;
}

.sponsor_mini_wrapper a:nth-child(2) {
	margin-top: 8px;
}

.team-details-wrapper {
	padding-left: 30px;
}

.post-thumb > img {
	height: auto;
  max-height: 300px;
  width: auto;
	float: none !important;
}

/* ### HOME PAGE ### */

.site-branding-text {
	display: none !important;
}

.logo {
	padding-top: 18px;
}

@media (max-width: 767px) {
	.processbox {
  height: 85px !important;
	}

	.processbox div {
		display: flex;
		align-items: center;
		justify-content: flex-start;
	}

	.processbox i {
		margin-right: 20px;
	}

}

.no-animations .processbox {
	visibility: visible;
	animation-name: none;
	height: 146px;
	color: black;
	border-radius: 5px;
	overflow: hidden;
}

.no-animations a {
	color: black;
}

.processbox p {
	margin: 0!important;
}

.top_four_section  .section_title {
	color: #e5e5e5;
}

.second_row .processbox {
	margin-top: 20px;
}

.top_four_section h2.section_title::after {
	background-color: white;
}

.top_four_section {
	background-position: center center;
}


/* ### OTHER ### */
.team_title {
	color: black;
}

#sponsor_table tr td:first-child{
    width:150px;
    white-space:nowrap;
}

.header_right img {
	max-height: 45px;
}

.slider-main { display: none; }

.results_and_games .margin-top{
	margin-top: 50px;
}

.astm-search-menu {
	position: absolute !important;
  right: calc((1170px - 100vw)/2 + 10px)!important;
    top: 3px;
	    top: 61px;
}

.astm-search-menu > .search-form {
	position: absolute;
    padding: 10px;
	margin-bottom:0;
}

.search-form > .search-submit {
	background-color: #3f3e3e;
  padding: 7px 17px;
}

.search-form input {
	border-radius: 1px;
	margin-right: 2px;
	border: 1px solid black;
}

.site-branding-text {
	display: inline-block;
	margin-left: 10px;
}

.handball-svg > img {
	height: 30px;
}

.title-404 {
	margin-top: 30px;
}

.news-thumb {
	border: 1px solid black;
	background: none !important;
}


