
@font-face {
  font-family: 'HCo Gotham SSm';
  src:url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff2/GothamSSm-Light_Web.woff2') format('woff2'),
    url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff/GothamSSm-Light_Web.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}


@font-face {
  font-family: 'HCo Gotham SSm';
  src:url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff2/GothamSSm-Book_Web.woff2') format('woff2'),
    url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff/GothamSSm-Book_Web.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'HCo Gotham SSm';
  src:url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff2/GothamSSm-Bold_Web.woff2') format('woff2'),
    url('https://ibew.org/wp-content/plugins/ibew-district-map//lib/assets/fonts/woff/GothamSSm-Bold_Web.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

.map-wrapper {
  position: relative;
}

.district-triggers {
  
}

.district-triggers > g.district-trigger {
  opacity: 0 !important;
  transition:all 0.2s ease-in-out;
  cursor: pointer;
}

@media (min-width: 601px) {
  .district-triggers > g.district-trigger:hover {
    opacity: 0.1 !important;
  }
}

.district-triggers > g.district-trigger.on,
.district-triggers > g.district-trigger.on:hovered  {
  opacity: 0 !important;
  transition:all 0.2s ease-in-out;
}


 
.district-hover > g {
  display:block !important;
  transition:all 0.2s ease-in-out;
  opacity:0;
}

.district-hover > g.hovered {
  opacity:0.2;
}

.district-hover > g.on {
  opacity:1;
}


#Labels text {
  font-family: "HCo Gotham SSm"; 
  font-weight: 300;
}




.popups { pointer-events:none; }

.map-district-card {
  position:absolute;
  background-color: #ffffff;
  width:100%;
  max-width: 550px;
  border-radius: 10px;
  box-shadow:0 0 20px -5px rgba(0,0,0,0.4);
  overflow: hidden;
  transform-origin: left top;
  pointer-events: auto;
  display:none;
}


.map-district-card.on {
  display:block;
}



.map-district-card {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (min-width: 601px) {
#district-card-1 { left: 40%; top:40%;}
#district-card-2 { left: 55%; top:40%;}
#district-card-3 { left: 45%; }
#district-card-4 { left: 32%; top:40%; }
#district-card-5 { left: 45%; top:35%; }
#district-card-6 { left: 50%; top:69%; }
#district-card-7 { left: 50%; top:25%; }
#district-card-8 { left: 66%; top:50%; }
#district-card-9 { left: 50%; top:50%; }
#district-card-10 { left: 40%; top:32%; }
#district-card-11 { left: 50%; top:75%; }
}


@media (max-width: 1050px) {
  .map-district-card {
    transform:scale(0.8) translate(-50%, -50%);
  }
}

@media (max-width: 800px) {
  .map-district-card {
    transform:scale(0.7) translate(-50%, -50%);
  }
}

@media (max-width: 600px) {
  .map-wrapper {
    padding-bottom:400px;
  }
  .map-district-card {
    top: auto;
    left: 50%;
    bottom:0;
    transform:scale(0.7) translate(-50%, -50%);
    width:140%;
    max-width: none;
  }

  

}



.district-number {
  position: relative;
  background-color:#5b92b9;
  padding:0px 20px;
  width: 100%;
}
.district-number h1 {
  font-size:40px !important;
  font-family: "rift", sans-serif !important;
  font-weight: 700 !important;
  font-style: normal;
  letter-spacing:4px;
  text-align: center;
  color:#fff !important;
  margin:0 !important;
}

.district-close {
  position: absolute;
  right:10px;
  top:6px;
  color:#fff;
}

.district-close i {
    font-size:22px;
}

.district-states h2 {
  font-family: "HCo Gotham SSm" !important;
  font-weight: 700 !important;
  font-size:24px;
  text-align: center;
  margin-top:6px;
  text-transform: uppercase;
}




.district-content {
  display: flex;
  margin-top:30px;
  margin-bottom:30px;
}

.district-content > div {
  display: flex;
  
}

.district-content .district-headshot {
  flex-basis: 33.33%;
  flex-direction: column;
  text-align: center;
}

.district-content .district-text {
  flex-basis: 66.66%;
  flex-direction: column;
}

.district-headshot img {
  margin:0 auto  !important;
  max-width:130px  !important;
  margin-top:-30px  !important;
}

.district-name h3 {
  display: block;
  font-family: "HCo Gotham SSm" !important;
  font-weight: 700 !important;
  font-size:24px !important;
  color:#26537d !important;
  letter-spacing:-1px !important;
  text-transform: uppercase  !important;
  margin:0 !important;
}

.district-title {
  display: block;
  font-family: "HCo Gotham SSm"; 
  font-weight: 700;
  color:#70777c;
  font-size:16px;
  text-transform: uppercase;
}
.district-title p {
  margin:0 !important;
}

.district-learnmore {
  font-size:20px;
  color: #131d24 !important;
  font-weight:700 !important;
}


.district-learnmore i {
  color:#ce4845;
  font-size:30px;
  margin-left:5px;
  position: relative;
  top:4px;
}

.district-learnmore a {
  font-size:20px;
  font-weight:700 !important;
  color: #131d24 !important;
  text-decoration: none !important;
  pointer-events:auto;
}

.district-learnmore a:hover i {
  color: #131d24 !important;
}
