*{
    font-family: "NSimSun", "SongTi TC";
}

html{
    font-size: 16px;
}

::-webkit-scrollbar{
    width: 3px;

}

::-webkit-scrollbar-thumb{
    background-color: gray;
}

tbody tr, #expandForm, .arrow, #sendQ, .unlock{
    cursor: pointer;
}

.modal { 
    overflow: auto !important; 
}

.classify{
    display: flex;
    flex-wrap: wrap;
    flex: 2;
    margin-left: 2rem;
    padding: 5px;
    justify-content: space-around;
    height: fit-content;
}

.category{
    align-items: center;
    justify-content: center;
    margin: 0.5rem;
}

.item{
    flex: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
}



a:hover{
    text-decoration: none;
}

.category img{
    height: 60px;
}


.color{
    background-repeat: no-repeat;
    background-size: contain;
    white-space: nowrap;
}

.showQ{
    flex: 11;
    margin: 0 3rem;
    padding: 10px;
    
}

.tArea{
    height: 95%;
    overflow-y: scroll;
    margin-right: 1rem;
    margin-top: 0.5rem;
}


.tArea th{
    box-shadow: 0 1px 0px 0px #000;
    background-image: url(./homebg.jpg);
    position: sticky;
    top: 0;
}

.category p{
    font-size: 12px;
    text-align: center;
    color: #000;
}



.questions{
    display: flex;
    height: 48rem;
    padding-top: 1rem;
}

.red{
    background-color: #EAD2CA; 
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    z-index: 10;
    position: absolute;
    left: -1.5rem;
    top: 1em;
}

.gray{
    background-image: url(./開頭動畫_search/灰方.png);
    background-size: contain;
    height: 2rem;
    width: 2rem;
    position: absolute;
    left: -2.5rem;
    top: 0.8rem;
}

.black{
    height: 5rem;
    width: 0.5rem;
    background-color: black;
    position: absolute;
    left: 4rem;
    bottom: 0rem;
}

.lamp{
    background-image: url(./開頭動畫_search/lamp.png);
    background-size: contain;
    background-repeat: no-repeat;
    height: 7rem;
    width: 8rem;
    position: absolute;
    top: 0rem;
    right: 10rem;
}

.zh{
    letter-spacing: 5px;
    font-size: 18px;
    font-weight: bold;
    position: absolute;
    top: 2rem;
    right: 1rem;
}

.eng{
    position: absolute;
    top: 6.5rem;
    left: 2rem;
}

.pine{
    width: 6rem;
    position: absolute;
    bottom: 0rem;
    right: 15rem;
}

.line{
    width: 20rem;
    position: absolute;
    top: 11rem;
    left: 5rem;
}

.grow{
    animation-name: grow;
    animation-duration: 3.5s;
    animation-fill-mode: forwards;
}

.form-check{
    display: inline-block;    
    margin: 6px;
}

.jumbotron{
    position: relative;
    margin-bottom: 0;
    padding: 5.5rem 2rem 6.5rem 2rem;
    justify-content: center;
    align-items: center;
    text-align: center; 
    background-image: url(./開頭動畫_search/底圖.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
}

.jumbotron form{
    width: 20rem;
    margin: auto;
}

.jWords{
    height: 17rem;
    width: 7rem;
    position: absolute;
    top: 0rem;
    left: 20%;
}

.jWords div{
    writing-mode: vertical-lr;

}

#viewModal .modal-title{
    margin-top: 10px ;
    margin-left: 10px;
}

.modal-dialog{
    max-width: 600px;
}

#viewModal .modal-dialog-centered{
    max-width: 600px;
    height: 595.16px;
}

.find{
    width: 100%;
    height: 43%;
    overflow-y: scroll;
    position: relative;
    top: -5px;
}

.find th{
    background-image: url(./mainbg.jpg);
    background-position: center;
    background-size: cover;
    position: sticky;
    top: 0;
}

.find .test td{
    word-break: break-all;
}

#unlockModal .modal-content{
    background-color: #FFF;
}

