/* General setup */

html  {
  font-size: 16px;
  font-family: lovatolight, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 1rem;
}


h1, h2 {
  /* font-family: josefin_slabbold, sans-serif; */
  letter-spacing: 2px;
}

h1 {
  font-size: 3rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
}


.section {
  margin-bottom: 0.8rem;
}
.question {
  margin: 10px 0;
  border-top: 1px solid lightgray;
  width: 100%;
}
.options {
  margin-left: 1rem;
}


/* font imports */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
}

body, p, span,#description {
  font-family: 'Noto Sans', sans-serif;
}

/* 对于中文、日文和韩文，你可能需要特别处理 */
body:lang(zh), body:lang(ja), body:lang(ko) {
  font-family: 'Noto Sans CJK SC', sans-serif;
}

html {
  font-family:   "Noto Sans SC", serif;
}

h1, h2 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 2px;
}

.question p ,.result,.advice
 {
    font-size: 1.5rem; /* Adjust this value to increase or decrease the font size */
    color: #51596a; /* Change this value to adjust the color */
    font-weight: bolder;
}

#top-title {
  background-color: rgb(51,164,116); /* Sets the background color to green */
  color: white; /* Sets the text color to white */
  border-bottom: 1px solid gray; /* Adds a thin gray border at the bottom */
  box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16); /* Adds a shadow */
  padding: 1rem; /* Adds some padding around the text */
  margin-top: 7rem;
  margin-bottom: 0;
  font-size: 3rem;
  width: 100%;
}

#description {
  background-color: rgb(249,249,249) ; /* Sets the background color to light gray */
  font-size: 1rem; /* Increases the font size */
  border-bottom: 1px solid gray; /* Adds a thin gray border at the bottom */
  box-shadow: 0px 3px 6px 0px rgba(0,0,0,0.16); /* Adds a shadow */
  padding-bottom: 1rem; /* Adds some padding around the text */
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* navbar */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  border-bottom: 1px solid lightgray;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 999;

}

.left-section   {
  display: flex;
  align-items: center;
}

.center-section {
  flex-grow: 1;  /* 占据剩余的空间 */
  display: flex;
  justify-content: center;  /* 内容水平居中 */
  align-items: center;  /* 内容垂直居中 */
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  margin: 0 10px; 
}

.nav-item img {
  height: 4rem;
  width: 4rem;
}

.nav-item .title {
  font-size: 1.5rem;
  margin-left: 10px;
}

.nav-item .attention {
  color: purple;
}

.nav-item .nav-link {
  margin: 0 5px; 
  text-decoration: none;
  color: #000;
  padding-bottom: 2px;
  transition: border-bottom 0.3s;
  font-size: 1.5rem;
}

.nav-item .nav-link:hover, .nav-item .nav-link.active {
  border-bottom: 2px solid lightblue;
}

.right-section {
  display: flex;
  align-items: center;
}

/* CSS for the language selector */
.language-selector {
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 10px; /* Rounded corners */
  transition: background-color 0.3s;
}

.language-selector img {
  width: 1.5em;
  height: 1.5em;
  margin-right: 5px;
}

.language-selector:hover, .language-selector:active {
  background-color: lightgray; /* Light gray background on hover or click */
}







/* 改变按钮状态 */

.hidden-radio {
  display: none;
}

.options {
  display: flex;
  align-items: center;
  justify-content: flex-start; 
}

span[data-i18n="agree"],span[data-i18n="yes"] {
color:green;
}

span[data-i18n="disagree"],span[data-i18n="no"] {
  color:purple;
  }

.custom-radio {
  display: inline-block;
  position: relative;
  margin: 0 5px;
  vertical-align: middle;
  border-radius: 50%;

}

.small {
  width: 22px;
  height: 22px;
}

.medium {
  width: 26px;
  height: 26px;
}

.big {
  width: 30px;
  height: 30px;
}

.custom-radio.green {
  border: 2px solid green;

}

.custom-radio.gray {
  border: 2px solid gray;
}

.custom-radio.purple {
  border: 2px solid purple;

}

.inner-circle {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: transparent;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 0px;
  width: 70%;
  height: 70%;

}



.hidden-radio:checked[value^="agree"] + .custom-radio .inner-circle,
.hidden-radio:checked[value^="agree_strongly"] + .custom-radio .inner-circle,
.hidden-radio:checked[value^="yes"] + .custom-radio .inner-circle {
    background-color: green;
}

.hidden-radio:checked[value^="neutral"] + .custom-radio .inner-circle {
    background-color: gray;
}

.hidden-radio:checked[value^="disagree"] + .custom-radio .inner-circle,
.hidden-radio:checked[value^="disagree_strongly"] + .custom-radio .inner-circle,
.hidden-radio:checked[value^="no"] + .custom-radio .inner-circle {
    background-color: purple;
}


/* add mask on question */
body .question {
  opacity: 0.5;  /* 提高选择器的优先级 */
  transition: opacity 0.3s ease;
}

body .question.active {
  opacity: 1;
}





/* button change */
.submit-btn {
  background-color: rgb(51,164,116);
  color: white;
  border-radius: 5px;
  border:  2px solid white;
  padding: 10px 20px;
  font-size: 16px;
}




/* Mobile devices (default) */
@media only screen and (max-width: 600px) {
  html{
    font-size: 10px;
  }

  h1 {
    font-size: 2rem;
    text-align: center;
  }
  h2 {
    font-size: 1.5rem;
  }
  .question p, .result, .advice {
    font-size: 1.2rem;
  }
  #top-title  {
    font-size: 2rem;
  }
  .nav-item .title {
    font-size: 1rem;
  }
  .nav-item .nav-link {
    font-size: 1rem;
  }
  .submit-btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .center-section {
    display: none;
  }
}

/* Tablet devices (601px and up) */
@media only screen and (min-width: 601px) and (max-width: 1024px) {


  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .question p, .result, .advice {
    font-size: 1.4rem;
  }
  #top-title {
    font-size: 2.5rem;
  }
  .nav-item .title {
    font-size: 1.4rem;
  }
  .nav-item .nav-link {
    font-size: 1.4rem;
  }
}

