@media only screen and (max-width : 1260px){
	.fa #header div.center_header{ background:url("/view/skins/persian/images/fa_pre_center2.png") no-repeat scroll center center rgba(0, 0, 0, 0) !important; }
	#header div.center_header ul.right_icons li{ margin-right:3%;}
	#header div.center_header ul.left_icons li{ margin-left:3%;}
	/* ------------ full screen windows ------------- */
	.main_content{
		bottom:0px;
		right:0px;
		left:0px;
		top:0px;
		height:100%
		
	}
	.windows{
		width:100%;
		-webkit-transition: all 0.5s ease;
		   -moz-transition: all 0.5s ease;
			-ms-transition: all 0.5s ease;
			 -o-transition: all 0.5s ease;
				transition: all 0.5s ease;
	}
	.active_sidebar .windows{ width:auto; padding-right:310px; left:0px !important;}
	.mini_sb.active_sidebar .windows{padding-right:100px;}
	.windows .windows_res_min_inn{ padding:0;}
	.windows .windows_header{ 
		background:url("/view/skins/persian/images/windows/formBg.jpg") repeat;
		height:40px;
	}
	.windows .windows_res_bottom{ 
		background:url("/view/skins/persian/images/windows/formBg.jpg") repeat;
		height:20px;
	}
	
	.windows .windows_res_tr, .windows .windows_res_tl, .windows .windows_res_br, .windows .windows_res_bl, .windows .windows_res_left, .windows .windows_res_right {
		display: none;
	}
	.windows .windows_header, .windows .windows_res_bottom ,.windows .windows_res_min_inn{
		margin: 0;
	}
}
@media only screen and (max-width : 1023px){
	#warper_map{margin-left:-385px !important;}
	.active_sidebar .full_bg{display:block;}
	.active_sidebar .windows{ width:100%; padding-right:0px;}
	.active_sidebar .windows.force_open_sidebar{ width:auto; padding-right:310px;}
	.mini_sb.active_sidebar .windows.force_open_sidebar{ padding-right:110px;}
}

@media only screen and (min-width : 1024px){
	body.active_sidebar .master_container.village_view {
		margin: -700px -1280px;
	}
}

