﻿/*===================================
  smaller than 980
=====================================*/

@media screen and (max-width: 980px) {
#outerWrapper {
	width: 95%;
}
#contentWrapper {
	clear: both;
	background: #FFFFFF url('images/mobile-bg.jpg') repeat-y;
}

#content {
	width: 60%;
	padding: 3% 4%;
}
#leftColumn1 {
	width: 30%;
}
input[type=text], select, textarea {
	width: 100%;
}

}

/* =============================
iPads (portrait) 
================================ */
@media only screen and (min-device-width : 768px) and (orientation : portrait) {

#outerWrapper {
	width: 95%;
}

#contentWrapper {
	clear: both;
	background: #FFFFFF url('images/mobile-bg.jpg') repeat-y;
}

#content {
	width: 63%;
	padding: 3% 4%;
}
#leftColumn1 {
	width: 27%;
}
input[type=text], select, textarea {
	width: 100%;
}

}

/*===========================
smaller than 650
==============================*/
@media screen and (max-width: 650px) {

#contentWrapper {
    clear: both;
    background: #FFFFFF url('images/mobile-bg.jpg') repeat-y;
    /* stack columns vertically on small screens */
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#header {
    height: auto;
}


#topNavigation {
	position: static;
}
#content {
	width: auto;
	float: none;
	margin: 20px 0;
}
#leftColumn1 {
	width: auto;
	float: none;
	margin: 0;
}
input[type=text], select, textarea {
	width: 100%;
}

}
/*===============================

  smaller than 480
=================================*/
@media screen and (max-width: 480px) {
html {
	-webkit-text-size-adjust: none;
}
#contentWrapper {
	clear: both;
	background: #FFFFFF url('images/mobile-bg.jpg') repeat-y;
}

#outerWrapper #topNavigation {
	height: 50px;
}

#topNavigation a {
	font-size: 90%;
	padding: 10px 8px;
}
#leftColumn1 {
	width: auto;
	float: none;
	margin: 0;
	height: 100%;
}

input[type=text], select, textarea {
	width: 100%;
}

}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 650px) {
  /* keep the hamburger (.icon) visible when hiding other links */
  .topnav a:not(:first-child):not(.icon) { display: none; }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon.
   Make the links stack vertically, occupy full width and override any floats. */
@media screen and (max-width: 650px) {
  #myTopnav.responsive {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  /* keep the icon visible in the top-right */
  #myTopnav.responsive > a.icon {
    position: absolute !important;
    right: 0;
    top: 0;
    width: auto !important;
  }
  /* force each link to be a full-width block and cancel floats */
  #myTopnav.responsive > a {
    float: none !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }
}