#unlockModal .modal-body{
    padding: 1rem;
}

#viewModal .modal-content{
    height: 596px;
}

#askModal .modal-content{
    height: 100%;
}

.modal-content{
    margin: auto;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0);
    border: rgba(0, 0, 0, 0);
}

.modal-header{
    border-bottom: 0px;
    padding: 0px;
}

.modal-body, .modal-footer, .dropdown-menu{
    padding: 0px;
}

#askModal .modal-footer, #noticeModal .modal-footer{
    border-top: 0px;
    display: block;
}

.btnColor{
    background-color: #EDE1E3;
    border-radius: 20px;
}

#noticeModal .modal-content{
    width: 600px;
    height: 598px;
    background-image: url(./發問內容/空白筆記本.png);
    background-repeat: no-repeat;
    background-size: 600px auto;
}

.nContent{
    width: 70%;
    position: absolute;
    top: 15%;
    left: 17%;
}

.fContent{
    width: 80%;
    height: 80%;
    position: relative;
    top: 3rem;
    left: 14%;
}
/* get image height */

.moveR{
    margin-left: 20%;
}

#expandForm{
    position: absolute;
    top: 92%;
    right: 26%;
}

#sendQ{
    position: absolute;
    top: 93%;
    right: 3%;
}

#Top{
    position: fixed;
    right: 3%;
    top: 70%;
    z-index: 20;
    display: none;
}

#add, #alertLogin{
    position: fixed;
    right: 3%;
    top: 80%;
    z-index: 20;
}

#add p, #alertLogin p{
    margin: 0px;
}

.nReviewed{
    position: fixed;
    right: 30px;
    top: 160px;
    z-index: 20;
}
#askModal .findQ, #formContent{
    background-repeat: no-repeat;
    background-size: 600px auto;
}

#askModal .findQ{
    width: 600px;
    height: 594.638px;
    background-image: url(./我要發問1.png);
    position: relative;
}

#askModal h6{
    font-weight: bold;
}

#formContent{
    width: 598px;
    height: 597.307px;
    background-image: url(./直角我要發問2.png);
    position: relative;
    left: 2px;
    margin: 0rem;
}

#viewModal img{
    max-width: 100%;
    max-height: 100%;
}

.mContent{
    width: 73%;
    position: absolute;
    top: 15%;
    left: 18%;
}

#viewModal p{
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.mTitle{
    max-width: calc(100% - 146px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    position: relative;
    top: 12px;
    left: 5px;
}

.qArea, .aArea{
    max-height: 120px;
    overflow-y: scroll;
    word-break: break-all;
}

.avatar{
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-size: 80px auto;
    background-position: center top;
}

.defaultImg{
    background-size: 70px auto !important;
    background-position: center !important;
}

#formContent{
    clear: both;
}


body{   
    background-image: url(./homebg.jpg);
    background-size: cover;
}

textarea{
    height: 20% !important;
}

#flower2{
    height: 13rem;
    position: absolute;
    right: 0.7rem;
    z-index: -2;
}

#flower{
    width: 10rem;
    margin-left: 5%;
    position: absolute;
    left: 3rem;
    bottom: 1rem;
}

#person{
    position: absolute;
    right: 3rem;
    bottom: 1rem;
    width: 18rem;
}

footer{
    height: 13rem;
    position: relative;
}

.bgColor{
    background-color: rgba(207, 203, 203, 0.45);
}

.bgColor.title{
    border-bottom: 1px solid #000;
}

.body{
    margin: 1rem 0;
}

.test{
    visibility: collapse;
}

.dogs{
    height: 120px;
    min-width: 180px;
    position: absolute;
    right: 50px;
    bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
}


.mContent_p{
    margin: auto;
    position: relative;
    top: 3rem;
    left: 0;
    width: 80%;
}

/* 星星動畫css */

.demo {
    position: relative;
    width: 100%;
    height: 45px;
}
 
.demo a {
    position: relative;
    display: block;
    margin: auto;
    text-decoration: none;
}
  
