

/* error/regstered */
.raffle__tabs-container button.active {
  background-color: var(--btn-color);
}

.raffle__content {
  width: 100%;
  display: flex;
  height: 100vh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.raffle__content::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      margin-bottom: -20px;
      width: 100%;
      height: 20%;
      background-color: #222;
      z-index: -10;
      -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" d="M0,192L80,170.7C160,149,320,107,480,96C640,85,800,107,960,117.3C1120,128,1280,128,1360,128L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>') center top / cover no-repeat;
      mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="white" d="M0,192L80,170.7C160,149,320,107,480,96C640,85,800,107,960,117.3C1120,128,1280,128,1360,128L1440,128L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>') center top / cover no-repeat;
    }

.condition {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 0 auto;
}

.raffle__content p {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
}
.raffle__content-detail h2 {
  margin-bottom: 1.2rem;
}

.raffle__content span {
  color: var(--attention);
}

/*  */

/* colored bullet/number/letter  */
li::marker {
  color: var(--btn-color);
}
/*  */

.raffle__content-detail-success {
  width: 60%;
}

.raffle__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.raffle__content-detail {
  border: 2px solid var(--line-border-color);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(51, 50, 50, 0.4);
  background: #4443436c;
  padding: 1.5rem 4rem;
}
/* .raffle__content .raffle__content-condition,
.raffle__content .raffle__content-accept-condition,
.raffle__content .raffle__content-detail {
  transition: opacity 1s ease-in-out;
} */
.raffle__content-condition {
  width: 50%;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin: 0 auto;
  padding: 1rem;
  border: 1px solid #000;
  border-radius: 16px;
  box-shadow: 0 10px 8px rgba(0, 0, 0, 0.5);
}
.raffle__content .raffle__content-terms {
  padding-bottom: 1rem;
}
/* .raffle__content-condition {
  border: 2px solid rgb(235, 229, 229);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(236, 28, 28, 0.4);
} */
.raffle__content-condition button {
  color: var(--color-white);
  background: linear-gradient(to left, red 50%, var(--color-white) 50%) right;
  background-size: 200%;

  border: 2px solid var(--color-red);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.5s ease-in-out;
}
.raffle__content-condition button:hover {
  color: var(--color-black);
  background-position: left;
  border: solid 2px var(--color-red);
  font-weight: 600;
}
.raffle__content-condition p {
  margin-bottom: 10px;
  text-align: justify;
}

.raffle__content-ordered-list li {
  margin-left: 2.5rem;
  line-height: 2;
}

.raffle__content-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.raffle__content-detail h1 {
  margin-bottom: 2rem;
  font-size: 3rem;
}

.raffle__content-detail_input {
  padding-bottom: 1rem;
  width: 100%;
}
.raffle_content-fullname,
.raffle_content-contacts,
.raffle_content-order {
  display: flex;
  flex-direction: row;
  column-gap: 10px;
}
.raffle_content-fullname input[id="fname"] {
  flex: 0.5;
}
.raffle_content-fullname input[id="minitial"] {
  flex: 0.05;
}
.raffle_content-fullname input[id="lname"] {
  flex: 0.5;
}

.raffle_content-order select[id="uName"] {
  flex: 0.2;
}
.raffle_content-dop {
  flex: 0.8;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.raffle_content-dop label {
  flex: 0.3;
}
.raffle_content-dop input {
  flex: 0.7;
}

.raffle__content-detail_input input {
  padding: 0.8rem 1.3rem;
  width: 100%;
  border: 1px solid var(--color-black);
  border-radius: 5px;
  transition: 0.05s ease-in-out;
}
.raffle__content-detail_input select[id="uName"] {
  padding: 0.5rem 1rem;
  width: 100%;
  border: 1px solid var(--color-black);
  border-radius: 5px;
  transition: 0.05s ease-in-out;
}

.raffle__content-detail_input input:active,
.raffle__content-detail_input input:focus {
  outline: 1px solid var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: 5px;
}

.raffle__content-detail_input select[id="uName"]:active,
.raffle__content-detail_input select[id="uName"]:focus {
  outline: 1px solid var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: 5px;
}

input::placeholder {
  color: #000000de;   
  opacity: 1;    
}

.raffle__content-detail_label {
  font-size: 1.3rem;
}

.raffle__content-detail_file-upload {
  width: 100%;
}

.raffle__content-detail_file-upload input {
  width: 100%;
  padding: 1rem;
}
.raffle__content-detail_btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.raffle__content-detail_btn button:disabled {
  background: #cccccc;
  color: #666666;

  font-size: 1.25rem;
  padding: 0.5rem 2rem;
  border-radius: 10px;
  border: 2px solid #666666;
  cursor: default;
}
.raffle__content-detail_btn button,
.raffle__content-condition input {
  background: linear-gradient(
      to left,
      var(--btn-color) 50%,
      var(--color-white) 50%
    )
    right;
  background-size: 200%;
  color: var(--color-white);

  margin: 0 auto;
  font-size: 1rem;
  padding: 0.5rem 2rem;
  outline: none;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--btn-color);
  transition: 0.3s ease-out;
}

