/* 
home page 
Colorado Encyclopedia 
Greg Vogl 2017-02-06
*/

.front #logo {
  padding-left: 15px;
}

@media only screen and (max-width: 900px) {
  .front.not-logged-in #page {
    background-color: transparent !important;
  }
  div#amendment {
    display: none;
  }
}
@media only screen and (min-width: 901px) {
  div#amendment {
    margin-left: 450px;
    margin-top: -50px;
    width: 400px;
  }
}
@media only screen and (max-width: 1280px) and (min-width: 901px) {
  div#amendment {
    margin-left: 450px;
    margin-top: -50px;
    width: 250px;
  }
}

/* hide page title and Home link from home page */
.front #page-title {
  display: none;
}
.front.not-logged-in #block-menu-menu-top-menu {
  margin-top: 12px;
  margin-bottom: -22px;
}
/* language */
.front #block-block-3 {
  clear: none;
}
/*
.front.not-logged-in #block-block-3 { margin-top: 12px; }
.front #block-menu-menu-top-menu ul li:first-child { display: none; }
.front #block-menu-menu-bottom-menu ul li:first-child { display: none; }
*/

/* 19th amendment promotion logo */
/*
.front div#amendment { text-align: center; }
.front div#amendment img { max-width: 400px; }
@media only screen and (min-width: 901px) {
.front div#amendment img { position: absolute; top: 8.3em; left: 50%; margin-left: -210px; }
}
*/

/* add caption to photos */
.front #imageCredit {
  display: block;
  position: absolute;
  right: 0;
  padding: 2px;
  z-index: 10000;
  margin-top: -2em;
}
.front #imageCredit a {
  color: white !important;
}
.front #imageCredit a:hover {
  background-color: #002b5d;
}

/* featured articles on bottom of home page */
.front #triptych-wrapper {
  background-color: #f0f0f0;
}
.front #triptych {
  background-color: #ffffff;
}
.front #triptych h2 {
  text-align: left;
  font-size: 1.7em;
  padding-left: 5px;
  white-space: nowrap;
}
.front #triptych .region-triptych-first {
  clear: both;
}
.front #triptych .region-triptych-middle h2,
.front #triptych .region-triptych-last h2 {
  visibility: hidden;
}
.front #triptych .region:nth-last-child(-n + 3) h2 {
  display: none;
}
.front #triptych .block {
  border-width: 0;
}
.front #triptych .content {
  background-color: #eee;
  background-color: #f8f8f8;
  border-radius: 5px;
  padding: 10px;
}
.front #triptych .views-field-title {
  font-size: 1.4em;
  text-align: center; /* white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-top: -1.3em; opacity: 0.8; */
}
.front #triptych .views-field-title span {
  display: block; /* height: 1.3em; background-color: #666; */
}
.front #triptych .views-field-title a {
  width: 100%;
  display: inline-block; /* padding-top: 237px; margin-top: -237px; color: white; position: absolute; left: 0; */
}
.front #triptych .flexslider {
  background-color: transparent;
  box-shadow: none;
  margin-bottom: 0;
  border: 0;
}
.front #triptych .field-content {
  text-align: center;
}
.front #triptych img {
  max-width: 220px;
  border-radius: 5px;
  border: 1px solid #ddd;
  margin: 0 auto;
}
.front #triptych a {
  color: #059;
}

.front #triptych2 {
  display: none;
}

/* home slider */
.front .view-id-promo_images {
  font-size: 1.2em;
  text-align: center;
}
.front .view-promo-images div {
  text-align: center;
}
.front #block-views-promo-images-block .flexslider {
  border: 0;
  box-shadow: none;
  margin-bottom: 15px;
  max-width: 800px;
  display: inline-block;
  display: none;
}
.front #block-views-promo-images-block .flex-control-paging li a {
  width: 21px;
  height: 21px;
}

/* TB megamenus */
.front #main-menu {
  display: none;
}
.front.not-logged-in #block-tb-megamenu-main-menu {
  margin-top: 100px;
  left: 50%;
  margin-left: -12em;
}
.front.not-logged-in .tb-megamenu {
  background-color: #002868;
  opacity: 0.95;
  margin-left: 2px;
}
.front.not-logged-in #header .region-header .tb-megamenu .nav > li > a {
  padding: 5px 17px;
}

/* search box */
.front.not-logged-in .region-header #block-search-form {
  right: auto;
  left: 7px;
  margin-top: 150px;
  z-index: 10;
  left: 50%;
  margin-left: -12em;
}
.front.not-logged-in .region-header #block-search-form .form-text {
  width: 365px;
}
/*
.front.logged-in #edit-search-block-form--2 { border: 1px solid #69c; }
*/

