﻿/* Desktop layout changes  */

#contentRightInner {
  padding: 0 7px 7px 7px;
  overflow: hidden;
}

#headerCart {
  float: right;
  width: 30px;
  padding: 0 !important;
  height: 22px;
  text-align: right;
  margin-top: 2px;
}

#headerCart a {
  display: block;
  width: 23px;
  height: 22px;
  position: relative;
}

#headerCart img {
  display: block;
  width: 23px;
  height: 22px;
  position: relative;
}

#headerQuickLinks {
  margin-top: 2px;
}

#headerBookStore {
  margin-top: 3px;
  width: 60%;
  float: right;
}

/* SharePoint Welcome Drop Down Fix */

.ms-MenuUIPopupBody {
  z-index: 999;
}

/* RESPONSIVE DESIGN STYLES =============================================================== */

/* @media screen and (max-width: 768px),
screen and (max-height: 480px) {
	body { background-image: none; background-color: #fff; }
	#contentLayout a{ word-break: break-all;}
	#pageLayout { width: 100%; margin: 0; }
	#headerLayout {  }
	#headerLogo { top: 10px; }
	#headerQuickLinks h3, #headerQuickLinks select { display: none; }
}
@media screen and (max-width: 640px),
screen and (max-height: 480px) {
	#share { display: none; }
	.globalNavItem td a { font-size: .9em !important; padding-left: 3px !important; padding-right: 3px !important; }
	.ui-select .ui-btn select{ font-size: 50px; }
}
*/

@media screen and (max-width: 480px),
screen and (max-height: 480px) {
  body {
    background-image: none;
    background-color: #fff;
  }
  #contentLayout a {
    word-break: break-all;
  }
  #homeLayoutMain {
    margin-top: 15%;
  }
  #pageLayout {
    width: 100%;
    margin: 0;
  }
  #headerQuickLinks h3,
  #headerQuickLinks select {
    display: none;
  }

  #share {
    display: none;
  }
  .globalNavItem td a {
    font-size: .9em !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }

  /* remove zoom from drop down menu select */
  .ui-select .ui-btn select {
    font-size: 50px;
  }

  #headerQuickLinks h3,
  #headerQuickLinks select,
  #pageConsole,
  #headerMenu,
  #share {
    display: none;
  }

  #pageAreaLayout {
    padding: 5px;
  }
  td#pageLeft {
    display: none;
  }
  td#pageRight {
    padding-left: 0;
    width: 100%;
  }

  #contentLayoutLeft,
  #contentLayoutRight {
    display: block;
    width: 100%;
    float: none;
    min-width: 0px;
  }
  #contentLayoutRight {
    min-height: 0;
    background-image: none;
    border-radius: 5px;
  }
  #contentRightTop {
    background-image: none;
  }

  #headerLayout {
    width: 100%;
    height: 134px;
    position: relative;
    margin-bottom: 0;
    z-index: 200;
  }
  #headerLogo {
    top: 1%;
    left: 1%
  }
  #headerLogo img {
    width: 60%
  }
  #headerBar {
    z-index: 500;
    background-image: none;
    background-color: transparent;
    position: absolute;
    top: 5px;
    right: 5px;
  }
  #headerSearch {
    float: none;
    position: absolute;
    top: 0;
    right: 40px;
    z-index: 200;
  }
  #headerSearch input {
    margin-right: 5px;
  }
  #headerSearch .ms-sbgo {
    background: #fff;
    border-radius: 15px;
  }
  #headerCart {
    position: absolute;
    padding: 0;
    top: 0;
    right: 5px;
    z-index: 200;
    width: 23px;
    height: 22px;
  }
  #headerLinks,
  #headerHatch {
    background-image: none;
    background-color: transparent;
  }
  #headerLinks {
    position: absolute;
    top: 35px;
    right: 0px;
    width: 230px;
    font-weight: bold;
    font-size: .95em;
  }
  #headerLinks table {
    width: auto;
    margin: 0 0 0 auto;
    z-index: 500;
  }
  #headerLinks td {
    text-align: right;
  }
  #headerHome {
    width: 45px;
  }
  #headerWelcome {
    width: auto;
  }
  #headerMenu table.ms-siteaction {
    z-index: 500;
  }
  #footerPipe {
    display: none;
  }
  #footerLinks {
    display: block;
  }

  .homeIntro {
    padding: 5px;
  }
  #contentLayoutLeft img {
    max-width: 100% !important;
  }

  /* mobile only menu styles */
  #headerNavigation {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    padding-top: 5px;
    height: 35px;
    background: #046a45;
    z-index: 200;
    border-top: 1px solid #fff;
  }
  #mobileMenuToggle {
    height: 35px;
    line-height: 35px;
    width: 75px;
    display: block;
    overflow: hidden;
    margin-left: 8px;
    padding-left: 24px;
    background: url('/Style Library/APS/i/icon-menu.png') left center no-repeat;
    z-index: 200;
  }
  #mobileMenuToggle:hover {
    background-color: rgba(0, 0, 0, .5);
  }
  #mobileMenu {
    margin-top: 40px !important;
    display: none;
    margin: 0;
    padding: 0;
    background: #046a45;
  }
  #mobileMenu li {
    list-style: none;
    display: block;
    padding: 0;
  }
  #mobileMenu li a {
    color: #fff;
    font-weight: bold;
    display: block;
    line-height: 30px;
    margin: 0;
    padding: 3px 10px;
    background: rgba(0, 0, 0, 0.30);
    border-top: 1px solid #88b2a3;
    border-bottom: 1px solid black;
  }
  #mobileMenu li a:hover {
    background: rgba(255, 255, 255, 0.35);
  }

  /* LOCAL NAVIGATION */
  #pageAreaLayout {
    position: relative;
    padding: 0 !important;
    margin: 0;
  }
  #pageTable td {
    display: inline-block;
    width: 100%;
  }
  #pageLeft {
    padding: 0;
    margin: 0;
  }
  #pageRight {
    padding: 0;
    margin: 0;
  }
  #currentNavLayout {
    margin: 0;
    max-width: 320px;
    overflow: hidden
  }
  #breadcrumbLayout {
    width: 40%!important;
    margin-top: -7%
  }
  #breadcrumbLayout,
  #contentLayout {
    padding: 5px;
    width: 96%;
  }
  .currentNavHeader a {
    color: #333;
    padding: 5px;
    font-size: 90% !important;
    border-bottom: 1px solid #ccc !important;
  }
  #mobileMenuCurrent {
    padding: 4px;
    margin-top: 12%;
    float: right;
    width: 54%;
  }
  #mobileMenuCurrent>span {
    display: none;
  }
  #mobileMenuCurrent select {
    max-width: 90%;

  }
  #mobileMenuCurrent option {}
}

