@import "./common.css";
@import "./header-footer.css";

@font-face {
  font-family: "Shurjo";
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  src: url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_400_v2-6a682f6f610beeda14f0.woff2")
      format("woff2"),
    url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_400_v2-6a682f6f610beeda14f0.woff")
      format("woff"),
    url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_400_v2-6a682f6f610beeda14f0.ttf")
      format("truetype");
}

@font-face {
  font-family: "Shurjo";
  font-display: swap;
  font-weight: 700;
  font-style: normal;
  src: url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_700_v2-ef9e058ccc3a98d85030.woff2")
      format("woff2"),
    url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_700_v2-ef9e058ccc3a98d85030.woff")
      format("woff"),
    url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_700_v2-ef9e058ccc3a98d85030.ttf")
      format("truetype"),
    url("https://assets.prothomalo.com/prothomalo/assets/ShurjoWeb_700_v2-ef9e058ccc3a98d85030.eot")
      format("embedded-opentype");
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Shurjo", "Segoe UI", Tahoma;
}

html {
  font-size: 62.5%;
}

body {
  overflow-y: scroll;
}

.container {
  max-width: 1280px;
  margin: 4.8rem auto 0.8rem;
  padding: 0 1.6rem;
  min-height: 100vh;
}

.main-container {
  display: grid;
  grid-template-columns: 1fr;
}

/* title */
.title-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.title {
  font-size: 32px;
  text-align: center;
  color: #10044a;
  font-weight: bold;
  font-stretch: normal;
  font-style: normal;
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 3rem;
}

.title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background-color: #ff3054;
}

.option-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  font-size: 16px;
  /* color: white; */
}

.option-text {
  cursor: pointer;
  margin-left: 0.7rem;
}

.quiz-container {
  width: 100%;
  margin: 0 auto;
}

.question-container,
.policy-container {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  -webkit-box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  -moz-box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  margin: 0 16px;
  margin-bottom: 16px;
  padding: 20px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax */
}

.question-container .question {
  padding: 1rem 0;
  border-bottom: 1px solid #cccccc80;
  margin-bottom: 20px;
  font-size: 20px;
  color: goldenrod;
}

.question-image img {
  width: 100%;
  max-height: 100%;
}

/* radio */
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  min-width: 15px;
  height: 15px;
  border-radius: 15px;
  position: relative;
  background-color: white;
  content: "";
  display: inline-block;
  visibility: visible;
  border: 2px solid black;
}

.option input[type="radio"]:checked:after {
  min-width: 15px;
  height: 15px;
  border-radius: 15px;
  position: relative;
  background-color: goldenrod;
  content: "";
  margin: -3px;
  display: inline-block;
  visibility: visible;
  /* margin: -1px; */
  border: 2px solid lightgray;
}

.option {
  display: flex;
  align-items: center;
}

.info-container {
  margin: 16px;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.r1-ad {
  margin: 0 16px 16px 16px;
}
.number_input,
.name_input,
.submit_input {
  width: 100%;
  height: 40px;
  padding-left: 1rem;
  font-size: large;
  font-weight: bold;
  border: 1px solid #dab55e;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.info-container input::placeholder {
  padding-left: 1rem;
  font-size: 1.2em;
}

.policy-container {
  font-size: 18px;
}

.policy-title {
  text-align: center;
  border-bottom: 1px solid #cccccc80;
  color: #dab55e;
  max-height: 30px;
  width: 100%;
  margin-bottom: 2rem;
}

.policy_input {
  margin: 0 5px;
  font-size: 16px;
}

.policy-details {
  display: grid;
  grid-template-columns: 1fr;
}

.policy-intro,
.policy-prize {
  margin-bottom: 2rem;
}

.policy-full li {
  margin-bottom: 0.5rem;
  font-size: 16px;
}
.prize-name {
  color: #dab55e;
}

.prize-title {
  color: #10044a;
}

#quiz_submit_btn {
  background-color: #dab55e;
  border-radius: 5px;
  color: darkblue;
  font-size: large;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: 0.5s;
}

#quiz_submit_btn:hover {
  background-color: #b99645;
}

.submit-loader {
  display: none;
}
.spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  z-index: 100;
}

.spinner svg {
  width: 100px;
  height: 100px;
}

.number_error {
  color: red;
  font-size: 12px;
  margin: 5px 0;
  display: none;
}

#submit-success {
  display: none;
  align-items: center;
  text-align: center;
  font-size: 18px;
  border-radius: 5px;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  -webkit-box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  -moz-box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  color: #dab55e;
  font-weight: bold;
  min-height: 50px;
  margin-bottom: 2rem;
  padding: 4rem 2rem;
}

#not-found {
  display: none;
  align-items: center;
  text-align: center;
  font-size: 24px;
  color: red;
  padding: 5px;
}

#banner1 div {
  display: flex !important;
  justify-content: center !important;
}

.t1_ads {
  margin: 20px auto;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e2e2;
}

.top_banners div {
  display: flex !important;
  justify-content: center;
  width: 100% !important;
}

.grecaptcha-badge {
  visibility: hidden;
}

/* For tab and pc */

@media (min-width: 876px) {
  .main-container {
    display: grid;
    grid-template-columns: 6fr 4fr;
    /* grid-column-gap: 32px; */
    padding: 0 1fr;
  }

  .title {
    font-size: 42px;
    margin-bottom: 4rem;
  }

  .title::before {
    width: 186px;
  }

  .quiz-container {
    width: 80%;
  }
  .option-container {
    font-size: 18px;
  }

  .question-image {
    width: 406px;
    height: 247.3px;
  }
  #submit-success {
    font-size: 32px;
  }
}

/* for large device and desktop */
@media (min-width: 1025px) {
  .main-container {
    display: grid;
    grid-template-columns: 600px 400px;
    padding: 0 100px;
  }
  .title {
    font-size: 42px;
    margin-bottom: 6rem;
  }
}