.demo a:visited {
    text-decoration: none;
    color: inherit;
}
  
.demo a:active {
    text-decoration: none;
    color: inherit;
}
  
.icon-hook {
    position: relative;
}
  
.icon-hook:after {
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
  

.demo svg {
    z-index: 5;
}

  /* */
  
.star-dashes-2 {
    opacity: 0;
    transform-origin: center;
    transform: scale(.5);
}
  
.active .star-dashes-2 {
    animation: dashes-2 2s forwards;
}
  
.active .main-star-2 {
    fill: #FFD306;
    transform: rotate(360deg);
}

.animate__fadeInUp{
    --animate-delay: 2s;
}

.animate__fadeIn{
    --animate-delay: 0.5s;
}

.animate__fadeInLeft{
    --animate-delay: 0.5s;
}

:root{
    --animate-duration: 500ms;
}

.mHeader{
    display: flex;
}

.find tbody tr:hover{
    background-color: rgba(192, 192, 192, 0.2);
}

.find p{
    margin: 0px;
}

.mbg{
    background-image: url(./1590670978508.png);
    height: 40px;
    background-size: auto 100%;
    width: 100%;
}

.arrow, .unlock{
    font-size: 22px;
    font-weight: 900;
    margin: 2px 10px;
}

.vine{
    width: 15rem;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    z-index: -2;
}

#vbg{
    height: 80%;
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
}

.dogs img{
    max-width: 100%;
    max-height: 100%;
}



.door{
    transform: scaleX(-1);
    width: 5rem;
    position: absolute;
    right: -12.5%;
    bottom: 40px;
    z-index: -10;
}

.mLeaves, #mSorter{
    display: none;
}

.mLeaves img[src*="/leaf"]{
    width: 1.5rem;
    position: absolute;
}

.leaf1{
    bottom: 5vh;
    left: 10vw;
}

.leaf2{
    top: 12vh;
    right: 12vw;
}

.leaf3{
    top: 2vh;
    left: 5vw;
}

.leaf4{
    bottom: 10vh;
    left: 35vw;
}
.leaf5{
    bottom: 2vh;
    right: 30vw;
}

.dropdown-item{
    padding: 0.8rem 0.6rem;
}

.dropdown-item:active{
    background-color: rgba(158, 132, 132, 0.4);
    color: #000;
}

.dropdown-item:focus{
    outline: unset;
}
#keywordModal .modal-dialog{
    max-width: 100%;
}

.mTop{
    margin: auto;
    width: 80%;
    position: relative;
    height: 85vh;
    overflow-y: auto;
    margin-top: 2rem;
}

#mA{
    max-height: 55vh;
    overflow-y: scroll;
}

@media(hover: hover) and (pointer: fine) {
    .category:hover{
        transform: scale(1.1);
        transition: 0.2s;
        text-decoration: none;
    }
}



@keyframes dashes-2 {
    0%{

    }
    50% {
      opacity: 1;
      stroke: #f9f706;
      -webkit-transform: rotate(360deg);
    }
    100%{

    }
}

@keyframes grow{
    0%{
        width: 0px;
    }
    20%{
        width: 0px;
    }
    100%{
        
    }
}

@media only screen and (min-width: 1270px){
    .showQ{
        margin: 0 8rem 0 4rem;
    }
    .line{
        width: 30rem;
        height: 10px;
    }
}

@media only screen and (min-width: 1365px){
    #person{
        width: 15rem;
    }
    #flower{
        width: 8rem;
        margin-left: 2%;
    }
    .category{
        margin: 2.8rem 0.5rem;
    }
    .questions{
        height: 70vh;
    }
}



@media only screen and (max-width: 992px){
    .line{
        width: 17rem;
    }
}

