
@font-face {
  font-family: Inter;
  src: url('../font/Inter.ttf');
}

@font-face {
  font-family: NotoSerifTC;
  src: url('../font/NotoSerifTC.ttf');
}
html{
  scroll-behavior: smooth;
  font-size: .88em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}
button {
  background-color: transparent;
  outline: none;
  border: none;
  box-shadow: none;
  cursor: pointer;
  font-family: NotoSerifTC;
}
button span{
  font-family: NotoSerifTC;
  font-weight: 700;
}
.aptitude-button{
  background-image: url(../images/home_button.svg);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  width: 282px;
  height: 80px;
  font-size: 36px;
  letter-spacing: 8px;
  line-height: 100%;
}

.aptitude-button span{
  position: relative;
  bottom: 4px;
  font-family: NotoSerifTC;
  font-weight: 700;
}
img {
  width: 100%;
  vertical-align: middle;
  object-fit: contain;
}
a{
  user-select: none;
}
.cursor{
  cursor: pointer;
  user-select: none;
}
.cursor:hover{
  opacity: .8;
}
.cursor:active{
  opacity: .6;
}

.aptitude-container {
  width: 100%;
  height: 100vh;
  background-image: url(../images/home_1.webp);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.aptitude-container .content-view{
  max-width: 523px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
  padding-bottom: 41px;
  position: relative;
}
.aptitude-container .content-view.gray-view{
  background-color: #EEEEEE;
  border: 1px solid #000000;
  box-shadow: 0px 0px 32px 0px rgba(251, 223, 178, 1);
  display: none;
  padding: 58px 43px 31px;
  overflow: auto;
}
.aptitude-container .start-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 400px;
  height: 120px;
  background-color: #FFFFFF;
  border: 1px solid #000000;
  padding: 31px 21px;
  
}
.aptitude-container .start-text p{
  color: #000000;
  font-size: 24px;
  line-height: 35px;
}


.content-view .content-tag{
  font-size: 22px;
  letter-spacing: 3px;
  width: 100px;
  height: 57px;
  background-image: url(../images/tag.svg);
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 17px;
  left: 28px;
  font-family: NotoSerifTC;
  font-weight: 700;
}
.content-view .content-back-to-home{
  position: absolute;
  top: 0px;
  right: 0px;
  width: 86px;
  height: 86px;
  cursor: pointer;
}
.content-view .content-back-to-home-solid{
  position: absolute;
  top: 0px;
  right: 0px;
  width: 55px;
  height: 55px;
  cursor: pointer;
}
.content-view .content-img{
  width: 100%;
  border-radius: 13px;
  margin-bottom: 25px;
}

.content-view .content-text{
  color: #000000;
  height: 115px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 28px;
}
.content-view.font-sm .content-text{
  font-size: 23px;
}
.content-view.font-lg .content-text{
  font-size: 30px;
  line-height: 36px;
  text-align: center;
}


.content-view .content-btn-group-wrap{
  flex: 1;
  width: 100%;
}
.content-view .content-btn-group{
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 30px 26px;
  width: 100%;
}
.content-view.five-btn .content-btn-group{
  padding-top: 34px;
}
.content-view.three-btn .content-btn-group{
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-view.one-btn .content-btn-group{
  padding-top: 108px;
  display: block;
  text-align: center;
}
.content-view.name-view .content-btn-group{
  padding-top: 36px !important;
  display: block;
  text-align: center;
}
.content-view .content-input-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0;
}
.content-view .content-input-wrap label{
  font-size: 40px;
  line-height: 35px;
  color: #000000;
  font-family: NotoSerifTC;
  min-width: fit-content;
  font-weight: 700;
}
.content-view .content-input-wrap input{
  width: 100%;
  height: 72px;
  border: 1px solid #000000;
  outline: none;
  padding: 0 16px;
  font-size: 30px;
  font-family: NotoSerifTC;
  font-weight: 700;
  box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.25) inset;

}
.content-view .content-btn-group .content-btn.sm-btn{
  font-size: 23px;
  width: 100%;
  background-image: url(../images/sm-button.svg);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 0;
  padding-bottom: 28%;
}
.content-view .content-btn-group .content-btn.sm-btn span{
  position: relative;
  top: 5px;
}
.content-view .content-btn-group .content-btn.md-btn{
  font-size: 30px;
  width: 245px;
  background-image: url(../images/md-button.png);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 70px;
}
.content-view .content-btn-group .content-btn.md-btn span{
  position: relative;
  bottom: 7px;
  letter-spacing: 4px;
}