@media screen and (max-width: 320px) {
  #bodyContent ul {
    margin-left: 10px;
    padding-left: 12px;
  }
  #bodyContent ul li {}
  #headerWelcome {
    width: auto;
  }
  #contentLayoutLeft {}
}

/* BOOKSTORE responsive design styles ==============================================================  */

@media screen and (max-width: 768px) {
  #headerBookStore {}
  #headerBookStore h3 {
    font-size: 1em;
  }
}

@media screen and (max-width: 640px) {
  #headerBookStore {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  #headerLinksBookStore,
  #headerHatchBookStore {
    background-image: none;
    background-color: transparent;
  }
  #headerLinksBookStore {
    position: absolute;
    top: 35px;
    right: 0px;
    width: 230px;
    z-index: 200;
    font-weight: bold;
    font-size: .95em;
  }

  #headerLinksBookStore table {
    width: auto;
    margin: 0 0 0 auto;
  }
  #headerLinksBookStore td {
    text-align: right;
  }

  /* the entire zone */
  .ui-accordion {
    margin: 10px 0;
    padding: 3px 5px;
    border: 1px solid #869E03;
    border-radius: 5px;
  }

  /* all accordion headers */
  .ui-accordion-header {
    margin: 2px 0;
    background: #e8eec8;
    padding: 5px 10px;
  }

  /* active accordion header */
  .ui-accordion-header.ui-state-active {}

  /* accordion content area */
  .ui-accordion-content {}

  /* Hide PREVIEW tab to prevent style conflicts */
  #tabContent4,
  a#tabLink4 {
    display: none;
  }
}

@media screen and (max-width: 320px) {
  .productTable {
    margin: 0;
    max-width: 320px;
  }
  td.productLeft {
    display: inline-block;
    width: 100%;
    padding: 0 !important;
  }
  td.productLeft .productImage {
    padding: 0 10px;
  }
  td.productRight {
    display: inline-block;
    width: 100%;
    padding: 0 !important;
    padding-left: 0 !important;
  }
  td.productRight table {
    max-width: 300px;
    margin: 0;
  }
  .ms-WPBody #column td {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
  }
  .ms-WPBody #column td table td {
    border-bottom-style: none;
    padding-bottom: 0px;
  }
}

