*{
    transition-duration: 0.2s;
}
.right {
    text-align: right;
}
body {
    background-color:#000;
    color: #fff;
    font-family: "微軟正黑體";
    font-size: 24px;
    overflow-y: hidden;
    font-weight: 600;
    letter-spacing: 3px;
}
body,html{
    height: 100vh;
}
.button-17>span {
    padding: 0 5px;
}
.button-17 {
    font-weight: 900;
    letter-spacing: 3px;
    align-items: center;
    appearance: none;
    background-color: #fff;
    border-radius: 24px;
    border-style: none;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 5px -1px,rgba(0, 0, 0, .14) 0 6px 10px 0,rgba(0, 0, 0, .12) 0 1px 18px 0;
    box-sizing: border-box;
    color: #3c4043;
    cursor: pointer;
    display: inline-flex;
    fill: currentcolor;
    font-family: "Corporate Logo Rounded ver2";
    height: 48px;
    justify-content: center;
    letter-spacing: .25px;
    line-height: normal;
    max-width: 100%;
    overflow: visible;
    padding: 2px 24px;
    position: relative;
    text-align: center;
    text-transform: none;
    transition: box-shadow 280ms cubic-bezier(.4, 0, .2, 1),opacity 15ms linear 30ms,transform 270ms cubic-bezier(0, 0, .2, 1) 0ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: auto;
    will-change: transform,opacity;
    z-index: 0;
    font-size: 18px;
    border: 5px solid #000;
}
.button-17:hover {
  background: #FFCA41;
}
.button-17:active {
  box-shadow: 0 4px 4px 0 rgb(60 64 67 / 30%), 0 8px 12px 6px rgb(60 64 67 / 15%);
  outline: none;
}
.button-17:focus {
  outline: none;
  border: 2px solid #4285f4;
}
.button-17:not(:disabled) {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}
.button-17:not(:disabled):hover {
  box-shadow: rgba(60, 64, 67, .3) 0 2px 3px 0, rgba(60, 64, 67, .15) 0 6px 10px 4px;
}
.button-17:not(:disabled):focus {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}
.button-17:not(:disabled):active {
  box-shadow: rgba(60, 64, 67, .3) 0 4px 4px 0, rgba(60, 64, 67, .15) 0 8px 12px 6px;
}
.button-17:disabled {
  box-shadow: rgba(60, 64, 67, .3) 0 1px 3px 0, rgba(60, 64, 67, .15) 0 4px 8px 3px;
}


#main {
    margin: 0 auto;
    background-color:#263a46;
    width: 70%;
    height: 100%;
    display: grid;
    grid-template-rows: 20% 80%;
}
/* 以下是首頁內容 */
#main_index {
    margin: 0 auto;
    width: 50%;
    grid-template-rows: 40px 68% 10% 0px;
    grid-row-gap: 3%;
    display: grid;
    position: relative;
}
#main_index>#btn_goAbout {
    font-size: 15px;
    position: fixed;
    width: 250px;
    left: 70%;
    top:5%;
}
#main_index>div>img {
    max-width: 100%;
}
#main_index>div {
    text-align: center;
}
#main_index>div:nth-child(2) {
    font-weight: bold;
}
#main_index>div:nth-child(4)>img {
    width: 30%;
}
/* 調整所有ㄉlogo樣式 */
.logo{
    width: 220px;
    display: block;
    padding-top: 20px;
    margin: 0 auto;
}

