    .polopoly_embed {
  max-width: 99%;  
}

.schedule-widget {
  position: relative;
  margin: 0px;
  line-height: 1.25;
  font-family: 'CTVSans-Regular', 'CTV Sans', Arial, Helvetica, sans-serif;
  text-align: center;
}

.testing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 650px;
  background-image: url('https://www.ctvnews.ca/polopoly_fs/1.4817287.1582057901!/httpImage/image.png');
  z-index: 10;
  opacity: 0.2;
  pointer-events: none;
}

.schedule-widget h1 {
  margin: 26px;
}

.schedule-widget h2 {
  font-size: 28px;
  padding: 10px 0;
  margin: 10px 0;
  background: white;
}

.widget-title {
  font-family: 'CTVSans-Bold', 'CTV Sans', Arial, Helvetica, sans-serif;
  font-weight: normal;
  padding: 10px 10px 10px;
  font-size: 20px;
  margin: 0;
  text-align: center;
  border-bottom: 1px solid #f3f3f3;
  line-height: 1;
}

#election-leaderboard {
  width: calc(100% - 2px);
  min-width: 160px;
  max-width: 650px;
  margin: 0px auto 20px;
  border: 0px solid #f3f3f3;
  font-family: 'CTVSans-Regular', 'CTV Sans', Arial, Helvetica, sans-serif;
  /*box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);*/
  border: 1px solid #f0f0f0;
  background: white;
  color: #2c2c2c;
}

.leaderboard {
  margin: 15px 25px 5px;
  text-align: right;
  display: grid;
  grid-template-columns: min-content min-content auto;
  line-height: 1;
  column-gap: 6px;
  row-gap: 3px;
}

.candidateDiv {
  display: grid;
  grid-template-columns: min-content auto;
  line-height: 1;
  margin: 3px 15px;
}

.candidateNameDiv {
  display: grid;
  grid-template-columns:  2fr 30px;
  grid-gap: 5px;
}

.candidateName {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;

  font-size: 16px;
}

.candidateDelegates {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 17px;
  font-family: 'CTVSans-Bold', 'CTV Sans', Arial, Helvetica, sans-serif;
  /*font-weight: bold;*/
}
.candidateImgDiv {
  width: 25px;
  height: 25px;
  overflow: hidden;
}

.candidateImg {
  display: flex;
  justify-content: center;
  text-align: right;
  padding-top: 15px;
  width:  130%;
  height: 130%;
  object-fit: cover;
  object-position: 30% 30%;
  filter: saturate(0.15) brightness(1.20);
  opacity: 1;
  border-radius: 1px;
}

.candidateBarDiv {
  display: flex;
  align-content: flex-end;
  background: #f0f0f0;
  height: 13px;
  margin: 2px 0 0 0;
}

.candidateBar {
  display: flex;
  height: 13px;
  /*border-radius: 0 2px 2px 0;*/
}

.candidateBarColor {
  display: flex;
  height: 13px;
  animation:bar-animate 1s;
  animation-fill-mode: forwards;
}

@keyframes bar-animate {
  0%   { width: 0%; }
  100% { width: 100%; }
}

.winConditionDiv {
  text-align: right;
}

.winCondition {
  display: inline-block;
  font-size: 12px;
  margin: 0 25px 8px;
  color: #2c2c2c;
}

#election-schedule {
  position: relative;
  width: calc(100% - 2px);
  max-width: 650px;
  min-width: 160px;
  margin: 0 auto;
  font-family: 'CTVSans-Regular', 'CTV Sans', Arial, Helvetica, sans-serif;
  color: #2c2c2c;
  line-height: 1;
  /*box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.2);*/
  border: 1px solid #f0f0f0;
  background: white;
}

#election-schedule a {
  color: #2c2c2c;
}

.scheduleDiv {
  display: grid;
  position: relative;
  grid-template-columns: min-content auto ;
  row-gap: 0px;
  margin: 0 2px;
  overflow-y: scroll;
  max-height: 300px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.scheduleDiv::-webkit-scrollbar {
  width: 4px;
}

#election-schedule-header {
  display: grid;
  grid-template-columns: 2fr 8fr;
  border-bottom: 1px solid #f3f3f3;
  margin: 0 0 0 0;
  padding: 6px 8px 4px 6px;
  position: sticky;
  top:0;
}

#election-schedule-header > .primaryContainer {
  border: none;
}

#election-schedule-header > .primaryContainer > .stateDiv {
  margin-right: 12px;
  font-weight: normal;
}

.primaryContainer {

  border: 2px solid white;
  background: white;
}


.headerStateLink:nth-child(4n-1), .resultContainer:nth-child(4n) {
  background: #f0f0f0;
  border-top: 3px solid #f0f0f0;
  border-bottom: 3px solid #f0f0f0;
}
.headerStateLink:nth-child(4n+1), .resultContainer:nth-child(4n+2) {
  background: #fff;
  border-top: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.countContainer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20px, 1fr));
  grid-gap: 4px;
  text-align: left;
  height: 100%;
}

.stateDiv {
  font-family: 'CTVSans-Bold', 'CTV Sans', Arial, Helvetica, sans-serif;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  padding: 6px;
  text-align: right;
  /*font-weight: bold;*/
  margin-right: 10px;
}

.countDiv {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  border-radius: 0px;
}

.faceDiv {
  color: black;
  background: #dedede;
  height: 70px;
  overflow: hidden;
}

.dateDiv {
  padding: 7px 0;
  color: #666;
  text-align: left;
  font-size: 15px;
}

.sticky-header {
  position: sticky;
  top: 0;
  background: white;
  padding: 0px 0;
  border-bottom: 1px solid #000;
}

@media screen and (max-width: 600px) {

  .widget-title {
    font-size: 19px;
  }

  .candidateDiv {
    grid-template-columns: 2fr 3fr;
  }

  .primaryContainer {
    grid-template-columns: 4fr 10fr ;
  }

  .stateDiv {
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dateDiv {
    font-size: 14px;
  }

  .countDiv {
    font-size: 14px;
  }
}

@media screen and (max-width: 400px) {

  .widget-title {
    font-size: 15px;
  }

  .stateDiv {
    max-width: 40px;
    padding: 6px 3px;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .candidateName {
    /*max-width: 40px;*/
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .candidateDelegates {
    /*max-width: 40px;*/
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .leaderboard {
    margin: 10px 10px 5px;
  }

  .countDiv {
    font-size: 14px;
  }

  .faceDiv {
    height: 50px;
  }
}
