@import url("css2.css");

:root {
  --primary-color: rgb(218, 62, 48);
  --bg-color: rgb(33, 44, 76);
  --btn-color: rgba(12, 133, 243, 1);
  --secondary-color: rgb(22, 33, 61);
  --heading-color: #F9F9F9;
  --text-color: rgb(0, 0, 0);
  --text-color-2: rgb(73, 73, 73);
}
a {
  text-decoration: none;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-bottom: 0;
}
body {
  width: 100%;
  height: auto;
  position: relative;
  font-family: "Montserrat";
}
main {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-color);
  display: grid;
  position: relative;
}
main::before {
  content: "";
  width: 100%;
  height: 100%;

  background-image: url(../image/bg1.webp);
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.2;
}

.candidate {
  width: 40%;
  height: max-content;
}
.aboutCandidate {
  width: 100%;
  position: relative;
  height: auto;
}
.CandidateImg {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-top: 40px;
}
.CandidateImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0 0;
}
.candidateDetails {
  width: 350px;
  height: 350px;
  background: linear-gradient( 180deg, #0C85F3 0%, rgba(0,0,0,0.45) 59%, #A816FF 100%);
  border-radius: 20px;
  position: absolute;
  bottom: -50%;
  transform: translateY(-50%);
  display: grid;
  place-content: center;
  padding: 40px;
  text-align: center;
}
/* .candidateDetails::after {  
  content: '';  
  position: absolute;  
  bottom: 0;  
  left: 0;  
  width: 0;  
  height: 0;  
  border-left: 175px solid transparent; /* 左边透明 /  
  border-right: 175px solid transparent; /* 右边透明 /  
  border-bottom: 30px solid transparent; /* 底边透明三角形的高度 /  
  /* 如果需要三角形的底边是斜线而不是完全透明，可以设置一个微小的颜色值 /  
  border-bottom-color: rgba(255, 255, 255, 0.1);
}   */
.candidateDetails i {
  color: var(--heading-color);
  font-size: 27px;
  text-align: center;
  margin-bottom: 20px;
}
.candidateDetails h2 {
  font-size: 55px;
  color: var(--heading-color);
  font-weight: 900;
  line-height: 1;
}
.candidateDetails p {
  font-size: 17px;
  font-weight: 300;
  color: var(--heading-color);
}
.aboutCampaign {
  width: 20%;
  margin: 0 auto;
  height: 100%;
  display: grid;
  align-content: center;
  background: linear-gradient( 141deg, rgba(23,235,255,0) 0%, #0C85F3 56%, #014CE6 74%, rgba(168,22,255,0) 100%);
  padding: 30px 40px 30px 28px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 50px;
  color: var(--heading-color);
  font-weight: 900;
}
.logo img {
  margin-right: 5px;
}

.campaignHeading {
  font-size: 45px;
  color: var(--heading-color);
  line-height: 1;
  font-weight: 900;
  margin-bottom: 10px;
}
.campaignHeading .highlight {
  font-size: 65px;
  color: var(--secondary-color);
}
.catchLine {
  width: 85%;
  height: 30px;
  background-color: var(--heading-color);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: bold;
  display: grid;
  align-items: center;
  padding-left: 10px;
  margin-bottom: 25px;
  text-transform: uppercase;
  position: relative;
}
.lines,
.lines::before,
.lines::after {
  content: "";
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  right: 6px;
}
.lines {
  right: 9px;
}
.catchLine::after {
  content: "";
  height: 100%;
  width: 2px;
  background-color: var(--primary-color);
  position: absolute;
  top: 0;
  right: 3px;
}
.campaignText h4 {
  font-size: 24px;
  color: var(--heading-color);
  margin-bottom: 10px;
  text-align: center;
}
.campaignText p {
  font-size: 17px;
  color: var(--heading-color);
  font-weight: 400;
  text-align: center;
}
.voteNow {
  height: 60px;
  width: max-content;
  margin: 0 auto;
  padding: 0 40px;
  background-color: var(--secondary-color);
  font-size: 14px;
  color: var(--heading-color);
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 50px;
  border: 0;
  margin-top: 40px;
}
.buttonHover {
  position: relative;
  transition: 0.3s ease-in-out;
  overflow: hidden;
}
.buttonHover span {
  position: relative;
}
.buttonHover::before {
  content: "";
  width: 0;
  height: 100%;
  margin: 0 auto;
  background-color: var(--primary-color);

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: 0.3s ease-in-out;
  opacity: 0;
}
.buttonHover:hover::before {
  opacity: 1;
  width: 100%;
}

.communityImgs {
  text-align: center;
  margin-top: 30px;
}
.communityImgs img {
  width: 43px;
  height: 43px;
  display: inline-block;
  border: solid 2px rgb(239, 243, 244);
  background-color: var(--bg-color);
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  position: relative;
}
.communityImgs img:first-child {
  left: 20px;
}
.communityImgs img:last-child {
  left: -20px;
}
.communityNumbers article {
  margin-top: 10px;
  text-align: center;
}
.communityNumbers article h6,
.communityNumbers article p {
  font-size: 15px;
  color: var(--heading-color);
  line-height: normal;
  font-weight: 500;
}

/* vote page */
.trim-vote::before {
  background-image: url(../image/bg1.webp);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}
nav {
  display: flex;
  align-items: center;
  justify-content: start;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    var(--primary-color) 50%
  );
  min-height: 65px;
  width: 50%;
  padding: 0 40px;
}
.contact-info {
  display: flex;
  align-items: center;
  margin-right: 30px;
}
.contact-info i {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  color: var(--heading-color);
  font-size: 16px;
  margin-right: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    var(--primary-color) 75%
  );
}
.contact-info a {
  color: var(--heading-color);
  font-size: 14px;
  font-weight: 500;
}
.socialIcons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: end;
  flex: 1;
}