.content-view .content-btn-group .content-btn.md-btn.sm-text span{
  font-size: 23px;
}
.content-view .content-btn-group .content-btn.lg-btn{
  font-size: 30px;
  width: 100%;
  background-image: url(../images/lg-button.png);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  height: 70px;
  padding-left: 36px;
  padding-right: 12px;
  text-align: left;
}
.content-view .content-btn-group .content-btn.lg-btn span{
  position: relative;
  bottom: 6px;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 4px;
  display: block;
}

/* Single line text will be centered */
.content-view .content-btn-group .content-btn.lg-btn span:only-line{
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
}

/* Use JS to detect single line */
.content-view .content-btn-group .content-btn.lg-btn span.single-line{
  text-align: center;
  padding-left: 5px;
  padding-right: 5px;
}


.content-view.result-view.gray-view{
  padding: 10px 12px;
  display: none;
  gap: 0;
}

.result-view .result-top{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-size: 14px;  
}
.text-bold{
  font-weight: 800;
}
.result-view .result-top img{
  width: 20px;
  height: 20px;
}
.result-view .result-top-title .result-name{
  border-bottom: 1px solid #000000;
  padding: 5px 10px;
  font-weight: 800;
  margin: 0 6px;
}

.result-view .result-content{
  position: relative;
  background-image: url(../images/result-bg.webp);
  background-position: center center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-top: 12px;
}


.result-view .result-content .result-content-title{
  font-family: NotoSerifTC;
  width: 100%;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  background-image: url(../images/scroll.svg);
  background-position: center 3px;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  position: relative;
  bottom: 12px;
}
.result-view .result-content .result-content-img{
  position: relative;
  bottom: 36px;
}
.result-view .result-content .result-content-img .main-img{
  width: 83%;
  display: block;
  margin: 0 auto;
}
.result-view .result-content .result-content-img .absolute-up-1{
  position: absolute;
  bottom: 31px;
  left: 0;
  width: 100%;
  height: 100%;
}
.result-view .result-content .result-content-img .absolute-up-2{
  position: absolute;
  top: -32%;
  left: 0;
  width: 100%;
}
.result-view .result-content .result-content-power{
  position: absolute;
  top: 25%;
  right: 12%;
  font-size: 18px;
  font-weight: 900;
  writing-mode: vertical-lr;
  letter-spacing: 6px;
}
.result-view .result-content .result-content-description{
  width: 100%;
  position: absolute;
  left: 0;
  top: 79%;
}
.result-view .result-content .result-content-description .result-content-description-tags{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.result-view .result-content .result-content-description .result-content-description-tag{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  font-weight: 500;
  box-shadow: 6px 8px 0px 0px rgba(0, 0, 0, 0.25);
  background-color: #000;
  padding: 5px 13px;
  border-radius: 20px;
}
.result-view .result-content .result-content-description .result-content-description-text{
  font-size: 16px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.7);
  line-height: 22px;
  max-width: 322px;
  margin: 12px auto 0;
}

.result-view .result-content-type{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 40px auto 13px;
}
.result-view .result-content-type img{
  width: 13px;
  height: 13px;
}
.result-view .result-content-type .result-content-type-text{
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 22px;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}
.result-view .result-content-type .result-content-type-text .result-content-type-text-sub{
  font-size: 10px; 
}

.result-view .result-content-analysis{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  padding: 0 13px;
  margin-top: 30px;
  flex: 1;
}
.result-view .result-content-analysis .result-content-analysis-chart{
  width: 42%;
}

