@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap');

/* Hide on mobile/desktop utilities - Desktop defaults */
.hide-on-desktop { display: none !important; }
.hide-on-mobile { display: block !important; }

body { background: url(space.jpg); background-size: cover; background-position: center center; padding: 0rem; margin: 0px; font-family: "Karla", serif; }
form#BaZi { max-width: 500px; margin: 2rem auto; font-family: "Karla", serif; font-optical-sizing: auto; font-size: 1.1em; padding: 2rem; background: rgba(0, 0, 0, 0.5); border-radius: 1rem; }
form#BaZi * { font-family: "Karla", serif; font-size: 1em; cursor: default; }
form#BaZi label { margin: 0.75em 0 0.25em 0; display: block; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
form#BaZi input { color: rgba(255, 255, 255, 1.0); width: calc(100% - 1.5rem - 4px); padding: 0.6rem 0.75rem;  background: rgba(60, 70, 100, 0.8); border: 2px solid rgba(100, 110, 145, 1.0); border-radius: 4px; }
form#BaZi select { width: calc(100% - 0rem); padding: 0.6rem; background: rgba(60, 70, 100, 0.8); border: 2px solid rgba(100, 110, 145, 1.0); border-radius: 4px; color: rgba(255, 255, 255, 0.9); appearance: none; }
form#BaZi select:focus,
form#BaZi select option:checked { color: rgba(255, 255, 255, 1.0); }
form#BaZi input[type=submit] { padding: 1rem 1.5rem; background: #700000; width: auto; border: 2px solid #700000; font-weight: 700; font-size: 1.2em; line-height: 1.2em; border-radius: 4px; cursor: pointer; white-space: normal; display: block; margin: 0 auto; }
form#BaZi input[type=submit]:hover { background: #192d47; border: 2px solid #192d47; color: #fff; }
form#BaZi p { font-family: "Karla", serif; font-size: 0.9em; color: rgba(255, 255, 255, 0.8); text-align: center; line-height: 1.5em; }
form#BaZi h4 { font-size: 1.25em; margin: 0 0 1rem 0; text-align: center; }
form#BaZi .form-group { position: relative; }
form#BaZi .form-group.select:before, .cols .col:before { content: ''; height: 10px; width: 10px; transform: rotate(-45deg); z-index: 1; right: 18px; bottom: 18px; position: absolute; pointer-events: none; border-left: 2px solid rgba(255, 255, 255, 0.9); border-bottom: 2px solid rgba(255, 255, 255, 0.9); }
form#BaZi input[type="checkbox"] { width: 20px; }
form#BaZi ::placeholder { color: rgba(255, 255, 255, 0.7); }

.cols { display: flex; gap: 1rem; flex-wrap: wrap; }
.cols .col { flex: 1; position: relative; }

.tophead { background: #700000; color: rgba(255, 255, 255, 0.9); padding: 0.75rem 1rem; letter-spacing: 3px; font-weight: 600; font-size: 1.2em; }

h1 { font-family: "Karla", serif; font-weight: 900; font-size: 2em; margin: 1rem 0 1rem 0; color: #fff; padding: 0 1rem; }
h3 { font-family: "Karla", serif; font-size: 1.5em; margin: 0; color: #fff; padding: 0 1rem; }

.text-center { text-align: center; color: #fff; }

footer { text-align: center; color: rgba(255, 255, 255, 0.5);  }

.tao { position: relative; width: 300px; margin: 2rem auto 0rem auto; display: block; }


.popup { background: #111; color: #eee; position: fixed; width: 100%; max-width: 800px; margin: 0; padding: 3rem; z-index: 1000; top: 0; right: -100%; overflow-y: auto; max-height: 100vh; 
  box-sizing: border-box; transition: right 0.5s ease; }
.popup.active { right: 0; }
.close-btn { position: absolute; top: 1rem; right: 1rem; background: #444; color: #fff; text-decoration: none; padding: 0.5rem 1rem; border-radius: 0.5rem; cursor: pointer; display: inline-block; }
.close-btn:hover { background: #555; }
#open-popup-button { cursor: pointer; margin: 0 0 2rem 0; position: relative; display: block;}
#open-popup-button:hover { text-decoration: underline;  }
.popup div { position: relative; }
.popup div a { color: #dab672; }

.content { max-width: 780px; margin: 0 auto; }
.content div.text-center { padding: 0rem 1rem 1rem 1rem; line-height: 1.5em; }


.gender input { width: 150px; height: 150px; }


form#BaZi .form-group.gender { display: flex; }
form#BaZi .form-group.gender .container { display: flex; width: 50%; justify-content: center; }
form#BaZi .nav { display: flex; justify-content: unset; align-items: center; flex-wrap: wrap; margin: 2rem auto; border-top: 1px solid rgba(255, 255, 255, 0.2);  }

form#BaZi small { font-size: 9pt; line-height: 1.5em; color: rgba(255, 255, 255, 0.5); display: block; padding: 1rem 0; text-align: center; }
form#BaZi small ul { text-align: left; padding: 0 1rem; }

form#BaZi .form-check small { padding: 0px; text-align: left; }

/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding: 2rem 0;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.checkmark {
  position: relative;
  top: 0;
  left: 0;
  padding-bottom: 50%;
  width: 50%;
  background-color: rgba(60, 70, 100, 0.5);
  border-radius: 10%;
}

.checkmark.femme:before { content: ''; width: 100%; height: 100%; background: url(images/female.svg) no-repeat center/auto; background-size: auto 80px; position: absolute; opacity: 0.4; }
.checkmark.homme:before { content: ''; width: 100%; height: 100%; background: url(images/male.svg) no-repeat center/auto; background-size: auto 68px; position: absolute; opacity: 0.4; }

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: rgba(60, 70, 100, 0.8);
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: rgba(60, 70, 100, 1.8);
}

.container input:checked ~ .checkmark:before { opacity: 1; }

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}





#BaZi .form-wrapper {
  max-width: 400px;
  margin: auto;
  font-family: Arial, sans-serif;
}

#BaZi .progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

#BaZi .step {
  flex: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  padding: 10px 10px 14px 10px;
  transition: background-color 0.3s;
  position: relative;
}

#BaZi .step.active {
  color: rgba(255, 255, 255, 1.0);
}

#BaZi .step:before {
  content: '';
  position: absolute;
  height: 4px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  background-color: rgba(60, 70, 100, 0.8);
}

#BaZi .step.active:before {
  background-color: #e5b56a;
}