.front.not-logged-in #page {
  background-color: #224974;
  background-position: top left;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/*
.front.logged-in #main-wrapper { min-height: 200px !important; }
*/
.front.logged-in #main-wrapper {
  min-height: 0 !important;
}
.front.logged-in #header {
  padding-bottom: 40px;
}
.front #header {
  border: 0;
}
.front.not-logged-in #header .tb-megamenu .nav > li > a,
.front.not-logged-in #header .tb-megamenu .nav > li > a:active {
  color: white;
}
.front.not-logged-in #header .tb-megamenu .nav > li > a:focus,
.front #header .tb-megamenu .nav > li.open > a,
.front #header .tb-megamenu .nav > li > a:hover {
  color: #002b5d;
}

/* map */
.front #home-article-map {
  background-color: #f0f0f0;
}
.front #block-views-article-map-block-1 {
  padding-bottom: 20px;
  margin: 0 auto;
  width: 810px;
  border: solid white;
  border-width: 0 30px 0 25px;
  background-color: white;
}
.front #block-views-article-map-block-1 h2 {
  font-size: 1.7em;
  color: #002868;
  margin-top: 0;
}
div[id="OpenLayers.Map_2_GMapContainer"],
.gm-style {
  border-radius: 5px;
}
.front .openlayers-views-map {
  margin-bottom: 4em;
}
.front #ce-category-key {
  margin-bottom: 1em;
}

/* assure that status messages aren't covered by menus or anything else */
.front #page .messages {
  position: absolute;
  z-index: 1000;
}

@media only screen and (min-width: 901px) {
  /* home page featured triptych */
  /*
#triptych .view-content > div { clear: both; height: 100px; padding: 5px; margin-bottom: 5px; }
#triptych .view-content > div:hover { background-color: white; opacity: 1.0; border-radius: 5px; }
#triptych .view-content > div > div { display: inline-block; height: 100px; vertical-align: middle; }
#triptych .view-content > div > div:first-child { width: 100px; margin-right: 5px; overflow: hidden; border-radius: 10px; }
#triptych .view-content > div > div:last-child { }
#triptych .views-field-field-encyclopedia-image img { max-width: none; max-height: none; width: auto; height: auto; }
#triptych .views-field-title a { width: 125px; height: 100px; display: inline-block; padding-left: 100px; margin-left: -100px; position: absolute; z-index: 100; }
*/

  .front.not-logged-in #header,
  .front.not-logged-in #triptych-wrapper,
  .front.not-logged-in #home-article-map,
  .front.not-logged-in #footer-wrapper {
    opacity: 0.97;
  }
  .front.not-logged-in #block-tb-megamenu-main-menu,
  .front.not-logged-in #block-search-form {
    font-size: 1.2em;
  }
  .front.not-logged-in .region-header #block-search-form {
    margin-top: 150px;
  }
  .front.not-logged-in .region-header #block-search-form .form-text {
    width: 16em;
  }
}

@media only screen and (max-width: 900px) {
  .front #edit-search-block-form--2 {
    border: 1px solid #69c;
  }
  .front #block-tb-megamenu-main-menu {
    margin-top: 60px;
  }
  /* if no background image, no gap */
  .front #main-wrapper {
    min-height: 85px !important;
  }
  /* rearrange header on home page */
  .front .region-header #block-search-form {
    margin-top: 120px !important;
  }
  .front .region-header #block-tb-megamenu-main-menu.block {
    margin-top: 65px !important;
  }
  .front #home-article-map {
    display: none;
  }
  .front.not-logged-in #page {
    background-color: transparent !important;
  }
}

@media only screen and (max-width: 640px) {
  /* use main menu instead of megamenus */
  .front #main-menu {
    display: block;
    background-color: #224974;
    padding-top: 5px;
  }
  .front #main-wrapper {
    min-height: 0 !important;
  }
  .front .region-header {
    height: 50px;
  }
  .front .region-header #block-search-form {
    margin-top: 0 !important;
  }
  .tabs {
    display: none;
  }
  .front #header {
    margin-bottom: -10px;
  }
}

/*
@media only screen and (max-width: 440px) {
.front .region-header .block { float: none; }
.front #main-wrapper { min-height: 0 !important; }
}
*/

@media only screen and (min-width: 360px) and (max-width: 560px) {
  /* keep triptych layout for most phones */
  .front .region-triptych-first,
  .front .region-triptych-middle,
  .front .region-triptych-last {
    display: inline;
    float: left;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5px 0;
  }
}

@media only screen and (max-height: 800px) and (min-width: 901px) {
  .front.not-logged-in #main-wrapper {
    min-height: 400px;
  }
  /* prevent featured articles from overlapping dropdown menus */
  .front.not-logged-in .tb-megamenu .tb-block ul li a,
  .front.not-logged-in .tb-megamenu .tb-block ul li a:hover {
    padding: 0;
    line-height: 1em;
  }
}