.result-view .result-content-analysis .result-content-analysis-chart .result-content-analysis-chart-title{
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 5px;
}
.result-view .result-content-analysis .result-content-analysis-chart .result-content-analysis-chart-title img{
  width: 9px;
  height: 9px;
}
.result-view .result-content-analysis .result-content-analysis-chart .result-content-analysis-chart-area{
  margin-top: 5px;
  position: relative;
  padding: 0 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-view .result-content-analysis .result-content-analysis-chart .result-content-analysis-chart-area img{
  position: relative;
  z-index: 2;

}


.chart-item{
  z-index: 1;
  width: 0;
  height: 0;
  border: 20px solid;
  border-color: transparent transparent transparent #ffa873;
  position: absolute;
}
.chart-item-E.level-1{
  transform: rotate(90deg) scale(0.5, .3); 
}
.chart-item-E.level-2{
  transform: rotate(90deg) scale(1, .6); 
}
.chart-item-E.level-3{
  transform: rotate(90deg) scale(1.51, .9); 
}
.chart-item-E.level-4{
  transform: rotate(90deg) scale(2.1, 1.2); 
}
.chart-item-E.level-5{
  transform: rotate(90deg) scale(2.52, 1.42); 
}

.chart-item-A.level-1{
  transform: rotate(150deg) scale(0.5, .3); 
}
.chart-item-A.level-2{
  transform: rotate(150deg) scale(1, .6); 
}
.chart-item-A.level-3{
  transform: rotate(150deg) scale(1.51, .9); 
}
.chart-item-A.level-4{
  transform: rotate(150deg) scale(2.1, 1.2); 
}
.chart-item-A.level-5{
  transform: rotate(150deg) scale(2.52, 1.42); 
}

.chart-item-I.level-1{
  transform: rotate(210deg) scale(0.5, .3); 
}
.chart-item-I.level-2{
  transform: rotate(210deg) scale(1, .6); 
}
.chart-item-I.level-3{
  transform: rotate(210deg) scale(1.51, .9); 
}
.chart-item-I.level-4{
  transform: rotate(210deg) scale(2.1, 1.2); 
}
.chart-item-I.level-5{
  transform: rotate(210deg) scale(2.52, 1.42); 
}

.chart-item-R.level-1{
  transform: rotate(270deg) scale(0.5, .3); 
}
.chart-item-R.level-2{
  transform: rotate(270deg) scale(1, .6); 
}
.chart-item-R.level-3{
  transform: rotate(270deg) scale(1.51, .9); 
}
.chart-item-R.level-4{
  transform: rotate(270deg) scale(2.1, 1.2); 
}
.chart-item-R.level-5{
  transform: rotate(270deg) scale(2.52, 1.42); 
}


.chart-item-S.level-1{
  transform: rotate(330deg) scale(0.5, .3); 
}
.chart-item-S.level-2{
  transform: rotate(330deg) scale(1, .6); 
}
.chart-item-S.level-3{
  transform: rotate(330deg) scale(1.51, .9); 
}
.chart-item-S.level-4{
  transform: rotate(330deg) scale(2.1, 1.2); 
}
.chart-item-S.level-5{
  transform: rotate(330deg) scale(2.52, 1.42); 
}

.chart-item-C.level-1{
  transform: rotate(390deg) scale(0.5, .3); 
}
.chart-item-C.level-2{
  transform: rotate(390deg) scale(1, .6); 
}
.chart-item-C.level-3{
  transform: rotate(390deg) scale(1.51, .9); 
}
.chart-item-C.level-4{
  transform: rotate(390deg) scale(2.1, 1.2); 
}
.chart-item-C.level-5{
  transform: rotate(390deg) scale(2.52, 1.42); 
}


.level-0{
  display: none;
}


.result-view .result-content-analysis .result-content-analysis-info{
  flex: 1;
  border-bottom: 2px solid #000000;
  padding-top: 9px;
}

.result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area{
  border-width: 0px, 2px, 0px, 2px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 1);
  border-bottom: none;
  min-height: 80px;
  padding: 17px 18px;
  position: relative;
}
.result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area-title{
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  background-color: #EEEEEE;
  padding: 0 6px;
  width: fit-content;
  position: absolute;
  top: -12px;
  left: 10px;
}
.result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area-content{
  font-size: 13px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  line-height: 18px;
}
.result-view .result-content-recommend{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 32px;
  border: 2px solid #000000;
  padding: 6px;
  border-radius: 10px;
  min-height: 132px;
}
.result-view .result-content-recommend .result-content-recommend-title{
  
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-lr;
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  background-color: #EEEEEE;
  padding: 0 6px;
  width: fit-content;
  letter-spacing: 7px;
  gap: 7px;
  display: flex;
}
.result-view .result-content-recommend .result-content-recommend-title img{
  width: 14px;
  height: 14px;
  margin: 0 auto;
}
.result-view .result-content-recommend .result-content-recommend-content{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.result-view .result-content-recommend .result-content-recommend-content img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.result-view .result-content-recommend .result-content-recommend-content .recommend-tag{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  font-weight: 500;
  background-color: #000;
  padding: 5px 13px;
  border-radius: 20px;
  position: absolute;
  bottom: 5%;
}
.result-view .result-content-recommend .result-content-recommend-content .recommend-text{
  font-size: 14px;
  letter-spacing: 6px;
  color: rgba(0, 0, 0, 0.8);
  position: absolute;
  top: 9%;
  left: 1%;
  -webkit-writing-mode: vertical-lr;
  writing-mode: vertical-lr;
}

.warning-popup {
  position: fixed;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 100, 100, 0.9);
  color: white;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 10px;
  z-index: 9999;
  animation: fadeInout 3s ease forwards;
}
.simple-keyboard{
  display: none;
}
@keyframes fadeInout {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; display: none; }
}
.hg-theme-default{
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 9999;
}