/* 以下是規則介紹 */
#main_rule>div {
    width: 70%;
    margin: 0 auto;
}
#main_rule>div:nth-child(1){
    text-align: center;
}
#main_rule>div:nth-child(1){
    letter-spacing: 3px;
    font-size: 24px;
    font-weight: bold;
    padding: 0 0 15px 0;
}
#main_rule>div:nth-child(2)>img{    
    width: 100%;
}
#main_rule>div>.button-17:nth-child(1){
    float:left
}
#main_rule>div>.button-17:nth-child(2){
    float:right
}
/* 以下是關於 */
#main_about {
    height: 100%;
}
#about_people {
    width: 80%;
    background-color: #fff;
    display: grid;
    grid-template-rows: 50% 50%;
    margin: 25px auto 0 auto;
    height: 85%;
    border-radius: 30px;
    padding-top: 30px;
}
#about_people>div>div>img{
    max-width: 100%;
    /* max-height: 100%; */
    display: block;
    height: 70%;
    margin: 0 auto;
}
#about_people>div:nth-child(1){
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
#about_people>div:nth-child(2){
    display: grid;
    grid-template-columns: calc(34% / 3) 33% calc(34% / 3) 33% calc(34% / 3);
    margin-top: -10%;
}
#about_detail_wrapper {
    position: absolute;
	top:-100%;
	left:50%;	
    transform: translate(-50%,-50%);
    color: #000;
    text-align: center;
}
#about_detail_wrapper img {
    max-width: 100%;
    width: 70%;
    display: block;
    margin: 0 auto 5px auto;
}
#about_school {
    text-align: center;
    height: 40px;
    line-height: 80px;
    font-size: 0.8em;
    letter-spacing: 5px;
}
/* 以下是type */
#main_type {
    width: 100%;
    overflow-x: hidden;
}
#main_type>div:nth-child(1){
    text-align: center;
}
#type_img_box{
    display: grid;
    overflow-x: scroll;
    margin: 50px 0 0 200px;
    width: 100vw;
    grid-template-columns: calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7) calc(100% / 7);    
    grid-column-gap: 600px;
}
#type_img_box:hover {
    width: calc(100vw - 200px);
    margin: 50px 0 0 0;
}
#type_img_box img {
    width: 700px;
}
#type_img_box>img:nth-child(6){
    margin-right: 1000px;
}
.icon-undo {
    border: 4px solid #000;
    display: block;
    margin: 0 auto;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: relative;
    background-color: #fff;
    color: #000;
}

.icon-undo:hover{
    background-color: #FFCA41;
}

.icon-undo::before{
    position: absolute;
	top:50%;
	left:50%;	
    transform: translate(-50%,-50%);
}



/* test.html------------------------------------------------------------------- */
#test_wrapper{
    margin: 0 auto;
    background-color:#263a46;
    width: 70%;
    height: 100%;
}
.button-81 {
    background-color: #fff;
    border: 0 solid #e2e8f0;
    border-radius: 2rem;
    box-sizing: border-box;
    color: #0d172a;
    cursor: pointer;
    display: inline-block;
    font-family: "Basier circle",-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    padding: 1rem 1.6rem;
    text-align: center;
    text-decoration: none #0d172a solid;
    text-decoration-thickness: auto;
    transition: all .1s cubic-bezier(.4, 0, .2, 1);
    box-shadow: 0px 1px 2px rgba(166, 175, 195, 0.25);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    border: 5.5px solid #000;
    min-width: 280px;
}
.button-81:hover {
    background-color: #FFCA41;
}
@media (min-width: 768px) {
    .button-81 {
      font-size: 1.125rem;
      padding: 1rem 2rem;
    }
}
#test_q {
    margin: 70px 0 35px 0;
    font-weight: 900;
    text-align: center;
}
.options{
    display: block;
    margin: 0 auto 15px auto;
}
#test_q_box {
    display: block;
    grid-template-columns: 55% 45%;
    padding-top: 30px;
}
#test_q_box>div{
    line-height: 70px;
    padding-right: 15px;
}
#test_q_box>img{
    height: 70px;
}
#test_img {
    display: none;
    margin: 0 auto;
    max-width: 100%;
    height: 65%;
}
#btn_up, #btn_down{
    display: none;
    position: fixed;
    height: 50px;
    width: 100px;
    top:calc(100vh - 50px);
    left: calc(50vw - 50px);
    z-index: 3;
}
#btn_up>img, #btn_down>img {
    display: block;
    margin: 0 auto;
}
#test_result_box {
    background-color: #FFCA41;
    height: 100vh;
    width: 70%;
    position: absolute;
    top: 100%;
    left: 15%;
    z-index: 2;
}
#result_img {
    display: block;
    margin: 0 auto;
    height: 85%;
    margin-top:5%;
}