.bgwidget_container {
  display: flex;
  justify-content: center;
  clear: both;
}
.alpha .bgwidget_container {
  display: none;
}

.bgwidget_hp {
  width: 300px;
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'ROBOTO', sans-serif;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;

  --bgcolor: #dc0000;
  --gopcolor: #cc3333;
  --demcolor: #3333cc;
}

.bgwidget_hp * {
  box-sizing: border-box;
}

.bgwidget_hp a {
  color: #d30015;
}
.bgwidget_hp .gop,
.bgwidget_hp .gop a {
  color: var(--gopcolor);
}
.bgwidget_hp .dem,
.bgwidget_hp .dem a {
  color: var(--demcolor);
}
.bgwidget_hp .other,
.bgwidget_hp .other a {
  color: #606060;
}

.bgwidget_hp > .title {
  background: var(--bgcolor);
  color: white;
  padding: 12px 10px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
}
.bgwidget_hp > .title a {
  color: inherit;
}
.bgwidget_hp a {
  text-decoration: none;
}
.bgwidget_hp nav.top {
  background: var(--bgcolor);
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 3px;
}
  .bgwidget_hp nav.top a {
    color: inherit;
  }
  .bgwidget_hp nav.top button {
    background: #eee;
    padding: 5px 0;
    text-align: center;
    border: none;
    width: 96px;
    cursor: pointer;
    font-size: 1.025em;
  }
  .bgwidget_hp nav.top button:hover,
  .bgwidget_hp nav.top button.active {
    background: linear-gradient(to bottom, rgba(68,68,68,1) 0%, rgba(102,102,102,1) 53%, rgba(102,102,102,1) 100%);
    color: white;
  }
  .bgwidget_hp nav.top button.active {
    cursor: inherit;
  }
.bgwidget_hp section.types > .type {
  display: none;
}
.bgwidget_hp section.types > .type.active {
  display: block;
}
.bgwidget_hp section.top_boxes {
  background: var(--bgcolor);
  display: flex;
  justify-content: space-evenly;
  padding: 4px 0 6px;
}
.bgwidget_hp section.top_boxes a {
  color: inherit;
}
.bgwidget_hp section.top_boxes .box {
  width: 130px;
  box-shadow: 3px 3px 7px 0px rgb(0 0 0 / 20%);
  font-weight: bold;
  font-size: 0.7em;
}
.bgwidget_hp section.top_boxes .box .title {
  background: #bbb;
  text-align: center;
}
.bgwidget_hp section.top_boxes .box .body {
  background: #ddd;
  text-align: center;
}
  .bgwidget_hp section.top_boxes .box .body .dem {
    padding-right: 6px;
  }
  .bgwidget_hp section.top_boxes .box .body .other {
    padding-right: 6px;
  }

.bgwidget_hp table.races {
  border-collapse: collapse;
  width: 100%;
  font-size: 11.05px;
}
.bgwidget_hp table.races thead th {
  background: black;
  color: white;
  text-align: left;
  padding: 4px 10px;
}
.bgwidget_hp table.races thead th:first-child {
  border-left: 1px solid black;
}
.bgwidget_hp table.races thead th:last-child {
  text-align: right;
  border-right: 1px solid black;
}
.bgwidget_hp table.races tbody tr:nth-child(2n) td {
  background: #f5f5f5;
}
.bgwidget_hp table.races tbody tr td:first-child {
  border-left: 1px solid #ddd;
  padding-left: 10px;
}
.bgwidget_hp table.races tbody tr td:last-child {
  border-right: 1px solid #ddd;
  padding-right: 10px;
  text-align: right;
}

.bgwidget_hp section.map img {
  display: block;
  width: 100%;
}
.bgwidget_hp section.map.senate,
.bgwidget_hp section.map.governor {
  overflow: hidden;
  margin-bottom: -38px;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.bgwidget_hp section.map.senate img,
.bgwidget_hp section.map.governor img {
  width: 105%;
}

.bgwidget_hp footer {
  background: #ddd;
  padding: 2px 0;
  text-align: center;
  font-size: 11.05px;
  position: relative; /* Makes it appear in front of overflow image from section above */
}
.bgwidget_hp footer a {
  color: #d30015;
}

.bgwidget_hp .loading_overlay {
    background: black;
    opacity: 0.2;
    position: fixed;
    top: 0;right: 0;bottom: 0;left: 0;
    display: none;
    align-items:center;
    justify-content:center;
}
.bgwidget_hp .loading_overlay.show {
    display: flex;
}

/* https://loading.io/css/ */
.bgwidget_hp .loading_overlay.show .spinner {
  display: inline-block;
  position: relative;
  width: 160px;
  height: 160px;
}
.bgwidget_hp .loading_overlay.show .spinner div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 128px;
  height: 128px;
  margin: 16px;
  border: 16px solid #fff;
  border-radius: 50%;
  animation: bgwidget_spinner 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #fff transparent transparent transparent;
}
.bgwidget_hp .loading_overlay.show .spinner div:nth-child(1) {
  animation-delay: -0.45s;
}
.bgwidget_hp .loading_overlay.show .spinner div:nth-child(2) {
  animation-delay: -0.3s;
}
.bgwidget_hp .loading_overlay.show .spinner div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes bgwidget_spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


@media only screen and ( max-width : 767px ) {
  .alpha .bgwidget_container {
    display: flex;
  }
}