/*  Virginia Young Democrats CSS file based on the Bootstrap frammework
    Created by Ricardo Alfaro, Technology Director (2017)
*/

/* Font Import from Google and local sources */
@import url('https://fonts.googleapis.com/css?family=Merriweather:300|Open+Sans:300,400,600|Montserrat:400,600,800');

@font-face {
font-family: 'Sofia Pro Light';
font-style: normal;
font-weight: normal;
src: local('Sofia Pro Light'), url('/sites/default/files/styles/SofiaProLight.woff') format('woff');
}

@font-face {
font-family: 'Sofia Pro Black';
font-style: normal;
font-weight: normal;
src: local('Sofia Pro Black'), url('/sites/default/files/styles/SofiaProBlack.woff') format('woff');
}

body {
  padding-top: 1px;
}

/* CiviCRM Template fixes */

#civicrm-menu {
  z-index: 2000 !important;
}

.crm-summary-display_name {
  color: #FFFFFF;
}

#crm-container div.crm-summary-contactname-block {
  padding-top: 105px;
}

.crm-container .crm-button {
  background-color: #11228b;
}

body .toolbar-menu {
  height: 30px !important;
  padding-top: 5px !important;
}

.label {
  font-family: 'Montserrat',sans-serif;
  color: #272727;
}

.background-image-title-bar
{
    background-color: #022e5b;
    position: absolute;
    width: 100%;
    height: 225px;
    z-index: -1;
    margin-top: -70px;
}

#page-header {
	margin-top: -70px;
}

/* Front Featured */

.region-front-featured {
	height: 200px;
	padding-top: 20px;
	font-family: 'Montserrat',sans-serif;
	text-shadow: black 0.05em 0.05em 0.07em;
}

.view-tweets {
	text-align: center !important;
}

/* Carousel Controllers */

.carousel-caption {
	top: 80px;
	text-align: left !important;
}
@media screen and (min-width: 768px) {
	.region-front-featured {
		padding-top: 70px;
	}
	.carousel-caption {
		position: absolute;
		/* top: auto; */
		/* bottom: 40px; */
		right: 15% !important;
		left: 15% !important;
	}
	.carousel-inner{
  		width:100%;
  		height: 300px;
  		/* min-height: 600px; */
	}
	.carousel-inner .btn {
		font-size: 20px;
		padding: 10px 20px 10px 20px;
	}
}

.carousel-inner{
  width:100%;
}

@media screen and (min-width: 1600px) {
	.carousel{
	  width:1600px;
	}
}
.carousel-fade .carousel-inner .item {
  opacity: 0;
  transition-property: opacity;
}

.carousel-fade .carousel-inner .active {
  opacity: 1;
}

.carousel-fade .carousel-inner .active.left,
.carousel-fade .carousel-inner .active.right {
  left: 0;
  opacity: 0;
  z-index: 1;
}

.carousel-fade .carousel-inner .next.left,
.carousel-fade .carousel-inner .prev.right {
  opacity: 1;
}

.carousel-fade .carousel-control {
  z-index: 2;
}

/*
  WHAT IS NEW IN 3.3: "Added transforms to improve carousel performance in modern browsers."
  Need to override the 3.3 new styles for modern browsers & apply opacity
*/
@media all and (transform-3d), (-webkit-transform-3d) {
    .carousel-fade .carousel-inner > .item.next,
    .carousel-fade .carousel-inner > .item.active.right {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.prev,
    .carousel-fade .carousel-inner > .item.active.left {
      opacity: 0;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
    .carousel-fade .carousel-inner > .item.next.left,
    .carousel-fade .carousel-inner > .item.prev.right,
    .carousel-fade .carousel-inner > .item.active {
      opacity: 1;
      -webkit-transform: translate3d(0, 0, 0);
              transform: translate3d(0, 0, 0);
    }
}

/* Navigation bar margin to begin content */
@media only screen and (max-width: 760px) {
  #navbar {
    /* margin-bottom: 10px; */
    /* margin-top: auto; */
    background-color: rgba(0,  0,  0, .95);
  }

  .navbar-inverse
  {
      position: absolute;
      width:-webkit-fill-available;
      background-color: rgba(0,  0,  0, .95);
      border: 0px solid rgba(0, 0, 0, 0.85);
      box-shadow: 1px 1px 9px 2px rgba(0, 0, 0, 0.73);
  }

  .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus
  {
      background-color: rgba(0,  0,  0, .95);
  }

  .donate_button
  {
     display: block;
     width: 100%;
  }

  .arrow
  {
    visibility: hidden;
  }
}

#navbar {
  /* margin-bottom: 10px; */
  /* margin-top: auto; */
  background-color: rgba(0,  0,  0, .60);
}

.navbar-inverse
{
    position: absolute;
    width:-webkit-fill-available;
    background-color: rgba(0,  0,  0, .60);
    border: 0px solid rgba(0, 0, 0, 0.85);
    box-shadow: 1px 1px 9px 2px rgba(0, 0, 0, 0.73);
}

.navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus
{
    background-color: rgba(0,  0,  0, .80);
}

