
/* - mediaqueries.css - */
/* For devices with narrow screens, phones, tablets, etc. */
/*  * 1625px and above huge screens * */
/*  * 600px and below-common things for 480px, 600px, and below .. IE 9 ignored this if it had 'only screen' in the query   * */
/*  * iPad in landscape mode * */
/*  * iPad in portrait mode * */
/*  * iPhone in landscape mode * */
/*  * iPhone in portrait mode * */


@media screen and (min-width: 769px) {
	div#portal-column-content {
		-webkit-transform: translate3d(0, 0, 0) !important;
		transform: translate3d(0, 0, 0) !important;
		min-height: 300px;
    }
	#portal-column-one {
		display: block !important;
	}
	#portal-globalnav li {
		margin-right: 16px;
	}
}
@media screen and (max-width : 920px) {
	#visual-portal-wrapper {
		margin: 0 auto;
	}
	#portal-header {
		height: auto;
		width: 100%;
		display: table;
		padding-bottom: 18px;
	}
	#portal-logo {

	}
	#portal-globalnav {
		margin-left: 40px;
		float: left;
		width: auto;
		left: auto;
		top: auto;
		position: static;
	}
	#portal-languageselector {
		z-index: 3;
		right: 230px;
	}
	#portal-searchbox {
	}
	#searchGadget {
    }
	#portal-searchbox .searchButton {
	}
	div.row {
		float: none;
		display: table;
		width: 100%;
	}
	.cols-6 .column {
		width: 32% !important;
		font-size: 90%;
	}
	.column li {
		margin-bottom: 5px;
	}
	.cols-6 .column:nth-child(3n+1) {
		clear: left;
	}
	#visual-portal-wrapper > .row {
		margin-bottom: 0;
	}
}


/*  * 600px and below-common things for 480px, 600px, and below .. IE 9 ignored this if it had 'only screen' in the query * */
@media screen and (max-width: 768px) {
    /* reset the min width to be 320px */
	#portal-column-one {
		display: none;
	}
	.template-index_page_view #portal-column-one {
		display: block;
	}
    body { 
		min-width: 320px !important;
	}
	html, body {
		overflow-x: hidden !important;
		position: relative !important;
	}
	.pattern-bg {
		background-image: none !important;
	}
	#content h2.documentSecondHeading {
		float: none;
	}
    #visual-portal-wrapper {}
    div#logo {
        position: absolute;
        top: 15px !important;
        display: inline-block;
        width: 94%;
        }   
       
    /* make width 100% instead of the stock 97.75% */
    div.width-full {
        width: 100% !important;
        }
        
    /* start position-0 at absolute left */
    div.position-0 {
        margin-left: -100%;
        }
	div.width-1\3a 2 {
		width: 100%;
		float: none;
	}
	div.width-1\3a 3 {
		width: 47%;
	}
	div.width-1\3a 3 .scroll {
		margin-bottom: 10px !important;
	}
	div.width-2\3a 3, div.width-2\3a 3 + div.width-1\3a 3 {
		width: 100%;
	}
	div.width-1\3a 3:nth-child(2) {
		margin-left: 6% !important;
	}
	div.width-1\3a 3:nth-child(3), div.width-1\3a 3 + div.width-2\3a 3 {
		clear:left;
		width: 100%;
		margin: 10px 0 !important;
	}
	.section {
		margin-bottom: 20px;
	}
	.section > div, .section h3 + ul {
		margin-bottom: 20px !important;
	}
	.section ul:last-child {
		margin-bottom: 0 !important;
	}
	div.width-1\3a 3 .scroll {
		margin-bottom: 0 !important;
	}
	.column-logo {
		position: static;
		margin-top: 0;
	}
	.column-logo img {
		max-width: 200px;
	}
	#content h3, #content h4, .content h3, .content h4 {
		line-height: 22px;
	}
	
    /* get rid of whatever width is set on visual-portal-wrapper so it expands whole device width */
    #visual-portal-wrapper {
        border: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        }
        
    /* move columns to below main content */    
	#portal-column-two, #portal-column-one {
		margin: 1em 0 0;
	}
	#portal-column-one {
		position: absolute;
		left: 0%;
		width: 148px;
		margin: 0;
		z-index: 1;
	}
	.template-index_page_view #portal-column-one {
		position: relative;
		left: 0%;
		width: 100%;
		margin: 15px 0 0;
	}
	.template-index_page_view #portal-column-content {
		position: relative;
		left: 0%;
		width: 100%;
		margin: 0;
	}
	.template-index_page_view dl.portlet ul.navTreeLevel0 > .navTreeItem {
		text-align: left; 
	}
	#toggle-side-menu {
		background: #000000 url(toggle-menu-lines.png) no-repeat center;
		width: 40px;
		height: 40px;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 3;
	
		border-right: 50px solid #fff;
		border-left: 5px solid #fff;
	}
	.content-padding {
    padding-top: 54px;
	}
	dl.portlet .navTreeLevel0 > .navTreeItem:hover  {
		padding-top: 2px;
		-webkit-transition: none;
		-moz-transition: none;
		transition: none;
	}
        
    /* spread out the content */
    div#portal-column-content {
        width: 100%;
        margin-left: -100%;
		position: relative;
		z-index: 2;
        background: #fff;
        }
        
    dl#portal-personaltools {
        margin-right: 34px;
        float: right;
        }
    #portal-personaltools {
       font-size: 70%;
       }
	#portal-searchbox {
		margin-top: 10px;
	
		position: static;
		clear: right;
		float: right;
	}