@media screen and (max-width: 767px) {
  .raffle__content-condition input {
    width: 100%;
  }
}

@media screen and (max-width: 400px) {
  .raffle__content-condition input {
    width: 100%;
    font-size: .75rem;
  }
}

/* input[type="checkbox"]:checked ~ input[type=submit]  {

 } */
.raffle__content-detail_btn input[type="checkbox"] {
  margin-bottom: 1.2rem;
}
.raffle__content-detail_btn span {
  color: var(--attention);
}

.raffle__content-detail_btn button:hover:enabled,
.raffle__content-detail_btn button:focus:enabled,
.raffle__content-condition input:hover,
.raffle__content-condition input:focus {
  border: 1px solid var(--btn-color);
  background-position: left;
  color: var(--btn-color);
}

.date-of-birth {
  display: flex;
  flex-direction: row;
  justify-content: center;
  /* align-items: center; */
}

.date-of-birth .dob {
  margin-top: 4px;
}

.date-of-birth label {
  flex: 0.4;
  cursor: pointer;
}

.date-of-birth input {
  flex: 1;
}

.header-register {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  gap: 10px;
}

.raffle__content img {
  width: 140px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* notify user for redirecting */
#notify {
  width: 100%;
  text-align: center;
  font-size: 16px;
  position: absolute;
  top: 10px;
}

.qr_code {
  width: 100%;
  height: auto;
  padding-left: 20px;
}

.qr_code img {
  width: 250px;
  height: 250px;
  background-size: contain;
  background-repeat: no-repeat;
}

.schedule-header {
  display: flex;
  flex-direction: row;
  width: 90%;
  max-width: calc(30% * 3);
  gap: 30px;
  padding: 20px 0;
}

.schedule-header .schedule-left,
.schedule-md, .schedule-right {
  flex: 1;
}

.scroll-description {
  height: 60vh;
  overflow-y: auto;
  padding-inline: 10px;
  background-color: #fff;
}

/* media query */

@media screen and (max-width: 1025px) {
  .raffle__content img {
    width: 160px;
    top: 1%;
    bottom: 0;
    right: 3%;
    z-index: 10;
    background: none;
    filter: drop-shadow(1px 1px 4px rgb(0, 0, 0));
    box-shadow: none;
  }
}

@media screen and (max-width: 980px) {
    .raffle__content-detail-success {
      width: 100%;
    }
    
    .schedule-header {
      flex-direction: column;
      gap: 10px;
    }
}

@media screen and (max-width: 800px) {


  .raffle__content-condition {
    width: 90%;
  }

  .raffle__content {
    height: auto;
  }

  .raffle__content-detail h1 {
    font-size: 2.8rem;
    text-align: center;
  }

  .raffle_content-order {
    flex-direction: column;
    gap: 10px;
  }

  .raffle_content-dop {
     flex-direction: column;
  }

  .raffle_content-dop .dop {
    text-align: left;
    width: 100%;
    margin-bottom: 3px
  }

  .raffle__content img {
    width: 180px;
    top: 1%;
    bottom: 0;
    right: 1%;
  }

  #mechanics li {
    font-size: 14px;
  }
  #mechanics p{
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .raffle__tabs-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .raffle__tabs-container button{
    width: 100%;
    text-align: left;
    padding-left: 5px;
  }

  .section__padding {
    padding: 2rem;
  }

  .raffle__content-detail h1 {
    font-size: 2rem;
  }

  .raffle__content-detail {
    padding: 1.5rem 1.2rem;
  }

  .date-of-birth {
    flex-direction: column;
    text-align: left;
  }

  .date-of-birth .dob {
    margin-top: 0;
  }

  .raffle_content-contacts {
    flex-direction: column;
    gap: 10px;
  }

  .raffle__content::after {
    height: 8%;
  }

  .raffle_content-fullname {
    flex-direction: column;
    gap: 10px;
  }

  .raffle__content img {
    width: 130px;
    top: 1%;
    bottom: 0;
    right: 1%;
  }

  .raffle__content-detail_file-upload input {
    padding: 1rem 0;
  }
}