@media (max-width: 450px) {
  .aptitude-container .start-text{
    width: 90%;
    height: 80px;
    padding: 15px 10px;
  }
  .aptitude-container .start-text p{
    font-size: 17px;
    line-height: 20px;
  }
  .aptitude-button{

    width: 176px;
    height: 50px;
    font-size: 26px;
    letter-spacing: 4px;
    line-height: 100%;
  }
  .aptitude-container .content-view.gray-view{
    padding: 30px 38px 20px;
  }
  .content-view .content-back-to-home{
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    cursor: pointer;
  }
  .content-view .content-img{
    margin-bottom: 10px;
  }
  .content-view .content-tag{
    font-size: 20px;
    letter-spacing: 2px;
    width: 73px;
    height: 43px;
    top: 20px;
    left: 20px;
  }
  .content-view .content-text{
    height: 77px;
  }
  .content-view.font-sm .content-text{
    font-size: 16px;
    line-height: 20px;
  }
  .content-view.font-lg .content-text{
    font-size: 24px;
  }
  .content-view.five-btn .content-btn-group{
    padding-top: 20px;
  }
  .content-view .content-btn-group{
    gap: 15px 15px;
  }
  .content-view .content-btn-group .content-btn.sm-btn{
    font-size: 20px;
  }
  .content-view .content-btn-group .content-btn.sm-btn span{
    top: 0;
    font-size: 16px;
  }
  .content-view .content-btn-group .content-btn.md-btn{
    width: 176px;
    height: 50px;
    font-size: 26px;
    letter-spacing: 4px;
    line-height: 100%;
  }
  .content-view .content-btn-group .content-btn.md-btn span{
    bottom: 5px;
  }
  .content-view .content-btn-group .content-btn.lg-btn{
    height: 50px;
  }
  .content-view .content-btn-group .content-btn.lg-btn span{
    font-size: 12px;
    line-height: 15px;
  }
  .content-view .content-btn-group .content-btn.md-btn.sm-text{
    width: 200px;
  }
  .content-view .content-btn-group .content-btn.md-btn.sm-text span{
    font-size: 20px;
  }
  .content-view .content-input-wrap label{
    font-size: 24px;
  }
  .content-view .content-input-wrap input{
    height: 45px;
    font-size: 20px;
  }
  .content-view.result-view.gray-view{
    padding: 10px 13px;
  }
  .result-view .result-top{
    margin-top: 0;
    justify-content: flex-start;
  }
  .content-view .content-back-to-home-solid{
    width: 34px;
    height: 34px;
    top: 10px;
    right: 10px;
  }
  .result-view .result-content .result-content-title{
    font-size: 32px;
    
  }
  .result-view .result-content .result-content-power{
    top: 19%;
    letter-spacing: 4px;
  }
  .result-view .result-content .result-content-description .result-content-description-tag{
    font-size: 12px;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.25);
  }
  .result-view .result-content .result-content-description .result-content-description-text{
    font-size: 12px;
    line-height: 16px;
    max-width: 310px;
  }
  .result-view .result-content-type{
    margin: 26px auto 0px;

  }
  .result-view .result-content-type .result-content-type-text, .result-view .result-content-type .result-content-type-text .result-content-type-text-sub{
    font-size: 12px;
  }
  .result-view .result-content-analysis{
    margin-top: 10px;
    gap: 5px;
  }
  .result-view .result-content-analysis .result-content-analysis-chart{
    width: 47%;
  }
  .result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area{
    min-height: 70px;
    padding: 10px 16px;
  }
  .result-view .result-content-analysis .result-content-analysis-chart .result-content-analysis-chart-title, .result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area-title{
    font-size: 12px;
    top: -9px;
    left: 7px;
  }
  .result-view .result-content-analysis .result-content-analysis-info .result-content-analysis-info-area-content{
    font-size: 10px;
    line-height: 14px;
  }
  .result-view .result-content-recommend .result-content-recommend-title{
    font-size: 12px;
    letter-spacing: 3px;
  }
  .result-view .result-content-recommend{
    min-height: 76px;
    padding: 1px 10px;
    margin-top: 12px;
    border-width: 1px;
  }
  .result-view .result-content-recommend .result-content-recommend-content .recommend-text{
    font-size: 12px;
  }
  .result-view .result-content-recommend .result-content-recommend-content img{
    height: 67px;
    width: auto;
  }
  .result-view .result-content-recommend .result-content-recommend-content .recommend-tag{
    font-size: 12px;
    padding: 1px 8px;
    bottom: -6%;
    
  }
}