.donate_button
{
    font-family: 'Montserrat', sans-serif;
    margin-top: 9px;
}

.btn-danger {
    border-width: 1px;
    border: #e3e3e3;
}

.navbar-inverse .navbar-nav > li > a:link
{
    color: #d0d0d0;
}

.navbar-inverse .navbar-nav > li > a:visited
{
    color: #d0d0d0;
}

.navbar-inverse .navbar-nav > li > a:hover
{
    color: #ffffff;
}

.panel
{
    background-color: rgba(0, 0, 0, 0.5);
}

.well
{
    color: #111111;
}

.label {
    font-family: 'Montserrat', sans-serif;
    color: #272727;
}

/* Change default system fonts */
.nav {
    font-family: 'Montserrat', sans-serif;
}
.page-header {
    font-family: 'Sofia Pro Black', sans-serif;
    text-transform: uppercase;
    color: #ffffff;
    border-bottom: none;
    padding-top: 120px;
    padding-bottom: 30px;
}
.breadcrumb {
    font-family: 'Open Sans', serif;
}
.container {
    font-family: 'Open Sans', serif;
}
.board_name {
    font-family: 'Montserrat', sans-serif;
}
.state_name {
    font-family: 'Open Sans', serif;
    font-size: 12px;
    padding-right: 16px;
}

.more_news {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    padding: 5px;
}

.line {
    width: 250px;
    border-bottom: 1px solid #b0b0b0;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Executive Committee font definitions */
.view-executive-committee-text-only- {
    font-family: 'Sofia Pro Light', serif;
}

.view-executive-committee-text-only- .h4 {
    font-family: 'Sofia Pro Black', serif;
}
.block-title {
    text-align: center;
    font-family: 'Sofia Pro Black', serif;
    text-transform: uppercase;
}

/* Logo positioning bleeding over navigation menu */
.logo {
  width: 125px;
}
.logo_position {
  width: 105px;
  height: auto;
  position: absolute;
  top: -10px;
  z-index: 1000;
}

/* Front featured view slab */
.front_featured {
  padding-bottom: 30px;
  margin-bottom: 40px;
  color: #fff;
  margin-top: -10px;
  background-color: #1374ac;
}
.front_featured_black {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border-color: rgba(255,  255,  255, 0.79);
    border-width: 1px;
}
.front_featured h1,
.front_featured .h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: inherit;
  text-shadow: black 0.05em 0.05em 0.07em;
}
.front_featured p {
  margin-bottom: 15px;
  font-family: 'Sofia Pro Light', serif;
  font-size: 22px;
  font-weight: 400;
}
.front_text_shadow {
  text-shadow: black 0.05em 0.05em 0.07em;
}
.front_featured > hr {
  border-top-color: #d5d5d5;
}
.container .front_featured,
.container-fluid .front_featured {
  padding-right: 15px;
  padding-left: 15px;
  border-radius: 6px;
}
.front_featured .container {
  max-width: 100%;
}

/* Featured view slab */
.featured {
  background-color: #000d1b;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 0px;
  color: #fff;
}
.featured h1,
.featured .h1 {
  font-family: 'Sofia Pro Light', serif;
  color: inherit;
  text-shadow: black 0.05em 0.05em 0.07em;
}
a.featured_text:link {
    color: #d9d9d9;
    text-decoration: none;
}
a.featured_text:hover {
    color: #d9d9d9;
    text-decoration: underline;
}
a.featured_text:visited {
    color: #d9d9d9;
    text-decoration: none;
}
.featured p {
  margin-bottom: 15px;
  font-family: 'Sofia Pro Light', serif;
  font-size: 16px;
  font-weight: 200;
  text-shadow: black 0.05em 0.05em 0.07em;
}
.featured > hr {
  border-top-color: #d5d5d5;
}
.container .featured,
.container-fluid .featured {
  padding-right: 15px;
  padding-left: 15px;
  border-radius: 6px;
}
.featured .container {
  max-width: 100%;
  text-align: center;
}

/* Add whitespace between other blocks for main content */
.main-container {
    padding-top: 30px;
    padding-bottom: 30px;
}
#contents-spacer {
    height: 30px;
    width: 100%;
}

.field-content {
  font-family: 'Sofia Pro Light', serif;
  font-size: 16px;
}
.field-items {
  font-family: 'Sofia Pro Light', serif;
  font-size: 16px;
}

/* Footer with colored background */
.colored_footer {
    border-top: solid #c5c5c5;
    margin-top: 0px;
    background-image: linear-gradient(0deg, #135a92, #0f436a);
    background-color: #135a92;
}
.colored_footer .container {
    padding-top: 30px;
    padding-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    color: #FFF;
}
.colored_footer .legal {
    font-family: 'Merriweather', serif;
    font-size: 12px;
}
.colored_footer a {
    font-family: 'Merriweather', serif;
    font-size: 12px;
    color: #FFF;
}
.colored_footer a:link a:visited {
    color: #FFF;
}
.colored_footer a:hover {
    color: #d9e2ee;
}

/* Front fonts class declarations */
.front_header {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    text-transform: uppercase;
    padding: 5px;
}
.front_text {
    font-family: 'Open Sans', serif;
    font-size: 16px;
}
.front_button,
.featured .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    padding-left: 10px;
    padding-right: 10px;
    text-align: center;
}
.front_button_containers {
    text-align: center;
}