.socialIcons li {
  background-color: rgb(201, 33, 20);
  width: 32px;
  height: 32px;
  font-size: 13px;
  color: var(--heading-color);
  display: grid;
  place-content: center;
  border-radius: 50%;
  margin-left: 10px;
}
.sectionHeading {
  text-align: center;
  margin-top: 90px;
  margin-bottom: 20px;
}
.sectionHeading p {
  font-size: 20px;
  color: var(--primary-color);
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1;
}
.sectionHeading h4 {
  font-size: 40px;
  color: var(--heading-color);
  font-weight: 900;
}

.selectedCandidate {
  margin-top: 10px;
  background-color: var(--bg-color);
  width: 100%;
  height: 460px;
  border-radius: 200px;
  position: relative;
}
.selectedCandidate img {
  width: 100%;
  border-radius: inherit;
  height: 100%;
  object-fit: cover;
  background-position: center center;
}
.selectedCandidate span {
  position: absolute;
  right: 30px;
  bottom: 0;
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    var(--primary-color) 75%
  );
  display: grid;
  place-content: center;
  font-size: 30px;
  color: var(--heading-color);
  font-weight: 600;
}
.candidatename {
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--heading-color);
  margin-top: 25px;
}
.voteCandidate {
  padding: 0 35px;
  height: 50px;
  background-color: var(--btn-color);
  font-size: 14.5px;
  color: var(--heading-color);
  border-radius: 50px;
  border: 0;
  width: max-content;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 25px;
}

/* PopUp */
.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(17, 23, 41, 0.62);
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  clip-path: circle(0% at 50% 100%);
}
.PopUpCandidate {
  width: 60%;
  background-color: rgb(235, 247, 247);
  border-radius: 10px;
  min-height: 500px;
  margin: 0 auto;
  padding: 70px;
  position: relative;
}
.popCandidateName {
  font-size: 50px;
  color: var(--text-color);
  font-weight: 900;
  line-height: 1;
}
.tagLine {
  font-size: 19px;
  color: var(--text-color);
  font-weight: 500;
}
.popDesc {
  margin-top: 50px;
  margin-bottom: 30px;
}
.popDesc h6 {
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 10px;
}
.popDesc p {
  font-size: 18px;
  color: var(--text-color-2);
  font-weight: 500;
}

.socialLinks h3 {
  font-size: 23px;
  color: var(--text-color);
  font-weight: 800;
  margin-bottom: 10px;
}

.socialLinks img {
  width: 40px;
  margin: 0 5px;
}
.popBtn {
  background-color: rgb(35, 72, 145);
  padding: 0 45px;
  height: 60px;
  width: max-content;
  border-radius: 50px;
  font-size: 14.5px;
  text-transform: uppercase;
  font-weight: 600;
  border: 0;
  color: var(--heading-color);
  margin-top: 50px;
  margin-bottom: 20px;
}

.popUpCandidateImg {
  width: 95%;
  height: 90%;
  margin-left: auto;
  border-radius: 10px;
  position: relative;
}
.popUpCandidateImg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.totalVotes {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(
    35deg,
    rgba(0, 0, 0, 0.6) 0%,
    var(--btn-color) 60%
  );
  font-size: 40px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  color: #ff7350;
  text-align: center;

  position: absolute;
  bottom: -45px;
  left: -90px;
  display: grid;
  place-content: center;
}
.totalVotes span {
  font-size: 14.5px;
  font-weight: 400;
  color:var(--heading-color);
}
.closePopup {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  cursor: pointer;

  position: absolute;
  top: -30px;
  right: -30px;
  display: grid;
  place-content: center;
  background-color: var(--btn-color);
  color: var(--heading-color);
  font-size: 24.5px;
}

/* ThankyouPage */
.thankyou {
  place-content: center;
  text-align: center;
  color: var(--heading-color);
}
.thankyouText h2 {
  font-family: "kenyanCoffee";
  font-weight: 900;
  font-size: 90px;
}
.thankyouText p {
  font-size: 21px;
  font-weight: 400;
}
.thankyou::after {
  content: "";
  width: 15%;
  height: 75%;

  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    0deg,
    var(--primary-color) 0%,
    var(--primary-color) 0%,
    rgba(255, 255, 255, 0) 75%
  );
}
