html {
  --black: #21252a;
  --grey-1: #343A40;
  --grey-2: #0B9444;
  --grey-3: #868E96;
  --grey-4: #0B9444;
  --grey-5: #CED4DA;
  --grey-6: #DEE2E6;
  --grey-7: #E9ECEF;
  --grey-8: #F1F3F5;
  --grey-9: #F8F9FA;
  --trans-black: rgba(33, 37, 42, .9);
  --red: #e10600;
  --gold: #971F5D;
  --gold-dark: #971F5D;
  --bronze: #c99355;
  --bronze-dark: #80582c;
}

/* html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "Inter UI", system-ui;
} */

.list {
  width: 100%;
  max-width: 600px;
  margin: 3rem auto 3rem;
  border-radius: 0.4rem;
  /* box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.1), 0px 5px 12px rgba(0, 0, 0, 0.07); */
  background-color: white;
}

@media screen and (max-width: 800px) {
  .list {
    margin: 0 auto;
  }
}

.list__table {
  width: 100%;
  border-spacing: 0;
  color: var(--grey-3);
}

.list__header {
  padding: 0rem 2rem 0;
  background: white;
  border-top-left-radius: 0.4rem;
  border-top-right-radius: 0.4rem;
}

.list__header h1,
.list__header h5 {
  margin: 0;
  padding: 0;
}

.list__header h5 {
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--red);
}

.list__value {
  display: block;
  font-size: 18px;

  @media only screen and (max-width: 600px) {
    font-size: 14px;
  }
}

.list__label {
  font-size: 11px;
  /* opacity: 0.6; */
}

.list__row {
  background: var(--grey-7);
  cursor: pointer;
  transition: all 300ms ease;
}

.list__row:hover,
.list__row:focus {
  transform: scale(1.05);
  box-shadow: 0px 15px 28px rgba(0, 0, 0, 0.1), 0px 5px 12px rgba(0, 0, 0, 0.08);
  transition: all 300ms ease;
}

.list__row:not(:last-of-type) .list__cell {
  box-shadow: 0px 2px 0px rgba(0, 0, 0, 0.08);
}

/* 
.list__row:first-of-type {
  color: var(--gold-dark);
  background: var(--grey-9);
}

.list__row:first-of-type .list__cell:first-of-type {
  background: var(--gold);
  color: var(--gold-dark);
}

.list__row:nth-of-type(2) {
  color: var(--grey-2);
  background: var(--grey-9);
}

.list__row:nth-of-type(2) .list__cell:first-of-type {
  background: var(--grey-4);
  color: var(--grey-2);
}

.list__row:nth-of-type(3) {
  color: var(--bronze-dark);
  background: var(--grey-9);
}

.list__row:nth-of-type(3) .list__cell:first-of-type {
  background: var(--bronze);
  color: var(--bronze-dark);
} */

.list__cell {
  padding: 1rem;
}

.list__cell:first-of-type {
  text-align: center;
  padding: 1rem 0.2rem;
  background: var(--grey-5);
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--trans-black);
  display: none;
  cursor: pointer;
  transition: all 300ms ease;
}

.overlay.is-open {
  display: block;
}

.sidebar {
  position: fixed;
  background: white;
  width: 100%;
  max-width: 500px;
  top: 0;
  bottom: 0;
  box-shadow: none;
  right: -500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /*@media screen and (max-width: 650px) {
      flex-direction: column-reverse;
      justify-content: space-between;
  }*/
  transition: all 300ms ease;
}

.sidebar.is-open {
  right: 0;
  transition: all 300ms ease;
  box-shadow: 0px 0px 100px var(--black);
}

.sidebar__header {
  display: flex;
  justify-content: space-between;
  background: var(--grey-9);
  align-items: center;
}

.sidebar__header,
.sidebar__body {
  padding: 2rem;
}

.sidebar__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--grey-4);
}

.button {
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.button:focus,
.button:active {
  outline: 0;
}

.button--close {
  padding: 0;
  margin: 0;
  height: auto;
  line-height: 1;
  color: var(--grey-5);
}

.button--close:hover {
  color: var(--grey--4);
}

.driver {
  display: flex;
  align-items: flex-start;
  opacity: 0;
  position: relative;
  left: 100px;
  -webkit-animation: fade 500ms ease 150ms forwards;
  animation: fade 500ms ease 150ms forwards;
}

.driver__image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: 220px;
  background-repeat: no-repeat;
  background-position: top center;
  border: 3px solid white;
  box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.12);
  margin-right: 1.5rem;
}

.driver__content {
  width: auto;
}

.driver__title {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0.5rem 0;
}

.driver__table {
  width: 100%;
  color: var(--grey-2);
}

.driver__table small {
  color: var(--grey-4);
}

.driver__table td {
  padding: 0.3rem 0.6rem 0.3rem 0;
  height: 2rem;
}

.driver__table td img {
  position: relative;
  top: 5px;
  margin-right: 6px;
}

@-webkit-keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
    left: 0;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
    left: 0;
  }
}

/* General styling remains the same */

