//--------------------------------------------------------------
// Copyright (C) joomla-monster.com
// License: http://www.joomla-monster.com/license.html Joomla-Monster Proprietary Use License
// Website: http://www.joomla-monster.com
// Support: info@joomla-monster.com
//---------------------------------------------------------------

// VARIABLES import
//---------------------------------------------------------------

@import "bootstrap_variables.less";  
@import "template_variables.less";

// MIXINS import
//---------------------------------------------------------------
  
@import "override/ltr/mixins.less";
@import "template_mixins.less";

// RESPONSIVE
//---------------------------------------------------------------

@media (max-width: 1170px) {
	//custom
	#jm-allpage .dj-megamenu li.dj-up a.dj-up_a {
		padding-left: 5px;
		padding-right: 5px;
	}
	
	.jm-welcome {
		font-size: (@JMwelcomeSubtitleFontSize * 0.75);
		h3 {
			font-size: (@JMwelcomeTitleFontSize * 0.75);
		}
	}
	
}

@media (max-width: 979px) {
  
  // global
  // --------------------------
  
  //module height
  .jm-module-in {
    height: auto !important;
  }
  
  //responsive images
  img {
    .box-sizing(border-box);
  }
  
  //fix on displaying buttons on webkit browsers
  .btn {
    -webkit-appearance: none;
  }
	
	// modules
  // --------------------------
	
	.jm-welcome {
		font-size: (@JMwelcomeSubtitleFontSize * 0.65);
		h3 {
			font-size: (@JMwelcomeTitleFontSize * 0.65);
		}
	}

}

@media (max-width: 767px) {
  
  // global
  // --------------------------
  
  //responsive inputs
  input, select, textarea {
    max-width: 100%;
  }

  //article items
  .items-row {
    margin-bottom: @JMbaseSpace;
  }
  
  .items-row .item {
    margin-bottom: @JMbaseSpace;
  }
	
  // layout
  // --------------------------

	#jm-copyrights,
	#jm-poweredby {
		float: none;
		width: 100%;
		text-align: center;
		margin: 0 0 10px;
	}	

	// modules
  // --------------------------
	
	//header
	#jm-header-content {
		padding: 15px 0;
		.jm-welcome .jm-center-border-line {
			padding: 0 0 15px;
			margin: 0 0 15px;
		}
	}
	
  .jm-welcome {
		font-size: (@JMwelcomeSubtitleFontSize * 0.5);
		h3 {
			font-size: (@JMwelcomeTitleFontSize * 0.5);
		}
	}

	.btn-large,
	.readmore-large {
		font-size: @JMbuttonFontSize;
	}
	
	//dj-tabs
  #jm-allpage .djtabs.default-theme .djtabs-title-wrapper,
	#jm-allpage .djtabs.default-theme .djtabs-title-wrapper .djtabs-title {
		width: 100% !important;
	}
  
	#jm-allpage .side-tabs-left-ms .djtabs.default-theme,
	#jm-allpage .side-tabs-right-ms .djtabs.default-theme {
		.tabs-wrapper,
		.djtabs-in-border {
			width: 100%;
		}
		.djtabs-in {
			padding: @JMbaseSpace 0;
		}
	}

	//price table
	#jm-allpage .jm-pricing {
		.box {
			width: 100%;
		}
	}
	
}

@media (max-width: 480px) {
	
	// global
  // --------------------------
  
	//responsive inputs
	input, select, textarea {
	  width: 100%;
	}
	
	// layout
  // --------------------------
	
	#jm-logo {
		max-width: 200px;
	}
	
	//sticky
	#jm-allpage {
		padding-top: 0 !important;
	}
	.sticky-bar #jm-logo-nav {
		position: static !important;
	}

	//header
	.jm-welcome {
		font-size: @JMbaseFontSize;
		h3 {
			font-size: @JMbaseFontSize;
		}
		.jm-front-modules {
			display: none;
		}
		p {
			display: block;
			width: 100%;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			text-rendering: optimizeLegibility;
			.box-sizing(border-box);
		}
	}

	// modules
  // --------------------------

	//tabs
  dl.tabs,
  .nav-tabs {
    display: block!important;
  }
  dl.tabs dt.tabs,
  .nav-tabs > li {
    float: none!important;
    a {
    	margin-left: 0!important;
    	margin-right: 0!important;
    }
  }
}

@media (max-width: 320px) {
	//header
	.jm-welcome {
		h3 {
			display: block;
			width: 100%;
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
			text-rendering: optimizeLegibility;
			.box-sizing(border-box);
		}
		p {
			display: none;
		}
	}
}

// EXTENSIONS import
//---------------------------------------------------------------
  
@import "djmediatools_responsive.less";