/* Adjusted definitions for medium to large screen sizes */
@media screen and (min-width: 768px) {
  .featured {
    padding-top: 48px;
    padding-bottom: 48px;
  }
  .container .featured,
  .container-fluid .featured {
    padding-right: 60px;
    padding-left: 60px;
  }
  .featured h1,
  .featured .h1 {
    font-family: 'Sofia Pro Light', serif;
    font-size: 24px;
    text-shadow: black 0.05em 0.05em 0.07em;
  }
  .front_featured {
    padding-top: 0px;
    margin-bottom: 40px;
    margin-top: -70px;
  }
  .container .front_featured,
  .container-fluid .front_featured {
    padding-right: 60px;
    padding-left: 60px;
  }
  .front_featured h1,
  .front_featured .h1 {
    font-size: 40px;
    text-shadow: black 0.05em 0.05em 0.07em;
  }
  .front_text {
      font-family: 'Sofia Pro Light', serif;
      padding-left: 40px;
      padding-right: 40px;
  }
}

/* Maintenance page */
.maintenance-page {
    background: url(../yda_maintenance_bknd.jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.maintenance-container {
    width: 100%;
    text-align: center;
    padding: 40px;
}
.maintenance-box {
    width: 300px;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
    background-color: rgba(0, 0, 0, 0.5);
}
.maintenance-title {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    text-shadow: black 0.05em 0.05em 0.07em;
}
.maintenance-text {
    font-family: 'Open Sans', serif;
    color: #FFFFFF;
    text-shadow: black 0.05em 0.05em 0.07em;
}

/* Specialty text */
.specialty_text {
    font-family: 'Sofia Pro Light', serif;
    font-weight: lighter;
    font-size: 18px;
}

/* Single page style definitions */
.panel-body {
    background-color: #efefef;
}

.region-sidebar-second {
    padding-top: 35px;
}

/* Chapter listing style definitions */
.chapter_link {
    line-height: 20px;
}
.view-chapters-by-city-county .col-lg-4 {
    text-align: center;
    padding-bottom: 20px;
}
.chartered_clubs_number {
    font-size: 80px;
    text-align: center;
}

/* Front page election numerical facts style definitions */
.elections_by_number {
    font-size: 60px;
    text-align: center;
}
.elections_title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 30px;
    text-align: center;
}

/* Front page e-mail newsletter webform */
.webform-client-form-110 {
    width:550px;
}

@media only screen and (max-width: 760px) {
    .webform-client-form-110 {
    width:250px;
    }
   .first {
        margin-top: 20px;
  }
  .crm-container .crm-section .label {
	  float:none !important;
	  width: 100% !important;
	  text-align: left !important;
  }
  .crm-container .crm-section .content {
	margin-left: 5% !important;	  
  }
}
/* Front page containers for hoverable image boxes */
.image_front_container {
  position: relative;
  width: 100%;
}

.image_front_image {
  display: block;
  width: 100%;
  height: 300px;
}

.image_front_overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 79, 186, 0.5);
}

.image_front_container:hover .image_front_overlay {
  opacity: 1;
}

.image_front_text a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-shadow: 0px 0px 11px rgba(0, 0, 0, 1);
  text-transform: uppercase;
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  min-width: fit-content;
}
.image_front_text a:hover {
    text-decoration: none;
}

/* Front page social media header style definition */
.social-header {
    font-family: 'Sofia Pro Black', sans-serif;
    text-transform: uppercase;
    border-bottom: none;
}

/* Front page background for page header block area */
.page-header-front {
    padding: 15px;
    background: url(../page_header_bknd.png) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

/* Front page Instagram style definition */
.block-instagram-block {
    align-content: center;
    text-align: center;
}

/* Reworked style for regional caucuses listing */
.view-region-caucuses caption {
    text-align: center;
}

/* Footer disclaimer box style definition */
.disclaimer_box_outer {
    width: 100%;
}
.disclaimer_box {
    border: solid;
    border-color: white;
    padding: 5px;
    border-width: 1px;
    text-align: center;
    width: 320px;
}

/* Reworked style for footer without colored background */
.footer {
    margin-top: 0px;
    padding: 10px;
    border: none;
    align-content: center;
    text-align: center;
}

/* Arrow animated */
.arrow,
.arrow:before {
  position: absolute;
  left: 50%;
}

.arrow {
  width: 40px;
  height: 40px;
  top: 50%;
  margin: -20px 0 0 -20px;
  -webkit-transform: rotate(45deg);
  border-left: none;
  border-top: none;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
}

.arrow:before {
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -10px 0 0 -10px;
  border-left: none;
  border-top: none;
  border-right: 1px #fff solid;
  border-bottom: 1px #fff solid;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

@keyframes arrow {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-10px, -10px);
  }
}
