html,
body {
  margin: 0;
  font: 400 11pt/16pt "Helvetica Neue", Helvetica, Arial, sans-serif;
}

h1 {
  text-align: center;
  font-size: 2.4em;
  margin: 0 0 0.2em 0;
}
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 2em;
  }
}

h1,
h2,
h3,
h4,
strong {
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0.4em;
}

strong {
  font-size: 1.17em;
}

a:link {
  color: #0066cc;
}

a:visited {
  color: #3399ff;
}

table {
  border-radius: 2pt;
}

thead th {
  font-size: 1.1em;
}

tbody th {
  text-align: left;
}
tbody td {
  padding: 0.15em 0.3em;
}
tbody td.big {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}
tbody tr:nth-child(odd) th,
tbody tr:nth-child(odd) td {
  background-color: #e5f2ff;
}

ul {
  padding-left: 1.5em;
  list-style-type: circle;
}

hr {
  height: 1px;
  margin: 1em 0 2em;
  border: none;
  border-top: 1px solid #999;
}

@media screen and (min-width: 768px) {
  #headerDiv {
    max-width: 710px;
  }
}

@media screen and (max-width: 768px) {
  #formula_selector {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media screen and (min-width: 768px) {
  #formula_selector {
    max-width: 710px;
  }
}
@media screen and (min-width: 1024px) {
  #formula_selector {
    max-width: 1000px;
  }
}
#formula_selector li {
  position: relative;
  font-size: 1.5em;
  vertical-align: top;
}
/*#formula_selector li span { display: none; position: absolute; bottom: 5px; left: 0; font-size: 0.5em; line-height: 1; }*/
#formula_selector li span.data-year {
  font-size: 0.8em;
  line-height: 1;
  display: block;
  padding-top: 5px;
  padding-bottom: 2px;
}
#formula_selector li span.definition {
  font-size: 0.5em;
  line-height: 1;
  display: block;
  padding-top: 5px;
  padding-bottom: 2px;
}

#input,
#input-2 {
  min-width: 250px;
  max-width: 320px;
  margin: 0 auto;
}
@media screen and (max-width: 320px) {
  #input,
  #input-2 {
    margin-left: 20px;
    margin-right: 20px;
  }
}
@media screen and (min-width: 768px) {
  #input,
  #input-2 {
    float: left;
    clear: left;
    max-width: 280px;
  }
}
@media screen and (min-width: 1024px) {
  #input,
  #input-2 {
    clear: none;
    padding-right: 60px;
  }
}
#input > div,
#input-2 > div {
  min-height: 2.5em;
  margin-bottom: 1em;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
#input > div h3,
#input-2 > div h3 {
  margin: 0 0 0.75em;
}
#input > div .slider_parent,
#input-2 > div .slider_parent {
  padding-left: 1.5em;
  font-size: 1.1em;
}
#input > div .slider_parent input,
#input-2 > div .slider_parent input {
  width: 45%;
  margin-right: 0.5em;
  height: 1em;
}

#divRiskTimePeriod {
  min-height: 2.5em;
  margin-bottom: 1em;
}
#divRiskTimePeriod .slider_parent {
  padding-left: 1.5em;
  font-size: 1.1em;
}
#rangeTime {
  width: 45%;
  margin-right: 0.5em;
  height: 1em;
}
#time {
  margin-rigth: 0.5em;
}

#outcome {
  width: 320px;
}
@media screen and (max-width: 767px) {
  #outcome {
    margin-left: auto;
    margin-right: auto;
  }
}
@media screen and (min-width: 768px) {
  #outcome {
    margin-left: 390px;
  }
}
@media screen and (min-width: 1024px) {
  #outcome {
    margin-left: 680px;
  }
}

#faces {
  width: 320px;
  height: 320px;
}
#faces img {
  width: 32px;
  height: 32px;
  vertical-align: top;
}

#scores {
  max-width: 320px;
  margin: 2em 0 1em;
}
@media screen and (max-width: 320px) {
  #scores {
    margin-left: 20px;
    margin-right: 20px;
  }
}
#scores table {
  width: 100%;
  margin-bottom: 1em;
  border-collapse: collapse;
}
#scores table th,
#scores table td {
  vertical-align: middle;
}
#scores table th {
  padding-right: 0.5em;
  font-size: 1.5em;
  text-align: right;
}
#scores table td {
  padding: 0.25em 0;
}
#scores table td img {
  width: 32px;
  height: 32px;
  vertical-align: -30%;
}