/* luke w says breadcrumbs are not found in mobile designs */    
    #portal-breadcrumbs {
        display: none; 
        }
        
 /* make the content font-size bigger */
   #content {
       } 
   /*#content-core { width: 98%;}*/
   #content h1 { font-size: 1.4em;}
   #content h2 { font-size: 1.2em;}
   div#footer {
       width: 99%;
       }   
    
    div#portal-columns { width: 100%; }

	#portal-languageselector {
		margin-right: 30px;
		margin-bottom: 10px;
	}
	#portal-languageselector a {
	    font-size: 130%;
	}
	#portal-globalnav {
		margin: 20px 0 0;
		font-size: 110%;
		float: right;
		padding: 0;
		border-bottom: none;
		position: relative;
	}
	#portal-globalnav li a {
    display: block;
		padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 2px;
	}
	#portal-footer {
		padding: 0;
	}
	#portal-globalnav a:hover, #portal-languageselector a:hover {
		text-decoration: none;
	}
	#logo-footer, #copyright {
		position: static;
		margin: 10px 0;
		text-align: center;
	}
	.advert-form {
		width: 93%;
		margin:0 1% 1.2% 0;
		min-height: 0;
		padding-bottom: 20px;
	}
	#kafelki_wrapper {
		margin: 0 -24px;
	}
	
	.cookies-policy .closecookie {
		float: none;
		text-align: right;
		font-size: 80%;
		padding: 0 0 8px;
	}
	.cookies-policy .closecookie  a {
		display: inline-block;
	}
	.cookies-policy .cookies_info {
		padding-right: 0;
		font-size: 80%;
		line-height: 100%;
	}
	.template-index_page_view #portal-column-content {
		display: none;
	}
	#portal-languageselector {
		top: 54px;
		margin-right: 0;
	}
	#kafelki_wrapper {
		margin: 0 -15px;
	}
	.bigTilesCol {
		width: auto !important;
	}
	.bigTilesRow {
		float: none;
		white-space: normal;
	}
	.bigTilesEntry {
		width: 33%;
		text-align: center;
	}
	.bigTilesEntryWrapper .hidden {
		display: none !important;
	}

 
} /*  * END 600px and below  * */
@media screen and (max-width: 480px) {
	div.width-1\3a 3 {
		width: 100%;
		margin-left: 0 !important;
	}
	.cols-6 .column {
		width: 98% !important;
		font-size: 90%;
	}
	div.width-1\3a 3:nth-child(2) {
		margin-left: 0 !important;
	}
	.advert-form {
		width: 93%;
	}
	.bigTilesEntry {
		width: 49.5%;
		text-align: center;
	}
	#portal-globalnav {
		clear: both;
	}
	#portal-languageselector {
		top: 10px;
		right: 10px;
	}

}

@media screen and (max-width: 320px) {
	@-ms-viewport { 
		width: 320px;
	}
	.landing-visual {
		max-width: 272px;
	}
}

