@import url("https://fonts.googleapis.com/css?family=Barlow&display=swap");
:root {
  --light-font: grey;
}
body {
  font-family: Barlow;
  margin: 0;
}
.votes-percent {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: medium;
    font-weight: 500;
}
.nav-bar-caution {
    padding-top: 5rem;
  }
  .candidate-page {
    margin: 2rem auto;
    width: 70%;
    border-radius: 2rem;
    background-color: #fff;
    box-shadow: 1px 2px 10px #c7c7c7;
    display: grid;
    grid-template-columns: 1fr 2fr;
  }
  .no-display,
.no-display-max {
  display: none;
}
  .candidate-page-img {
    width: 95%;
    height: auto;
    border-radius: 2rem 2rem 2rem 2rem;
    object-fit: cover;
    padding: 2.5%;
  }
  .candidate-page-header {
    display: flex;
    justify-content: space-between;
    padding-right: 2rem;
  }
  .candidate-page-header h4 {
    margin: 0;
    color: #01c915;
    font-size: 2rem;
  }
  .candidate-page-header p {
    margin-top: 0;
    color: #898989;
  }
  .candidate-page-header h1 {
    margin: 0;
  }
  .candidate-page-about {
    inline-size: 100%;
  }
  .candidate-page-details {
    padding: 1.5rem;
  }
  .coupon-btn {
    background-color: #023947;
    color: #fff;
    width: 83%;
    border: none;
    padding: 1rem;
    margin: 1rem 8%;
    border-radius: 0.5rem;
  }
  .coupon-form {
    display: block;
    width: 80%;
    padding-top: 3rem;
    margin: 2rem auto;
    position: relative;
  }
  .close-coupon-vote {
    position: absolute;
    top: 0.2rem;
    right: -0.3rem;
    background: none;
    border: none;
  }
  .coupon-form input[type="text"] {
    padding: 7%;
    width: 86%;
    background-color: #d9d9d9;
    color: #000;
    border-radius: 0.5rem;
    border: none;
  }
  .coupon-form input[type="submit"] {
    padding: 1rem;
    width: 50%;
    margin: 1rem 24.99%;
    border-radius: 0.625rem;
    background-color: #000;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    color: #fff;
    border-radius: 0.5rem;
    border: none;
  }
  .coupon-form p {
    text-align: center;
  }
  .coupon-form span > a {
    color: #a0fbf5d9;
    text-decoration: none;
  }
  .or {
    color: #424242;
    text-align: center;
  }
  .select-vote-count {
    display: flex;
    width: min-content;
    margin: 0 auto 2rem;
    justify-content: space-between;
  }
  .vote-count-btn {
    padding: 1rem;
    border-radius: 50%;
    border: none;
    background-color: #000;
  }
  .select-vote-count input[type="number"] {
    background-color: #fff;
    border: none;
    font-size: 1.6rem;
    text-align: center;
    color: #000;
    width: 8rem;
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
  }
  .select-vote-form input[type="email"] {
    background-color: #bdbdbd;
    color: #000;
    border: none;
    border-radius: 0.5rem;
    width: 75%;
    padding: 1rem;
    margin: 1rem 7.49%;
    text-align: center;
  }
  .select-vote-form input[type="submit"] {
    background-color: #000;
    color: #fff;
    width: 40%;
    padding: 1rem;
    margin: 0 30%;
    border-radius: 0.5rem;
    border: none;
  }
  .candidate-vote-payment {
    width: 100%;
  }
  .candidate-vote-payment > div:first-child {
    width: 18rem;
    height: 10rem;
    padding: 1rem;
    background-color: #fff;
    margin: 0 auto 3rem;
    box-shadow: 0 3px 10px #42424263;
    border-radius: 1rem;
  }
  .candidate-vote-payment p {
    inline-size: 80%;
    text-align: center;
    margin: 1.5rem auto 3rem;
  }
  .payment-amout {
    color: #01c915;
    font-size: xx-large;
    text-align: center;
  }
  .candidate-vote-payment-button {
    border: none;
    width: 18rem;
    padding: 1rem;
    text-align: center;
    background-color: #000;
    color: #fff;
    font-size: larger;
    border-radius: 0.5rem;
    box-shadow: 0 3px 10px #42424263;
    margin: 0 auto 5rem;
  }
  .search-form {
    position: relative;
  }
  .search-form > input[type="search"] {
    padding: 8vw 5vw;
    border: none;
    border-radius: 1rem;
    width: 100%;
    box-shadow: inset 2px 2px 5px #a7a7a7;
    margin: 0;
    height: 3rem;
  }
.button {
    background-color: #04aa6d;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin-right: 110px;
}

.button1 {
    border-radius: 2px;
}

.button2 {
    border-radius: 4px;
}

.button3 {
    border-radius: 8px;
}

.button4 {
    border-radius: 12px;
}