ul#benefit_estimates {
  margin: 0 0 0.5em;
  padding: 0;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
ul#benefit_estimates > li {
  display: inline-block;
  margin: 0 0.5em 0.75em 0;
  padding: 0.1em 0.4em;
  color: black;
  border: 1px solid #003366;
  border-radius: 2pt;
}
ul#benefit_estimates > li.active {
  background-color: #003366;
  color: white;
  font-weight: 500;
}
ul#benefit_estimates > li#benefit_information {
  margin-top: 0.5em;
  border: none;
}

#footer {
  clear: both;
  max-width: 710px;
  margin: 0 auto;
  padding: 2em 0;
  text-align: center;
  color: #444444;
}
#footer .separator {
  padding: 0 1em;
  color: #999;
}
@media screen and (max-width: 768px) {
  #footer .separator {
    display: block;
    color: transparent;
  }
}

.chol_mgdl,
#divHeightIn,
#divWeightLbs {
  display: none;
}

select.toggle,
input[type="text"].toggle {
  padding: 3px;
}
input[type="number"] {
  padding: 3px;
  font-size: 1.1em;
  border: 1px solid #003366;
  border-radius: 2pt;
  height: inherit !important;
}
input[type="number"].two {
  width: 2.5em !important;
}
input[type="number"].three {
  width: 3.5em !important;
}
.slider_40 {
  width: 40% !important;
}

.toggle {
  float: right;
  border: 1px solid #003366;
  border-radius: 2pt;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin-right: 30%;
}
.toggle span {
  display: inline-block;
  padding: 0.1em 0.5em;
  color: black;
}
.toggle span:first-child {
  padding-left: 0.6em;
}
.toggle span:last-child {
  padding-right: 0.6em;
}
.toggle span.active {
  background-color: #003366;
  color: white;
  font-weight: 500;
}
.toggle span.active::before {
  content: "\2714";
  padding-right: 5px;
}

.toggle.disabled {
  opacity: 0.5;
}

.tab {
  list-style-type: none;
  padding: 0;
  margin: 0.25em 0;
  font-size: 1.2em;
  text-align: center;
}
.tab li {
  display: inline-block;
  width: 22%;
  margin: 0;
  padding: 0.5em 1%;
  color: black;
  text-align: center;
  border-radius: 2pt;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.tab li:hover {
  background-color: gainsboro;
}
.tab li.active {
  background-color: #003366;
  color: white;
  font-weight: 500;
}
@media screen and (max-width: 1024px) {
  .tab li {
    width: 46%;
  }
}
@media screen and (max-width: 768px) {
  .tab li {
    width: 100%;
  }
}
.tab li > div {
  line-height: 1.2;
}

/* @media screen and (max-width: 1024px) { #liFramingham { width: 100%;} } */
/*
#liFramingham { cursor: inherit; }
#liFramingham:hover { background-color: inherit; }
#ulFraminghamSubtypes {
	list-style-type: none;
	padding:0;
}
#ulFraminghamSubtypes li {
	font-size: 0.6em;
	width: 22%;
	padding: 0.5em 0.5%;
	height: 2em;
	line-height: 2em;
}
#ulFraminghamSubtypes li span { display: none; }

#liFraminghamSimple {
	cursor: pointer !important;
}
#liFraminghamSimple li[data-calc="cvd"] {
	font-size: 0.5em !important;
	line-height: 1 !important;
	padding-top: 0.5em !important;
	padding-bottom: 2px !important;
}
#liFraminghamSimple li[data-calc="cvd"]:hover {
	background-color: inherit !important;
}
#liFraminghamSimple.active li[data-calc="cvd"] {
	color: white;
}
*/
@media screen and (max-width: 1024px) {
  li[data-calc="qrisk"] {
    padding-bottom: 14px;
  }
}

.item_info {
  margin: 0.5em 0 0;
  font-size: 0.8em;
  color: #444444;
}
h3 + .item_info {
  margin: 0 0 0.5em;
}

.errorAlert {
  display: none;
  background: #f6e3e3;
  border: 1px solid #c84545;
  text-align: center;
  padding: 0.5em;
  margin: 1em 0;
  min-height: initial !important;
}
.errorAlert sup,
.errorAlert sub {
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}
.errorAlert sub {
  top: 0.4em;
}
.errorTextbox {
  background: #f6e3e3;
  border: 1px solid #c84545 !important;
}
.opacity10 {
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=10)";
  filter: alpha(opacity=10);
  opacity: 0.1;
}

