/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-width: 320px) and (max-width : 667px) {
	/*Global*/
	.show-for-small{
		display: block!important;
	}
	#logo{
		width: 100%
	}
	
	#header{
		padding-bottom: 0!important
	}

	/*Menu*/
	#customNav{
		display: none;
	}
	#navigation{
		background-color: #37373e;
		position: relative!important;
		left: 100%!important;
		padding-top: 0!important;
		width: 100%!important;
		border-radius: 5px;
		margin-bottom: 20px;
		-webkit-transform: translate3d(0, 0, 0);
		display: block;
	}

	#navigation h3{
		display: none;
	}
	.nav-home, .nav-close{
		display: none!important
	}
	#wrapSearch{
		display: none
	}
	#nav_for_mobile{
		width: 0;
		height: 0;
		border-style: solid;
		border-width: 15px 15px 0 15px;
		border-color: #1761a6 transparent transparent transparent;
		float: right;
		margin-top: 11px;
	}
	.nav-toggle{
		background:#37373e;
		margin: 0 -30px;
		display: none
	}
	#ubermenu-topmenu-3-header-menu, .ubermenu-responsive-toggle{
		display: none!important;
	}
	#nav_for_mobile_display{
		display: none;
		margin-bottom: 25px
	}
	#ubermenu-main-2-primary-menu{		
		height: auto
	}
	.ubermenu-responsive-default.ubermenu-responsive.ubermenu-has-border .ubermenu-nav .ubermenu-item .ubermenu-submenu.ubermenu-submenu-drop{
		  left: 0px!important;
	}
	#ubermenu-main-2-primary-menu li.ubermenu-item-level-0.ubermenu-current-menu-item:first-child a, #ubermenu-main-2-primary-menu li.ubermenu-item-level-0:hover:first-child a {
	  border-radius: 5px 5px 0 0 !important;
	}
	/*
	#navigation li, #navigation li a {
		border-radius: 0!important
	}
	

	.ubermenu-skin-black-white-2 .ubermenu-item-level-0:hover > .ubermenu-target, .ubermenu-skin-black-white-2 .ubermenu-item-level-0.ubermenu-active > .ubermenu-target{
		background: #51c148!important;
	}

	#navigation .nav-home:before, #navigation .nav-close:before, #navigation ul.rss li a:before, #navigation ul.cart a.cart-contents:before, #navigation ul.nav-search a.search-contents:before{
		line-height: 1
	}
	#navigation .nav-home, #navigation .nav-close, #navigation ul.rss li a, #navigation ul.cart a.cart-contents, #navigation ul.nav-search a.search-contents{
		background:none;
	}

	#navigation ul ul{
		margin: 0
	}
	*/
	.headerleft, .headerright{
		width: 50%;
	}

	.headerleft{
		height: 55px
	}
	.headerright{
		
	}
	.width25, .width50{
		float: none;
		width: 100%;
		padding:0 25px
	}

	#homeslider {
		margin-bottom: 20px;
		margin-top: 0!important
	}

	.bx-controls-direction{
		display: none;
	}

	#UpcomingTournament li{
		float: none;
		width: 100%;
	}

	.ut_image{
		background-position: center;
	}

	.ut_col_space_r, .ut_col_space_l, .hg_mid_space{
		padding: 0;
		margin: 0
	}
	.two-cols-cont .ut_col_space_r{
		padding-right: 10px
	}

	 #HomeGallery li, .hg_image div, .hg_image{
	 	float: none;
	 	width: 100%
	 }

	 .hg_small div, .hg_small{
	 	  height: 300px;
	 	  float: none;
	 	  width: 100%;
	 	  margin: 0;
	 	  padding: 0

	 }

	 .hg_button img{
	 	margin: 20px 0
	 }

	 .ad_space{
	 	margin-bottom: 15px
	 }

	

	 .ut_button{
	 	padding: 25px 20px
	 }
	 #HomeGallery li{
	 	margin-bottom: 20px
	 }

	 #TournamentHeader .columns{
	 	float: none;
	 	width: 100%
	 }
	 /*Profile*/
	 .hp_profiles .alignleft{
	 	float: none;
	 	text-align: center;
	 }
	 #HpProfiles li{
		margin-bottom: 20px;
		list-style: none;
		float: none;
		width: 100%;
		padding:0 15px
		
		}

	 /*Tournament*/
	 
	 table, thead, tbody, th, td, tr {
	  display: block;
	}
	#TournamentTable thead{
	 	display: none;
	 }
	#TournamentTable tr:nth-of-type(even) {
	  border-bottom: 2px solid #eee;
	  border-top: 2px solid #eee
	}
	#TournamentTable td {
		padding: 10px
	}
	

	#TournamentTable tbody td:nth-of-type(1):before{
		content: "Code:";
	}
	#TournamentTable tbody td:nth-of-type(2):before{
		content: "Start:";
	}
	#TournamentTable tbody td:nth-of-type(3):before{
		content: "Host:";
	}
	#TournamentTable tbody td:nth-of-type(4):before{
		content: "Tournament:";
	}
	#TournamentTable tbody td:nth-of-type(5):before{
		content: "Tier:";
	}

	#TournamentTable tbody td:nth-of-type(6):before{
		content: "Page:";
	}
	

	#TournamentTable td:before {
		position: initial;
		top: 0px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
		font-weight: bold;
	}

	/*Associations Clubs*/
	#NorthIsland thead, #SouthIsland,  thead{
	display: none;
	}

	#NorthIsland tbody td:nth-of-type(1):before, #SouthIsland tbody td:nth-of-type(1):before{
		content: "Association:";
	}
	#NorthIsland tbody td:nth-of-type(2):before, #SouthIsland tbody td:nth-of-type(2):before{
		content: "Clubs:";
	}
	#NorthIsland tbody td:nth-of-type(3):before, #SouthIsland tbody td:nth-of-type(3):before{
		content: "Club Contacts:";
	}

	#NorthIsland td:before, #SouthIsland td:before {
		font-weight: bold;
	}

	#HpProfiles .hpp_image{
		float: none
	}
	
}

/*iphone4 and iphone5 fix*/
@media only screen and (min-width: 320px) and (max-width : 320px) {
	
}

/*Landscape fix*/
@media only screen and (min-width: 480px) and (max-width : 667px) {
	#logo{
		width: 200px
	}

	.headerleft, .headerright{
		width: 50%;
		float: left;
	}

	 #UpcomingTournament li{
		float: left;
		width: 50%;
	}
	.ut_col_space_r{
		  padding: 0 10px 0 0;
	}
	.ut_col_space_l {
	  padding: 0 0 0 10px;
	}

	.hg_image {
	  width: 50%;
	  height: 300px;
	  border-radius: 5px;
	  background-size: auto 100%;
	  padding-right: 10px;
	  margin-bottom: 20px
	}
	#HomeGallery li {
	  margin-bottom: 10px!important;
	}
	.hg_image div{
		width: 100%
	}


	#HomeGallery li {
	  list-style: none;
	  float: left;
	  margin-bottom: 10px;
	  width: 50%
	}

	.hg_small div, .hg_small{
	 	   height: 145px;
		  width: 100%;
		  border-radius: 5px;
		  background-size: 100% auto;
		  padding-right: 10px
	 }

	.hg_button img {
	  margin: 30px 0 10px 0;
	}

}