@charset "UTF-8";

/* 
 * 字型說明：
 * 俐方體11號／Cubic 11
 * 俐方體11號是基於 M⁺ gothic 12r 衍生的開源繁體中文點陣字型
 * 本字型基於 SIL Open Font License 1.1 改造 M⁺ BITMAP FONTS 所發布的 M⁺ gothic 12r 開源字型。
 * 本字型亦基於 SIL Open Font License 1.1 授權條款公開發布。
 */
@font-face {
    font-family: "Cubic 11";
    src: url(../font/cubic/Cubic_11_1.013_R.woff2);
}

/* 動畫 */
@keyframes cloud {
    0%   {
      background-position: 0 0;
    }
    50%  {
      background-position: 0 -13%;
    }
    100% {
      background-position: 0 0;
    }
}


/* -----------------行動優先----------------- */
body{
    margin: 0;
    padding: 0;
    font-size: 1em;
    background-size: 960px 634px;
    background-repeat: repeat;
    background-position: center;
    animation-name: cloud;
    animation-duration: 10s;
    animation-iteration-count: infinite;
    text-align: center;
    font-family: Arial, "微軟正黑體", sans-serif;
    color: white;
}
.special-font{
    font-family: "Cubic 11", Arial, "微軟正黑體", sans-serif;
}
#header{
    height: 80px;
}
.form-switch{
    text-align: center;
    padding: 5px;
}
.form-switch .form-check-input{
    vertical-align: middle;
    margin: 0 auto;
}
.form-switch .form-check-label{
    vertical-align: middle;
}
#logo{
    width: 50px;
    height: 50px;
}
.title-image{
    height: 50px;
    width: 263px;
}
.cursor-pointer{
    cursor: pointer;
}
@font-face {
    font-family: englishFont;
    src: local('Courier New bold'), local('Courier New'), local('Arial');
    font-style: normal;
    font-weight: bold;
}
.puzzle-table{
    width: 100%;
    margin: 0 auto;
    font-family: englishFont, "標楷體", sans-serif;
}
#author-div{
    width: 100%;
    margin: 0 auto;
}
.puzzle-table .word-div{
    position: relative;
    background-color: rgb(77, 77, 77);
    width: 10%;
    min-width: 2em;
}
.puzzle-table .word-div .word{
    width: 100%;
    font-size: 1.35em;
    text-align: center;
    height: 100%;
    padding: 0;
}
.puzzle-table .word-div:after {
    content: '';
    display: block;
    margin-top: 100%;
}
.puzzle-table .word-div .word{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
.puzzle-table .word-div .word[readonly]{
    cursor: default;
}
.puzzle-table .word-div .word:not([readonly]){
    color: blue;
}
.puzzle-table .word-div .word.hint-focus{
    border: 2px solid red;
}        
.puzzle-table .word-div .word.selected-group{
    /* 關聯的格子 */
    border: 2px solid rgb(228, 59, 219);
    background-color: rgb(255, 255, 121);
}
.puzzle-table .word-div .word:focus:not([readonly]){
    box-shadow: 0 0 10px 5px #57d4aa;
}        
.puzzle-table .word-div .word.correct{
    background-color: rgb(206, 235, 150);
}
.puzzle-table .word-div .word.wrong{
    border-color: red;
    background-color: rgb(248, 135, 207);
}
.puzzle-table .word-div .image-check,
.puzzle-table .word-div .image-cross{
    pointer-events: none;
    opacity: 0.25;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2px;
    z-index: 9;
    color: blue;
}
#score{
    white-space: nowrap;
}
#score>div{            
    background-color: #fff4993d;
}
#score .score-head{
    font-weight: bold;
}
#score .score-content{
    background-color: rgb(209, 209, 209);
    font-size: 3em;
    font-weight: 800;
    color: rgba(0, 0, 0);
}
#hint-switch{
    min-width: 180px;
}
.hint-div{
    background-color:sienna;
    border: 2px solid yellow;
}
.hint-title::before{
    display: inline-block;
    content: url('../images/info-svgrepo-com.svg');
    width: 1em;
    vertical-align: middle;
    margin-right: 0.25em;
}
.hint-div .hint{
    color: yellow;
    white-space: nowrap;
    font-size: 3em;
    font-family: englishFont, "標楷體", sans-serif;
    text-decoration: dashed;
}
.hint-div .hint.chinese{
    font-family: "標楷體", sans-serif;
}
.hint-div .hint.english{
    white-space: pre-line; /* 讓 vue data hint 換行 */
}
.form-control:focus{
    box-shadow: 0 0 0 .25rem rgba(255, 179, 0, 0.78);
}
.btn {
    white-space: nowrap;
}
.score-corner::after{
    font-size: 1.25rem;
    font-weight: normal;
    content: ' /100';
    color: black;
}
.score-play .dialog{
    width: 80%;
    margin: 0 auto;
    padding: 2em 0;
    text-shadow: 0 6px 18px rgba(255, 213, 3, 0.597);
    background-image: url(../images/dialog.png);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
}
.score-play .score-character{
    width: 70%;
}