/* MEETINGS responsive design styles ==============================================================  */

@media screen and (max-width: 768px) {
  #meetingBanner {
    padding-left: 0;
    padding-right: 0;
  }
  #meetingBanner img {
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  #meetingBanner {
    padding: 0;
    overflow: hidden;
  }
  #meetingBanner img {
    max-width: inherit;
  }
  .ms-rteCustom-AutoSchedule {
    width: 100%;
  }
  .ms-rteCustom-AutoSchedule td {
    display: inline-block;
    width: 100%;
    height: auto !important;
    padding: 3px 5px;
  }
  .ms-rteCustom-AutoSchedule td:first-child {
    font-weight: bold;
    border-top: 1px solid #ccc;
  }
  .ms-rteCustom-AutoSchedule td h2 {
    font-weight: bold;
    text-transform: uppercase;
    margin: 5px 0;
    padding: 0;
  }
  .ms-rteCustom-AutoIndex td {
    display: inline-block;
    width: 100%;
    padding: 0;
    height: auto !important;
    background: #e8eec8;
    border-bottom: 1px solid #fff;
  }
  .ms-rteCustom-AutoIndex td h2 {
    font-size: 1em;
    margin: 0;
    padding: 3px 10px;
  }
}

@media screen and (max-width: 320px) {
  .calendar-layout {
    width: 320px !important;
  }
  .calendar-layout td.calendar-item {
    width: 320px !important;
    overflow: hidden;
  }
  .calendar-layout td.calendar-item a {}
}



/*---- Meeting Responsive -------*/

@media screen and (max-width:480px) {
  #headerLinks {
    background: transparent !important;
    font-size: 10px;
    font-weight: 400;
  }
}

@media screen and (min-width:480px) and (max-width:768px) {
  #headerLinks {
    background: transparent !important;
    font-size: 10px;
    font-weight: 400;
  }
}

/*for scaling the header image and nav bar while retaining absolute positioning*/

@media screen and (max-width:322px) {
  #headerNavigation {
    top: 60px !important;
  }
  #headerLayout {
    height: 61px !important;
  }
}

@media screen and (min-width:322px) and (max-width:380px) {
  #headerNavigation {
    top: 70px !important;
  }
  #headerLayout {
    height: 71px !important;
  }
}

@media screen and (min-width:380px) and (max-width:420px) {
  #headerNavigation {
    top: 80px !important;
  }
  #headerLayout {
    height: 81px !important;
  }
}

@media screen and (min-width:420px) and (max-width:480px) {
  #headerNavigation {
    top: 90px !important;
  }
  #headerLayout {
    height: 91px !important;
  }
}

@media screen and (min-width:480px) and (max-width:530px) {
  #headerNavigation {
    top: 100px;
  }
  #headerLayout {
    height: 101px;
  }
  #headerNavigation {
    font-size: 7px;
    top: 85% !important;
    left: 0;
  }
  #headerLogo img {
    width: 60% !important;
  }
}

@media screen and (min-width:530px) and (max-width:590px) {
  #headerNavigation {
    top: 110px;
  }
  #headerLayout {
    height: 111px;
  }
  #headerNavigation {
    font-size: 8px;
    top: 85% !important;
    left: 0;
  }
  #headerLogo img {
    width: 70% !important;
  }
}

@media screen and (min-width:590px) and (max-width:640px) {
  #headerNavigation {
    top: 120px;
  }
  #headerLayout {
    height: 121px;
  }
  #headerNavigation {
    font-size: 9px;
    top: 85% !important;
    left: 0;
  }
  #headerLogo img {
    width: 75% !important;
  }
}

@media screen and (min-width:640px) and (max-width:690px) {
  #headerNavigation {
    top: 130px;
  }
  #headerLayout {
    height: 131px;
  }
  #headerNavigation {
    font-size: 10px;
    top: 90% !important;
    left: 0;
  }
  #headerLogo img {
    width: 75% !important;
  }
}

@media screen and (min-width:690px) and (max-width:768px) {
  #headerNavigation {
    top: 145px;
  }
  #headerLayout {
    height: 146px;
  }
  #headerNavigation {
    font-size: 11px;
    top: 90% !important;
    left: 0;
  }
  #headerLogo img {
    width: 75% !important;
  }
}