/* Header Styling */
.header-large {
  text-align: center;
  font-size: 1.3rem;
  /* Larger font for first header */
  color: var(--red);
}

.header-small {
  text-align: center;
  font-size: 1.5rem;
  /* Smaller font for second header */
  color: var(--black);
  margin-top: 0.5rem;
  margin-bottom: unset;
}

.header-small-1 {
  text-align: center;
  font-size: 1.3rem;
  /* Smaller font for second header */
  color: var(--black);
  margin-top: 0.5rem;
  margin-bottom: unset;
}

/* Winner Section */
.winner-section {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
  /* margin-bottom: 2rem; */
  background: white;
  /* Removed background gray */
}

.winner-col-1 {
  flex: 1;
  text-align: center;
  position: relative;
}

.winner-col-2 {
  flex: 1;
  text-align: center;
  position: relative;
  /* background-image: url('symbol1.jpg'); Add the path to your symbol image */
  background-repeat: no-repeat;
  background-size: 50%;
  /* Adjust size of the watermark */
  background-position: center;
  /* Center the watermark */
}

.winner-col-2 * {
  position: relative;
  z-index: 1;
  /* Ensure text stays on top of the watermark */
}



.winner-image-container {
  position: relative;
  display: inline-block;
}

.winner-portrait {
  width: 150px;
  border-radius: 8px;
}

.winner-symbol {
  width: 50px;
  position: absolute;
  bottom: -10px;
  right: -20px;
}

.winner-votes,
.winner-percent {
  font-size: 1.5rem;
  color: var(--grey-1);
  margin-bottom: unset;
}

.winner-label {
  font-size: 1rem;
  color: var(--grey-1);
}

/* Table Styling */
.list__table {
  width: 100%;
  border-spacing: 0;
  color: var(--grey-3);
}

.list__row {
  background: var(--grey-7);
  cursor: pointer;
  transition: all 300ms ease;
}

.list__cell {
  padding: 1rem;

  @media only screen and (max-width: 600px) {
    padding: 10px;
  }
  /* text-align: center; */
}

.candidate-portrait {
  width: 50px;
  height: auto;
  /* border-radius: 50%; */
  margin-right: 10px;
  vertical-align: middle;
}

/* Adjusting the first column width */
.list__cell:first-of-type {
  width: 5%;
}

.list__cell:nth-of-type(2) {
  width: 15%;
}

.list__cell:nth-of-type(3) {
  width: 50%;
}

/* Center the table content */
/* .list__row:nth-of-type(1) .list__cell {
  color: var(--gold-dark);
  background: var(--grey-9);
} */

/* Summary Section */
.summary-section {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 1rem;
  padding: 1rem;
  background: var(--grey-7);
  border-radius: 0.4rem;
  /* box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.1), 0px 5px 12px rgba(0, 0, 0, 0.07); */
}

.summary__table {
  width: 100%;
  border-spacing: 0;
  color: var(--grey-3);
}

.summary__row {
  background: var(--grey-9);
  transition: all 300ms ease;
}

.summary__label {
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
}

.summary__value {
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: right;
}

.summary__percent {
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: right;
  color: var(--grey-3);
}

.summary__row:not(:last-of-type) .summary__label,
.summary__row:not(:last-of-type) .summary__value,
.summary__row:not(:last-of-type) .summary__percent {
  border-bottom: 1px solid var(--grey-5);
}

/* Districts */
.districts-section {
  width: 100%;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 1.5rem;
  background: var(--grey-7);
  border-radius: 0.4rem;
  /* box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.1), 0px 5px 12px rgba(0, 0, 0, 0.07); */
}

.districts__title {
  font-size: 1.5rem;
  margin-top: 0rem;
  margin-bottom: 1.5rem;
  color: var(--grey-3);
  text-align: center;
}

.districts__title__1 {
  font-size: 1.25rem;
  margin-top: 0rem;
  margin-bottom: 0.75rem;
  color: var(--grey-3);
  text-align: center;
}

.districts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columns */
  gap: 1.5rem;
  /* space between cards */
}

.district__card {
  background-color: var(--grey-6);
  padding: 0.6rem;
  /* Reduced padding */
  text-align: center;
  border-radius: 0.3rem;
  /* Smaller border radius */
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.district__card a {
  text-decoration: none;
  font-size: 1rem;
  /* Smaller font size */
  color: var(--primary-color);
  font-weight: 600;
  /* Slightly reduced font weight */
  display: block;
  transition: color 0.3s;
}

.district__card:hover {
  background-color: var(--grey-5);
}

.district__card a:hover {
  color: var(--secondary-color);
}

@media (max-width: 360px) {
  .districts__grid {
    grid-template-columns: 1fr;
    /* Single column on small screens */
  }
}

.rw {
  color: #EA8B31;
  background-color: #EA8B31;
}

.sp {
  color: #008000;
  background-color: #008000;
}

.akd {
  color: #FF1290;
  background-color: #FF1290;
}

.nr {
  color: #FF1290;
  background-color: #FF1290;
}

.ap {
  color: #FF1290;
  background-color: #FF1290;
}