.container {
  padding: 50px 0px;
}

.flex {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.card {
  flex: 1 1 calc(25% - 15px);
  max-width: calc(25% - 15px);
  height: 100%;
  padding: 20px 10px;
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.card_content {
  padding: 10px;
  display: flex;
  height: 70px;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.aurummate {
  font-size: 1rem;
  font-weight: 600;
  text-transform: capitalize;
  flex: 0 0 100%;
  max-width: 60%;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voters {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1rem;
  gap: 5px;
}

.voters p {
  font-weight: 600;
  color: #bb66d8;
}

.share {
  font-size: 1rem;
  transform: rotate(-45deg);
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.disabled_button {
  position: relative;
  padding: 5px 10px;
  text-decoration: none;
  color: #000000;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-align: center;
  overflow: hidden;
  width: 40%;
  background: #dfc8e7;
  box-shadow: 0 3px 5px rgba(31, 31, 31, 0.2);
  border-radius: 40px;
  cursor: not-allowed;
}

.vote_button_container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 30%;
}

.vote_button {
  /* margin: 20px auto; */
  position: relative;
  padding: 5px 10px;
  text-decoration: none;
  color: #000000;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-align: center;
  overflow: hidden;
  width: 40%;
  background: #dfc8e7;
  box-shadow: 0 3px 5px rgba(31, 31, 31, 0.2);
  border-radius: 40px;
  cursor: pointer;
}

.vote_button:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.7s;
  border-radius: 40px;
}

.vote_button:hover:after {
  left: 100%;
}

.login_description {
  margin-bottom: 20px;
}

.voting_gif {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: 200px;
  width: 200px;
  margin-bottom: 20px;
}

.already_voted_button {
  position: relative;
  padding: 5px 10px;
  text-decoration: none;
  color: #000000;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-align: center;
  overflow: hidden;
  font-weight: 700;
  width: 70%;
  background: #dfc8e7;
  box-shadow: 0 3px 5px rgba(31, 31, 31, 0.2);
  border-radius: 40px;
  animation: blink 1s infinite;
  cursor: not-allowed;
}

.already_voted_button:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 2s infinite;
  border-radius: 40px;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  20% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

.validation {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.vote_button_modal {
  /* margin: 30px auto 0px auto; auto untuk kiri-kanan akan membuatnya ke tengah */
  display: block; /* diperlukan agar margin auto bekerja */
  padding: 5px 10px;
  text-decoration: none;
  color: #000000;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-align: center;
  overflow: hidden;
  width: 20%;
  background: #dfc8e7;
  box-shadow: 0 3px 5px rgba(31, 31, 31, 0.2);
  position: relative; /* tetap diperlukan untuk pseudo-element */
  cursor: pointer;
}

.vote_button_modal:after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.7s;
}

.vote_button_modal:hover:after {
  left: 100%;
}

.close_validation {
  /* margin: 30px auto 0px auto; auto untuk kiri-kanan akan membuatnya ke tengah */
  display: block; /* diperlukan agar margin auto bekerja */
  /* padding: 5px 10px; */
  text-decoration: none;
  color: #000000;
  font-size: 0.9rem;
  font-family: sans-serif;
  text-align: center;
  overflow: hidden;
  background: #91869400;
  cursor: pointer;
}

.button_container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.success {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: 200px;
  width: 200px;
  margin-bottom: 20px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  height: 40px;
  width: 100%;
  margin-bottom: 20px;
}

@keyframes ldio-x2uulkbinbj {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.spin div {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 6.16px solid #dfc8e7;
  border-top-color: transparent;
  border-radius: 50%;
}
.spin div {
  animation: ldio-x2uulkbinbj 1.3513513513513513s linear infinite;
  bottom: 10px;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}
.loading {
  width: 70px;
  height: 70px;
  display: inline-block;
  overflow: hidden;
  background: none;
}
.spin {
  width: 20%;
  height: 20%;
}
.spin div {
  box-sizing: content-box;
}

.text_content {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.share_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copy_button {
  background-color: #101820;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  border-radius: 5px;
  font-size: 1rem;
  margin-bottom: 1em;
  transition: background-color 0.3s ease;
}
.copy_button span {
  margin-left: 0.5em;
}
.copy_button:hover {
  background-color: #333;
}

.social_buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.social_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0.5em;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

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

.twitter_button {
  background-color: #1da1f2;
}

.facebook_button {
  background-color: #3b5998;
}

.telegram_button {
  background-color: #0088cc;
}

.line_button {
  background-color: #00c300;
}

.social_button:hover {
  opacity: 0.8;
}

.countdown {
  text-align: center;
  margin: 2em 0;
}

.countdown_end {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2em 0;
  line-height: 1;
}

.timer {
  background-color: var(--au_color);
  padding: 0.3em 0.7em;
  margin: 5px;
  font-weight: bold;
}

.blink_highlight {
  animation: blinkAnim 0.4s ease-in-out 3;
  background-color: #8e209c1c;
}

@keyframes blinkAnim {
  0% {
    background-color: #e6d8ea;
  }
  50% {
    background-color: transparent;
  }
  100% {
    background-color: #e6d8ea;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .container {
    padding: 10px;
  }

  .card {
    flex: 1 1 calc(33.33% - 10px);
    max-width: 33.33%;
    margin-bottom: 30px;
  }

  .flex {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 10px;
  }

  .card_content {
    height: 75px;
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .aurummate {
    flex: 0 0 100%;
    max-width: 60%;
    white-space: wrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .aurummate p {
    font-size: 1rem;
  }

  .vote_button_container {
    width: 100%;
    height: 20px;
    align-items: center;
    margin-bottom: 0px;
  }

  .vote_button,
  .disabled_button {
    width: 70%;
    font-size: 0.9rem;
  }

  .voters,
  .share {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media only screen and (min-width: 480px) and (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .card {
    flex: 1 1 calc(50% - 10px);
    max-width: 50%;
  }

  .flex {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 10px;
  }

  .card_content {
    height: 100px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .aurummate {
    max-width: 100%;
    display: block;
    width: 100%;
  }

  .aurummate p {
    font-size: 1rem;
  }

  .vote_button_container {
    width: 100%;
    height: 20px;
    align-items: center;
    margin-bottom: 0px;
  }

  .vote_button,
  .disabled_button {
    width: 100%;
    font-size: 0.9rem;
  }

  .voters,
  .share {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media only screen and (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .card {
    flex: 1 1 calc(50% - 10px);
    max-width: 50%;
  }

  .flex {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-evenly;
    gap: 0;
  }

  .card_content {
    justify-content: space-between;
    margin-bottom: 10px;
    width: 100%;
    flex-wrap: wrap;
    height: 80px;
    align-items: center;
  }

  .aurummate {
    max-width: 100%;
    display: block;
    width: 100%;
  }

  .aurummate p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: normal;
  }

  .voters,
  .share {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .vote_button_container {
    width: 100%;
    height: 20px;
    align-items: center;
    margin-bottom: 0px;
  }

  .vote_button,
  .disabled_button {
    width: 100%;
    font-size: 0.85rem;
  }

  .already_voted_button {
    width: 100%;
    font-size: 0.8rem;
  }
}