h3.relativeBenefit {
  text-align: center;
  font-size: 1.5em;
}
h3.relativeBenefit > span.active {
  background-color: #003366;
  color: white;
  font-weight: 500;
  padding: 5px;
}

.button {
  background-color: #003366;
  color: white;
  font-weight: 500;
  margin: 0 0 0.5em;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  display: inline-block;
  margin: 0 0.5em 0.75em 0;
  padding: 0.5em 1em;
  border-radius: 2pt;
}
.button:active {
  background-color: #fff;
  color: #003366;
}
#localization {
  text-align: right;
}






















/* 以下为自写 */
/* 颜色组 */
:root {
  /* 默认颜色组 主颜色 副颜色*/
  --main-color: #244653;
  --sed-color: #bcc8cd;

  /* 1颜色组 */
  --color1-color: #244653;
  --color1-sed-color: #bcc8cd;

  /* pan颜色组 */
  --color3-color: #ffc000;
  --color3-sed-color: #f7f7f7;

  /* acr颜色组 */
  --color4-color: #e76f51;
  --color4-sed-color: #eed3d3;

  /* acr颜色组 */
  --color5-color: #e76f51;
  --color5-sed-color: #eed3d3;

  /* acr颜色组 */
  --color6-color: #e76f51;
  --color6-sed-color: #eed3d3;

  /* acr颜色组 */
  --color7-color: #e76f51;
  --color7-sed-color: #eed3d3;
}

/*大logo大小*/
.big_logo-image {
  width: 220px;
  height: 50px;
}

.dropdown-menu {
  right: 0;
  left: auto;
}

.shadow-line {
  border: none;
  border-top: 4px solid #a1abb2;
  box-shadow: 0px 0px 2px 1px #a1abb2;
  margin-bottom: 20px;
  margin-top: 5px;
}

#headerDiv {
  margin: 0 auto; /* 居中 */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  height: 100px; /* 根据需要设置合适的高度 */
  text-align: center;
}

#logo {
  margin-bottom: 10px; /* 根据需要调整图像与标题之间的间距 */
  /* padding-right: 20px; */
  width: 100px;
  height: 100px;
}

.headerTitle {
  font-size: 40px;
  line-height: 1; /* 确保垂直居中对齐 */
  display: none;
  align-items: center;
  font-weight: bold;
  color: var(--main-color);
}

#middleTextDiv {
  margin: 20px auto; /* 添加上下间距，使其与其他部分分隔开 */
  text-align: justify; /* 使用两端对齐以使文本更均匀 */
  max-width: 800px; /* 根据需要设置适当的最大宽度 */
}

.middleDescription {
  font-size: 32px;
  line-height: 1.5; /* 增加行高，改善可读性和排版 */
  display: none;
  color: var(--main-color);
}

/* 分割线 */
.custom-hr {
  border: none; /* 移除默认的边框样式 */
  border-top: 2px solid rgb(0, 0, 0); /* 设置顶部边框为红色实线 */
  margin-bottom: 50px;
  margin-top: 32px;
  width: 99.5vw;
  margin-left: calc(-50vw + 50%);
}

/* 倒立三角 */
.custom-hr::after {
  content: "";
  position: absolute;
  left: 50%; /* 将倒三角形水平居中 */
  transform: translateX(-50%); /* 水平居中倒三角形 */
  width: 100px; /* 倒三角形的宽度 */
  height: 50px; /* 倒三角形的高度 */
  background-color: #cdcdcd; /* 倒三角形的颜色，与分割线一致 */
  clip-path: polygon(0 0, 100% 0, 50% 100%); /* 创建倒三角形形状 */
}

#belowDivLeft {
  border: 2px solid black; /* 设置边框样式和颜色 */
  border-radius: 10px; /* 设置圆角的大小 */
  padding: 20px; /* 设置内边距，使内容与边框有一定的间距 */
  float: left; /* 将左边的 <div> 元素向左浮动 */
  width: 58%; /* 设置左边 <div> 元素的宽度为父容器的 40% */
  background-color: var(--sed-color);
  color: var(--main-color);
}

