.election {
  display: flex;
  height: 50px;
  width: 100%;
  max-width: 800px;
  align-items: flex-end; /* Align items to the bottom */

}

.balance-of-power {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.scorecard {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: end;
  width: 98%;
  height: 50%;
  margin-bottom: 10px;
}

.candidate-name {
  font-size: 15px;
  line-height: 0;
  margin-right: 10px;
  margin-left: 10px;
}

.percentage {
  font-weight: bold; /* Text weight */
  font-size: 25px; /* Font size */
  line-height: 0.3;
}

.election-bar {
  position: relative;
  display: flex;
  justify-content: center; /* Center horizontally */
  width: 98%;
  height: 25px;
}

.candidate {
  display: flex;
  align-items: center;
  color: white;
  font-size: 100%;
  position: relative;
  z-index: 1;
}

.candidate-photo {
  height: 100%;
  max-height: 80px;
  align-items: center;
}

.left-candidate {
  height: 100%;
  display: flex;
  align-items: end;
}

.right-candidate {
  height: 100%;
  display: flex;
  align-items: end;
  flex-direction: row-reverse;
}


.blue {
  background-color: #005baa; 
  border-radius: 0 25px 25px 0;
}

.red {
  background-color: #ed1c24; 
  border-radius: 25px 0 0 25px;
}

.red-text {
  color: #ed1c24; 
}

.blue-text {
  color: #005baa; 
}

.blank {
  background-color: #b0b0b0; 
}

.green {
  background-color: #25d366;
}

.line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px; /* Adjust width for line thickness */
  height: 100%;
  background-color: #000; /* Color of the line */
  z-index: 1; /* Make sure it appears above other elements */
}

.win-text {
  position: absolute;
  top: -27px; /* Adjust as needed to position the text above the line */
  left: 50%;
  transform: translateX(-50%); /* Center the text horizontally */
  background-color: #fff; /* Optional: background color to make text stand out */
  border-radius: 3px; /* Optional: rounded corners for the background */
  color: #000; /* Text color */
  font-weight: bold; /* Text weight */
  font-size: 14px; /* Font size */
  z-index: 2; /* Ensure the text appears above the line */
}

h1,h2,h3,h4,h5,h6 {
  text-align: center;
}



@media only screen and (min-width: 768px) {
    .candidate-photo {
        height: 120%;
        align-items: space-evenly;
    }
    
    .election {
        margin-top: 20px;
    }
  }

@media only screen and (min-width: 992px) {
   .election {
        margin-top: 50px;
    }
  }

@media only screen and (min-width: 1200px) {
    .candidate-photo {
        height: 160%;
        align-items: center;
    }
    .election {
        justify-content: space-evenly;
    }
  }

@media only screen and (min-width: 1400px) {

  }