@media only screen and  (max-width: 768px){
    
    ::-webkit-scrollbar{
        display: none;
    }
    .classify::-webkit-scrollbar{
        display: block;
        height: 3px;
    }
    body{
        background-image: url(./mainbg.jpg);
    }

    .dogs{
        min-width: 192px;
    }
    .category p{
        color: black;
        font-weight: bold;
        position: absolute;
        top: 0px;
        left: 2px;
        font-size: 18px;
        height: 60px;
        width: 65px;
        margin: 0;
        padding: 6px 10px;
        white-space: normal;
    }
    
    .jumbotron{
        padding: 85px 0 65px 0;
    }
    .jumbotron form{
        position: absolute;
        top: 85px;
        width: 100%;

    }

    .jumbotron .input-group{
        width: 60%;
        margin: auto;
    }

    .jumbotron p{
        position: relative;
        top: 55px;
    }
    .classify{
        width: 100%;
        height: 70px;
        position: fixed;
        bottom: 0px;
        overflow-x: auto;
        z-index: 15;
        background-image: url(./mainbg.jpg);
        margin: 0;
        padding: 0;
        text-align: center;
        display: unset;
        white-space: nowrap;
        overflow-y: hidden;
    }
    .item{
        display: inline-flex;
    }

    .category{
        margin-bottom: 0.1rem;
        position: relative;
    }

    .category img{
        height: 60px;
        width: 65px;
    }

    #Top{
        right: 0px;
        top: unset;
        bottom: 125px;
    }

    #add, #alertLogin{
        right: 0px;
        bottom: 60px;
        top: unset;
    }
    
    .other{
        line-height: 54px;
    }
    

    .jWords, .count, .d-non, .lamp, #flower, .sorter, #askModal, #viewModal, #add p, #alertLogin p, #flower2{
        display: none;
    }
    
    .showQ{
        margin: 0 0.5rem;
        overflow: hidden;
    }
    #person{
        width: 9rem;
        position: absolute;
        left: 1rem;
        top: 0rem;
    }
    .tArea{
        margin: 0;
        height: 98%;
    }
    .tArea th{
        background-image: url(./mainbg.jpg);
        background-position: center;
        background-size: cover;
    }
    .questions{
        height: calc(var(--vh, 1vh) * 100 - 270px);
        min-height: 250px;
        padding-top: 0px;
    }
    #flower2{
        height: 6rem;
        position: absolute;
        left: 0rem;
    }
    footer{
        height: 10rem;
        top: 40px;
    }
    #formContent{
        width: 80%;
        background-image: unset;
        position: relative;
        margin: auto;
        height: unset;
    }

    #noticeModal .modal-content{
        background-image: url(./mainbg.jpg);
        background-repeat: no-repeat;
        background-size: auto;
        border-radius: 1rem;
    }
    .find{
        height: 30vh;
        max-height: 14rem;
        min-height: 8rem;
    }
    
    #expandForm{
        position: unset;
        margin: 0;
    }
    .nContent{
        position: unset;
        margin: auto;
        width: 80%;
    }
    
    #sendQ{
        position: unset;
    }
    

    #keywordModal .modal-dialog{
        position: fixed;
        bottom: -2rem;
        margin: 0px;
        width: 100%;
    }
    #keywordModal .modal-content{
        background-color: #FFF;
        border-radius: 2rem;
        padding-bottom: 2rem;
        word-break: break-all;
    }
    #keywordModal .modal-header, #keywordModal .modal-body{
        padding: 2rem 2rem 1rem 2rem;
    }
    .mLeaves{
        display: block;
        width: 100%;
        height: 26vh;
        position: absolute;
        bottom: 0px;
    }
    .pine{
        right: 1rem;
        bottom: 1vh;
    }

    .dropdown{
        z-index: 40;
    }

    #mSorter{
        display: block;
        position: absolute;
        right: 0px;
        top: 0.3rem;
    }
    .animate__fadeInUp{
        --animate-delay: 0.5s;
    }
    .cTitle{
        max-width: 20vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

@media only screen and (max-width: 576px){
    .pine{
        width: 5rem;
    }
    #keywordModal .modal-header, #keywordModal .modal-body{
        padding: 1rem;
    }
    .jumbotron .input-group{
        width: 80%;
        margin: auto;
    }
}