#BaZi .form-step {
  display: none;
}

#BaZi .form-step.active {
  display: block;
  cursor: pointer;
}

#BaZi button {
  display: block;
  margin: 20px auto 0;
  padding: 1rem 1.5rem;
  min-width: 130px;
  border: 0px;
  cursor: pointer;
}

#BaZi button.next-btn { background: #c500a7; color: #fff; font-size: 16pt; border-radius: 3rem; position: relative; }
#BaZi button.next-btn:hover { background: #e5b56a; color: #000; }
#BaZi button.back-btn { background: rgba(0, 0, 0, 0.5); color: rgba(255, 255, 255, 0.8); position: absolute; font-size: 0px; height: 50px; width: 50px; min-width: 50px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.25); }
#BaZi button.back-btn:hover { border: 1px solid rgba(255, 255, 255, 0.75); }
#BaZi button.back-btn:hover:before { opacity: 1; }
#BaZi button.back-btn:before { opacity: 0.5; content: ''; height: 14px; width: 14px; transform: rotate(45deg); z-index: 1; right: 14px; bottom: 17px; position: absolute; pointer-events: none; border-left: 2px solid rgba(255, 255, 255, 0.9); border-bottom: 2px solid rgba(255, 255, 255, 0.9); }

#BaZi button:disabled { opacity: 1; cursor: default; outline: 1px solid white; outline-offset: -1px; background: transparent; }
#BaZi button:disabled:hover { background: transparent; color: #fff; }

.checks { padding: 0px; margin: 1rem 0; list-style: none; color: #fff; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0; }
.checks li { position: relative; display: flex; padding: 0rem 1rem; list-style: none; color: #fff; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: center; font-size: 0.7em !important; }
.checks li:before { content: ''; width: 8px; height: 8px; left: 0px; top: 4px; background: #e5b56a; position: absolute; border-radius: 50px; }

.container.femme:before { content: 'Femme'; bottom: 10px; font-size: 11pt; position: absolute; color: rgba(255, 255, 255, 0.8); }
.container.homme:before { content: 'Homme'; bottom: 10px; font-size: 11pt; position: absolute; color: rgba(255, 255, 255, 0.8); }


footer { text-align: center; line-height: 1.6em; margin: 2rem 0 0rem 0; font-size: 0.8em; color: #dab672; text-align: center; }
footer div { text-align: justify; padding: 0 1rem; }
footer a { color: #dab672; }


/************************************************************************************
smaller than 750
*************************************************************************************/
@media screen and (max-width: 750px) {

/* Mobile visibility utilities */
.hide-on-mobile { display: none !important; }
.hide-on-desktop { display: block !important; }

.wrap { font-size: 0.8em; }
.tao { position: relative; width: 240px; left: calc(50% - 120px); right: auto; top: auto; margin: 1rem 0 0 0; }
.tophead { letter-spacing: 1px; line-height: 1.5em; padding: 0.5rem 1rem; }
form#BaZi input[type=submit] { font-size: 1.1em; }
form#BaZi { margin: 2rem 1rem; padding: 1rem; }

.checkmark { padding-bottom: 70%; width: 70%; }

}