@media only screen and (max-width : 1100px){
	#header div.right_image,#header div.left_image{ display:none;}
	#header .repeat_header{ margin:0;}
	#header div.center_header ul.left_icons{ margin-left:0;}
	#header div.center_header ul.right_icons{ margin-right:0;}
}
@media only screen and (max-width : 960px){
	.gamebox{ width:100%;}
	.force_open_sidebar .brain .stat_box{ float:none; width:130px; margin:0 auto;}
}
@media only screen and (max-width : 1024px){
	.side_res{
		position:fixed;
		width:320px;
		right:0px;
		top:0px;
		background:rgba(0,0,0,0.7);
		height:100%;
	}
	.side_res .side_res_padding{ padding:20px 10px;}
	.side_res .repeat_header{ display:none;}
	.side_res #header {
		height: auto;
		position: initial;
		z-index: 1;
	}
	.side_res #header div.center_header{ padding-top:100px; background-position:center 0 !important; top:0; height:auto; overflow:visible;}
	.side_res #header div.center_header ul{ float:none; }
	
	.side_res #sidebar{
		width:100%;
		background: none;
		overflow: hidden;
		position: initial;
	}
	.side_res #sidebar .b1,
	.side_res #sidebar .b2{background:none;}
	.side_res ul#sidebar_content li{
		float:left;
		padding-right:2px;
		background: url("/view/skins/persian/images/sidebar/border2.jpg") no-repeat scroll center right ;
	}
	
	/* ------------------footer----------------- */
	
}
@media only screen and (max-width : 960px){
	#warper_map {
		margin-left: -400px !important;
	}
    #movement_troop {
        width: 510px;
    }
}
@media only screen and (max-width : 870px){
	.active_sidebar .force_open_sidebar .feature_account_info_inline .account_item{ float:none !important; width:auto !important;}
	#hunter{ width:auto;}/*
	.profile_user_res .pic_bg{
		background-position: right -110px;
		width: 80px;
		height: 73px;
	}
	.profile_user_res .pic{
		width: 65px;
		margin: 5px;
		height: 60px;
	}
	.profile_user_res .profile_user_min_inn{
	    padding:5px 20px 5px 80px;
	}
	.rtl .profile_user_res .profile_user_min_inn{
	    padding:5px 80px 5px 20px;
	}
	.profile_user_res .profile_user_min_inn{
	    min-height: 60px;
	}*/
	.profile_user_res ul li{
	    margin-bottom: 4px;
	    margin-top: 4px;
	}
}
@media only screen and (max-width : 800px){
	#warper_map {
		position:inherit;
		width:0px;
		height:100%;
		width:100%;
		margin:0 !important;
		left:0px;
		top:20px !important;
	}
	#control_box{
		width:auto;
		left:30px;
		right:0px !important;
		height:auto;
		margin:0;
		left:0px;
		right:0px;
		padding-right:50px;
	}
	#warper_map .info{ display:none;}
	/* hemayat */
	.under_protect img{
		position:absolute;
		right:0;
		top:0;
		left:0;
		bottom:0;
		margin:auto;
		opacity:0.35;
		z-index:-1;
		float:none;
		width:37px;
		height:37px;
		display:block;
	}
	.under_protect strong{ display:none;}
	.under_x_box .count-down{ margin:0;}
	.count-down-init{ display:block !important;}
	.rtl .under_x_box{ width:105px; padding:5px; }
	#hunter .content_hunter #hunting_birds,#hunter .content_hunter #magical_forest{ float:none; margin:0 auto 10px auto;}
}
@media only screen and (max-width : 768px){
	#header div.center_header ul.right_icons li{ margin-right:2%;}
	#header div.center_header ul.left_icons li{ margin-left:2%;}

	.windows .windows_header,
	.windows .windows_res_bottom{margin:0;	}
	.windows .windows_res_min_inn{ padding:0;}
	.force_open_sidebar .brain .games #othello,
	.force_open_sidebar .brain .games #oxgame{ float:none; margin:0 auto 20px;}
	/* ------------ corners ------------- */
	.buttons_city{ display:none;}
	.template_corner_bll,.template_corner_tll{ display:block;}
	.buttons_city_sb{ display:block;}
	.map-window{ left:0px;}
	#map_info{ left:15px;}
	.rtl .windows .windows_header_middle .close_button { left:0px;}
	.windows .windows_header_middle .close_button { right:40px;}
	.brain .score .scoreComment{ clear:both;}
	.windows .detail-box_maintab .detail_box_header{
		background: #95703c; /* Old browsers */
		background: -moz-linear-gradient(top,  #95703c 0%, #624525 66%, #825d31 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#95703c), color-stop(66%,#624525), color-stop(100%,#825d31)); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top,  #95703c 0%,#624525 66%,#825d31 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top,  #95703c 0%,#624525 66%,#825d31 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top,  #95703c 0%,#624525 66%,#825d31 100%); /* IE10+ */
		background: linear-gradient(to bottom,  #95703c 0%,#624525 66%,#825d31 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#95703c', endColorstr='#825d31',GradientType=0 ); /* IE6-9 */

		border: 1px solid #f7d571;
		box-shadow: 0px 0 1px #000;
		margin: 0;
		color: #fff;
		height: auto;
		width: auto;
		white-space: normal;
		line-height: 20px;
	}
	.windows div.detail-box_maintab div.detail_box_header .detail_box_header_left,
	.windows div.detail-box_maintab div.detail_box_header .detail_box_header_right{
		background: none;
		padding: 0 !important;
		height: auto;
	}
	div.detail-box_maintab div.detail_box_header .detail_box_header_middle{ height: auto; padding:0 7px; }
	.server-time{ left: 25px;}
	#chat_window{ left: 12px !important;}
	#coins_table .header .coin{ width: 74px;}
	#coins_table .body ul.number{width: 75px;}
	#chest_not_discovered_res {width: 538px;}
}
@media only screen and (max-width : 700px){
	.brain .stat .stat_right,.brain .stat .stat_left{ display:none;}
	.brain .stat{ margin:0;}
	.feature_account_info_inline .account_item{ float:none !important; width:auto !important; margin-bottom:7px !important;}
	#user_profile .big_td,#user_profile .user_medals{ float:none; width:auto; margin-bottom:7px;}
	#oxgameBg{
		transform: scale(0.9);
		margin:0 0 0 -40px;
	}
	.review .oxgameBg_btn{ margin-top: -20px;}
}	
@media only screen and (max-width:660px){
	#header div.center_header ul.right_icons li{ margin-right:1%;}
	#header div.center_header ul.left_icons li{ margin-left:1%;}
	#alliance_profile .alliance_info,
	#alliance_profile div.profile_R{ float:none;padding:0; margin:0 0 7px 0; width:auto;}
	div.box-red-style div.box-body form div.submit{ margin-left: 0 !important;margin-right: 0 !important;}
	#chest_not_discovered_res{ width: auto; margin-right: 5px; margin-left: 5px;}
	#coins_table{ position: relative;}
	#coins_table .header{
		width: 90px;
		padding-top: 31px;
		background-color: #7D6649;
		border-bottom: none;
		position: absolute;
		left: 0;
		top: 0;
	}
	.rtl #coins_table .header{ left: auto; right: 0;}
	#coins_table .header .text_no{ display: none;}
	#coins_table .header .coin{ width: auto; float: none !important; border-bottom:1px solid #51402a;}
	#coins_table .header ul li{ float: none; width: auto;}
	#coins_table .body{ padding-left: 90px; }
	.rtl #coins_table .body{ padding-left: 0; padding-right: 90px;}
	#coins_table .body .title{ float: none !important; width: auto;}
	#coins_table .body .title ul li{
		float: left;
		width: 33%;
	}
	.rtl #coins_table .body .title ul li{ float: right;}
	#coins_table .body ul.number{
		float: none !important;
		width: auto;
		display: block;
	}
	#coins_table .body ul.number li{
		float: left;
		width: 33%;
		height: 66px;
		line-height: 66px;
	}
	.rtl #coins_table .body ul.number li{ float: right;}
	#oxgameBg{
		transform: scale(0.8);
		margin: 0 0 0 -50px;
	}
	.review .oxgameBg_btn{ margin-top: -40px;}
    .dialoghelp .dialog_middle_left,
    .dialoghelp .dialog_middle_right{
        width: 50px;
    }
    .dialoghelp .dialog_middle_right{
        background-position:  -158px 0;
    }
    .dialoghelp .ts_dialogs_middle{
        padding: 0 50px;
    }
    .help-box div.help-theme2{
        padding: 0;
        background: none;
    }
    div.help-box div.help-level, div.help-box div.help-reward, div.help-box div.help-task,
    .help-box .help-level-complete{
        margin: 5px 0;
    }
}
@media only screen and (max-width:600px){
	div.block_box.research_box div.result_message, div.block_box.research_box div.progress_block{
		width:auto;
	}
	.gamebox_header,.gamebox_footer,.gamebox .gamebox_left,.gamebox .gamebox_right{ display:none;}
	.gamebox .gamebox_min{ margin:0 15px;border:1px solid #564126;
	border-radius: 			5px; 	
	-moz-border-radius: 	5px;
	-webkit-border-radius: 	5px;
	}
	.scheduling_construction_table .label { float:none;}
	#chest_not_discovered_res .chest_box_res{
		float: none;
		width: auto;
	}
	#oxgameBg{
		transform: scale(0.75);
		margin: 0 0 0 -80px;
	}
	.review .oxgameBg_btn{ margin-top: -60px;}
}
@media only screen and (max-width :560px) {
    #movement_troop { width: 360px;}
    #loading_war div.box_loading{ width:350px;}
	#oxgameBg{
		transform: scale(0.7);
		margin: 0 0 0 -120px;
	}
	.review .oxgameBg_btn{ margin-top: -80px;}
}
@media only screen and (max-width :480px) {
	div.block_box h3.block_title{
		background: rgb(204,75,13); /* Old browsers */
		background: -moz-linear-gradient(top,  rgba(204,75,13,1) 0%, rgba(159,25,0,1) 38%, rgba(159,25,0,1) 78%, rgba(219,7,14,1) 100%); /* FF3.6+ */
		background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(204,75,13,1)), color-stop(38%,rgba(159,25,0,1)), color-stop(78%,rgba(159,25,0,1)), color-stop(100%,rgba(219,7,14,1))); /* Chrome,Safari4+ */
		background: -webkit-linear-gradient(top,  rgba(204,75,13,1) 0%,rgba(159,25,0,1) 38%,rgba(159,25,0,1) 78%,rgba(219,7,14,1) 100%); /* Chrome10+,Safari5.1+ */
		background: -o-linear-gradient(top,  rgba(204,75,13,1) 0%,rgba(159,25,0,1) 38%,rgba(159,25,0,1) 78%,rgba(219,7,14,1) 100%); /* Opera 11.10+ */
		background: -ms-linear-gradient(top,  rgba(204,75,13,1) 0%,rgba(159,25,0,1) 38%,rgba(159,25,0,1) 78%,rgba(219,7,14,1) 100%); /* IE10+ */
		background: linear-gradient(to bottom,  rgba(204,75,13,1) 0%,rgba(159,25,0,1) 38%,rgba(159,25,0,1) 78%,rgba(219,7,14,1) 100%); /* W3C */
		filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cc4b0d', endColorstr='#db070e',GradientType=0 ); /* IE6-9 */

		border-radius: 			5px; 	
		-moz-border-radius: 	5px;
		-webkit-border-radius: 	5px;
		height:25px;
		line-height:25px;
		top:4px;
		width:auto;
		height:auto;
	}
	#control_box{ padding-right:40px;}
	.brain .stat_box{ float:none !important; width:120px; margin:0 auto;}
	.help-box div.help-theme1{
		padding: 0 !important;
	}
	.help-box div.help-theme1{ background: none !important;}
	#chest_not_discovered_res{ width: auto; margin-right: 0; margin-left: 0;}
	/*#coins_table .header{ width: 80px;}
	#coins_table .body{ padding-left: 80px;}*/
	#coins_table .body ul.number li,
	#coins_table .body .title ul li{ width:32.8%;}
	.description{ padding:10px 0; }
	#oxgameBg{
		transform: scale(0.6);
		margin: -50px 0 0 -140px;
	}
	.review .oxgameBg_btn{ margin-top: -150px;}
	.profile_user_res ul li{
		float: none !important;
		width: auto;
		height: auto;
	}
}
@media only screen and (max-width :420px) {
	.windows .windows_header table{ max-width:250px;}
	.windows .windows_header table td.header-middle span{ display:block; overflow:hidden; height:20px;}
	#warper_map .info{ display:none;}
	#hunter .gamebox_min{ margin:0;}
    #movement_troop { width: auto; overflow:auto;}
    #loading_war div.box_loading{ width:350px;}
    #loading_war{ width:360px;}
	#oxgameBg{
		transform: scale(0.5);
		margin: -70px 0 0 -180px;
	}
	.review .oxgameBg_btn{ margin-top: -170px;}
}
@media only screen and (max-width : 640px) and (orientation : landscape) {
	#map_navigate_form{ width:auto;}
	#control_box{
		left:15px;
		right:auto !important;
		width:59px;
		height:auto;
		padding:5px !important;
	}
	#control_box div.button_control{ float:none; width:auto;}
	#control_box{ z-index:999; }
	#map .map-zoom-lb{ left:0px;}
}
@media only screen and (max-width :400px) {
    .dialoghelp .dialog_middle_left, .dialoghelp .dialog_middle_right,
    .dialoghelp .dialog_footer_left,.dialoghelp .dialog_footer_right,
    .dialoghelp .dialog_header_left,.dialoghelp .dialog_header_right{
        display: none;
    }
    .dialoghelp .ts_dialogs_middle {
        padding: 0;
    }
    .dialoghelp .ts_dialogs_header,
    .dialoghelp .ts_dialogs_footer{ margin: 0;}
    .dialoghelp .dialog_header_middle .close_dialog{ left: 0;}
    #help_dialog{
        left: 0 !important;
    }
    .dialoghelp .dialog_middle_wrraper{ padding: 0 10px;}
	#coins_table .header{ width: 70px;}
	#coins_table .body{padding-left: 70px;}
	.rtl #coins_table .body{ padding-left: 0; padding-right: 70px;}
}
@media only screen and (max-width : 380px) {
	.active_sidebar  .template_corner_tr,
	.active_sidebar  .template_corner_tl,
	.active_sidebar  .template_corner_br,
	.active_sidebar  .template_corner_bl
	{ display:none;}
	.active_siddebar .template_corner_tl{ display:none;}
	.brain .games{ width:152px;}
	.brain .games #othello,
	.brain .games #oxgame{ float:none; margin-bottom:12px;}
	#coins_table .body .title ul li,#coins_table .body ul.number li{ width: 32.7%;}
}
@media only screen and (max-width : 360px) {
	.profile_user_res .pic_bg{
		right: 0 !important;
		top: 10px;
		left: 0 !important;
		bottom: 0;
		margin: 0 auto;
	}
	.profile_user_res .pic{
		right: 0 !important;
		top: 20px;
		left: 0 !important;
		bottom: 0;
		margin: 0 auto;
	}
	.profile_user_res .profile_user_min_inn{
		padding: 115px 20px 20px !important;
	}
}

@media only screen and (max-height : 575px){
	#warper_map{ top:20px !important; }
}

@media only screen and (max-height : 930px){
	/* .main_sidebar .sb_separator{ display:none;} */
}
@media only screen and (max-height : 900px){
	.resources_title{ display:none;}	
	.main_sidebar .stats-resources {
		margin-bottom: 15px;
	}
}