.button5 {
    border-radius: 50%;
}
.vote-progress-bar {
  background-color: #fff;
  height: 3rem;
  width: 3rem;
  border-radius: 50%;
  border: 5px solid #dfffe2;
}
.office-contender-card-votes svg {
  width: 4rem;
  height: 4rem;
  position: absolute;
  top: 0;
  left: 0;
}
.office-contenders {
  margin: 2.5rem 5% 5%;
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}
.office-contender-card-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}
.office-contender-card-bottom > div {
  height: 4rem;
}
.office-contender-card-votes {
  position: relative;
  display: flex;
}
.office-contender-card-bottom circle {
  stroke: #01c915;
  stroke-width: 5;
  fill: rgba(0, 255, 149, 0);
  stroke-dasharray: 250;
  stroke-linecap: round;
}
.contest-banner {
    width: 93%;
    height: 80vh;
    padding-bottom: 20px;
    background-image: url(../assets/images/Background.jpg);
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

.contest-line {
    background-color: rgb(0, 0, 0);
}

.contest-line {
    width: 90%;
    height: 1px;
    background-color: #000;
    margin: auto;
}

.contest-line-bottom {

    width: 90%;
    height: 1px;
    background-color: #fff;
    margin-top: 10rem;
    margin-bottom: 5rem;
    padding-top: 10px;
}



.contest-info {
    padding: 2vw 5vw 5vw;

}

.time-left {
    width: 40%;
    margin: 2rem auto;
    justify-content: space-between;
}

.time-left,
.time-left > div {
  display: flex;
}
.time-left > div:after {
  content: ":";
  font-size: x-large;
  color: #00000052;
}
.time-left > div:last-child:after {
  content: "";
}
.time-left-digits {
  background-color: #00ff1a1f;
  width: -moz-fit-content;
  width: fit-content;
  padding: 0.2rem 0.5rem;
  color: #007b0c;
  font-size: x-large;
  border-radius: 0.4rem;
}
.time-left-units {
  color: #00b612;
}
.office-header {
    margin-top: 3rem;
    display: flex;
    justify-content: space-between;
    font-size: larger;
    font-weight: 800;
    height: 3rem;
}

.icon-2 {
    width: 1rem;
    height: 1rem;
}

.radiuz {
    border-radius: 1.5rem;
    box-shadow: 0 2px 5px #9c9c9c;

}

.radiuzz {
    width: 100%;
    padding-top: 10px;
}

.total-votes {
    max-width: 20rem;
    display: grid;
    grid-template-columns:
        2fr 1fr;
    min-width: 17rem;
    border-radius: .5rem;
    margin: 1rem auto 10rem;
    box-shadow: 0 2px 5px grey;
    padding: 1rem;
}


@media only screen and (min-width: 578px) {

    /* For extra small mobile phones: */
    .office-contender-card {
      margin: 0 auto 1rem;
    }
    .votes-percent {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: medium;
        font-weight: 400;
    }

    .button {
        background-color: #04aa6d;
        border: none;
        color: white;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        margin-right: 10px;
    }

    .button1 {
        border-radius: 2px;
    }

    .button2 {
        border-radius: 4px;
    }

    .button3 {
        border-radius: 8px;
    }

    .button4 {
        border-radius: 12px;
    }

    .button5 {
        border-radius: 50%;
    }
}

@media only screen and (max-width: 600px) {

    /* For small mobile phones: */
    .votes-percent {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: medium;
        font-weight: 500;
    }
    .office-contenders {
      grid-template-columns: 2fr;
    }
    .office-contender-card {
      margin: 0 auto 1rem;
    }
    .no-display-max {
      display: block;
    }
    .no-display-mini {
      display: none;
    }
    .candidate-page {
        margin: 2rem auto;
        width: 80%;
        display: block;
      }
      .candidate-page-img {
        width: 95%;
        border-radius: 2rem 2rem 0 0;
        padding: 2.5%;
      }
      .candidate-page-header {
        padding-right: 0;
      }
      .candidate-page-header p {
        float: right;
      }
      .candidate-page-details {
        padding: 4%;
      }
    .button {
        background-color: #04aa6d;
        border: none;
        color: white;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        margin-right: 300px;
    }

    .button1 {
        border-radius: 2px;
    }

    .button2 {
        border-radius: 4px;
    }

    .button3 {
        border-radius: 8px;
    }

    .button4 {
        border-radius: 12px;
    }

    .button5 {
        border-radius: 50%;
    }
}

@media only screen and (min-width: 600px) {

    /* Small devices (portrait tablets and large phones, 600px and up) */
    .votes-percent {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: medium;
        font-weight: 500;
    }

    .button {
        background-color: #04aa6d;
        border: none;
        color: white;
        padding: 10px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        margin-right: 100px;
    }

    .button1 {
        border-radius: 2px;
    }

    .button2 {
        border-radius: 4px;
    }

    .button3 {
        border-radius: 8px;
    }

    .button4 {
        border-radius: 12px;
    }

    .button5 {
        border-radius: 50%;
    }
}

@media only screen and (min-width: 768px) {

    /* Medium devices (landscape tablets, 768px and up) */
    .votes-percent {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: medium;
        font-weight: 500;
    }

    .button {
        background-color: #04aa6d;
        border: none;
        color: white;
        padding: 20px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        margin-right: 120px;
    }

    .button1 {
        border-radius: 2px;
    }

    .button2 {
        border-radius: 4px;
    }

    .button3 {
        border-radius: 8px;
    }

    .button4 {
        border-radius: 12px;
    }

    .button5 {
        border-radius: 50%;
    }
}

@media only screen and (min-width: 992px) {

    /* Large devices (laptops/desktops, 992px and up)*/
    .votes-percent {
        position: absolute;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: medium;
        font-weight: 500;
    }

    .button {
        background-color: #04aa6d;
        border: none;
        color: white;
        padding: 20px;
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        margin-right: 190px;
    }

    .button1 {
        border-radius: 2px;
    }

    .button2 {
        border-radius: 4px;
    }

    .button3 {
        border-radius: 8px;
    }

    .button4 {
        border-radius: 12px;
    }

    .button5 {
        border-radius: 50%;
    }
}