/**
 * @file
 * Positioning for a fixed-width, desktop-centric layout.
 *
 * Define CSS classes to create a table-free, 3-column, 2-column, or single
 * column layout depending on whether blocks are enabled in the left or right
 * columns.
 *
 * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
 */


/*
 * Center the page.
 */

#page,
.region-bottom {
  /* If you want to make the page a fixed width and centered in the viewport,
   * this is the standards-compliant way to do that. */
  margin-left: auto;
  margin-right: auto;
  max-width: 960px;
}

/*
 * Apply the shared properties of grid items in a single, efficient ruleset.
 */

#header,
#content,
#navigation,
.region-sidebar-first,
.region-sidebar-second,
#footer {
  border: 0 !important;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  word-wrap: break-word;
  _display: inline;
  _overflow: hidden;
  _overflow-y: visible;
}



/*
 * Containers for grid items and flow items.
 */

#header,
#main,
#footer {
  *position: relative;
  *zoom: 1;
}
#header:before, #header:after,
#main:before, #main:after,
#footer:before, #footer:after {
  content: "";
  display: table;
}
#header:after,
#main:after,
#footer:after {
  clear: both;
}


/*
 * Navigation bar
 */

#main {
  padding-top: 3em; /* Move all the children of #main down to make room. */
}

#navigation {
	width: 100%;
}

/*
 * Front page navigation
 */
.front #navigation,
.node-type-menu-expansion #navigation {
  height: 310px;
  overflow: hidden; /* Sometimes you want to prevent overlapping with main div. */
}


/*
 * The layout when there are no sidebars.
 */

#content {
	clear: both;
	width: 960px;
	padding-left: 7px;
	padding-right: 10px;
}

#block-views-article-box-block {
	margin: auto  -8px;
}

#block-views-article-box-block .views-row {
	width: 305px;
	height: 190px;
}

/* Main Page new style menu disposition */
.block-menu-block.odd ul.menu li /* First level block */ {
	width: 19.87%;
}
.domain-ualg-net .block-menu-block.odd ul.menu li {
	width: 16.58%;
}

.not-logged-in .field img {
	height: auto !important;
}

/*
img.cropbox {
	height: inherit !important; 
}
*/
table {
	max-width: 100%;
}
iframe {
	max-width: 100%;
}

/*
 * The layout when there is only one sidebar, the left one.
 */

.sidebar-first #content {
  /* Span 4 columns, starting in 2nd column from left. */
  float: left;
  width: 750px;
  margin-left: 186px;
  margin-right: -960px;
  border-left: 1px dotted black !important;
  padding-left: 20px;
}

.sidebar-first .region-sidebar-first {
  /* Span 1 column, starting in 1st column from left. */
  float: left;
  width: 176px;
  margin-left: 0px;
  margin-right: -196px;
}


@media only screen and (max-width : 979px) {
	#page,
	.region-bottom {
	 	width: 668px;
	}
	#content {
		width: 651px;
	}
	.sidebar-first #content {
	  width: 482px;
	  margin-right: -668px;
	}
	

	#block-views-article-box-block {
		margin: auto 8px;
	}

	.domain-ualg-net .block-menu-block.odd ul.menu li {
		width: 33.18%;
	}
	.front #navigation,
	.node-type-menu-expansion #navigation {
	  	height: 330px;
	}
}

/* Small Devices, Tablets */
@media only screen and (max-width : 668px) {
	#page,
	.region-bottom {
	 	width: 480px;
	}
	#content {
		width: 463px;
	}
	.sidebar-first #content {
	  /* Span 4 columns, starting in 2nd column from left. */
	  float:none;
	  width: 90%;
	  margin-left: 20px;
	  margin-right: 20px;
	  border: none !important;
	  padding: 0px;
	}
	.sidebar-first .region-sidebar-first {
	  /* Span 1 column, starting in 1st column from left. */
	  float: none;
	  width: 176px;
	  margin-left: 20px;
	  margin-right: 20px;
	}

	#block-views-article-box-block .views-row {
		width: 96%;
		height: auto;
	}
	#block-views-article-box-block .views-field-field-image-box img {
		width: 100% !important;
		height: auto !important;
		
	}

	.domain-ualg-net .block-menu-block.odd ul.menu li {
		width: 49.6%;
	}
	.block-menu-block.odd ul.menu li {
		width: 33.18%;
	}
	.front #navigation,
	.node-type-menu-expansion #navigation {
	  	height: 500px;
	}

	.node-curso .view-plano-estudos > .view-content > .view-grouping  {
		margin-left: 0px !important;
	}

	.node-page {
		text-align: inherit !important;
	}
}

/* Extra Small Devices, Phones */ 
@media only screen and (max-width : 480px) {
	#page,
	.region-bottom {
	 	width: 100%;
	}
	#content { 
		width: 100%;
	}
	#logo  {
		width: 50%;
	} 

	#block-views-article-slider-block .jcarousel-clip {
		height: 255px !important;
		
	}

	.domain-ualg-net .block-menu-block.odd ul.menu li {
		width: 49.6%;
	}
	.block-menu-block.odd ul.menu li {
		width: 49.6%;
	}
	.front #navigation,
	.node-type-menu-expansion #navigation {
	  	height: 500px;
	}

	input {
		width: 100% !important;
	}
	#block-search-form input.form-submit {
		display: none;
	}
	.node-curso .view-plano-estudos > .view-content > .view-grouping  {
		margin-left: 0px !important;
	}
	.node-page {
		text-align: inherit !important;
	}

}



/* Custom, iPhone Retina */ 
@media only screen and (max-width : 320px) {
    
}











/*
 *
 * Para já não é usado na UALG
 *
 *
 */


/*
 * The layout when there is only one sidebar, the right one.
 */

.sidebar-second #content {
  /* Span 4 columns, starting in 1st column from left. */
  float: left;
  width: 764px;
  margin-left: 0px;
  margin-right: -784px;
}

.sidebar-second .region-sidebar-second {
  /* Span 1 column, starting in 5th column from left. */
  float: left;
  width: 176px;
	margin-top: 40px;
  margin-left: 784px;
  margin-right: -960px;
}

/*
 * The layout when there are two sidebars.
 */

.two-sidebars #content {
  /* Span 3 columns, starting in 2nd column from left. */
  float: left;
  width: 568px;
  margin-left: 196px;
  margin-right: -784px;
}

.two-sidebars .region-sidebar-first {
  /* Span 1 column, starting in 1st column from left. */
  float: left;
  width: 176px;
  margin-left: 0px;
  margin-right: -196px;
}

.two-sidebars .region-sidebar-second {
  /* Span 1 column, starting in 5th column from left. */
  float: left;
  width: 176px;
  margin-left: 784px;
  margin-right: -960px;
}