/* vue 未編譯前不顯示 */
[v-cloak]{
    display: none;
}

/* -----------------動畫----------------- */

/* vue 搭配動畫 */
.fade-enter-active,
.fade-leave-active {
    transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.zoomin-enter-active{
    animation-name: zoomIn; /* 引用自 animate.css */
    animation-duration: 0.5s;
}
.zoomin-leave-active{
    animation-name: zoomOut; /* 引用自 animate.css */
    animation-duration: 0.5s;
}

.flipY-enter-active{
    animation-name: flipInY; /* 引用自 animate.css */
    animation-duration: 0.5s;
}
.flipY-leave-active{
    animation-name: flipOutY; /* 引用自 animate.css */
    animation-duration: 0.5s;
}

.flipY2-enter-active{
    animation-name: flipInY; /* 引用自 animate.css */
    animation-duration: 1.5s;
}
.flipY2-leave-active{
    animation-name: flipOutY; /* 引用自 animate.css */
    animation-duration: 1.5s;
}

.flipY3-enter-active{
    animation-name: rotate-scale-up;
    animation-duration: 1.5s;
}

@-webkit-keyframes rotate-scale-up {
0% {
    -webkit-transform: scale(0.5) rotateY(0);
            transform: scale(0.5) rotateY(0);
}
100% {
    -webkit-transform: scale(1) rotateY(180deg);
            transform: scale(1) rotateY(180deg);
}
}
@keyframes rotate-scale-up {
0% {
    -webkit-transform: scale(0.5) rotateY(0);
            transform: scale(0.5) rotateY(0);
}
100% {
    -webkit-transform: scale(1) rotateY(180deg);
            transform: scale(1) rotateY(180deg);
}
}


/* 引用自 animate.css */
.word-div{
    animation-name: flipInX;
    animation-duration: 1.2s;
}
#control-panel{
    animation-name: slideInLeft;
    animation-duration: 0.9s;
}
#header{
    animation-name: fadeInDown;
    animation-duration: 0.9s;
}
#score > div{
    animation-name: zoomIn;
    animation-duration: 0.9s;
}

/* -----------------適應性版面調整(576px寬度以上裝置)----------------- */
/* bootstrap sm 以上 */
@media (min-width: 576px){
    .puzzle-table .word-div .word{
        font-size: 1.35em;
    }
}

/* bootstrap md 以上 */
@media (min-width: 768px){
    .puzzle-table .word-div .word{
        font-size: 1.75em;
    }
    .puzzle-table{
        min-width: 500px;
    }
    #logo{
        width: 80px;
        height: 80px;
    }
    .title-image{
        height: 80px;
        width: 420px;
    }
    #author-div{
        max-width: 500px;
    }
}

/* bootstrap lg 以上 */
@media (min-width: 960px){
    .puzzle-table .word-div .word{
        font-size: 2.15em;
    }
    .puzzle-table{
        min-width: 600px;
    }
    #author-div{
        max-width: 600px;
    }
}
/* bootstrap xl 以上 */
@media (min-width: 1200px){
    .puzzle-table .word-div .word{
        font-size: 2.55em;
    }
}