#belowDivRight {
  border: 2px solid black; /* 设置边框样式和颜色 */
  border-radius: 10px; /* 设置圆角的大小 */
  padding: 20px; /* 设置内边距，使内容与边框有一定的间距 */
  float: right; /* 将右边的 <div> 元素向右浮动 */
  width: 38%; /* 设置右边 <div> 元素的宽度为父容器的 60% */
}

.belowDivLeftText{
  font-size: 26px;
  font-weight: bold;
}

h3 {
  display: inline-block;
  font-size: 16px;
}

#belowDivLeft .inputSlider {
  width: 63%;
  display: inline-block;
}

#belowDivLeft .inputNumber {
  width: 12%;
}

#belowDivLeft .inputUnit {
  width: 25%;
}

.belowDivRight1 {
  color: var(--main-color);
  font-size: 26px;
  line-height: initial;
}
.belowDivRight2 {
  padding-left: 5px;
  font-size: 26px;
  line-height: initial;
}
.belowDivRight3 {
  padding-left: 5px;
  font-size: 26px;
  line-height: initial;
}

/* 提示 */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  opacity: 1;
}
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #000;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

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

  .big_logo-image {
    width: 50px; /* 设置宽度 */
    height: 50px; /* 设置高度 */
  }

  .dropdown-menu {
    right: 0;
    left: auto;
  }

  #headerDiv {
    margin: 0 auto; /* 居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    height: 100px; /* 根据需要设置合适的高度 */
    text-align: center;
  }

  #logo {
    margin-bottom: 10px; /* 根据需要调整图像与标题之间的间距 */
    width: 80px;
    height: 80px;
  }

  .headerTitle {
    font-size: 35px;
    line-height: 1; /* 确保垂直居中对齐 */
    display: none;
    align-items: center;
  }

  #middleTextDiv {
    margin: 20px auto; /* 添加上下间距，使其与其他部分分隔开 */
    text-align: justify; /* 使用两端对齐以使文本更均匀 */
    max-width: 800px; /* 根据需要设置适当的最大宽度 */
  }

  .middleDescription {
    padding: 0px 20px;
    font-size: 20px;
    line-height: 1.5; /* 增加行高，改善可读性和排版 */
    display: none;
  }

  /* 分割线 */
  .custom-hr {
    border: none; /* 移除默认的边框样式 */
    border-top: 2px solid rgb(0, 0, 0); /* 设置顶部边框为红色实线 */
    margin-bottom: 20px;
  }

  /* 倒立三角 */
  .custom-hr::after {
    content: "";
    position: inherit;
    bottom: 30px; /* 调整倒三角形位置，根据需要进行微调 */
    left: 50%; /* 将倒三角形水平居中 */
    transform: translateX(-50%); /* 水平居中倒三角形 */
    width: 80px; /* 倒三角形的宽度 */
    height: 40px; /* 倒三角形的高度 */
    background-color: #cdcdcd; /* 倒三角形的颜色，与分割线一致 */
    clip-path: polygon(0 0, 100% 0, 50% 100%); /* 创建倒三角形形状 */
  }

  #belowDivLeft {
    border: 2px solid black; /* 设置边框样式和颜色 */
    border-radius: 10px; /* 设置圆角的大小 */
    margin: 0 auto;
    /* 设置内边距，使内容与边框有一定的间距 */
    padding: 20px;
    width: 85%;
    background-color: #afbbc0;
    float: inherit;
  }

  #belowDivRight {
    border: 2px solid black; /* 设置边框样式和颜色 */
    margin: 0 auto;
    border-radius: 10px; /* 设置圆角的大小 */
    padding: 20px; /* 设置内边距，使内容与边框有一定的间距 */
    width: 85%;
    float: inherit;
    margin-top: 20px;
  }

  /* 提示 */
  .tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
  }

  .tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

  #belowDivLeft .inputSlider {
    width: 60%;
    display: inline-block;
  }

  #belowDivLeft .inputNumber {
    width: 20%;
  }

  #belowDivLeft .inputUnit {
    width: 20%;
  }

  .toggle {
    float: right;
    border: 1px solid #003366;
    border-radius: 2pt;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin-right: 0%;
  }
}
