@font-face {
  font-family: CuratorRegular;
  src: url(https://www.straitstimes.com/multimedia/graphics/assets/fonts/v2/CuratorRegular.woff2);
}

@font-face {
  font-family: CuratorBold;
  src: url(https://www.straitstimes.com/multimedia/graphics/assets/fonts/v2/CuratorBold.woff2);
}

#graphics-presidential-widget-2023 {
  margin: 0;
  font-size: 12px;
  background-color: #FFF;
  color: #000;
  border-bottom: 1px dotted #C0CAC9;
  overflow: hidden;
  --status-blinkcolor: #ef4123;
}

#graphics-presidential-widget-2023 * {
  margin: 0;
  font-weight: normal;
  font-family: CuratorRegular,Helvetica Neue,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
}

#graphics-presidential-widget-2023 #content {
  position: relative;
  margin: 0 auto;
  max-width: 800px;
  padding: 5px 10px 15px;

  /* height: 239px;
  display: flex;
  flex-direction: column;
  justify-content: center; */
}

#graphics-presidential-widget-2023 #content::after {
  content: '';
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  /* animation: unblur 2s linear 0s forwards; */
}

#graphics-presidential-widget-2023 .status {
  text-align: right;
  border-bottom: 1px dotted #C0CAC9;
  color: #605D5D;
  font-size: 13px;
  padding-bottom: 5px;
  margin: 5px 5px 7px;
}

#graphics-presidential-widget-2023 .status::before {
  content: ' ';
  width: 6px;
  height: 6px;
  display: inline-block;
  /* background-color: #ef4123; */
  background-color: var(--status-blinkcolor);
  border-radius: 50%;
  margin-right: 5px;
  margin-bottom: 2px;
  animation: 1s blink ease infinite;
}

#graphics-presidential-widget-2023 h2, #graphics-presidential-widget-2023 h4 {
  font-family: CuratorBold;
}

#graphics-presidential-widget-2023 .name {
  display: flex;
  font-size: 14px;
  height: 33px;
}

#graphics-presidential-widget-2023 .name p {
  display: inline-block;
  align-self: flex-end;
}

#graphics-presidential-widget-2023 .name img {
  height: 14px;
  padding-left: 5px;
  vertical-align: bottom;
  padding-bottom: 2px;
  display: none;
}

#graphics-presidential-widget-2023 .candidate {
  padding: 0 5px;
  position: relative;
  font-size: 15px;
}

#graphics-presidential-widget-2023 .photo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  vertical-align: top;
}

#graphics-presidential-widget-2023 .photo + div {
  display: inline-block;
  width: calc(100% - 60px);
  padding-left: 10px;
  vertical-align: middle;
}

#graphics-presidential-widget-2023 .bar {
  height: 5px;
  background-color: #E6EAE9;
  margin-top: 2px;
}

#graphics-presidential-widget-2023 .bar > div {
  height: 5px;
  width: 0%;
  background-color: #ef4123;
}

#graphics-presidential-widget-2023 .entry-result {
  position: absolute;
  bottom: 18px;
  right: 5px;
  font-size: 22px;
  display: flex;
  align-items: flex-end;
  color: #333;
}

#graphics-presidential-widget-2023 .entry-vote {
  text-align: right;
  color: #605D5D;
  font-size: 12px;
}

#graphics-presidential-widget-2023 .summary {
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 4px;
  color: #A7A7A7;
}

@media (min-width: 768px) {
  #graphics-presidential-widget-2023 {
    border-bottom: unset;
  }

  #graphics-presidential-widget-2023 #content {
    /* height: 150px; */
    /* height: 210px; */
  }

  #graphics-presidential-widget-2023 .entries {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    column-gap: 10px;
  }

  #graphics-presidential-widget-2023 .candidate {
    width: 100%;
  }

  #graphics-presidential-widget-2023 .name {
    font-size: 15px;
    height: 35px;
  }

  #graphics-presidential-widget-2023 .name p {
    align-self: flex-start;
  }

  #graphics-presidential-widget-2023 .photo {
    height: 55px;
    width: 55px;
  }

  #graphics-presidential-widget-2023 .photo + div {
    width: calc(100% - 70px);
  }

  #graphics-presidential-widget-2023 .bar {
    margin-top: 0px;
  }

  #graphics-presidential-widget-2023 .entry-result {
    font-size: 30px;
    position: relative;
    bottom: 0;
    left: 0;
    height: 38px;
  }

  #graphics-presidential-widget-2023 .entry-vote {
    padding-top: 2px;
    font-size: 13px;
    text-align: left;
  }
}

@media (max-width: 290px) {
  #graphics-presidential-widget-2023 .status {
    font-size: 12px;
    line-height: 15px;
  }

  #graphics-presidential-widget-2023 .name {
    font-size: 12px;
  }

  #graphics-presidential-widget-2023 .entry-result {
    font-size: 21px;
  }

  #graphics-presidential-widget-2023 .name img {
    padding-left: 1px;
  }
}

@keyframes unblur {
  from {
    backdrop-filter: blur(5px);
  }
  to {
    backdrop-filter: blur(0px);
    content: unset;
  }
}

@keyframes blink {
  from, to {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}
