diff --git a/resources/css/stylesheet.css b/resources/css/stylesheet.css index e221d58..082e78d 100644 --- a/resources/css/stylesheet.css +++ b/resources/css/stylesheet.css @@ -28,6 +28,18 @@ for exercises with radicals: (place at end of section) font-style:normal; } +.fa-hover { + color: #fff; + line-height: 32px; + font-size: 18px; + outline:none; +} +.fa-hover:hover, .fa-hover:focus { + opacity: 0.7; + outline: none; + cursor: pointer; +} + /* animations */ @-webkit-keyframes fa-spin { 0% { @@ -2931,13 +2943,23 @@ input:checked + .genki_pseudo_checkbox:after { font-size:14px; } opacity:0; } -#quick-jisho-title { - color:#fff; +.quick-jisho-header { background:#17A; - font-size:18px; - text-align:center; - line-height:32px; - margin:-1px -1px 0 -1px; + display: flex; + align-items: center; + padding-left: 1em; + padding-right: 1em; +} + +#quick-jisho-title { + flex: 1; + display: flex; + justify-content: center; + color: #fff; + line-height: 32px; + font-size: 18px; + margin: -1px -1px 0 -1px; + margin-left: 18px; } .quick-jisho-row { padding:3px; } diff --git a/resources/css/stylesheet.min.css b/resources/css/stylesheet.min.css index 7e8f756..8f10ba4 100644 --- a/resources/css/stylesheet.min.css +++ b/resources/css/stylesheet.min.css @@ -1 +1 @@ -@font-face{font-family:FontAwesomeWeb;src:url(../fonts/fontawesome-webfont.eot?v=4.7.0);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(../fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(../fonts/fontawesome-webfont.woff?v=4.7.0) format('woff'),url(../fonts/fontawesome-webfont.ttf?v=4.7.0) format('truetype'),url(../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesomeWeb,FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rad{font-family:"Japanese Radicals";font-style:normal}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}::selection{color:#fff;background-color:#17a}::-moz-selection{color:#fff;background-color:#17a}body{color:#333;background:#fff;font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;padding:0;margin:0;display:flex;min-height:100vh;flex-direction:column}p{font-size:14px}ul{padding-left:40px}hr{border:none;border-bottom:1px solid #999}a{color:#039;text-decoration:none;outline:0}a:focus,a:hover{text-decoration:underline}img{max-width:100%}a:focus img{outline:1px solid #17a}code{color:#00f;background:#eee;border:1px solid #ccc;padding:3px}.nopad{padding:0!important}.button,a.button{color:#fff;background:#17a;font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;text-decoration:none;border:none;font-weight:700;display:inline-block;padding:6px 12px;margin:3px;cursor:pointer;outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.button:hover,a.button:hover{background:#069}.button:focus,a.button:focus{background:#058}.button .fa{font-size:18px;vertical-align:middle;margin-right:6px}.button.icon-only{height:25px;width:25px;padding:0;margin:3px}.button.icon-only i{margin:0}.button.play-button{height:25px;width:25px;padding:0;margin:0;border-radius:100%}.button.play-button i{font-size:14px;margin-right:-2px}input[type=number],input[type=text],select,textarea{font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;background:#fff;border:1px solid #ccc;padding:6px;outline:0}select{cursor:pointer}input[type=number]:disabled,input[type=text]:disabled,select:disabled,textarea:disabled{color:#333}input[type=number]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:#bbb}input[type=number]:hover,input[type=text]:hover,select:hover,textarea:hover{border-color:#999}input[type=number]:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#17a}.center{text-align:center}.right{text-align:right}.left{text-align:left}.ul{text-decoration:underline}.ul-double,.ul-single{text-decoration:none;position:relative}.ul-double:after,.ul-double:before,.ul-single:after{content:"";position:absolute;left:0;right:0;bottom:2px;border-bottom:1px solid #333}.ul-double:before{bottom:0}.inline{display:inline-block}.t-valign-top{vertical-align:top}.t-red{color:red}.t-green{color:#080}.t-blue{color:#09f}.t-orange{color:#17a}.t-bold{font-weight:700}.nomargin{margin:0!important}.clearfix{clear:both}.clear:after{content:"";display:table;clear:both}.vertical-text{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-align:left!important;max-height:300px}.spoiler{color:#444;background:#444;display:inline-block;padding:0 3px}.spoiler:hover{color:#fff}.problem-hint .spoiler{margin-top:2px}.table{width:100%;border-collapse:collapse}.table td{background:#fff;border:1px solid #ddd;padding:3px}.table-head{font-size:16px;font-weight:700}.sub-table{width:100%;border-collapse:collapse}.sub-table td{border-left:0;border-top:0}.example-row td{vertical-align:top}.example-row div{margin:10px 0}.define{font-size:11px;font-style:normal;font-weight:700;vertical-align:super}.lesson-num{font-size:12px;font-style:normal;vertical-align:top}.lesson-image img{max-width:100%}header{color:#fff;background:url(../images/tobira.png) no-repeat 10px 50% #17a;padding:15px 15px 15px 140px;position:relative;overflow:hidden}#home-link:before{content:"";position:absolute;height:100px;width:110px;left:14px;top:50%;margin-top:-50px}.edition-icon:after{font-size:14px;position:absolute;margin-top:40px;margin-left:-85px}.edition-icon.second-ed:after{content:"\A 2nd Edition"}.edition-icon.third-ed:after{content:"\A 3rd Edition"}header h1{font-size:32px}header h1 a{color:#fff}h2{margin:30px 0 0 0}a#fork-me{color:#fff;background:#333;font-size:16px;font-weight:700;text-align:center;text-transform:uppercase;text-decoration:none;line-height:30px;height:30px;width:200px;transform:rotate(45deg);position:absolute;right:-55px;top:30px;transition-property:color,background;transition-duration:.3s}a#fork-me:focus,a#fork-me:hover{color:#333;background:#fff}#announcement{color:#fff;background:#17a;border:1px solid #047;border-right:none;border-left:none;height:110px}#announce-inner{max-width:1000px;margin:0 auto;padding:0 30px}#announcement .fa{font-size:24px;vertical-align:middle}#announcement a{color:#ff0;font-weight:700}#announcement h3{font-size:18px;margin:10px 0 0 0}#announcement .announcement{font-size:16px;height:75px;box-sizing:border-box;padding:3px 6px;overflow-y:auto}#announcement .announcement.announce-hidden{display:none}#announcement .announcement .date{color:#fff;font-size:13px;font-weight:400;background:#069;border:1px solid #058;border-radius:3px;padding:1px;margin-right:5px}#announce-list{position:relative;margin:0 20px}#announcement .announce-controls{background:rgba(0,0,0,.3);text-align:center;position:absolute;top:50%;margin:-15px 0 0 0;height:30px;width:20px;padding:0;opacity:.5}#announcement .announce-controls i.fa{font-size:18px;line-height:26px;margin:0}#announcement .announce-controls:focus,#announcement .announce-controls:hover{opacity:1}#announcement .announce-controls.button-left{left:-20px}#announcement .announce-controls.button-right{right:-20px}#content{flex:1 0 auto}.content-block{max-width:1000px;margin:0 auto;padding:30px}a.anchor{color:#666;font-size:16px;font-weight:400;text-decoration:none;text-align:center;vertical-align:middle;display:inline-block;width:25px;margin:0 0 0 -25px}.anchor-icon{display:inline-block;transform:rotate(-45deg);visibility:hidden}.anchor:focus .anchor-icon,h1:hover .anchor-icon,h2:hover .anchor-icon,h3:hover .anchor-icon,h4:hover .anchor-icon,h5:hover .anchor-icon,h6:hover .anchor-icon{visibility:visible}#page-links,#related-projects{margin:15px 0 0 0}#link-list{font-size:0}#link-list a,#link-list span{font-size:14px}#link-list a{color:#fff;text-shadow:1px 1px 0 rgba(0,0,0,.3);font-weight:700;text-decoration:none;display:inline-block;padding:3px 6px;margin:10px 10px 0 0}#link-home.button{border-bottom:2px solid #058}#link-grammar{background-color:#f93;border-bottom:2px solid #d71}#link-anki{background-color:#05c;border-bottom:2px solid #03a}#link-help{background-color:#39c;border-bottom:2px solid #17a}#link-report{background-color:#f66;border-bottom:2px solid #d44}#link-download{background-color:#9c6;border-bottom:2px solid #7a4}#link-donate{background-color:#c6c;border-bottom:2px solid #a4a}#link-github{background-color:#96f;border-bottom:2px solid #74d}#link-settings{background-color:#666;border-bottom:2px solid #444}#link-grammar:hover{background-color:#e82}#link-anki:hover{background-color:#04b}#link-help:hover{background-color:#28b}#link-report:hover{background-color:#e55}#link-download:hover{background-color:#8b5}#link-donate:hover{background-color:#b5b}#link-github:hover{background-color:#85e}#link-settings:hover{background-color:#555}#link-grammar:active,#link-grammar:focus{background-color:#d71}#link-anki:active,#link-anki:focus{background-color:#03a}#link-help:active,#link-help:focus{background-color:#17a}#link-report:active,#link-report:focus{background-color:#d44}#link-download:active,#link-download:focus{background-color:#7a4}#link-donate:active,#link-donate:focus{background-color:#a4a}#link-github:active,#link-github:focus{background-color:#74d}#link-settings:active,#link-settings:focus{background-color:#444}#link-list i{font-size:16px;vertical-align:middle;margin-right:6px}#link-github i,#link-help i{font-size:18px}#exercise-list #page-links{margin:0;padding:0}#exercise-list .indent-block{margin-left:10px}.donate-box{color:#333;background:#fcf;border:1px solid #c6c;position:relative;padding:5px;padding-left:35px;margin:5px auto;text-align:left;width:80%;max-width:600px}.donate-icon{color:#fcf;background:#c6c;font-size:20px;width:30px;text-align:center;position:absolute;top:0;left:0;bottom:0;display:flex;justify-content:center;align-items:center}.donate-text a{color:#039;font-weight:700}.donate-text a i{font-size:12px;font-weight:400;vertical-align:super;margin-left:-3px}.info-box{color:#333;background:#eff;border:1px solid #17a;position:relative;padding:5px;padding-left:35px;margin:5px auto;text-align:left;width:80%;max-width:600px}.info-icon{color:#eff;background:#17a;font-size:20px;width:30px;text-align:center;position:absolute;top:0;left:0;bottom:0;display:flex;justify-content:center;align-items:center}#project-list img{height:120px;margin:10px 4px 0 0}#related img{height:120px;margin:5px}#related h3{margin-top:20px;margin-bottom:5px}#quick-actions>div{margin:0}#quick-actions h2{font-size:20px;margin-top:15px}#quick-search{width:100%;box-sizing:border-box;margin-top:1em}#quick-search-results{border:1px solid #ccc}#quick-search-results:empty{border-color:transparent}#quick-search-results:not(:empty){height:300px;padding:3px;overflow:auto}#quick-search-results li{white-space:nowrap;overflow:hidden}#quick-nav-list li{position:relative;list-style-type:none}#quick-nav-list li:before{content:".";font-size:0;display:block;height:6px;width:6px;background:#17a;border-radius:100%;position:absolute;top:10px;left:-16px}#quick-nav-list li ul li:before{background:0 0;border:1px solid #17a;height:4px;width:4px}#quick-nav-list li.noBullet:before{display:none}#quick-nav-list a.sub-section-button{color:#fff;background:#17a;font-size:11px;text-align:center;text-decoration:none;display:inline-block;height:18px;width:18px;line-height:20px;padding:0;border-radius:100%;position:absolute;top:4px;left:-22px}#quick-nav-list a.sub-section-button:focus,#quick-nav-list a.sub-section-button:hover{background-color:#058}a.sub-section-button[data-open=true]:after{content:"\f078"}a.sub-section-button[data-open=false]:after{content:"\f054";letter-spacing:-2px}a.jump-arrow{color:#17a;text-decoration:none;float:right;margin:6px 3px 0 0}a.jump-arrow:focus,a.jump-arrow:hover{color:#047}#quick-search-results li[data-lesson]:before{content:attr(data-lesson);color:#fff;font-size:11px;background:#17a;border:1px solid #069;border-radius:3px;padding:0 2px;margin-right:3px}#exercise>*,.loading>*{visibility:hidden}#exercise:after,#exercise:before,.loading:after,.loading:before{color:#17a;position:absolute;top:50%}#exercise:before,.loading:before{content:"Now Loading...";font-size:16px;font-weight:700;font-style:italic;text-align:center;left:0;right:0;margin-top:40px}#exercise:after,.loading:after{content:"\f1ce";font-size:64px;font-family:FontAwesomeWeb,FontAwesome;left:50%;margin-top:-32px;margin-left:-32px;-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}#exercise.content-loaded>*{visibility:visible}#exercise.content-loaded:after,#exercise.content-loaded:before{content:"";display:none}.lesson-title{color:#17a;font-size:20px;border-bottom:2px solid #17a;padding-bottom:3px}.sub-lesson-title,.workbook-title{font-size:16px;margin:0 0 0 20px}.normal-block{font-size:14px}.title{color:#17a;font-size:28px;margin:20px 0}.title-desc{font-size:16px}.title-med{font-size:18px;margin:10px 0}.section-title{color:#17a;font-size:24px;border-bottom:2px solid #17a;margin:0;padding-bottom:6px}.sub-title{font-size:18px;margin:16px 0}#exercise-title{color:#17a;font-size:24px;margin:0 0 25px 0}#exercise-title:after,.title[data-page]:after{content:attr(data-page);color:#666;font-size:12px;font-style:italic;font-weight:400;display:block}.lesson-summary{font-size:13px;margin:10px;padding:10px;background:#eee;border:1px dashed #ccc}.lesson-summary .inline-columns>div{margin-right:50px;margin-bottom:0;vertical-align:top}.lesson-summary:before{content:"In this lesson, we will learn how to...";font-weight:700;color:#17a}.lesson-point{margin-left:13px}.lesson-point:before{content:"• ";color:#17a}footer{color:#fff;background:#333;text-align:center;padding:15px}#light-switch-label,footer a{color:#ccc}#light-switch-label:hover,footer a:hover{color:#fff}footer ul{list-style-type:none;margin:0;padding:0}footer li{float:left}footer li:before{content:"\f111";font-family:FontAwesomeWeb,FontAwesome;font-size:6px;margin:0 5px;vertical-align:middle}footer li:first-child:before{display:none}.footer-left{float:left}.footer-right{float:right}#drop-list,#question-list{float:left}#answer-list{float:right}.quiz-item{background:#eee;border:1px solid #ccc;margin:3px;padding:3px;min-width:25px;white-space:nowrap}#answer-list .quiz-item,.quiz-item.gu-mirror{cursor:move}.drawing-quiz .quiz-item{font-size:80px;height:110px;width:110px;line-height:110px;box-sizing:border-box;margin:0 auto}.drawing-quiz .stroke-order-button{margin:0;padding:0;width:110px;height:25px}.drag-quiz .quiz-answer-zone:focus,.drag-quiz .quiz-item:focus,.kana-quiz .quiz-answer-zone:focus,.kana-quiz .quiz-item:focus{color:#17a;border-color:#17a;outline:0}.quiz-item.markedItem{border-color:#17a;outline:1px solid #17a!important;box-shadow:3px 3px 3px rgba(0,0,0,.25);position:relative}#quiz-info{color:#fff;background:#17a;font-weight:700;text-align:left;padding:15px 15px 15px 50px;margin:10px 0;position:relative;overflow-y:auto}#quiz-info:before{content:"\f05a";font-size:32px;font-family:FontAwesomeWeb,FontAwesome;position:absolute;top:50%;margin-top:-16px;left:12px}#quiz-info a{color:#ff0}#quiz-info table{width:100%;background:#069;border-collapse:collapse;font-weight:400}#quiz-info table td{padding:3px;border:1px solid #058}#change-exercise-type-container,#check-answers,#quiz-timer{margin-top:10px}#quiz-timer:before{content:"Time Elapsed";display:block}.quiz-answer-zone:empty{border:1px solid #ccc;margin:3px;padding:3px}.drag-quiz .quiz-answer-zone:empty{min-width:100px}.drag-quiz .quiz-answer-zone,.drag-quiz .quiz-item{height:28px;line-height:20px;box-sizing:border-box}.vocab-horizontal #drop-list{display:none}.vocab-horizontal #answer-list,.vocab-horizontal #question-list{float:none}.vocab-horizontal #question-list{margin-bottom:30px}.vocab-horizontal #answer-list .quiz-item{display:inline-block}.vocab-horizontal .quiz-item-group{display:inline-block;vertical-align:top;width:20%}.drag-quiz .vocab-horizontal .quiz-answer-zone,.vocab-horizontal #answer-list .quiz-item{min-width:100px}.vocab-horizontal #answer-list .quiz-item{text-align:center;vertical-align:top}.vocab-horizontal .quiz-answer-zone .quiz-item{margin:0}.vocab-horizontal .quiz-answer-zone{margin:3px}.kanji-readings.drag-quiz .vocab-horizontal .quiz-item-text{text-align:left;display:inline-block;margin:0 auto}.kanji-readings.drag-quiz .vocab-horizontal #question-list .quiz-answer-zone .quiz-item{font-size:13px;line-height:20px}.kanji-meanings.drag-quiz .vocab-horizontal #question-list .quiz-answer-zone .quiz-item{font-size:13px;height:28px;line-height:20px}.vocab-horizontal.helper-present #question-list .quiz-item{margin-bottom:18px}.kanji-meanings.drag-quiz #question-list .quiz-item,.kanji-meanings.drag-quiz .quiz-answer-zone,.kanji-readings.drag-quiz .quiz-answer-zone,.kanji-readings.drag-quiz .quiz-item{height:48px}.kanji-meanings.drag-quiz #question-list .quiz-item,.kanji-readings.drag-quiz #question-list .quiz-item{line-height:44px;font-size:26px;padding:3px 10px}#review-exercise{margin-top:10px}.quiz-over #review-button{display:none}.more-exercises{margin-top:10px}.more-exercises a.button{margin:3px 0}.more-exercises a:after,.more-exercises a:before{font-size:18px;font-family:FontAwesomeWeb,FontAwesome;font-weight:400;vertical-align:middle}.more-exercises a.prev-ex{float:left}.more-exercises a.prev-ex:before{content:"\f060";margin-right:10px}.more-exercises a.next-ex{float:right}.more-exercises a.next-ex:after{content:"\f061";margin-left:10px}#exercise-list,#toggle-exercises,#toggle-exercises:after,#toggle-exercises:before{transition-duration:.3s}#exercise-list{background:#eee;border-right:1px solid #ccc;position:fixed;top:0;left:-301px;bottom:0;width:300px;visibility:hidden;z-index:10}#random-exercise{height:32px;width:32px;text-align:center;position:absolute;top:0;left:0;margin:0;padding:0}#random-exercise i{line-height:32px;margin:0}.list-open+#exercise-list{left:0;visibility:visible}#toggle-exercises{background:#047;text-decoration:none;text-align:center;line-height:32px;height:32px;width:32px;position:fixed;top:0;left:0;z-index:11;cursor:pointer;transition-property:left}#toggle-exercises:hover{background:#058}#toggle-exercises:focus{background:#069}#toggle-exercises:after,#toggle-exercises:before{color:#fff;font-size:28px;font-family:FontAwesomeWeb,FontAwesome;position:absolute;left:0;right:0;transition-property:opacity}#toggle-exercises:after{content:"\f0c9"}#toggle-exercises:before{content:"\f00d";opacity:0}#toggle-exercises.list-open{left:268px}#toggle-exercises.list-open:after{opacity:0}#toggle-exercises.list-open:before{opacity:1}#lessons-list{overflow-y:auto;overflow-x:hidden;height:95%;height:calc(100% - 32px)}#exercise-list .main-title{color:#fff;background:#17a;font-size:18px;text-align:center;line-height:32px;margin:0}.menu-item-list{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative}.result--perfect{color:#f90;font-weight:600}.result--good{color:#080;font-weight:600}.result--average{color:#aa0;font-weight:600}.result--low{color:red;font-weight:600}.exercise-results{min-width:65px}.exercise-results .fa{font-size:16px}#exercise-list .lesson-title{color:#333;font-size:15px;border-bottom:1px solid #ccc;margin:0;padding:3px;cursor:pointer;outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#exercise-list .lesson-title:focus,#exercise-list .lesson-title:hover{color:#17a}#exercise-list .lesson-title:before{content:"\f054";font-family:FontAwesomeWeb,FontAwesome;margin-right:3px}#exercise-list .lesson-title.lesson-open:before{content:"\f078"}#exercise-list .sub-lesson-title{font-size:14px;margin:12px 0 0 12px}#exercise-list ul{border-bottom:1px solid #ccc;margin:0;padding:3px 3px 12px 3px;list-style-type:none;display:none}#exercise-list .lesson-title.lesson-open+ul{display:block}#exercise-list li a{white-space:nowrap;text-decoration:none;text-overflow:ellipsis;overflow:hidden;display:block}#exercise-list li a.active-lesson{color:#17a;font-weight:700}#exercise-list li a:before{content:"\f054";color:#333;font-family:FontAwesomeWeb,FontAwesome;margin-right:3px}#exercise-list li a:focus,#exercise-list li a:hover{color:#17a}#exercise-list li a:focus:before,#exercise-list li a:hover:before{color:#17a}#exercise-list #page-links li:first-child a:before{content:"\f015"}#exercise-list #page-links li a[href^="../../../help"]:before{content:"\f059"}#exercise-list #page-links li a[href^="../../../report"]:before{content:"\f188"}#exercise-list #page-links li a[href^="../../../download"]:before{content:"\f019"}#exercise-list #page-links li a[href^="../../../donate"]:before{content:"\f004"}#exercise-list li a[data-page]:focus:after,#exercise-list li a[data-page]:hover:after{content:attr(data-page);color:#fff;font-size:12px;font-weight:400;line-height:12px;background:#17a;border:1px solid #069;border-radius:3px;position:absolute;right:3px;padding:3px}.quiz-answer-zone:empty:after{content:attr(data-text);color:transparent}.answer-correct,.quiz-over .insert-trigger{pointer-events:none}.quiz-over .problem-hint .spoiler,.quiz-over.drag-quiz .answer-correct,.review-mode .answer-correct{pointer-events:auto}.answer-correct .quiz-item:before,.drag-quiz .answer-correct .quiz-item-text:before{content:"\f005\A0";font-family:FontAwesomeWeb,FontAwesome;color:#17a}.drag-quiz .answer-correct .quiz-item:before{content:""}.quiz-over [data-mistakes]{position:relative}.quiz-over [data-mistakes] .quiz-item{border-color:red}.quiz-over [data-mistakes]:after{color:red;content:"\f060\A0 wrong " attr(data-mistakes) "x";font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif,FontAwesomeWeb,FontAwesome;display:block;position:absolute;top:3px;right:-85px}.quiz-over .vocab-horizontal [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:10px;font-weight:700;right:3px;top:auto;bottom:-2px}.quiz-over .vocab-horizontal [data-mistakes="0"]:after{content:""}#wrongAnswer{position:relative}#wrongAnswer:before{content:"\f00d\A0 wrong";font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif,FontAwesomeWeb,FontAwesome;font-size:14px;color:red;position:absolute;right:-70px;pointer-events:none}.vocab-horizontal #wrongAnswer:before{right:auto;left:3px}.kana-quiz #wrongAnswer:before{content:"\f00d";right:-6px;top:-10px}.quiz-over [data-mistakes="0"] .quiz-item{border-color:#ccc}.quiz-over [data-mistakes="0"]:after{content:""}#question-list .quiz-item{text-align:center}.helper-present #question-list .quiz-item{position:relative}.helper-present #drop-list .quiz-answer-zone.helper-answer,.helper-present #question-list .quiz-item[data-helper]{margin-bottom:18px}.helper-present .hidden-text{visibility:hidden;display:block;margin-top:-20px}.helper-hidden .hidden-text,.stroke-order-hidden .kanji-stroke-order{display:none}.kana-quiz #answer-list,.kana-quiz #question-list{float:none}.kana-quiz #question-list{margin-bottom:30px}.kana-quiz .quiz-answer-zone,.kana-quiz .quiz-item{text-align:center;display:inline-block}.kana-quiz .quiz-answer-zone:empty,.kana-quiz .quiz-item{height:30px;width:35px;line-height:22px;box-sizing:border-box}.kana-quiz .quiz-column{margin:0 5px;float:left}.kana-quiz .quiz-column:first-child{margin-left:0}.kana-quiz .quiz-column:last-child{margin-right:0}.kana-quiz .answer-correct .quiz-item{position:relative}.kana-quiz .answer-correct .quiz-item:before{position:absolute;right:-8px;top:-5px}.kana-quiz.quiz-over [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:8px;line-height:8px;font-weight:700;right:auto;top:auto;bottom:3px;right:4px}.kana-quiz.quiz-over [data-mistakes="0"]:after{display:none}.verb-quiz #answer-list{float:none;clear:both}.verb-quiz #question-list{width:20%}.verb-quiz #drop-list{width:80%}.verb-quiz #drop-list,.verb-quiz #question-list{margin-bottom:30px}.verb-quiz #answer-list .quiz-item{display:inline-block}.quiz-column-title{background:#eee;border:1px solid #ccc;justify-content:center;text-align:center;margin:2px 3px;padding:3px}.quiz-column-title:last-child{margin-right:0}#question-list .quiz-column-title:after{content:"\A0";display:block}.verb-quiz #question-list>div{margin:3px 3px 3px 0}.verb-quiz #question-list .quiz-column-title{margin-top:2px}.verb-quiz #drop-list>div,.verb-quiz #drop-list>div>div{white-space:nowrap;display:flex;flex:1}.verb-quiz .quiz-answer-zone .quiz-item{margin:0;padding:0;border:none;background:0 0}.verb-quiz .quiz-answer-zone{margin:1px 3px 2px 3px!important}.verb-quiz .quiz-answer-zone:last-child{margin-right:0!important}.verb-quiz .quiz-answer-zone:not(:empty){background:#eee;border:1px solid #ccc;padding:3px;margin:3px}.verb-quiz.quiz-over [data-mistakes]{border-color:red}.verb-quiz.quiz-over [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:10px;line-height:8px;font-weight:700;right:auto;top:auto;bottom:3px;right:4px}.verb-quiz.quiz-over [data-mistakes="0"]{border-color:#ccc}.verb-quiz.quiz-over [data-mistakes="0"]:after{display:none}.drawing-quiz #question-list,.writing-quiz #question-list{float:none}.drawing-quiz .quiz-answer-row,.writing-quiz .quiz-answer-row{white-space:nowrap;display:flex;flex:1;margin:0 3px}.writing-quiz .quiz-answer-row.furi-row{margin-bottom:12px}.writing-quiz .quiz-item{font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vocab-horizontal .quiz-item-text,.writing-quiz .quiz-item-text{overflow-x:auto}.vocab-horizontal .quiz-item-text::-webkit-scrollbar,.writing-quiz .quiz-item-text::-webkit-scrollbar{width:6px;height:6px}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb{background-color:#17a;border:none}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb:hover,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb:hover{background-color:#069}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb:active,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb:active{background-color:#058}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-track,.writing-quiz .quiz-item-text::-webkit-scrollbar-track{background:rgba(0,0,0,.15)}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-button:single-button,.writing-quiz .quiz-item-text::-webkit-scrollbar-button:single-button{background:0 0;height:0;width:0}.writing-quiz .helper-present #question-list .quiz-item[data-helper]{margin-bottom:3px}.writing-quiz .helper-hidden .quiz-item[data-helper]:before{display:none}.writing-quiz .helper-hidden .quiz-answer-row.furi-row{margin-bottom:0}.drawing-quiz .quiz-item,.drawing-zone,.writing-quiz .quiz-item,.writing-zone{text-align:center}.drawing-zone,.writing-zone{margin:3px;min-width:25px}input.writing-zone-input{font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;text-align:center;background:#fff;border:1px solid #ccc;box-sizing:border-box;width:100%;padding:3px 0;outline:0}input.writing-zone-input:disabled{color:#333}input.writing-zone-input::placeholder{color:#bbb}input.writing-zone-input:hover{border-color:#999}input.writing-zone-input:focus{border-color:#17a}.even-width .writing-zone,.even-width .writing-zone-input,.max-width .writing-zone,.max-width .writing-zone-input{text-align:left;width:100%!important}.fill-quiz .even-width .writing-zone-input{padding:3px}.max-width .writing-zone,.max-width .writing-zone-input{text-align:center}.large-width .writing-zone{width:90%!important}.large-width .writing-zone-input{width:100%!important}.fill-quiz .set-problem-width .block,.fill-quiz .set-problem-width .problem{width:150px}.fill-quiz .set-problem-width-med .block,.fill-quiz .set-problem-width-med .problem{width:200px}.fill-quiz .set-problem-width-large .block,.fill-quiz .set-problem-width-large .problem{width:300px}.fill-quiz .set-problem-width .block,.fill-quiz .set-problem-width .problem,.fill-quiz .set-problem-width-large .block,.fill-quiz .set-problem-width-large .problem,.fill-quiz .set-problem-width-med .block,.fill-quiz .set-problem-width-med .problem{max-width:100%}.writing-quiz.quiz-over .writing-zone-input{pointer-events:none}.writing-quiz.quiz-over [data-mistakes]{border-color:red}.writing-quiz.quiz-over [data-mistakes="0"]{border-color:#ccc}.writing-zone.answer-correct{position:relative}.writing-zone.answer-correct:after{content:"\f005";font-family:FontAwesomeWeb,FontAwesome;color:#17a;position:absolute;right:-4px;top:-4px}.helper-present #question-list .quiz-item:before,.writing-quiz .quiz-item:before{content:attr(data-helper);font-size:11px;line-height:15px;color:#666;background:#ccc;position:absolute;left:-1px;right:-1px;bottom:-15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.writing-quiz .no-helper [data-helper]:before{display:none}.writing-quiz.quiz-over .no-helper [data-helper]:before{display:block}.multi-quiz #question-list{float:none}.quiz-multi-row{margin:10px 0}.question-block{background:#eee;border:1px solid #ccc;margin:30px 0;position:relative}.question-block:after{content:attr(data-qid) ".";position:absolute;top:-20px;left:0}.quiz-multi-question{font-size:14px;text-align:center;border-bottom:1px solid #ccc;padding:5px}.text-block.multi-quiz-image{margin:10px 0}.big-kanji{font-size:100px}.multi-vocab{font-size:32px;min-height:64px}.multi-vocab rt{font-size:16px;margin-top:-8px}.multi-vocab hr{margin:10px 0}.multi-vocab-sentence{font-size:24px}.vocab-spoiler-toggle{display:none}.spoiler-mode .vocab-spoiler-toggle{display:block;margin:10px auto 0 auto}.spoiler-mode .vocab-spoiler{position:relative}.spoiler-mode .vocab-spoiler:after{content:"";background:#ccc;position:absolute;top:0;left:0;right:0;bottom:0}.quiz-over .vocab-spoiler-toggle,.quiz-over .vocab-spoiler:after,.spoiler-off.vocab-spoiler:after{display:none}.kana-font{font-family:NotoSansJP,SawarabiGothic,"MS Gothic","Yu Gothic",Meiryo}.drawing-quiz .quiz-item-text.kana-font{margin-top:-7px}.drawing-quiz .quiz-item{overflow:hidden}.kanji-container{display:inline-block}.kanji-canvas{background:#fff;border:1px solid #ccc;display:block;margin:0 auto;outline:0}.kanji-canvas:focus{border-color:#17a;border-color:rgba(17,119,170,.5)}.furigana,.inline-furi i{color:#777;font-size:11px;margin-top:-3px}ruby{text-align:center;display:inline-block;vertical-align:top}.helper-hidden ruby{display:inline;position:static;vertical-align:baseline}ruby rt{color:#777;font-size:11px;display:block;text-align:center;margin-top:-1px;padding:0 2px}#index-list li a ruby rt,#quick-search-results ruby rt,.main-color ruby rt,.section-title ruby rt,.workbook-title ruby rt,a ruby rt{color:#367}.helper-hidden .multi-vocab ruby{display:inline-block;vertical-align:top}.helper-hidden .multi-vocab rt{display:block;visibility:hidden}.helper-hidden .multi-vocab ruby:hover rt{visibility:visible}.slim-ruby ruby{width:10px}.ruby-always-visible ruby{display:inline-block!important;position:relative!important}.ruby-always-visible rt{display:block!important}#quiz-info .furigana,#quiz-info .inline-furi i,#quiz-info ruby rt{color:#ccc;color:rgba(255,255,255,.6)}.helper-hidden .furigana,.helper-hidden .inline-furi i,.helper-hidden ruby rt{display:none}.inline-furi{position:relative;display:inline-block;margin-bottom:15px}.helper-hidden .inline-furi{margin-bottom:0}.inline-furi .furigana,.inline-furi i{text-align:left;font-style:normal;white-space:nowrap;position:absolute;bottom:-15px;left:0}.quiz-multi-question .lesson-image img{border:1px solid #ccc;margin:3px}.quiz-multi-answer{color:#333;font-size:14px;text-rendering:auto;background:#fff;border:1px solid #ccc;padding:6px;display:block;width:50%;margin:0 auto;cursor:pointer;outline:0;position:relative;box-sizing:border-box;align-items:flex-start;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.quiz-answer-inner-text,.quiz-question-inner-text{display:inline-block;text-align:left}.text-selection-mode .quiz-multi-answer{cursor:text;outline:1px dashed #17a;-webkit-touch-callout:auto;-webkit-user-select:auto;-khtml-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.quiz-multi-answer:before{content:attr(data-option) ":";font-size:18px;font-weight:400;font-family:Arial;position:absolute;left:-25px;top:50%;margin-top:-10px}.quiz-multi-answer:focus,.quiz-multi-answer:hover{border-color:#17a}.quiz-multi-answer:focus:before,.quiz-multi-answer:hover:before{color:#17a}.multi-quiz.quiz-over .quiz-multi-answer{pointer-events:none}.multi-quiz.quiz-over .text-selection-mode .quiz-multi-answer{pointer-events:auto}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer,.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer,.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]{border-width:3px}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer{border-color:#080}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer:before,.multi-quiz.quiz-over .quiz-multi-answer[data-answer=true]:before{color:#080}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer{border-color:red}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer:before{color:red}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]{border-color:#09f}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]:before{color:#09f}.kanji-canvas[data-answer=true]{border-color:#080}.kanji-canvas[data-answer=false]{border-color:red}.quiz-over .kanji-canvas{pointer-events:none}.quiz-over .kanji-canvas-actions,.stroke-quiz.quiz-over .next-question{display:none}.stroke-order-container{width:100%;overflow-y:hidden;overflow-x:scroll}.stroke-order-container img{max-width:none}#exercise .text-passage{font-size:16px;text-align:left;width:80%;overflow:auto;padding:25px;margin:15px auto}.quiz-multi-answer.next-question:before{content:"\f061";font-family:FontAwesomeWeb,FontAwesome;left:auto;right:6px;margin-top:-9px}.hidden-answer{display:none}#quiz-progress{border:1px solid #17a;height:25px;position:relative;overflow:hidden}#quiz-progress-bar{background:#17a;font-weight:700;height:25px;transition:.3s}#quiz-progress-text{color:#000;text-align:center;position:absolute;top:0;left:0;right:0;bottom:0;line-height:26px}.text-block{font-size:14px;background:#eee;border:1px solid #ccc;margin:30px auto;padding:15px;overflow-x:auto}.text-block .sub-section{background-color:#fff;border:1px solid #ddd;padding:6px}.text-block .sub-section .sub-section{background-color:rgba(0,0,0,.05);border-color:rgba(0,0,0,.08)}.text-block p{margin:0 0 25px 0}.audio-block{margin:25px 0 25px 0}.fill-quiz .inner-problem{display:inline-block;max-width:97%}.fill-quiz .big-margin,.fill-quiz .example-problem,.fill-quiz .problem{margin-bottom:40px}.fill-quiz .small-margin .block,.fill-quiz .small-margin .problem{margin-bottom:25px}.fill-quiz .no-margin .block,.fill-quiz .no-margin .problem{margin-bottom:0}.fill-quiz .inline-problem .block,.fill-quiz .inline-problem .problem{vertical-align:top;display:inline-block;margin-right:25px}.fill-quiz .inline-problem.large-space .block,.fill-quiz .inline-problem.large-space .problem{margin-right:50px}.fill-quiz .image-margin img,.margin{margin:3px}.fill-quiz span.problem{display:inline-block;margin:0}.fill-quiz .alt-phrase{color:#09f;font-weight:700}.fill-quiz .alt-phrase-sep{color:#06c}.big-label,.label,.med-label,.sm-label{display:inline-block;width:120px;max-width:100%}.label[title]:after{content:attr(title);font-size:13px;font-weight:400;display:block}.sm-label{width:80px}.med-label{width:200px}.big-label{width:300px}.image-list>span{position:relative;display:inline-block;margin:0 25px 25px 0;vertical-align:top}.image-list>span i{color:#333;font-size:13px;font-weight:700;font-style:normal;position:absolute;top:2px;left:4px;z-index:1}.columns-2>div{width:50%;margin:0 0 25px 0;float:left}.valign-top.inline-columns>div{vertical-align:top}.inline-columns>div{display:inline-block;margin:0 10px 30px 0}.example-problem.inline-columns>div,.problem.inline-columns>div{margin-bottom:40px}.example-problem.inline-columns,.problem.inline-columns{position:relative;padding-left:30px;margin:0}.example-problem.inline-columns{padding-left:62px}.example-problem.inline-columns:before,.problem.inline-columns:before{position:absolute;left:0}.indent-block{margin-left:20px}.section-desc,.sectionDesc3rd{font-weight:700;margin:20px 0}.section-number{font-weight:400;text-align:center;border:1px solid #333;border-radius:100%;display:inline-block;height:22px;width:22px;line-height:21px;box-sizing:border-box;vertical-align:middle;cursor:default}.sectionNumber3rd{font-size:12px;font-weight:700;text-align:center;background-color:#ccc;border:1px solid #999;border-radius:100%;display:inline-block;height:22px;width:22px;line-height:21px;box-sizing:border-box;vertical-align:middle;letter-spacing:-2px;padding-right:2px;cursor:default}.sectionNumber3rd.fa{letter-spacing:-4px}.sectionDesc3rd{font-size:15px;padding-left:28px}.sectionDesc3rd .sectionNumber3rd{margin:0 6px 0 -28px}.yomikata{margin-right:5px}.section-number,.sectionNumber3rd,.yomikata{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.count-problems{counter-reset:problems}.count-problems .problem:before{counter-increment:problems;content:counter(problems) ".";margin-right:6px;vertical-align:top}.example-problem:before{content:"例";color:#17a;font-weight:700;border:1px solid #17a;border-radius:5px;padding:2px;font-size:16px;line-height:16px;display:inline-block;margin-right:6px;vertical-align:top}.count-problems.count-alpha .problem:before{content:counter(problems,lower-alpha) "."}.count-problems td.problem{margin:0}.count-problems td.problem:before{float:left;margin-left:5px}.fill-quiz .writing-zone{background:0 0;display:inline-block;vertical-align:top;margin:0 1px;min-width:0}.fill-quiz .valign-off .writing-zone{vertical-align:0}.fill-quiz .valign-top .writing-zone,.valign-top .button.play-button{vertical-align:top}.fill-quiz .pad-zones .writing-zone{vertical-align:top;margin-bottom:25px}.fill-quiz .big-margin.pad-zones .writing-zone{margin-bottom:40px}.fill-quiz .writing-zone-input{font-size:14px;background:0 0;border:none;border-bottom:2px solid #999;width:auto;padding:0}.fill-quiz .writing-zone-input::placeholder{color:#999}.fill-quiz .writing-zone-input:hover{border-color:#666}.fill-quiz .writing-zone-input:focus{border-color:#17a}.problem-answer,.problem-hint{font-size:14px;display:block}.problem-answer{color:#080}.secondary-answer{font-size:11px;line-height:10px;display:block}.secondary-answer.furigana-only{color:#666}.img-problem{margin-top:5px}.img-problem>div{float:left}.img-problem>div:first-child{margin-right:10px}.vocab-key{padding-top:30px;margin:15px auto;position:relative;border:1px solid #999}.vocab-key>div{padding:6px;box-sizing:border-box;margin-bottom:0}.vocab-key>div:last-child{border-left:1px solid #999;margin-left:-1px}.vocab-key>div:first-child{border-right:1px solid #999;border-left:none}.vocab-key:before{content:"単 語";font-size:20px;text-align:center;border-bottom:1px solid #999;height:30px;line-height:34px;position:absolute;top:0;left:0;right:0}.show-bg .problem-answer,.show-bg .secondary-answer{background:#fff;background:rgba(255,255,255,.5);border:1px solid #ccc;border-color:rgba(204,204,204,.7);border-top:none}.show-bg .problem-answer{border-bottom:none;position:relative;z-index:1}.show-bg .secondary-answer{line-height:14px;margin:0 -1px 0 -1px}[data-mistakes="1"]+.problem-hint{display:none}.quiz-over .writing-zone:hover [data-mistakes="1"]+.problem-hint{display:block;height:0}.quiz-over .writing-zone:hover [data-mistakes="1"]+.problem-hint+.problem-answer{visibility:hidden}.fill-quiz.quiz-over .writing-zone-input{pointer-events:none}.fill-quiz.quiz-over [data-mistakes]{border-color:red}.fill-quiz.quiz-over [data-mistakes="0"]{border-color:#080}.fill-quiz .writing-zone.answer-correct:after{display:none}.fill-quiz td .writing-zone{margin-bottom:5px}.fill-quiz.quiz-over td .problem-answer{white-space:nowrap}#complete-banner{color:#fff;background:#17a;font-size:16px;font-weight:700;padding:5px}#result-list{background:#eee;border:1px solid #ccc}.result-row{border-bottom:1px solid #ccc;padding:3px}.result-row:last-child{border:none}.result-label{text-align:right;font-weight:700;display:inline-block;width:150px;margin-right:5px}#lessons li a{display:inline-block}#exercise-list li a,#lessons li a{padding:3px 0}#study-tool-ui{overflow:auto;max-height:300px}#study-tool-ui .button .fa{margin:0}#study-tool-editor ol>li:only-child>.button.row-remove,#study-tool-editor ul>li:only-child>.button.row-remove{display:none}#study-tool-ui li{margin:5px 0}#study-tool-ui .sentence-field{display:none;width:50%;margin-top:5px}.show-sentences #study-tool-ui .sentence-field{display:block}#study-tool-code textarea{height:100px;width:80%}#study-tool-settings{margin:5px 0;padding:0;font-size:0}#study-tool-settings li{list-style-type:none;display:inline-block;margin-right:10px;font-size:14px}#study-tool-settings .button{margin:0}#study-tool-settings label{cursor:pointer;vertical-align:top;font-weight:700}#downloadCode:before,#loadCode:before{font-family:FontAwesomeWeb,FontAwesome;font-weight:400;font-size:16px;margin-right:4px;vertical-align:middle}#downloadCode:before{content:"\f019"}#loadCode:before{content:"\f093"}#study-tool-file{visibility:hidden;position:absolute}#study-tool-ui .item-row.question-row{background:#eee;border:1px solid #ccc;padding:6px;margin:10px}.item-row.question-row{position:relative}.item-row.question-row>.button{position:absolute;top:0;right:0}.item-row.question-row>.button.row-add{right:40px}.item-row.question-row:only-child>.button.row-add{right:0}.item-row.question-row textarea{width:80%}.item-row.question-row input[type=text]{width:50%}#study-tool-ui.written-quiz{list-style-type:none;padding:0;overflow:visible}#study-tool-ui.written-quiz textarea{width:80%;height:150px}#genki-modal-overlay{background:#000 no-repeat center;position:fixed;top:0;left:0;right:0;bottom:0;opacity:.5;z-index:9999}#genki-modal-body{background:#fff;border:1px solid #17a;position:fixed;top:10%;left:25%;right:25%;bottom:40%;z-index:99999}#genki-modal-header{color:#fff;background:#17a;margin:0;padding:0 6px;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#genki-modal-content{font-size:15px;padding:6px;position:absolute;top:40px;left:0;right:0;bottom:40px;overflow-y:auto}#genki-modal-buttons{height:40px;line-height:40px;position:absolute;bottom:0;left:0;right:0}#genki-modal-buttons .button{line-height:normal;margin:0 6px 0 6px}#break-minutes{width:50px}#break-timer{font-weight:700;font-size:24px;position:absolute;top:25%;left:0;right:0}.taking-a-break #genki-modal-body,.taking-a-break #genki-modal-header,.taking-a-break #genki-modal-overlay{transition:1s}.taking-a-break #genki-modal-buttons button{display:none}.taking-a-break #genki-modal-header{text-align:center;background-color:rgba(17,119,170,.7)}.taking-a-break #genki-modal-body{background-color:rgba(255,255,255,.7);border-color:rgba(17,119,170,.7)}.taking-a-break #genki-modal-overlay{background-size:cover;opacity:1}#genki-site-settings{font-size:26px;display:inline-block;height:20px;line-height:20px;margin-left:15px}#genki-site-settings:focus{color:#17a}#genki-site-settings i{vertical-align:-5px}.genki-settings-list{list-style-type:none}.genki-settings-list li{margin:10px 0}.genki-settings-list .label{width:40%;margin-right:10px;text-align:right;font-weight:700;vertical-align:top;cursor:help}#page-custom-css{width:50%;height:100px}.button.opt-off{background-color:#999}.button.opt-off:hover{background-color:#888}.button.opt-off:focus{background-color:#777}#light-switch-container{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#light-switch-label{vertical-align:middle;cursor:pointer}#light-switch{background-color:rgba(0,0,0,.25);border:1px solid rgba(0,0,0,.25);vertical-align:middle;display:inline-block;position:relative;height:26px;width:60px;border-radius:20px;cursor:pointer;overflow:hidden}#light-switch:focus{border:1px solid #17a;outline:0}#light-switch>input{display:none}#light-switch>div{background-color:rgba(255,255,255,.5);position:absolute;top:3px;left:3px;height:20px;width:20px;border-radius:20px;transition:.4s;font-size:13px;font-weight:700;line-height:22px}#light-switch>div:before{content:'ON';margin-left:-27px;color:transparent;transition:.4s}#light-switch>div:after{content:'OFF';margin-left:30px;color:rgba(255,255,255,.5);transition:.4s}#light-switch>input:checked+div{background-color:#fff;left:37px}#light-switch>input:checked+div:before{color:#fff}#light-switch>input:checked+div:after{color:transparent}.genki_pseudo_checkbox,.genki_pseudo_radio{display:inline-block;text-align:center;background:#fff;border:1px solid #ccc;height:16px;width:16px;vertical-align:middle;margin-right:3px;position:relative;overflow:hidden;cursor:pointer}.genki_pseudo_checkbox:focus,.genki_pseudo_checkbox:hover,.genki_pseudo_radio:focus,.genki_pseudo_radio:hover{border-color:#17a;outline:0}input[disabled]+.genki_pseudo_checkbox,input[disabled]+.genki_pseudo_radio{opacity:.5;cursor:not-allowed}.genki_pseudo_radio{border-radius:100%}.genki_pseudo_radio:after,.genki_pseudo_radio:before,input:checked+.genki_pseudo_radio:after{content:"";font-size:0;border-radius:100%;position:absolute;top:3px;left:3px;height:10px;width:10px}.genki_pseudo_radio:before{background:#ccc}.genki_pseudo_radio:after{background:#17a;top:8px;left:8px;height:0;width:0}.genki_pseudo_checkbox:after{content:"\f00c";color:#17a;font-family:FontAwesomeWeb,FontAwesome;font-size:0;position:absolute;top:0;left:0;right:0;line-height:16px}input:checked+.genki_pseudo_checkbox:after{font-size:14px}.genki_input_hidden{visibility:hidden;position:absolute}.checkbox-label{font-size:13px;font-weight:700;cursor:pointer}.dict-block{margin-top:50px}.dict-hidden{display:none}.dict-desc{padding:3px}.leg-desc{font-size:12px;vertical-align:top}#dictionary-modes .button{border:2px solid transparent}#dictionary-modes .button.active-mode{color:#17a;border-color:#17a;background-color:transparent;cursor:default}#dict-legend .text-block{margin:3px}#dict-legend .text-block div{margin:3px 0}.dictionary-index{margin:3px;padding:3px}#japanese-english .dictionary-index ul{float:left;padding:3px;margin:0}#japanese-english .dictionary-index ul.dict-index-split{margin-left:10px}.dictionary-index li{list-style-type:none;margin:0 3px;float:left}#japanese-english .dictionary-index li{float:none}.dictionary-index li{font-weight:700;font-size:18px}.dictionary-index li a{color:#17a}.dictionary-index li a:hover{color:#047}.dict-index-disabled{opacity:.5;cursor:default}.dictionary-index.dict-alpha li{margin:0 8px}.dict-search-wrapper{margin:3px}.dict-search{width:100%;box-sizing:border-box}.dict-search-results{border:1px solid #ccc;margin:0}.dict-search-results:empty{border-color:transparent}.dict-search-results:not(:empty){height:250px;padding:3px;overflow:auto;position:relative}#selected_words_list.dict-search-results .definition{list-style-type:decimal;list-style-position:inside}#selected_words_list.dict-search-results{width:80%;height:80%;padding:5px 10px;margin:0 auto}.dictionary-group{float:left;width:48.5%;margin-right:1.5%;padding:0}.dictionary-group:nth-of-type(even){margin-right:3%}.dictionary-group:nth-of-type(odd){margin-right:0}.dictionary-group .word-list{padding:0}.dictionary-group .word-list.hidden{display:none}.group-selectors.hidden{display:none}.group-selectors .deselect-all:before,.group-selectors .select-all:before{font-size:17px;font-family:FontAwesomeWeb,FontAwesome;font-weight:400;vertical-align:middle;margin-right:10px}.group-selectors .select-all:before{content:"\f046"}.group-selectors .deselect-all:before{content:"\f096"}.dict-search-wrapper .group-selectors .button,.dictionary-group .group-selectors .button{padding:3px 6px;margin:3px 0;width:30px;height:30px}.dict-search-wrapper .group-selectors .deselect-all:before,.dict-search-wrapper .group-selectors .select-all:before,.dictionary-group .group-selectors .deselect-all:before,.dictionary-group .group-selectors .select-all:before{margin:0}.definition-count{font-size:16px;vertical-align:top;margin-left:8px}.definition{font-size:14px;list-style-type:none;margin:6px 0;overflow:hidden}.def-ja.def-furi{position:relative;display:inline-block;margin-bottom:15px}.def-ja.def-furi i{color:#777;font-size:11px;font-style:normal;white-space:nowrap;position:absolute;bottom:-15px;left:0}#english-japanese .def-en,#japanese-english .def-ja,#quick-jisho-results .def-ja{margin-right:8px}.def-label{float:right}.def-vtype{font-size:0}.def-vtype i{font-size:12px;font-style:normal;color:#fff;background:#17a;border:1px solid #069;border-radius:3px;display:inline-block;line-height:12px;padding:3px}#quick-jisho-toggle{color:#fff;font-size:18px;text-align:center;line-height:32px;background:#17a;height:30px;width:30px;border-radius:100%;position:fixed;right:5px;bottom:5px;cursor:pointer}#quick-jisho-toggle:focus,#quick-jisho-toggle:hover{opacity:.7;outline:0}#quick-jisho-window{background:#fff;border:1px solid #ccc;box-shadow:0 0 6px rgba(0,0,0,.25);height:300px;width:500px;max-height:85%;max-width:90%;position:fixed;right:5px;bottom:40px;opacity:1;transition-duration:.3s;transition-property:opacity,bottom}#quick-jisho-window.quick-jisho-hidden{bottom:-310px;opacity:0}#quick-jisho-title{color:#fff;background:#17a;font-size:18px;text-align:center;line-height:32px;margin:-1px -1px 0 -1px}.quick-jisho-row{padding:3px}.quick-jisho-row:first-child{padding-bottom:0}#quick-jisho-search{width:100%;height:35px;box-sizing:border-box}#quick-jisho-results{height:219px;padding:3px;margin:0;overflow-y:auto}#quick-jisho-results .definition:focus{color:#17a;outline:0}#quick-jisho-selector{border-radius:15px;border:1px solid rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.25);padding:3px 9px;margin:0;position:absolute;z-index:9999}.gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8}.gu-hide{display:none!important}.gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.gu-transit{opacity:.2}.ad-container{text-align:center;margin:25px 0}@media (max-width:1000px){.content-block{padding:30px 0}#announce-inner{padding:0 6px}footer li{float:none;display:inline-block}footer li:before{margin-left:0}.footer-left,.footer-right{float:none;text-align:center;margin-bottom:10px}#light-switch-container{height:auto;margin-top:0}#quick-search-wrapper,.normal-block,h2,h3,h4,p{padding:0 6px}a.anchor{margin:0 0 0 -5px}.center a.anchor,.sub-lesson-title a.anchor,.workbook-title a.anchor{margin:0 0 0 -25px}.kana-quiz .quiz-column{margin:0}.text-passage{width:90%}.quiz-multi-answer{width:80%}.more-exercises{text-align:center}.more-exercises a.button{float:none;margin:3px}#genki-modal-header{font-size:16px}#genki-modal-content{font-size:14px}#genki-modal-body{left:5%!important;right:5%!important;bottom:10%!important}}@media (max-width:930px){.drawing-quiz .drawing-zone{width:auto!important;margin:3px auto}.drawing-quiz .quiz-answer-row{flex-wrap:wrap;padding-bottom:25px;margin-bottom:25px;border-bottom:3px dashed #17a}}@media (max-width:820px){header{padding:100px 0 0 0;text-align:center;background-position:50% 00px}header h1{font-size:24px}#home-link:before{content:"";position:absolute;height:100px;width:120px;top:60px;left:50%;margin-left:-60px}.edition-icon:after{margin-top:30px}.columns-2>div,.dictionary-group{float:none;width:100%}.inline-columns>div,.lesson-summary .inline-columns>div{margin-right:5px}.dictionary-group{margin:0}.dictionary-group .definition{padding:0 3px}.vocab-key>div:first-child,.vocab-key>div:last-child{border:none}.vocab-key>div:first-child{border-bottom:1px solid #999}.drag-quiz #answer-list,.drag-quiz #drop-list,.drag-quiz #question-list{float:left;width:33.33%}.drag-quiz .vocab-horizontal #answer-list,.drag-quiz .vocab-horizontal #drop-list,.drag-quiz .vocab-horizontal #question-list{float:none;width:auto}.vocab-horizontal .quiz-item-group{width:auto}#lessons .lesson-title{font-size:18px}#quick-jisho-window{width:300px}.fill-quiz.quiz-over .writing-zone+.writing-zone{margin-bottom:20px;position:relative;top:20px}}@media (pointer:coarse){#exercise-list .lesson-title,#exercise-list .sub-lesson-title,#exercise-list li a,#lessons li a{font-size:14px}#exercise-list li a,#lessons li a{padding:6px 0}#exercise-list .lesson-title{padding:6px}} \ No newline at end of file +@font-face{font-family:FontAwesomeWeb;src:url(../fonts/fontawesome-webfont.eot?v=4.7.0);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0) format('embedded-opentype'),url(../fonts/fontawesome-webfont.woff2?v=4.7.0) format('woff2'),url(../fonts/fontawesome-webfont.woff?v=4.7.0) format('woff'),url(../fonts/fontawesome-webfont.ttf?v=4.7.0) format('truetype'),url(../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font:normal normal normal 14px/1 FontAwesomeWeb,FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rad{font-family:"Japanese Radicals";font-style:normal}.fa-hover{color:#fff;line-height:32px;font-size:18px;outline:0}.fa-hover:focus,.fa-hover:hover{opacity:.7;outline:0;cursor:pointer}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}::selection{color:#fff;background-color:#17a}::-moz-selection{color:#fff;background-color:#17a}body{color:#333;background:#fff;font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;padding:0;margin:0;display:flex;min-height:100vh;flex-direction:column}p{font-size:14px}ul{padding-left:40px}hr{border:none;border-bottom:1px solid #999}a{color:#039;text-decoration:none;outline:0}a:focus,a:hover{text-decoration:underline}img{max-width:100%}a:focus img{outline:1px solid #17a}code{color:#00f;background:#eee;border:1px solid #ccc;padding:3px}.nopad{padding:0!important}.button,a.button{color:#fff;background:#17a;font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;text-decoration:none;border:none;font-weight:700;display:inline-block;padding:6px 12px;margin:3px;cursor:pointer;outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.button:hover,a.button:hover{background:#069}.button:focus,a.button:focus{background:#058}.button .fa{font-size:18px;vertical-align:middle;margin-right:6px}.button.icon-only{height:25px;width:25px;padding:0;margin:3px}.button.icon-only i{margin:0}.button.play-button{height:25px;width:25px;padding:0;margin:0;border-radius:100%}.button.play-button i{font-size:14px;margin-right:-2px}input[type=number],input[type=text],select,textarea{font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;background:#fff;border:1px solid #ccc;padding:6px;outline:0}select{cursor:pointer}input[type=number]:disabled,input[type=text]:disabled,select:disabled,textarea:disabled{color:#333}input[type=number]::placeholder,input[type=text]::placeholder,textarea::placeholder{color:#bbb}input[type=number]:hover,input[type=text]:hover,select:hover,textarea:hover{border-color:#999}input[type=number]:focus,input[type=text]:focus,select:focus,textarea:focus{border-color:#17a}.center{text-align:center}.right{text-align:right}.left{text-align:left}.ul{text-decoration:underline}.ul-double,.ul-single{text-decoration:none;position:relative}.ul-double:after,.ul-double:before,.ul-single:after{content:"";position:absolute;left:0;right:0;bottom:2px;border-bottom:1px solid #333}.ul-double:before{bottom:0}.inline{display:inline-block}.t-valign-top{vertical-align:top}.t-red{color:red}.t-green{color:#080}.t-blue{color:#09f}.t-orange{color:#17a}.t-bold{font-weight:700}.nomargin{margin:0!important}.clearfix{clear:both}.clear:after{content:"";display:table;clear:both}.vertical-text{-ms-writing-mode:tb-rl;-webkit-writing-mode:vertical-rl;writing-mode:vertical-rl;text-align:left!important;max-height:300px}.spoiler{color:#444;background:#444;display:inline-block;padding:0 3px}.spoiler:hover{color:#fff}.problem-hint .spoiler{margin-top:2px}.table{width:100%;border-collapse:collapse}.table td{background:#fff;border:1px solid #ddd;padding:3px}.table-head{font-size:16px;font-weight:700}.sub-table{width:100%;border-collapse:collapse}.sub-table td{border-left:0;border-top:0}.example-row td{vertical-align:top}.example-row div{margin:10px 0}.define{font-size:11px;font-style:normal;font-weight:700;vertical-align:super}.lesson-num{font-size:12px;font-style:normal;vertical-align:top}.lesson-image img{max-width:100%}header{color:#fff;background:url(../images/tobira.png) no-repeat 10px 50% #17a;padding:15px 15px 15px 140px;position:relative;overflow:hidden}#home-link:before{content:"";position:absolute;height:100px;width:110px;left:14px;top:50%;margin-top:-50px}.edition-icon:after{font-size:14px;position:absolute;margin-top:40px;margin-left:-85px}.edition-icon.second-ed:after{content:"\A 2nd Edition"}.edition-icon.third-ed:after{content:"\A 3rd Edition"}header h1{font-size:32px}header h1 a{color:#fff}h2{margin:30px 0 0 0}a#fork-me{color:#fff;background:#333;font-size:16px;font-weight:700;text-align:center;text-transform:uppercase;text-decoration:none;line-height:30px;height:30px;width:200px;transform:rotate(45deg);position:absolute;right:-55px;top:30px;transition-property:color,background;transition-duration:.3s}a#fork-me:focus,a#fork-me:hover{color:#333;background:#fff}#announcement{color:#fff;background:#17a;border:1px solid #047;border-right:none;border-left:none;height:110px}#announce-inner{max-width:1000px;margin:0 auto;padding:0 30px}#announcement .fa{font-size:24px;vertical-align:middle}#announcement a{color:#ff0;font-weight:700}#announcement h3{font-size:18px;margin:10px 0 0 0}#announcement .announcement{font-size:16px;height:75px;box-sizing:border-box;padding:3px 6px;overflow-y:auto}#announcement .announcement.announce-hidden{display:none}#announcement .announcement .date{color:#fff;font-size:13px;font-weight:400;background:#069;border:1px solid #058;border-radius:3px;padding:1px;margin-right:5px}#announce-list{position:relative;margin:0 20px}#announcement .announce-controls{background:rgba(0,0,0,.3);text-align:center;position:absolute;top:50%;margin:-15px 0 0 0;height:30px;width:20px;padding:0;opacity:.5}#announcement .announce-controls i.fa{font-size:18px;line-height:26px;margin:0}#announcement .announce-controls:focus,#announcement .announce-controls:hover{opacity:1}#announcement .announce-controls.button-left{left:-20px}#announcement .announce-controls.button-right{right:-20px}#content{flex:1 0 auto}.content-block{max-width:1000px;margin:0 auto;padding:30px}a.anchor{color:#666;font-size:16px;font-weight:400;text-decoration:none;text-align:center;vertical-align:middle;display:inline-block;width:25px;margin:0 0 0 -25px}.anchor-icon{display:inline-block;transform:rotate(-45deg);visibility:hidden}.anchor:focus .anchor-icon,h1:hover .anchor-icon,h2:hover .anchor-icon,h3:hover .anchor-icon,h4:hover .anchor-icon,h5:hover .anchor-icon,h6:hover .anchor-icon{visibility:visible}#page-links,#related-projects{margin:15px 0 0 0}#link-list{font-size:0}#link-list a,#link-list span{font-size:14px}#link-list a{color:#fff;text-shadow:1px 1px 0 rgba(0,0,0,.3);font-weight:700;text-decoration:none;display:inline-block;padding:3px 6px;margin:10px 10px 0 0}#link-home.button{border-bottom:2px solid #058}#link-grammar{background-color:#f93;border-bottom:2px solid #d71}#link-anki{background-color:#05c;border-bottom:2px solid #03a}#link-help{background-color:#39c;border-bottom:2px solid #17a}#link-report{background-color:#f66;border-bottom:2px solid #d44}#link-download{background-color:#9c6;border-bottom:2px solid #7a4}#link-donate{background-color:#c6c;border-bottom:2px solid #a4a}#link-github{background-color:#96f;border-bottom:2px solid #74d}#link-settings{background-color:#666;border-bottom:2px solid #444}#link-grammar:hover{background-color:#e82}#link-anki:hover{background-color:#04b}#link-help:hover{background-color:#28b}#link-report:hover{background-color:#e55}#link-download:hover{background-color:#8b5}#link-donate:hover{background-color:#b5b}#link-github:hover{background-color:#85e}#link-settings:hover{background-color:#555}#link-grammar:active,#link-grammar:focus{background-color:#d71}#link-anki:active,#link-anki:focus{background-color:#03a}#link-help:active,#link-help:focus{background-color:#17a}#link-report:active,#link-report:focus{background-color:#d44}#link-download:active,#link-download:focus{background-color:#7a4}#link-donate:active,#link-donate:focus{background-color:#a4a}#link-github:active,#link-github:focus{background-color:#74d}#link-settings:active,#link-settings:focus{background-color:#444}#link-list i{font-size:16px;vertical-align:middle;margin-right:6px}#link-github i,#link-help i{font-size:18px}#exercise-list #page-links{margin:0;padding:0}#exercise-list .indent-block{margin-left:10px}.donate-box{color:#333;background:#fcf;border:1px solid #c6c;position:relative;padding:5px;padding-left:35px;margin:5px auto;text-align:left;width:80%;max-width:600px}.donate-icon{color:#fcf;background:#c6c;font-size:20px;width:30px;text-align:center;position:absolute;top:0;left:0;bottom:0;display:flex;justify-content:center;align-items:center}.donate-text a{color:#039;font-weight:700}.donate-text a i{font-size:12px;font-weight:400;vertical-align:super;margin-left:-3px}.info-box{color:#333;background:#eff;border:1px solid #17a;position:relative;padding:5px;padding-left:35px;margin:5px auto;text-align:left;width:80%;max-width:600px}.info-icon{color:#eff;background:#17a;font-size:20px;width:30px;text-align:center;position:absolute;top:0;left:0;bottom:0;display:flex;justify-content:center;align-items:center}#project-list img{height:120px;margin:10px 4px 0 0}#related img{height:120px;margin:5px}#related h3{margin-top:20px;margin-bottom:5px}#quick-actions>div{margin:0}#quick-actions h2{font-size:20px;margin-top:15px}#quick-search{width:100%;box-sizing:border-box;margin-top:1em}#quick-search-results{border:1px solid #ccc}#quick-search-results:empty{border-color:transparent}#quick-search-results:not(:empty){height:300px;padding:3px;overflow:auto}#quick-search-results li{white-space:nowrap;overflow:hidden}#quick-nav-list li{position:relative;list-style-type:none}#quick-nav-list li:before{content:".";font-size:0;display:block;height:6px;width:6px;background:#17a;border-radius:100%;position:absolute;top:10px;left:-16px}#quick-nav-list li ul li:before{background:0 0;border:1px solid #17a;height:4px;width:4px}#quick-nav-list li.noBullet:before{display:none}#quick-nav-list a.sub-section-button{color:#fff;background:#17a;font-size:11px;text-align:center;text-decoration:none;display:inline-block;height:18px;width:18px;line-height:20px;padding:0;border-radius:100%;position:absolute;top:4px;left:-22px}#quick-nav-list a.sub-section-button:focus,#quick-nav-list a.sub-section-button:hover{background-color:#058}a.sub-section-button[data-open=true]:after{content:"\f078"}a.sub-section-button[data-open=false]:after{content:"\f054";letter-spacing:-2px}a.jump-arrow{color:#17a;text-decoration:none;float:right;margin:6px 3px 0 0}a.jump-arrow:focus,a.jump-arrow:hover{color:#047}#quick-search-results li[data-lesson]:before{content:attr(data-lesson);color:#fff;font-size:11px;background:#17a;border:1px solid #069;border-radius:3px;padding:0 2px;margin-right:3px}#exercise>*,.loading>*{visibility:hidden}#exercise:after,#exercise:before,.loading:after,.loading:before{color:#17a;position:absolute;top:50%}#exercise:before,.loading:before{content:"Now Loading...";font-size:16px;font-weight:700;font-style:italic;text-align:center;left:0;right:0;margin-top:40px}#exercise:after,.loading:after{content:"\f1ce";font-size:64px;font-family:FontAwesomeWeb,FontAwesome;left:50%;margin-top:-32px;margin-left:-32px;-webkit-animation:fa-spin 2s infinite linear;animation:fa-spin 2s infinite linear}#exercise.content-loaded>*{visibility:visible}#exercise.content-loaded:after,#exercise.content-loaded:before{content:"";display:none}.lesson-title{color:#17a;font-size:20px;border-bottom:2px solid #17a;padding-bottom:3px}.sub-lesson-title,.workbook-title{font-size:16px;margin:0 0 0 20px}.normal-block{font-size:14px}.title{color:#17a;font-size:28px;margin:20px 0}.title-desc{font-size:16px}.title-med{font-size:18px;margin:10px 0}.section-title{color:#17a;font-size:24px;border-bottom:2px solid #17a;margin:0;padding-bottom:6px}.sub-title{font-size:18px;margin:16px 0}#exercise-title{color:#17a;font-size:24px;margin:0 0 25px 0}#exercise-title:after,.title[data-page]:after{content:attr(data-page);color:#666;font-size:12px;font-style:italic;font-weight:400;display:block}.lesson-summary{font-size:13px;margin:10px;padding:10px;background:#eee;border:1px dashed #ccc}.lesson-summary .inline-columns>div{margin-right:50px;margin-bottom:0;vertical-align:top}.lesson-summary:before{content:"In this lesson, we will learn how to...";font-weight:700;color:#17a}.lesson-point{margin-left:13px}.lesson-point:before{content:"• ";color:#17a}footer{color:#fff;background:#333;text-align:center;padding:15px}#light-switch-label,footer a{color:#ccc}#light-switch-label:hover,footer a:hover{color:#fff}footer ul{list-style-type:none;margin:0;padding:0}footer li{float:left}footer li:before{content:"\f111";font-family:FontAwesomeWeb,FontAwesome;font-size:6px;margin:0 5px;vertical-align:middle}footer li:first-child:before{display:none}.footer-left{float:left}.footer-right{float:right}#drop-list,#question-list{float:left}#answer-list{float:right}.quiz-item{background:#eee;border:1px solid #ccc;margin:3px;padding:3px;min-width:25px;white-space:nowrap}#answer-list .quiz-item,.quiz-item.gu-mirror{cursor:move}.drawing-quiz .quiz-item{font-size:80px;height:110px;width:110px;line-height:110px;box-sizing:border-box;margin:0 auto}.drawing-quiz .stroke-order-button{margin:0;padding:0;width:110px;height:25px}.drag-quiz .quiz-answer-zone:focus,.drag-quiz .quiz-item:focus,.kana-quiz .quiz-answer-zone:focus,.kana-quiz .quiz-item:focus{color:#17a;border-color:#17a;outline:0}.quiz-item.markedItem{border-color:#17a;outline:1px solid #17a!important;box-shadow:3px 3px 3px rgba(0,0,0,.25);position:relative}#quiz-info{color:#fff;background:#17a;font-weight:700;text-align:left;padding:15px 15px 15px 50px;margin:10px 0;position:relative;overflow-y:auto}#quiz-info:before{content:"\f05a";font-size:32px;font-family:FontAwesomeWeb,FontAwesome;position:absolute;top:50%;margin-top:-16px;left:12px}#quiz-info a{color:#ff0}#quiz-info table{width:100%;background:#069;border-collapse:collapse;font-weight:400}#quiz-info table td{padding:3px;border:1px solid #058}#change-exercise-type-container,#check-answers,#quiz-timer{margin-top:10px}#quiz-timer:before{content:"Time Elapsed";display:block}.quiz-answer-zone:empty{border:1px solid #ccc;margin:3px;padding:3px}.drag-quiz .quiz-answer-zone:empty{min-width:100px}.drag-quiz .quiz-answer-zone,.drag-quiz .quiz-item{height:28px;line-height:20px;box-sizing:border-box}.vocab-horizontal #drop-list{display:none}.vocab-horizontal #answer-list,.vocab-horizontal #question-list{float:none}.vocab-horizontal #question-list{margin-bottom:30px}.vocab-horizontal #answer-list .quiz-item{display:inline-block}.vocab-horizontal .quiz-item-group{display:inline-block;vertical-align:top;width:20%}.drag-quiz .vocab-horizontal .quiz-answer-zone,.vocab-horizontal #answer-list .quiz-item{min-width:100px}.vocab-horizontal #answer-list .quiz-item{text-align:center;vertical-align:top}.vocab-horizontal .quiz-answer-zone .quiz-item{margin:0}.vocab-horizontal .quiz-answer-zone{margin:3px}.kanji-readings.drag-quiz .vocab-horizontal .quiz-item-text{text-align:left;display:inline-block;margin:0 auto}.kanji-readings.drag-quiz .vocab-horizontal #question-list .quiz-answer-zone .quiz-item{font-size:13px;line-height:20px}.kanji-meanings.drag-quiz .vocab-horizontal #question-list .quiz-answer-zone .quiz-item{font-size:13px;height:28px;line-height:20px}.vocab-horizontal.helper-present #question-list .quiz-item{margin-bottom:18px}.kanji-meanings.drag-quiz #question-list .quiz-item,.kanji-meanings.drag-quiz .quiz-answer-zone,.kanji-readings.drag-quiz .quiz-answer-zone,.kanji-readings.drag-quiz .quiz-item{height:48px}.kanji-meanings.drag-quiz #question-list .quiz-item,.kanji-readings.drag-quiz #question-list .quiz-item{line-height:44px;font-size:26px;padding:3px 10px}#review-exercise{margin-top:10px}.quiz-over #review-button{display:none}.more-exercises{margin-top:10px}.more-exercises a.button{margin:3px 0}.more-exercises a:after,.more-exercises a:before{font-size:18px;font-family:FontAwesomeWeb,FontAwesome;font-weight:400;vertical-align:middle}.more-exercises a.prev-ex{float:left}.more-exercises a.prev-ex:before{content:"\f060";margin-right:10px}.more-exercises a.next-ex{float:right}.more-exercises a.next-ex:after{content:"\f061";margin-left:10px}#exercise-list,#toggle-exercises,#toggle-exercises:after,#toggle-exercises:before{transition-duration:.3s}#exercise-list{background:#eee;border-right:1px solid #ccc;position:fixed;top:0;left:-301px;bottom:0;width:300px;visibility:hidden;z-index:10}#random-exercise{height:32px;width:32px;text-align:center;position:absolute;top:0;left:0;margin:0;padding:0}#random-exercise i{line-height:32px;margin:0}.list-open+#exercise-list{left:0;visibility:visible}#toggle-exercises{background:#047;text-decoration:none;text-align:center;line-height:32px;height:32px;width:32px;position:fixed;top:0;left:0;z-index:11;cursor:pointer;transition-property:left}#toggle-exercises:hover{background:#058}#toggle-exercises:focus{background:#069}#toggle-exercises:after,#toggle-exercises:before{color:#fff;font-size:28px;font-family:FontAwesomeWeb,FontAwesome;position:absolute;left:0;right:0;transition-property:opacity}#toggle-exercises:after{content:"\f0c9"}#toggle-exercises:before{content:"\f00d";opacity:0}#toggle-exercises.list-open{left:268px}#toggle-exercises.list-open:after{opacity:0}#toggle-exercises.list-open:before{opacity:1}#lessons-list{overflow-y:auto;overflow-x:hidden;height:95%;height:calc(100% - 32px)}#exercise-list .main-title{color:#fff;background:#17a;font-size:18px;text-align:center;line-height:32px;margin:0}.menu-item-list{display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative}.result--perfect{color:#f90;font-weight:600}.result--good{color:#080;font-weight:600}.result--average{color:#aa0;font-weight:600}.result--low{color:red;font-weight:600}.exercise-results{min-width:65px}.exercise-results .fa{font-size:16px}#exercise-list .lesson-title{color:#333;font-size:15px;border-bottom:1px solid #ccc;margin:0;padding:3px;cursor:pointer;outline:0;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#exercise-list .lesson-title:focus,#exercise-list .lesson-title:hover{color:#17a}#exercise-list .lesson-title:before{content:"\f054";font-family:FontAwesomeWeb,FontAwesome;margin-right:3px}#exercise-list .lesson-title.lesson-open:before{content:"\f078"}#exercise-list .sub-lesson-title{font-size:14px;margin:12px 0 0 12px}#exercise-list ul{border-bottom:1px solid #ccc;margin:0;padding:3px 3px 12px 3px;list-style-type:none;display:none}#exercise-list .lesson-title.lesson-open+ul{display:block}#exercise-list li a{white-space:nowrap;text-decoration:none;text-overflow:ellipsis;overflow:hidden;display:block}#exercise-list li a.active-lesson{color:#17a;font-weight:700}#exercise-list li a:before{content:"\f054";color:#333;font-family:FontAwesomeWeb,FontAwesome;margin-right:3px}#exercise-list li a:focus,#exercise-list li a:hover{color:#17a}#exercise-list li a:focus:before,#exercise-list li a:hover:before{color:#17a}#exercise-list #page-links li:first-child a:before{content:"\f015"}#exercise-list #page-links li a[href^="../../../help"]:before{content:"\f059"}#exercise-list #page-links li a[href^="../../../report"]:before{content:"\f188"}#exercise-list #page-links li a[href^="../../../download"]:before{content:"\f019"}#exercise-list #page-links li a[href^="../../../donate"]:before{content:"\f004"}#exercise-list li a[data-page]:focus:after,#exercise-list li a[data-page]:hover:after{content:attr(data-page);color:#fff;font-size:12px;font-weight:400;line-height:12px;background:#17a;border:1px solid #069;border-radius:3px;position:absolute;right:3px;padding:3px}.quiz-answer-zone:empty:after{content:attr(data-text);color:transparent}.answer-correct,.quiz-over .insert-trigger{pointer-events:none}.quiz-over .problem-hint .spoiler,.quiz-over.drag-quiz .answer-correct,.review-mode .answer-correct{pointer-events:auto}.answer-correct .quiz-item:before,.drag-quiz .answer-correct .quiz-item-text:before{content:"\f005\A0";font-family:FontAwesomeWeb,FontAwesome;color:#17a}.drag-quiz .answer-correct .quiz-item:before{content:""}.quiz-over [data-mistakes]{position:relative}.quiz-over [data-mistakes] .quiz-item{border-color:red}.quiz-over [data-mistakes]:after{color:red;content:"\f060\A0 wrong " attr(data-mistakes) "x";font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif,FontAwesomeWeb,FontAwesome;display:block;position:absolute;top:3px;right:-85px}.quiz-over .vocab-horizontal [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:10px;font-weight:700;right:3px;top:auto;bottom:-2px}.quiz-over .vocab-horizontal [data-mistakes="0"]:after{content:""}#wrongAnswer{position:relative}#wrongAnswer:before{content:"\f00d\A0 wrong";font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif,FontAwesomeWeb,FontAwesome;font-size:14px;color:red;position:absolute;right:-70px;pointer-events:none}.vocab-horizontal #wrongAnswer:before{right:auto;left:3px}.kana-quiz #wrongAnswer:before{content:"\f00d";right:-6px;top:-10px}.quiz-over [data-mistakes="0"] .quiz-item{border-color:#ccc}.quiz-over [data-mistakes="0"]:after{content:""}#question-list .quiz-item{text-align:center}.helper-present #question-list .quiz-item{position:relative}.helper-present #drop-list .quiz-answer-zone.helper-answer,.helper-present #question-list .quiz-item[data-helper]{margin-bottom:18px}.helper-present .hidden-text{visibility:hidden;display:block;margin-top:-20px}.helper-hidden .hidden-text,.stroke-order-hidden .kanji-stroke-order{display:none}.kana-quiz #answer-list,.kana-quiz #question-list{float:none}.kana-quiz #question-list{margin-bottom:30px}.kana-quiz .quiz-answer-zone,.kana-quiz .quiz-item{text-align:center;display:inline-block}.kana-quiz .quiz-answer-zone:empty,.kana-quiz .quiz-item{height:30px;width:35px;line-height:22px;box-sizing:border-box}.kana-quiz .quiz-column{margin:0 5px;float:left}.kana-quiz .quiz-column:first-child{margin-left:0}.kana-quiz .quiz-column:last-child{margin-right:0}.kana-quiz .answer-correct .quiz-item{position:relative}.kana-quiz .answer-correct .quiz-item:before{position:absolute;right:-8px;top:-5px}.kana-quiz.quiz-over [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:8px;line-height:8px;font-weight:700;right:auto;top:auto;bottom:3px;right:4px}.kana-quiz.quiz-over [data-mistakes="0"]:after{display:none}.verb-quiz #answer-list{float:none;clear:both}.verb-quiz #question-list{width:20%}.verb-quiz #drop-list{width:80%}.verb-quiz #drop-list,.verb-quiz #question-list{margin-bottom:30px}.verb-quiz #answer-list .quiz-item{display:inline-block}.quiz-column-title{background:#eee;border:1px solid #ccc;justify-content:center;text-align:center;margin:2px 3px;padding:3px}.quiz-column-title:last-child{margin-right:0}#question-list .quiz-column-title:after{content:"\A0";display:block}.verb-quiz #question-list>div{margin:3px 3px 3px 0}.verb-quiz #question-list .quiz-column-title{margin-top:2px}.verb-quiz #drop-list>div,.verb-quiz #drop-list>div>div{white-space:nowrap;display:flex;flex:1}.verb-quiz .quiz-answer-zone .quiz-item{margin:0;padding:0;border:none;background:0 0}.verb-quiz .quiz-answer-zone{margin:1px 3px 2px 3px!important}.verb-quiz .quiz-answer-zone:last-child{margin-right:0!important}.verb-quiz .quiz-answer-zone:not(:empty){background:#eee;border:1px solid #ccc;padding:3px;margin:3px}.verb-quiz.quiz-over [data-mistakes]{border-color:red}.verb-quiz.quiz-over [data-mistakes]:after{content:"x" attr(data-mistakes);font-size:10px;line-height:8px;font-weight:700;right:auto;top:auto;bottom:3px;right:4px}.verb-quiz.quiz-over [data-mistakes="0"]{border-color:#ccc}.verb-quiz.quiz-over [data-mistakes="0"]:after{display:none}.drawing-quiz #question-list,.writing-quiz #question-list{float:none}.drawing-quiz .quiz-answer-row,.writing-quiz .quiz-answer-row{white-space:nowrap;display:flex;flex:1;margin:0 3px}.writing-quiz .quiz-answer-row.furi-row{margin-bottom:12px}.writing-quiz .quiz-item{font-size:14px;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.vocab-horizontal .quiz-item-text,.writing-quiz .quiz-item-text{overflow-x:auto}.vocab-horizontal .quiz-item-text::-webkit-scrollbar,.writing-quiz .quiz-item-text::-webkit-scrollbar{width:6px;height:6px}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb{background-color:#17a;border:none}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb:hover,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb:hover{background-color:#069}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-thumb:active,.writing-quiz .quiz-item-text::-webkit-scrollbar-thumb:active{background-color:#058}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-track,.writing-quiz .quiz-item-text::-webkit-scrollbar-track{background:rgba(0,0,0,.15)}.vocab-horizontal .quiz-item-text::-webkit-scrollbar-button:single-button,.writing-quiz .quiz-item-text::-webkit-scrollbar-button:single-button{background:0 0;height:0;width:0}.writing-quiz .helper-present #question-list .quiz-item[data-helper]{margin-bottom:3px}.writing-quiz .helper-hidden .quiz-item[data-helper]:before{display:none}.writing-quiz .helper-hidden .quiz-answer-row.furi-row{margin-bottom:0}.drawing-quiz .quiz-item,.drawing-zone,.writing-quiz .quiz-item,.writing-zone{text-align:center}.drawing-zone,.writing-zone{margin:3px;min-width:25px}input.writing-zone-input{font-size:14px;font-family:'メイリオ',Meiryo,Osaka,'MS Pゴシック','MS PGothic',"ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro",Arial,sans-serif;text-align:center;background:#fff;border:1px solid #ccc;box-sizing:border-box;width:100%;padding:3px 0;outline:0}input.writing-zone-input:disabled{color:#333}input.writing-zone-input::placeholder{color:#bbb}input.writing-zone-input:hover{border-color:#999}input.writing-zone-input:focus{border-color:#17a}.even-width .writing-zone,.even-width .writing-zone-input,.max-width .writing-zone,.max-width .writing-zone-input{text-align:left;width:100%!important}.fill-quiz .even-width .writing-zone-input{padding:3px}.max-width .writing-zone,.max-width .writing-zone-input{text-align:center}.large-width .writing-zone{width:90%!important}.large-width .writing-zone-input{width:100%!important}.fill-quiz .set-problem-width .block,.fill-quiz .set-problem-width .problem{width:150px}.fill-quiz .set-problem-width-med .block,.fill-quiz .set-problem-width-med .problem{width:200px}.fill-quiz .set-problem-width-large .block,.fill-quiz .set-problem-width-large .problem{width:300px}.fill-quiz .set-problem-width .block,.fill-quiz .set-problem-width .problem,.fill-quiz .set-problem-width-large .block,.fill-quiz .set-problem-width-large .problem,.fill-quiz .set-problem-width-med .block,.fill-quiz .set-problem-width-med .problem{max-width:100%}.writing-quiz.quiz-over .writing-zone-input{pointer-events:none}.writing-quiz.quiz-over [data-mistakes]{border-color:red}.writing-quiz.quiz-over [data-mistakes="0"]{border-color:#ccc}.writing-zone.answer-correct{position:relative}.writing-zone.answer-correct:after{content:"\f005";font-family:FontAwesomeWeb,FontAwesome;color:#17a;position:absolute;right:-4px;top:-4px}.helper-present #question-list .quiz-item:before,.writing-quiz .quiz-item:before{content:attr(data-helper);font-size:11px;line-height:15px;color:#666;background:#ccc;position:absolute;left:-1px;right:-1px;bottom:-15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.writing-quiz .no-helper [data-helper]:before{display:none}.writing-quiz.quiz-over .no-helper [data-helper]:before{display:block}.multi-quiz #question-list{float:none}.quiz-multi-row{margin:10px 0}.question-block{background:#eee;border:1px solid #ccc;margin:30px 0;position:relative}.question-block:after{content:attr(data-qid) ".";position:absolute;top:-20px;left:0}.quiz-multi-question{font-size:14px;text-align:center;border-bottom:1px solid #ccc;padding:5px}.text-block.multi-quiz-image{margin:10px 0}.big-kanji{font-size:100px}.multi-vocab{font-size:32px;min-height:64px}.multi-vocab rt{font-size:16px;margin-top:-8px}.multi-vocab hr{margin:10px 0}.multi-vocab-sentence{font-size:24px}.vocab-spoiler-toggle{display:none}.spoiler-mode .vocab-spoiler-toggle{display:block;margin:10px auto 0 auto}.spoiler-mode .vocab-spoiler{position:relative}.spoiler-mode .vocab-spoiler:after{content:"";background:#ccc;position:absolute;top:0;left:0;right:0;bottom:0}.quiz-over .vocab-spoiler-toggle,.quiz-over .vocab-spoiler:after,.spoiler-off.vocab-spoiler:after{display:none}.kana-font{font-family:NotoSansJP,SawarabiGothic,"MS Gothic","Yu Gothic",Meiryo}.drawing-quiz .quiz-item-text.kana-font{margin-top:-7px}.drawing-quiz .quiz-item{overflow:hidden}.kanji-container{display:inline-block}.kanji-canvas{background:#fff;border:1px solid #ccc;display:block;margin:0 auto;outline:0}.kanji-canvas:focus{border-color:#17a;border-color:rgba(17,119,170,.5)}.furigana,.inline-furi i{color:#777;font-size:11px;margin-top:-3px}ruby{text-align:center;display:inline-block;vertical-align:top}.helper-hidden ruby{display:inline;position:static;vertical-align:baseline}ruby rt{color:#777;font-size:11px;display:block;text-align:center;margin-top:-1px;padding:0 2px}#index-list li a ruby rt,#quick-search-results ruby rt,.main-color ruby rt,.section-title ruby rt,.workbook-title ruby rt,a ruby rt{color:#367}.helper-hidden .multi-vocab ruby{display:inline-block;vertical-align:top}.helper-hidden .multi-vocab rt{display:block;visibility:hidden}.helper-hidden .multi-vocab ruby:hover rt{visibility:visible}.slim-ruby ruby{width:10px}.ruby-always-visible ruby{display:inline-block!important;position:relative!important}.ruby-always-visible rt{display:block!important}#quiz-info .furigana,#quiz-info .inline-furi i,#quiz-info ruby rt{color:#ccc;color:rgba(255,255,255,.6)}.helper-hidden .furigana,.helper-hidden .inline-furi i,.helper-hidden ruby rt{display:none}.inline-furi{position:relative;display:inline-block;margin-bottom:15px}.helper-hidden .inline-furi{margin-bottom:0}.inline-furi .furigana,.inline-furi i{text-align:left;font-style:normal;white-space:nowrap;position:absolute;bottom:-15px;left:0}.quiz-multi-question .lesson-image img{border:1px solid #ccc;margin:3px}.quiz-multi-answer{color:#333;font-size:14px;text-rendering:auto;background:#fff;border:1px solid #ccc;padding:6px;display:block;width:50%;margin:0 auto;cursor:pointer;outline:0;position:relative;box-sizing:border-box;align-items:flex-start;text-align:center;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.quiz-answer-inner-text,.quiz-question-inner-text{display:inline-block;text-align:left}.text-selection-mode .quiz-multi-answer{cursor:text;outline:1px dashed #17a;-webkit-touch-callout:auto;-webkit-user-select:auto;-khtml-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.quiz-multi-answer:before{content:attr(data-option) ":";font-size:18px;font-weight:400;font-family:Arial;position:absolute;left:-25px;top:50%;margin-top:-10px}.quiz-multi-answer:focus,.quiz-multi-answer:hover{border-color:#17a}.quiz-multi-answer:focus:before,.quiz-multi-answer:hover:before{color:#17a}.multi-quiz.quiz-over .quiz-multi-answer{pointer-events:none}.multi-quiz.quiz-over .text-selection-mode .quiz-multi-answer{pointer-events:auto}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer,.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer,.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]{border-width:3px}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer{border-color:#080}.multi-quiz.quiz-over .quiz-multi-answer.selected-answer:before,.multi-quiz.quiz-over .quiz-multi-answer[data-answer=true]:before{color:#080}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer{border-color:red}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer.selected-answer:before{color:red}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]{border-color:#09f}.multi-quiz.quiz-over .wrong-answer .quiz-multi-answer[data-answer=true]:before{color:#09f}.kanji-canvas[data-answer=true]{border-color:#080}.kanji-canvas[data-answer=false]{border-color:red}.quiz-over .kanji-canvas{pointer-events:none}.quiz-over .kanji-canvas-actions,.stroke-quiz.quiz-over .next-question{display:none}.stroke-order-container{width:100%;overflow-y:hidden;overflow-x:scroll}.stroke-order-container img{max-width:none}#exercise .text-passage{font-size:16px;text-align:left;width:80%;overflow:auto;padding:25px;margin:15px auto}.quiz-multi-answer.next-question:before{content:"\f061";font-family:FontAwesomeWeb,FontAwesome;left:auto;right:6px;margin-top:-9px}.hidden-answer{display:none}#quiz-progress{border:1px solid #17a;height:25px;position:relative;overflow:hidden}#quiz-progress-bar{background:#17a;font-weight:700;height:25px;transition:.3s}#quiz-progress-text{color:#000;text-align:center;position:absolute;top:0;left:0;right:0;bottom:0;line-height:26px}.text-block{font-size:14px;background:#eee;border:1px solid #ccc;margin:30px auto;padding:15px;overflow-x:auto}.text-block .sub-section{background-color:#fff;border:1px solid #ddd;padding:6px}.text-block .sub-section .sub-section{background-color:rgba(0,0,0,.05);border-color:rgba(0,0,0,.08)}.text-block p{margin:0 0 25px 0}.audio-block{margin:25px 0 25px 0}.fill-quiz .inner-problem{display:inline-block;max-width:97%}.fill-quiz .big-margin,.fill-quiz .example-problem,.fill-quiz .problem{margin-bottom:40px}.fill-quiz .small-margin .block,.fill-quiz .small-margin .problem{margin-bottom:25px}.fill-quiz .no-margin .block,.fill-quiz .no-margin .problem{margin-bottom:0}.fill-quiz .inline-problem .block,.fill-quiz .inline-problem .problem{vertical-align:top;display:inline-block;margin-right:25px}.fill-quiz .inline-problem.large-space .block,.fill-quiz .inline-problem.large-space .problem{margin-right:50px}.fill-quiz .image-margin img,.margin{margin:3px}.fill-quiz span.problem{display:inline-block;margin:0}.fill-quiz .alt-phrase{color:#09f;font-weight:700}.fill-quiz .alt-phrase-sep{color:#06c}.big-label,.label,.med-label,.sm-label{display:inline-block;width:120px;max-width:100%}.label[title]:after{content:attr(title);font-size:13px;font-weight:400;display:block}.sm-label{width:80px}.med-label{width:200px}.big-label{width:300px}.image-list>span{position:relative;display:inline-block;margin:0 25px 25px 0;vertical-align:top}.image-list>span i{color:#333;font-size:13px;font-weight:700;font-style:normal;position:absolute;top:2px;left:4px;z-index:1}.columns-2>div{width:50%;margin:0 0 25px 0;float:left}.valign-top.inline-columns>div{vertical-align:top}.inline-columns>div{display:inline-block;margin:0 10px 30px 0}.example-problem.inline-columns>div,.problem.inline-columns>div{margin-bottom:40px}.example-problem.inline-columns,.problem.inline-columns{position:relative;padding-left:30px;margin:0}.example-problem.inline-columns{padding-left:62px}.example-problem.inline-columns:before,.problem.inline-columns:before{position:absolute;left:0}.indent-block{margin-left:20px}.section-desc,.sectionDesc3rd{font-weight:700;margin:20px 0}.section-number{font-weight:400;text-align:center;border:1px solid #333;border-radius:100%;display:inline-block;height:22px;width:22px;line-height:21px;box-sizing:border-box;vertical-align:middle;cursor:default}.sectionNumber3rd{font-size:12px;font-weight:700;text-align:center;background-color:#ccc;border:1px solid #999;border-radius:100%;display:inline-block;height:22px;width:22px;line-height:21px;box-sizing:border-box;vertical-align:middle;letter-spacing:-2px;padding-right:2px;cursor:default}.sectionNumber3rd.fa{letter-spacing:-4px}.sectionDesc3rd{font-size:15px;padding-left:28px}.sectionDesc3rd .sectionNumber3rd{margin:0 6px 0 -28px}.yomikata{margin-right:5px}.section-number,.sectionNumber3rd,.yomikata{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.count-problems{counter-reset:problems}.count-problems .problem:before{counter-increment:problems;content:counter(problems) ".";margin-right:6px;vertical-align:top}.example-problem:before{content:"例";color:#17a;font-weight:700;border:1px solid #17a;border-radius:5px;padding:2px;font-size:16px;line-height:16px;display:inline-block;margin-right:6px;vertical-align:top}.count-problems.count-alpha .problem:before{content:counter(problems,lower-alpha) "."}.count-problems td.problem{margin:0}.count-problems td.problem:before{float:left;margin-left:5px}.fill-quiz .writing-zone{background:0 0;display:inline-block;vertical-align:top;margin:0 1px;min-width:0}.fill-quiz .valign-off .writing-zone{vertical-align:0}.fill-quiz .valign-top .writing-zone,.valign-top .button.play-button{vertical-align:top}.fill-quiz .pad-zones .writing-zone{vertical-align:top;margin-bottom:25px}.fill-quiz .big-margin.pad-zones .writing-zone{margin-bottom:40px}.fill-quiz .writing-zone-input{font-size:14px;background:0 0;border:none;border-bottom:2px solid #999;width:auto;padding:0}.fill-quiz .writing-zone-input::placeholder{color:#999}.fill-quiz .writing-zone-input:hover{border-color:#666}.fill-quiz .writing-zone-input:focus{border-color:#17a}.problem-answer,.problem-hint{font-size:14px;display:block}.problem-answer{color:#080}.secondary-answer{font-size:11px;line-height:10px;display:block}.secondary-answer.furigana-only{color:#666}.img-problem{margin-top:5px}.img-problem>div{float:left}.img-problem>div:first-child{margin-right:10px}.vocab-key{padding-top:30px;margin:15px auto;position:relative;border:1px solid #999}.vocab-key>div{padding:6px;box-sizing:border-box;margin-bottom:0}.vocab-key>div:last-child{border-left:1px solid #999;margin-left:-1px}.vocab-key>div:first-child{border-right:1px solid #999;border-left:none}.vocab-key:before{content:"単 語";font-size:20px;text-align:center;border-bottom:1px solid #999;height:30px;line-height:34px;position:absolute;top:0;left:0;right:0}.show-bg .problem-answer,.show-bg .secondary-answer{background:#fff;background:rgba(255,255,255,.5);border:1px solid #ccc;border-color:rgba(204,204,204,.7);border-top:none}.show-bg .problem-answer{border-bottom:none;position:relative;z-index:1}.show-bg .secondary-answer{line-height:14px;margin:0 -1px 0 -1px}[data-mistakes="1"]+.problem-hint{display:none}.quiz-over .writing-zone:hover [data-mistakes="1"]+.problem-hint{display:block;height:0}.quiz-over .writing-zone:hover [data-mistakes="1"]+.problem-hint+.problem-answer{visibility:hidden}.fill-quiz.quiz-over .writing-zone-input{pointer-events:none}.fill-quiz.quiz-over [data-mistakes]{border-color:red}.fill-quiz.quiz-over [data-mistakes="0"]{border-color:#080}.fill-quiz .writing-zone.answer-correct:after{display:none}.fill-quiz td .writing-zone{margin-bottom:5px}.fill-quiz.quiz-over td .problem-answer{white-space:nowrap}#complete-banner{color:#fff;background:#17a;font-size:16px;font-weight:700;padding:5px}#result-list{background:#eee;border:1px solid #ccc}.result-row{border-bottom:1px solid #ccc;padding:3px}.result-row:last-child{border:none}.result-label{text-align:right;font-weight:700;display:inline-block;width:150px;margin-right:5px}#lessons li a{display:inline-block}#exercise-list li a,#lessons li a{padding:3px 0}#study-tool-ui{overflow:auto;max-height:300px}#study-tool-ui .button .fa{margin:0}#study-tool-editor ol>li:only-child>.button.row-remove,#study-tool-editor ul>li:only-child>.button.row-remove{display:none}#study-tool-ui li{margin:5px 0}#study-tool-ui .sentence-field{display:none;width:50%;margin-top:5px}.show-sentences #study-tool-ui .sentence-field{display:block}#study-tool-code textarea{height:100px;width:80%}#study-tool-settings{margin:5px 0;padding:0;font-size:0}#study-tool-settings li{list-style-type:none;display:inline-block;margin-right:10px;font-size:14px}#study-tool-settings .button{margin:0}#study-tool-settings label{cursor:pointer;vertical-align:top;font-weight:700}#downloadCode:before,#loadCode:before{font-family:FontAwesomeWeb,FontAwesome;font-weight:400;font-size:16px;margin-right:4px;vertical-align:middle}#downloadCode:before{content:"\f019"}#loadCode:before{content:"\f093"}#study-tool-file{visibility:hidden;position:absolute}#study-tool-ui .item-row.question-row{background:#eee;border:1px solid #ccc;padding:6px;margin:10px}.item-row.question-row{position:relative}.item-row.question-row>.button{position:absolute;top:0;right:0}.item-row.question-row>.button.row-add{right:40px}.item-row.question-row:only-child>.button.row-add{right:0}.item-row.question-row textarea{width:80%}.item-row.question-row input[type=text]{width:50%}#study-tool-ui.written-quiz{list-style-type:none;padding:0;overflow:visible}#study-tool-ui.written-quiz textarea{width:80%;height:150px}#genki-modal-overlay{background:#000 no-repeat center;position:fixed;top:0;left:0;right:0;bottom:0;opacity:.5;z-index:9999}#genki-modal-body{background:#fff;border:1px solid #17a;position:fixed;top:10%;left:25%;right:25%;bottom:40%;z-index:99999}#genki-modal-header{color:#fff;background:#17a;margin:0;padding:0 6px;height:40px;line-height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#genki-modal-content{font-size:15px;padding:6px;position:absolute;top:40px;left:0;right:0;bottom:40px;overflow-y:auto}#genki-modal-buttons{height:40px;line-height:40px;position:absolute;bottom:0;left:0;right:0}#genki-modal-buttons .button{line-height:normal;margin:0 6px 0 6px}#break-minutes{width:50px}#break-timer{font-weight:700;font-size:24px;position:absolute;top:25%;left:0;right:0}.taking-a-break #genki-modal-body,.taking-a-break #genki-modal-header,.taking-a-break #genki-modal-overlay{transition:1s}.taking-a-break #genki-modal-buttons button{display:none}.taking-a-break #genki-modal-header{text-align:center;background-color:rgba(17,119,170,.7)}.taking-a-break #genki-modal-body{background-color:rgba(255,255,255,.7);border-color:rgba(17,119,170,.7)}.taking-a-break #genki-modal-overlay{background-size:cover;opacity:1}#genki-site-settings{font-size:26px;display:inline-block;height:20px;line-height:20px;margin-left:15px}#genki-site-settings:focus{color:#17a}#genki-site-settings i{vertical-align:-5px}.genki-settings-list{list-style-type:none}.genki-settings-list li{margin:10px 0}.genki-settings-list .label{width:40%;margin-right:10px;text-align:right;font-weight:700;vertical-align:top;cursor:help}#page-custom-css{width:50%;height:100px}.button.opt-off{background-color:#999}.button.opt-off:hover{background-color:#888}.button.opt-off:focus{background-color:#777}#light-switch-container{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}#light-switch-label{vertical-align:middle;cursor:pointer}#light-switch{background-color:rgba(0,0,0,.25);border:1px solid rgba(0,0,0,.25);vertical-align:middle;display:inline-block;position:relative;height:26px;width:60px;border-radius:20px;cursor:pointer;overflow:hidden}#light-switch:focus{border:1px solid #17a;outline:0}#light-switch>input{display:none}#light-switch>div{background-color:rgba(255,255,255,.5);position:absolute;top:3px;left:3px;height:20px;width:20px;border-radius:20px;transition:.4s;font-size:13px;font-weight:700;line-height:22px}#light-switch>div:before{content:'ON';margin-left:-27px;color:transparent;transition:.4s}#light-switch>div:after{content:'OFF';margin-left:30px;color:rgba(255,255,255,.5);transition:.4s}#light-switch>input:checked+div{background-color:#fff;left:37px}#light-switch>input:checked+div:before{color:#fff}#light-switch>input:checked+div:after{color:transparent}.genki_pseudo_checkbox,.genki_pseudo_radio{display:inline-block;text-align:center;background:#fff;border:1px solid #ccc;height:16px;width:16px;vertical-align:middle;margin-right:3px;position:relative;overflow:hidden;cursor:pointer}.genki_pseudo_checkbox:focus,.genki_pseudo_checkbox:hover,.genki_pseudo_radio:focus,.genki_pseudo_radio:hover{border-color:#17a;outline:0}input[disabled]+.genki_pseudo_checkbox,input[disabled]+.genki_pseudo_radio{opacity:.5;cursor:not-allowed}.genki_pseudo_radio{border-radius:100%}.genki_pseudo_radio:after,.genki_pseudo_radio:before,input:checked+.genki_pseudo_radio:after{content:"";font-size:0;border-radius:100%;position:absolute;top:3px;left:3px;height:10px;width:10px}.genki_pseudo_radio:before{background:#ccc}.genki_pseudo_radio:after{background:#17a;top:8px;left:8px;height:0;width:0}.genki_pseudo_checkbox:after{content:"\f00c";color:#17a;font-family:FontAwesomeWeb,FontAwesome;font-size:0;position:absolute;top:0;left:0;right:0;line-height:16px}input:checked+.genki_pseudo_checkbox:after{font-size:14px}.genki_input_hidden{visibility:hidden;position:absolute}.checkbox-label{font-size:13px;font-weight:700;cursor:pointer}.dict-block{margin-top:50px}.dict-hidden{display:none}.dict-desc{padding:3px}.leg-desc{font-size:12px;vertical-align:top}#dictionary-modes .button{border:2px solid transparent}#dictionary-modes .button.active-mode{color:#17a;border-color:#17a;background-color:transparent;cursor:default}#dict-legend .text-block{margin:3px}#dict-legend .text-block div{margin:3px 0}.dictionary-index{margin:3px;padding:3px}#japanese-english .dictionary-index ul{float:left;padding:3px;margin:0}#japanese-english .dictionary-index ul.dict-index-split{margin-left:10px}.dictionary-index li{list-style-type:none;margin:0 3px;float:left}#japanese-english .dictionary-index li{float:none}.dictionary-index li{font-weight:700;font-size:18px}.dictionary-index li a{color:#17a}.dictionary-index li a:hover{color:#047}.dict-index-disabled{opacity:.5;cursor:default}.dictionary-index.dict-alpha li{margin:0 8px}.dict-search-wrapper{margin:3px}.dict-search{width:100%;box-sizing:border-box}.dict-search-results{border:1px solid #ccc;margin:0}.dict-search-results:empty{border-color:transparent}.dict-search-results:not(:empty){height:250px;padding:3px;overflow:auto;position:relative}#selected_words_list.dict-search-results .definition{list-style-type:decimal;list-style-position:inside}#selected_words_list.dict-search-results{width:80%;height:80%;padding:5px 10px;margin:0 auto}.dictionary-group{float:left;width:48.5%;margin-right:1.5%;padding:0}.dictionary-group:nth-of-type(even){margin-right:3%}.dictionary-group:nth-of-type(odd){margin-right:0}.dictionary-group .word-list{padding:0}.dictionary-group .word-list.hidden{display:none}.group-selectors.hidden{display:none}.group-selectors .deselect-all:before,.group-selectors .select-all:before{font-size:17px;font-family:FontAwesomeWeb,FontAwesome;font-weight:400;vertical-align:middle;margin-right:10px}.group-selectors .select-all:before{content:"\f046"}.group-selectors .deselect-all:before{content:"\f096"}.dict-search-wrapper .group-selectors .button,.dictionary-group .group-selectors .button{padding:3px 6px;margin:3px 0;width:30px;height:30px}.dict-search-wrapper .group-selectors .deselect-all:before,.dict-search-wrapper .group-selectors .select-all:before,.dictionary-group .group-selectors .deselect-all:before,.dictionary-group .group-selectors .select-all:before{margin:0}.definition-count{font-size:16px;vertical-align:top;margin-left:8px}.definition{font-size:14px;list-style-type:none;margin:6px 0;overflow:hidden}.def-ja.def-furi{position:relative;display:inline-block;margin-bottom:15px}.def-ja.def-furi i{color:#777;font-size:11px;font-style:normal;white-space:nowrap;position:absolute;bottom:-15px;left:0}#english-japanese .def-en,#japanese-english .def-ja,#quick-jisho-results .def-ja{margin-right:8px}.def-label{float:right}.def-vtype{font-size:0}.def-vtype i{font-size:12px;font-style:normal;color:#fff;background:#17a;border:1px solid #069;border-radius:3px;display:inline-block;line-height:12px;padding:3px}#quick-jisho-toggle{color:#fff;font-size:18px;text-align:center;line-height:32px;background:#17a;height:30px;width:30px;border-radius:100%;position:fixed;right:5px;bottom:5px;cursor:pointer}#quick-jisho-toggle:focus,#quick-jisho-toggle:hover{opacity:.7;outline:0}#quick-jisho-window{background:#fff;border:1px solid #ccc;box-shadow:0 0 6px rgba(0,0,0,.25);height:300px;width:500px;max-height:85%;max-width:90%;position:fixed;right:5px;bottom:40px;opacity:1;transition-duration:.3s;transition-property:opacity,bottom}#quick-jisho-window.quick-jisho-hidden{bottom:-310px;opacity:0}.quick-jisho-header{background:#17a;display:flex;align-items:center;padding-left:1em;padding-right:1em}#quick-jisho-title{flex:1;display:flex;justify-content:center;color:#fff;line-height:32px;font-size:18px;margin:-1px -1px 0 -1px;margin-left:18px}.quick-jisho-row{padding:3px}.quick-jisho-row:first-child{padding-bottom:0}#quick-jisho-search{width:100%;height:35px;box-sizing:border-box}#quick-jisho-results{height:219px;padding:3px;margin:0;overflow-y:auto}#quick-jisho-results .definition:focus{color:#17a;outline:0}#quick-jisho-selector{border-radius:15px;border:1px solid rgba(0,0,0,.15);box-shadow:0 0 3px rgba(0,0,0,.25);padding:3px 9px;margin:0;position:absolute;z-index:9999}.gu-mirror{position:fixed!important;margin:0!important;z-index:9999!important;opacity:.8}.gu-hide{display:none!important}.gu-unselectable{-webkit-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.gu-transit{opacity:.2}.ad-container{text-align:center;margin:25px 0}@media (max-width:1000px){.content-block{padding:30px 0}#announce-inner{padding:0 6px}footer li{float:none;display:inline-block}footer li:before{margin-left:0}.footer-left,.footer-right{float:none;text-align:center;margin-bottom:10px}#light-switch-container{height:auto;margin-top:0}#quick-search-wrapper,.normal-block,h2,h3,h4,p{padding:0 6px}a.anchor{margin:0 0 0 -5px}.center a.anchor,.sub-lesson-title a.anchor,.workbook-title a.anchor{margin:0 0 0 -25px}.kana-quiz .quiz-column{margin:0}.text-passage{width:90%}.quiz-multi-answer{width:80%}.more-exercises{text-align:center}.more-exercises a.button{float:none;margin:3px}#genki-modal-header{font-size:16px}#genki-modal-content{font-size:14px}#genki-modal-body{left:5%!important;right:5%!important;bottom:10%!important}}@media (max-width:930px){.drawing-quiz .drawing-zone{width:auto!important;margin:3px auto}.drawing-quiz .quiz-answer-row{flex-wrap:wrap;padding-bottom:25px;margin-bottom:25px;border-bottom:3px dashed #17a}}@media (max-width:820px){header{padding:100px 0 0 0;text-align:center;background-position:50% 00px}header h1{font-size:24px}#home-link:before{content:"";position:absolute;height:100px;width:120px;top:60px;left:50%;margin-left:-60px}.edition-icon:after{margin-top:30px}.columns-2>div,.dictionary-group{float:none;width:100%}.inline-columns>div,.lesson-summary .inline-columns>div{margin-right:5px}.dictionary-group{margin:0}.dictionary-group .definition{padding:0 3px}.vocab-key>div:first-child,.vocab-key>div:last-child{border:none}.vocab-key>div:first-child{border-bottom:1px solid #999}.drag-quiz #answer-list,.drag-quiz #drop-list,.drag-quiz #question-list{float:left;width:33.33%}.drag-quiz .vocab-horizontal #answer-list,.drag-quiz .vocab-horizontal #drop-list,.drag-quiz .vocab-horizontal #question-list{float:none;width:auto}.vocab-horizontal .quiz-item-group{width:auto}#lessons .lesson-title{font-size:18px}#quick-jisho-window{width:300px}.fill-quiz.quiz-over .writing-zone+.writing-zone{margin-bottom:20px;position:relative;top:20px}}@media (pointer:coarse){#exercise-list .lesson-title,#exercise-list .sub-lesson-title,#exercise-list li a,#lessons li a{font-size:14px}#exercise-list li a,#lessons li a{padding:6px 0}#exercise-list .lesson-title{padding:6px}} \ No newline at end of file diff --git a/resources/javascript/genki.js b/resources/javascript/genki.js index d4151da..10703d2 100644 --- a/resources/javascript/genki.js +++ b/resources/javascript/genki.js @@ -2441,14 +2441,17 @@ box.id = 'quick-jisho-window'; box.className = 'quick-jisho-hidden'; box.innerHTML = - '

Quick Dictionary

'+ - '
'+ - '
'+ - ''+ - '
'+ - '
'+ - ''+ - '
'+ + '
' + + '

Quick Dictionary

' + + ' ' + + '
' + + '
' + + '
' + + '' + + '
' + + '
' + + '
    ' + + '
    ' + '
    '; // selection button diff --git a/resources/javascript/genki.min.js b/resources/javascript/genki.min.js index fb71f0a..1a4ba7b 100644 --- a/resources/javascript/genki.min.js +++ b/resources/javascript/genki.min.js @@ -1 +1 @@ -!function(e,t){"use strict";var a={stats:{problems:0,solved:0,mistakes:0,score:0,exclude:0},canNotify:"Notification"in e,isTouch:"ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,isTouching:!1,isTimerPausedByPopup:!1,feedbackMode:storageOK&&localStorage.feedbackMode?localStorage.feedbackMode:"classic",dataBackupReminderCount:storageOK&&localStorage.dataBackupReminderCount?+localStorage.dataBackupReminderCount:0,textSelectMode:!1,strokeNumberDisplay:!1,markedItem:null,ed:"lessons",local:"file:"==e.location.protocol?"index.html":"",debug:/debug/.test(e.location.search)?"?debug":"",lang:{std_drag:"Drag the English expression to the Japanese expression that has the same meaning.
    TIP: Click an expression to mark it, then click an empty field to drop the answer there.",std_kana:"Drag the Kana to the matching Romaji.
    TIP: Click the kana to mark it, then click an empty field to drop the answer there.",std_num:"Drag the Numbers to the matching Kana.
    TIP: Click a number to mark it, then click an empty field to drop the answer there.",std_multi:"Solve the problems by choosing the correct answers.",std_questions:"Answer the questions as best as you can.",std_culture:"Answer the questions about Japanese culture as best as you can.",std_stroke_order:"Practice drawing each kanji by following the stroke order.",std_drawing:"Practice drawing the following kanji multiple times.",vocab_multi:"Choose the correct definition for each Japanese expression.",vocab_writing:"Practice spelling the following words/expressions.",vocab_fill:"Write the Japanese definition for the following words/expressions.",kana_multi:"Choose the correct Romaji for the %{KANA}.",kana_writing:"Practice writing the following %{KANA}.",kana_fill:"Complete the chart by filling in the Romaji.",num_multi:"Read the Japanese and choose the correct numbers.",num_writing:"Practice spelling the following numbers.",num_fill:"Write the following numbers in Japanese (hiragana).",kanji_readings_multi:"Choose the correct readings for each kanji.",kanji_readings_drag:"Match each kanji with their readings.",kanji_yomikata:'

    ▶ indicates the on-yomi (pronunciation originally borrowed from Chinese).
    ▷ indicates the kun-yomi (native Japanese reading).

    ',kanji_meanings_multi:"Choose the correct meanings for each kanji.",kanji_meanings_drag:"Match each kanji with their meanings.",opts:{kana:{kana:"Drag and Drop",multi:"Multiple Choice",writing:"Writing Practice",fill:"Fill in the Chart"},numbers:{drag:"Drag and Drop",multi:"Multiple Choice",writing:"Spelling Practice",fill:"Write the Numbers"},kanji:{multi:"Multiple Choice",drag:"Drag and Drop"},vocab:{drag:"Drag and Drop",multi:"Multiple Choice",writing:"Spelling Practice",fill:"Write the Definition"},practice:{multi:"Multiple Choice",fill:"Written",drag:"Drag and Drop"},hirakata:{fill:"Written",stroke:"Stroke Order Practice",drawing:"Drawing Practice"},stroke:{stroke:"Stroke Order Practice",drawing:"Extended Drawing Practice"}},mistakes:'The items outlined in red were answered wrong before finding the correct answer. Review these problems before trying again.',writing_mistakes:'The items outlined in red were answered wrong. Review these problems before trying again.',multi_mistakes:'The answers you selected that were wrong are outlined in red. The correct answers are outlined in blue. Review these problems before trying again.',stroke_mistakes:'The characters you drew that were wrong are outlined in red. Please review the stroke order and number of strokes for these characters before trying again.

    Note: Sometimes answers may be marked wrong by mistake, due to a mismatch in the recognition algorithm.
    Please use your own discretion if this occurs.',fill_mistakes:'The items underlined in red were answered wrong, the correct answers are listed underneath in green. Review these problems before trying again.',sub_answers:'Note: Answers inside blue parentheses separated by "/" are a list of possible sub-answers; only one can be used.
    For example.. (あの/その)ねこ: そのねこ or あのねこ (good) vs あの/そのねこ (bad)
    (この/)ねこ means the sub-answer is optional; it can be left out.',review:'
    ',toggle_furigana:'",check_answers:'
    ',back_to_dict:''},active:{type:null,exercise:null,index:0,path:e.location.pathname.replace(/.*?\/lessons.*?\/(.*?\/.*?)\/.*/g,"$1")},exercises:e.GenkiExercises||null,scrollTo:function(e,a){"string"==typeof e&&(e=t.querySelector(e));var i=function(){t.body.scrollTop=e.offsetTop,t.documentElement.scrollTop=e.offsetTop};a?setTimeout(i,100):i()},QuizType:{DRAG:"drag",KANA:"kana",WRITING:"writing",MULTI:"multi",FILL:"fill",STROKE:"stroke",DRAWING:"drawing"},generateQuiz:function(i){!a.exerciseData&&e.JSON&&(a.exerciseData=JSON.stringify(i));var s=t.getElementById("quiz-zone");if("object"==typeof i.type){for(var n,r=!!/(?:begin|start)=\d/.test(e.location.search)&&e.location.search.replace(/.*?(?:begin|start)=(\d).*/,"$1"),o=0,l=i.type.length,c="";o"+a.lang.opts[i.format][i.type[o]]+"";return n=GenkiModal.open({title:"Please Select an Exercise Type",content:'Please select the type of exercise you would like to do, then click "Begin" to start studying.

    '+(/\/vocabulary-index\/|\/custom-vocab\//.test(e.location)?"":"
    Current Exercise
    "+t.title.replace(/ \| Tobira Study Resources.*$/,"")+"

    ")+'
    Exercise Type

    ',buttonText:"Begin",noClose:1,zIndex:"low",callback:function(){var e=t.getElementById("exercise-type").value;if(i.type=i.type[e],i.info="object"==typeof i.info&&i.info[e]?i.info[e]:i.info,storageOK&&(localStorage["genki_pref_"+i.format]=i.type),/vocab|kana|numbers|kanji/.test(i.format)){if("kana"==i.format&&"kana"!=i.type){var s={};for(x in i.quizlet)for(d in i.quizlet[x])s[d]=i.quizlet[x][d];i.quizlet=s,i.info=i.info.replace("%{KANA}",a.active.exercise[1].replace(/.*?(Hiragana|Katakana).*/,"$1"))}if("kanji"==i.format){if(i.readings){for(x in i.quizlet){var n=i.quizlet[x].split("|");i.quizlet[x]=(n[0]?''+n[0]+"
    ":"")+(n[1]?''+n[1]:"")}i.info+=a.lang.kanji_yomikata}"drag"==i.type&&(t.getElementById("exercise").className+=i.readings?" kanji-readings":i.meanings?" kanji-meanings":"")}if("multi"==i.type){var r,o,l,c,d,u,g=[],p=[],h=[];for(x in i.quizlet)p.push(x),h.push(x);for(x=0,q=p.length;x'+(y[1]?"":"kanji"==i.format?'
    ':"")+y[0]+(y[1]?""+y[1]+"":"kanji"==i.format?"
    ":"")+(o?'
    '+o+"
    ":"")+"",answers:["A"+r]}),(c=h.slice()).splice(T,1),d=3;d-- >0&&c.length;)u=Math.floor(Math.random()*c.length),(l=i.quizlet[c[u]].replace(/\|.*?$/,""))==r?d++:g[x].answers.push("A"==l.charAt(0)?"!"+l:l),c.splice(u,1);p.splice(T,1)}i.quizlet=g}else if("writing"==i.type){var m;g={};for(x in i.quizlet)for(var k,f=(m=x.split("|"))[0].split("/"),v=0,b=f.length;v
    ":"")+'
    '+i.quizlet[p[x]].replace(/\|.*?$/,"")+"
    "+(/\|/.test(w)?w.replace("}","|answer}"):w)+"
    ";i.quizlet=g+"
    "}else"kana"==i.format&&(i.quizlet=i.chart)}else if("practice"==i.format){i.quizlet=i.quizlet[e];var z=t.querySelector(".multi-quiz-image");"fill"==i.type&&z?z.style.display="none":"multi"==i.type&&z&&(z.style.display="")}else"hirakata"==i.format&&(i.quizlet=i.quizlet[e]?i.quizlet[e]:i.quizlet[i.quizlet.length-1]);a.generateQuiz(i),a.changingExType=!1}}),!a.changingExType&&(!1!==r||storageOK&&"true"==localStorage.genkiSkipExType)&&(n.callback(),GenkiModal.close()),a.create.exerciseTypeButton(),!1}if(a.active.type=i.type,"drag"==i.type){var d,u,g='
    '+i.info+'
    ',p='
    ',h=[];for(o in i.quizlet)h.push(o);for(d=h.slice(0);h.length;)o=Math.floor(Math.random()*h.length),g+='
    "+(w?h[o].replace(/(.*?)\|(.*)/,'$1$2'):h[o])+"
    ",p+='
    ',h.splice(o,1),++a.stats.problems,!u&&w&&(u=!0);for(g+="
    "+p+"
    ",u&&(s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),g+='
    ';d.length;)g+='
    '+i.quizlet[d[o]].replace(/\|.*?$/,"")+"
    ",d.splice(o,1);g+="
    ",s.innerHTML=g+a.lang.review.replace("",a.lang.toggle_furigana+''),!storageOK||"true"!=localStorage.vocabHorizontal&&localStorage.vocabHorizontal||a.toggle.vocabOrientation(t.getElementById("toggle-orientation"),"false")}else if("kana"==i.type){g='
    '+i.info+'
    ';var m,k='
    ',f=[],v=i.quizlet;for(o=v.length-1;o>-1;o--){g+='
    ';for(m in v[o])g+='
    '+v[o][m]+"
    ",f.push('
    '+m+"
    "),++a.stats.problems;g+="
    "}for(;f.length;)k+=f[o=Math.floor(Math.random()*f.length)],f.splice(o,1);s.innerHTML=g+"
    "+k+"
    "+a.lang.review}else if("writing"==i.type){g='
    '+i.info+"
    If you don't know how to type in Japanese on your computer, please visit our help page by clicking here.
    ';var b='style="width:'+100/((M=i.columns)+1)+'%;"',y=0,w=!1;for(o in i.quizlet){for(g+='
    '+o+"
    ",l=0;M-- >0;)g+='
    ',++a.stats.problems;g+="
    ",M=i.columns}/data-helper/.test(g)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),s.innerHTML=g+"
    "+a.lang.check_answers.replace("",w?a.lang.toggle_furigana+"":""),i.quiz&&(s.className+=" no-helper"),a.input={map:t.querySelectorAll(".writing-zone-input"),index:0},a.input.map[0].autofocus=!0}else if("multi"==i.type){g='
    '+i.info+'
    NEW: You can now choose between "Instant" and "Classic" Feedback Mode for multiple choice quizzes in the Site Settings.
    ',k='
    ';var x=65,q=!1,T=(w=!1,/"format":"vocab"/.test(a.exerciseData));for(o=0,l=(E=i.quizlet).length;o
    ",x=65,++a.stats.problems}/class="furigana"|class="inline-furi"|/.test(g)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),T&&storageOK&&"true"==localStorage.spoilerMode&&(s.className+=" spoiler-mode"),s.innerHTML=g+'
    '+(a.appendix?"":'')+(w?a.lang.toggle_furigana:"")+"
    ",a.progressQuiz("init")}else if("fill"==i.type){w=!1;/class="furigana"|class="inline-furi"|/.test(i.quizlet)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),s.innerHTML='
    '+i.info+"
    If you don't know how to type in Japanese on your computer, please visit our help page by clicking here.
    '+i.quizlet.replace(/\{.*?\}/g,function(e){var t,i,s,n,r,o=e.slice(1,e.length-1).split("|");return"!IMG"==o[0]?a.parse.image(o):"!GRI"==o[0]?'"+o[1]+"":"!AUDIO"==o[0]?'
    ':"!PLAY"==o[0]?'':(t=o[1]?o[1]:"",i=(o[10]||o[9]||o[8]||o[7]||o[6]||o[5]||o[4]||o[3]||o[2]?o[10]||o[9]||o[8]||o[7]||o[6]||o[5]||o[4]||o[3]||o[2]:"").split(";"),(/\%\((.*?)\)/.test(t)||/\%\((.*?)\)/.test(o[0]))&&(s=[o[0].match(/%\((.*?)\)/),t.match(/%\((.*?)\)/)]),++a.stats.problems,n=/width:/.test(i[0])?i[0].split(":")[1]:i[1]&&/width:/.test(i[1])?i[1].split(":")[1]:i[2]&&/width:/.test(i[2])?i[2].split(":")[1]:s?(t?(s[0]&&s[0][1]||"/").split("/").concat((s[1]&&s[1][1]||"/").split("/")):(s[0]&&s[0][1]||"/").split("/")).sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1))+14+[t.replace(/\%\((.*?)\)/g,""),o[0].replace(/\%\((.*?)\)/g,"")].sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1)):[t,o[0]].sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1))+14,r=/placeholder:/.test(i[0])?i[0].split(":")[1]:i[1]&&/placeholder:/.test(i[1])?i[1].split(":")[1]:i[2]&&/placeholder:/.test(i[2])?i[2].split(":")[1]:null,''+(t&&!/answer|furigana|placeholder/.test(i[0])||i[1]&&/hint:/.test(i[1])||i[2]&&/hint:/.test(i[2])?''+(i[1]&&/hint:/.test(i[1])?i[1].split(":")[1]:i[2]&&/hint:/.test(i[2])?i[2].split(":")[1]:t).replace(/(\!I.*?$)/,function(e,t){if(/^!I/.test(t)){for(var a=t.slice(2).split("/"),i=0,s=a.length,n="";i'+a[i]+"/";return n.slice(0,n.length-1)}})+"":"")+"")})+"
    "+a.lang.check_answers.replace("()","(false, 'fill')").replace("",w?a.lang.toggle_furigana+"":""),t.querySelector(".writing-zone-input").autofocus=!0}else if("stroke"==i.type){g='
    '+i.info+'
    ',k='
    ';var z,S=storageOK&&"false"==localStorage.strokeOrderVisible,N=storageOK&&"false"==localStorage.tracingGuideVisible;for(o=0,l=(E=i.quizlet).length;o
    ",++a.stats.problems;s.innerHTML=g+'
    ',S&&(s.className+=" stroke-order-hidden"),a.progressQuiz("init",!1,"stroke")}else if("drawing"==i.type){g='
    '+i.info+'
    ',N=storageOK&&"false"==localStorage.tracingGuideVisible,b='style="width:'+100/((M=i.columns)+1)+'%;"';var M,E=i.quizlet,j=0;for(o=0,l=i.quizlet.length;o
    "+E[o].kanji+'
    ';M-- >0;)g+='
    '+(a.debug?'':"")+"
    ",++a.stats.problems,++j;g+="
    ",M=i.columns}s.innerHTML=g+""+a.lang.check_answers.replace("()","(false, 'drawing')").replace("",'');var I=t.querySelectorAll(".kanji-canvas");for(o=0,l=I.length;o1?a.stats.mistakes:++a.stats.mistakes):(i.className+=" answer-correct",a.markedItem&&(a.markedItem.className="quiz-item",a.markedItem=null),++a.stats.solved==a.stats.problems&&a.endQuiz()))}),a.drake=B,a.globalEventListenersSet||(a.globalEventListenersSet=!0,["click","keypress"].forEach(function(e){t.addEventListener(e,function(e){if(!("keypress"==e.type&&"Enter"!=e.key||a.quizOver)){for(var i=e.target,s=4,n=s-1;s-- >0&&(s'+(a.stats.solved+1)+"/"+a.stats.problems+""},progressQuiz:function(e,i,s){if(a.textSelectMode||a.quizOver)return!1;if("init"==e)t.getElementById("quiz-q"+a.stats.solved).style.display="",a.incrementProgressBar();else{if(e&&"stroke"==s){var n=KanjiCanvas.recognize(e.dataset.canvas);e=e.parentNode.parentNode.querySelector(".kanji-canvas"),a.debug&&console.log("toDraw: "+e.dataset.kanji),a.debug&&console.log("Results: "+n),a.debug&&console.log("Correct: "+(new RegExp(e.dataset.kanji).test(n)&&e.dataset.strokesAnswer==e.dataset.strokes).toString()),e.dataset.answer=new RegExp(e.dataset.kanji).test(n)&&e.dataset.strokesAnswer==e.dataset.strokes}e.className+=" selected-answer",i&&(e.parentNode.className+=" hidden-answer"),"false"==e.dataset.answer&&(e.parentNode.parentNode.className+=" wrong-answer",++a.stats.mistakes);var r=t.getElementById("quiz-q"+a.stats.solved++),o=t.getElementById("quiz-q"+a.stats.solved);if(o)if("instant"==a.feedbackMode&&"multi"==a.active.type)a.multiNodes||(a.multiNodes={list:t.getElementById("question-list"),button:t.getElementById("next-button"),next:null,last:null}),a.quizOver=!0,a.multiNodes.list.className+=" multi-quiz quiz-over",a.multiNodes.button.style.visibility="visible",a.multiNodes.button.firstChild.focus(),a.multiNodes.next=o,a.multiNodes.last=r;else{o.style.display="",r.style.display="none";(l=o.querySelector(t.querySelector(".spoiler-mode")?".vocab-spoiler-toggle":".quiz-multi-answer"))&&l.focus(),a.incrementProgressBar()}else{a.endQuiz("stroke"==s?s:"multi");for(var l,c=0,d=(l=t.querySelectorAll('[id^="quiz-q"]')).length;cQuiz Complete!
    Problems Solved:'+n+'
    Answers Wrong:'+a.stats.mistakes+'
    Score:'+a.stats.score+'%
    Completion Time:'+r.innerHTML+'
    '+(100==a.stats.score?"PERFECT! Great Job, you have mastered this quiz! Feel free to move on or challenge yourself by trying to beat your completion time.":a.stats.score>70?"Nice work! "+a.lang[i?i+"_mistakes":"mistakes"]:"Keep studying! "+a.lang[i?i+"_mistakes":"mistakes"])+(t.querySelector(".alt-phrase")?"

    "+a.lang.sub_answers:"")+'
    '+(/\/vocabulary-index\//.test(e.location)?a.lang.back_to_dict:'')+'Back to Index
    ',storageOK&&a.active.exercise.length>0&&!/appendix|study-tools/.test(a.active.exercise[0])){var o=a.active.exercise[0],l=JSON.parse(localStorage.TobiraResults);l||(l={}),l[o]=void 0===l[o]||a.stats.score>l[o]?a.stats.score:l[o],localStorage.TobiraResults=JSON.stringify(l),a.create.removeExerciseList(),a.create.exerciseList(),"true"!=localStorage.dataBackupReminder&&void 0!=localStorage.dataBackupReminder||(++a.dataBackupReminderCount>=10&&(a.dataBackupReminderCount=0,setTimeout(function(){GenkiModal.open({title:"Backup Exercise Score Data?",content:'You\'ve recently completed 10 exercises. Would you like to backup your exercise score data?

    Save Data



    ',zIndex:"low",focus:"#save-exercise-data"})},100)),localStorage.dataBackupReminderCount=a.dataBackupReminderCount)}"stroke"==i&&(t.getElementById("toggle-stroke-numbers").style.display="",t.getElementById("toggle-tracing-guide").style.display="none"),a.drake&&setTimeout(function(){a.drake.destroy(),delete a.drake},100);var c=t.getElementById("change-exercise-type-container");c&&(c.style.display="none"),t.getElementById("exercise").className+=" quiz-over",a.scrollTo("#complete-banner",!0)},reset:function(i){if(e.JSON){if(!i&&/fill-quiz|writing-quiz/.test(t.getElementById("exercise").className)&&a.stats.mistakes>0)return GenkiModal.open({title:"Try again with your current answers?",content:"
    Would you like to try again with your current answers? This will allow you to correct the answers you got wrong while preserving what you have already written.

    ※ Please note that your answers will be lost if you change the page or exercise type.
    ",buttonText:"Yes",closeButtonText:"No",customButton:'',keepOpen:!0,callback:function(){for(var e=[],i=t.querySelectorAll(".writing-zone-input"),s=0,n=i.length;s
    '+(n?n.outerHTML:"")+'
    '+t.querySelector(".more-exercises").outerHTML,a.appendix?(s.style.display="none",t.getElementById("appendix-tool").style.display="",a.scrollTo(/\/vocabulary-index\//.test(e.location)?"#practice-words":".title"),/\/vocabulary-index\//.test(e.location)?a.appendix.jisho.launchExercise():/\/map-of-japan\//.test(e.location)?a.appendix.studyMap():/\/numbers-chart\//.test(e.location)?a.appendix.studyChart("numbers"):/\/conjugation-chart\//.test(e.location)&&a.appendix.studyChart("conjugation")):a.tools?(s.style.display="none",t.getElementById("study-tool-editor").style.display="",a.scrollTo(".title")):a.generateQuiz(JSON.parse(a.exerciseData))}else e.location.reload()},breakTime:function(){GenkiModal.open({title:"Take a Break?",content:"Taking a break and waiting before trying again can greatly help with building your memory. 5 to 10 minute breaks are recommended, but you're free to adjust the time to your liking."+(/"format":"vocab"/.test(a.exerciseData)?' Please see this page for more tips on memorizing vocab.':"")+'

    Wait Minute(s)
    ',buttonText:"Wait",keepOpen:!0,callback:function(){if(a.breakMultiplier60?n=60:n<=0&&(n=1),GenkiModal.open({title:"Taking a Break",content:'
    00:'+(n<10?"0":"")+n+":00
    ",buttonText:"End Break Time",keepOpen:!!(a.appendix||!a.tools&&/"format"/.test(a.exerciseData)),callback:function(){a.reset(),t.body.className=t.body.className.replace(" taking-a-break","")}}),t.body.className+=" taking-a-break",s=Math.floor(10*Math.random())+1,t.getElementById("genki-modal-overlay").style.backgroundImage="url(../../../resources/images/backgrounds/bg-"+(s<10?"0":"")+s+".jpg)";var r=new Timer,o=t.getElementById("break-timer");r.start({startValues:{minutes:n},target:{seconds:0},countdown:!0}),r.addEventListener("secondsUpdated",function(i){var s=r.getTimeValues().toString();if(o.innerHTML=s,"00:00:00"==s&&(o.innerHTML='Break time is up!
    Click the button below to resume your studies.
    ',t.getElementById("genki-modal-ok").style.display="inline-block",!a.local&&a.canNotify&&"granted"==Notification.permission)){new Notification(t.title.replace(/ \| Tobira Study Resources.*$/,""),{body:"Break time is up!",icon:t.querySelector('meta[property="og:image"]').content,tag:"breakTime-"+a.active.index}).onclick=function(){e.focus(),this.close()}}})}})},breakMultiplier:0,breakTimer:[5,10,15,20,30,40,50,60],breakTimerCustom:!1,changeBreakMultiplier:function(e){var t=Number(e.value);t<=5?a.breakMultiplier=0:t<=10?a.breakMultiplier=1:t<=15?a.breakMultiplier=2:t<=20?a.breakMultiplier=3:t<=30?a.breakMultiplier=4:t<=40?a.breakMultiplier=5:t<=50?a.breakMultiplier=6:t<=60&&(a.breakMultiplier=7),a.breakTimerCustom=!0},review:function(){GenkiModal.open({title:"Activate Review Mode?",content:"Are you sure you want to review? Your current progress will be lost.",callback:function(){for(var i=t.querySelectorAll("[data-answer]"),s=0,n=i.length;sRestart')+(t.querySelector(".drag-quiz")?a.lang.toggle_furigana+t.getElementById("toggle-orientation").outerHTML:""),t.getElementById("quiz-info").innerHTML='You are currently in review mode; go ahead and take your time to study. When you are ready to practice this exercise, click the "restart" button.',t.getElementById("quiz-zone").className+=" review-mode";var r=t.getElementById("change-exercise-type-container");r&&(r.style.display="none")}})},toHalfWidth:function(e){return e.replace(/[\uFF01-\uFF5E]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-65248)})},check:{busy:!1,value:function(i){if(a.check.busy||i.value!=i.dataset.answer)a.check.busy&&e.setTimeout(function(){a.check.busy=!1,t.activeElement&&t.activeElement.value&&t.activeElement.value==a.input.map[a.input.index-1].value&&(t.activeElement.value="")},10);else{a.check.busy=!0;var s=a.input.map[a.input.index+1];s?s.focus():e.setTimeout(function(){i.blur(),a.check.answers(!0),a.check.busy=!1},10)}},answers:function(e,i){!a.exerciseComplete&&GenkiModal.open({title:"Check Answers?",content:e?"The last input field has been filled in. Are you ready to check your answers?":"Checking your answers will end the quiz. Do you want to continue?",buttonText:"Yes, check my answers!",callback:function(){if(a.exerciseComplete=!0,t.querySelector("#check-answers button").style.display="none",i&&"drawing"==i)for(var e,s=0,n=(d=t.querySelectorAll(".kanji-canvas")).length;s'+c.answer+(c.answer2||c.furigana?''+(c.answer2||c.furigana)+"":"")+"").replace(/%\((.*?)\)/g,function(e,t){return'('+t.replace(/\//g,'/')+')'}))),++a.stats.solved,g[s].disabled=!0}}a.endQuiz(i||"writing")}})}},toggle:{exerciseList:function(e){e.className="list-open"==e.className?"":"list-open"},list:function(e){var t="lesson-title",a=t+" lesson-open";e.className=e.className==a?t:a;for(var i=e.parentNode.querySelectorAll(".lesson-title"),s=0,n=i.length;s0;)(e=a.exercises[1==s?a.active.index-1:a.active.index+1])&&!/^\.\.\//.test(e)&&(e=e.split("|"),i+=''+e[1]+"");t.getElementById("quiz-timer").insertAdjacentHTML("afterend",i+"")},removeExerciseList:function(){var e=t.getElementById("exercise-list"),a=t.getElementById("toggle-exercises");e&&e.parentNode.removeChild(e),a&&a.parentNode.removeChild(a)},exerciseList:function(){var i='';if(a.exercises){var s,n,r,o='class="lesson-title" onclick="Genki.toggle.list(this);" onkeydown="event.key == \'Enter\' && Genki.toggle.list(this);" tabindex="0"',l='"),a.active.exercise&&(a.toggle.list(t.getElementById(/^appendix|^study-tools/.test(a.active.exercise[0])?"appendix":a.active.exercise[0].replace(/(lesson-\d+)\/.*/,"$1")).previousSibling),(n=t.querySelector('a[href*="'+a.active.exercise[0]+'"]')).className+=" active-lesson",n=n.parentNode,t.getElementById("lessons-list").scrollTop=n.offsetTop-(n.getBoundingClientRect().height+(e.matchMedia&&matchMedia("(pointer:coarse)").matches?0:6)))}else{var v='";t.getElementById("content").insertAdjacentHTML("afterbegin",v)}},exerciseTypeButton:function(){var i=t.getElementById("quiz-timer"),s=t.createElement("DIV"),n=t.createElement("BUTTON");s.id="change-exercise-type-container",s.className="center",n.id="change-exercise-type",n.className="button",n.innerHTML=' Change Exercise Type',n.onclick=function(){GenkiModal.open({title:"Change Exercise Type?",content:"To change the exercise type, you must quit the current exercise. Do you want to quit?",buttonText:"Quit",closeButtonText:"Cancel",keepOpen:!!(/\/vocabulary-index\//.test(e.location)||!a.tools&&/"format"/.test(a.exerciseData)),callback:function(){if(/(?:begin|start)=\d/.test(e.location.search)){if(!e.history||!e.history.pushState)return void(e.location.search="");e.history.pushState({},t.title,e.location.href.replace(e.location.search,"")+a.debug)}a.changingExType=!0,a.reset()}})},s.appendChild(n),i.nextSibling?i.parentNode.insertBefore(s,i.nextSibling):i.parentNode.appendChild(s)}},parse:{image:function(e){var t=/^http/.test(e[1])?e[1]:"../../../resources/images/lesson-images/"+e[1];return''+(e[2]||e[1])+''}},quickJisho:{hidden:!0,selectorHidden:!0,tabbing:!1,create:function(){if(!a.quickJisho.cache){var e=t.createElement("DIV"),i=t.createElement("DIV"),s=t.createElement("BUTTON"),n=t.createDocumentFragment();e.id="quick-jisho-toggle",e.innerHTML='',e.title="Toggle Quick Dictionary",e.tabIndex=0,e.onclick=a.quickJisho.toggle,e.onkeypress=function(e){"Enter"==e.key&&a.quickJisho.toggle()},i.id="quick-jisho-window",i.className="quick-jisho-hidden",i.innerHTML='

    Quick Dictionary

      ',s.id="quick-jisho-selector",s.className="button",s.style.display="none",s.innerHTML='Look up',s.onclick=a.quickJisho.lookUp,s.tabIndex=0,n.appendChild(i),n.appendChild(e),n.appendChild(s),t.body.appendChild(n);t.querySelector(".footer-right").style.marginRight="40px",a.quickJisho.cache={box:i,search:t.getElementById("quick-jisho-search"),results:t.getElementById("quick-jisho-results"),hits:t.getElementById("quick-jisho-hits"),selector:t.getElementById("quick-jisho-selector")},t.onselectionchange=a.quickJisho.getSelection,t.onmousemove=function(e){a.quickJisho.x=Math.abs(e.pageX-t.body.clientWidth)<100?e.pageX-95:e.pageX,a.quickJisho.y=Math.abs(e.pageY-t.body.clientHeight)<40?e.pageY-32:e.pageY+12},t.onkeydown=function(e){"Tab"!=e.key||a.quickJisho.selectorHidden||t.activeElement==a.quickJisho.cache.selector||(a.quickJisho.tabbing=!0,a.quickJisho.cache.selector.focus(),e.preventDefault())}}},toggle:function(){if(!a.jisho&&!a.quickJisho.loading){a.quickJisho.loading=!0;var e=t.createElement("SCRIPT");e.src=getPaths()+"resources/javascript/jisho.min.js",e.onload=function(){a.quickJisho.cache.search.value&&a.quickJisho.search(a.quickJisho.cache.search.value),a.quickJisho.loading=!1},t.body.appendChild(e)}a.quickJisho.hidden?(a.quickJisho.cache.box.className="",a.quickJisho.hidden=!1,a.quickJisho.cache.search.focus()):(a.quickJisho.cache.box.className="quick-jisho-hidden",a.quickJisho.hidden=!0)},search:function(t,i){a.quickJisho.searchTimeout&&e.clearTimeout(a.quickJisho.searchTimeout),a.quickJisho.searchTimeout=e.setTimeout(function(){var e,s,n,r,o,l="",c=0;if(a.quickJisho.cache.results.innerHTML="",t){t=t.toLowerCase();for(e in a.jisho)for(s=0,n=a.jisho[e].length;s'+o[0]+(o[1]?""+o[1]+"":"")+''+a.jisho[e][s].en+""+(a.jisho[e][s].v?' ['+a.jisho[e][s].v+"]":"")+''+a.jisho[e][s].l+"",c++;break}}if(!i&&!l&&t&&/[\u3400-\u9faf]/.test(t)){var d=t.match(/[\u3400-\u9faf]+/);d&&d[0]&&a.quickJisho.search(d[0],!0)}else a.quickJisho.cache.results.innerHTML=l||(t?'
    • No results found for "'+t+'".
    • ':""),a.quickJisho.cache.hits.innerHTML=c?"("+c+")":"";delete a.quickJisho.searchTimeout},300)},lookUp:function(){a.quickJisho.hidden&&a.quickJisho.toggle(),a.quickJisho.cache.search.value="".trim?a.quickJisho.selectedText.trim():a.quickJisho.selectedText,a.quickJisho.search(a.quickJisho.cache.search.value),this.style.display="none",a.quickJisho.selectorHidden=!0},getSelection:function(){if(storageOK&&"false"==localStorage.genkiJishoLookUp)return!1;if(a.quickJisho.tabbing)return a.quickJisho.tabbingOff||(a.quickJisho.tabbingOff=setTimeout(function(){a.quickJisho.tabbing=!1,delete a.quickJisho.tabbingOff},10)),!1;if(t.getSelection){var e=t.getSelection();"Range"==e.type&&e.toString&&!/quick-jisho/.test(e.focusNode.className)?(a.quickJisho.selectedText=e.toString(),a.quickJisho.cache.selector.style.left=a.quickJisho.x+"px",a.quickJisho.cache.selector.style.top=a.quickJisho.y+"px",a.quickJisho.selectorHidden&&(a.quickJisho.cache.selector.style.display="",a.quickJisho.selectorHidden=!1)):(a.quickJisho.selectedText="",a.quickJisho.selectorHidden||(a.quickJisho.cache.selector.style.display="none",a.quickJisho.selectorHidden=!0))}}},playAudio:function(e,a){var i=t.getElementById(e);i&&(i.currentTime=a,i.play())},viewStrokeOrder:function(e,t,a){var i=getPaths()+"resources/images/stroke-order/"+t+".png";GenkiModal.open({title:e+" Stroke Order",content:''})},getAlts:function(e,t,i){for(var s,n,r,o,l=t.split("|"),c=l.length,d=Math.pow(2,c),u=[],g=0;g',customButton:'View in Grammar Index',customSize:{top:"10%",left:"20%",bottom:"10%",right:"20%"}}),Get(e.href,function(i){var s=t.getElementById("appendix-tool"),n=i.match(new RegExp('(

      )',"m")),r=i.match(new RegExp("()","m")),o=e.href.replace(/#.*$/,"");n&&n[0]&&r&&r[0]?s&&(s.innerHTML=r[0]+n[0].replace(/\d+\. /,"").replace(/href="#(.*?)"/g,'onclick="Genki.getGrammarPoint(this, \'$1\'); return false;" target="_blank" href="'+o+'#$1"'),s.className=""):s&&(s.innerHTML='
      Failed to retrieve grammar point. Click "View in Grammar Index" to try viewing the grammar point directly.',s.className="center")})},randomExercise:function(){if(storageOK&&"lesson"==localStorage.genkiRandomExercise&&/lesson-\d+/.test(e.location.href))var t=new RegExp(e.location.href.replace(/.*?(lesson-\d+).*/,"$1/")),i=a.exercises.filter(function(e){return t.test(e)});else if(storageOK&&"completed"==localStorage.genkiRandomExercise&&localStorage.TobiraResults&&JSON.parse(localStorage.TobiraResults)){var s=JSON.parse(localStorage.TobiraResults);if(!(i=a.exercises.filter(function(e){return e.split("|")[0]in s}))[0])return alert("Cannot select a random exercise, because you have not completed enough exercises yet.")}else i=a.exercises;var n=i[Math.floor(Math.random()*i.length)].split("|");/lesson-\d+/.test(n[0])?e.location.href="../../../"+a.ed+"/"+n[0]+"/"+a.local+a.debug:a.randomExercise()},startOrPauseTimerByVisibility:function(){t.hidden&&a.timer.isRunning()?a.timer.pause():t.hidden||!a.timer.isPaused()||a.isTimerPausedByPopup||a.timer.start()},pauseTimerWhenOpenPopup:function(){a.timer.pause(),a.isTimerPausedByPopup=!0},startTimerWhenClosePopup:function(){a.timer.start(),a.isTimerPausedByPopup=!1},init:function(){if(a.exercises){for(var i,s=0,n=a.exercises.length,r=t.getElementById("quiz-result");s"+("appendix"==i?"巻末":"study-tools"==i?"ツール":"第"+i+"課")+" - "+a.active.exercise[1]+"

      ")):r.insertAdjacentHTML("beforebegin",'

      '+t.querySelector("TITLE").innerText.replace(/\s\|.*/,"")+"

      "),a.isTouch&&(t.ontouchstart=function(){a.isTouching=!0},t.ontouchend=function(){a.isTouching=!1},t.ontouchcancel=function(){a.isTouching=!1}),a.create.exerciseButtons()}a.create.exerciseList(),e.Genki=this}};e.onbeforeunload=function(){var e=!1,i=t.getElementById("exercise");if(i){if(i=i.className,/quiz-over/.test(i)||t.querySelector(".review-mode"))e=!1;else if(/fill-quiz|writing-quiz/.test(i)){for(var s=0,n=(r=t.querySelectorAll(".writing-zone-input")).length;s0&&(e=!0);if(e)return"Your progress will be lost. Do you want to continue?"}},a.init()}(window,document); \ No newline at end of file +!function(e,t){"use strict";var i={stats:{problems:0,solved:0,mistakes:0,score:0,exclude:0},canNotify:"Notification"in e,isTouch:"ontouchstart"in e||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,isTouching:!1,isTimerPausedByPopup:!1,feedbackMode:storageOK&&localStorage.feedbackMode?localStorage.feedbackMode:"classic",dataBackupReminderCount:storageOK&&localStorage.dataBackupReminderCount?+localStorage.dataBackupReminderCount:0,textSelectMode:!1,strokeNumberDisplay:!1,markedItem:null,ed:"lessons",local:"file:"==e.location.protocol?"index.html":"",debug:/debug/.test(e.location.search)?"?debug":"",lang:{std_drag:"Drag the English expression to the Japanese expression that has the same meaning.
      TIP: Click an expression to mark it, then click an empty field to drop the answer there.",std_kana:"Drag the Kana to the matching Romaji.
      TIP: Click the kana to mark it, then click an empty field to drop the answer there.",std_num:"Drag the Numbers to the matching Kana.
      TIP: Click a number to mark it, then click an empty field to drop the answer there.",std_multi:"Solve the problems by choosing the correct answers.",std_questions:"Answer the questions as best as you can.",std_culture:"Answer the questions about Japanese culture as best as you can.",std_stroke_order:"Practice drawing each kanji by following the stroke order.",std_drawing:"Practice drawing the following kanji multiple times.",vocab_multi:"Choose the correct definition for each Japanese expression.",vocab_writing:"Practice spelling the following words/expressions.",vocab_fill:"Write the Japanese definition for the following words/expressions.",kana_multi:"Choose the correct Romaji for the %{KANA}.",kana_writing:"Practice writing the following %{KANA}.",kana_fill:"Complete the chart by filling in the Romaji.",num_multi:"Read the Japanese and choose the correct numbers.",num_writing:"Practice spelling the following numbers.",num_fill:"Write the following numbers in Japanese (hiragana).",kanji_readings_multi:"Choose the correct readings for each kanji.",kanji_readings_drag:"Match each kanji with their readings.",kanji_yomikata:'

      ▶ indicates the on-yomi (pronunciation originally borrowed from Chinese).
      ▷ indicates the kun-yomi (native Japanese reading).

      ',kanji_meanings_multi:"Choose the correct meanings for each kanji.",kanji_meanings_drag:"Match each kanji with their meanings.",opts:{kana:{kana:"Drag and Drop",multi:"Multiple Choice",writing:"Writing Practice",fill:"Fill in the Chart"},numbers:{drag:"Drag and Drop",multi:"Multiple Choice",writing:"Spelling Practice",fill:"Write the Numbers"},kanji:{multi:"Multiple Choice",drag:"Drag and Drop"},vocab:{drag:"Drag and Drop",multi:"Multiple Choice",writing:"Spelling Practice",fill:"Write the Definition"},practice:{multi:"Multiple Choice",fill:"Written",drag:"Drag and Drop"},hirakata:{fill:"Written",stroke:"Stroke Order Practice",drawing:"Drawing Practice"},stroke:{stroke:"Stroke Order Practice",drawing:"Extended Drawing Practice"}},mistakes:'The items outlined in red were answered wrong before finding the correct answer. Review these problems before trying again.',writing_mistakes:'The items outlined in red were answered wrong. Review these problems before trying again.',multi_mistakes:'The answers you selected that were wrong are outlined in red. The correct answers are outlined in blue. Review these problems before trying again.',stroke_mistakes:'The characters you drew that were wrong are outlined in red. Please review the stroke order and number of strokes for these characters before trying again.

      Note: Sometimes answers may be marked wrong by mistake, due to a mismatch in the recognition algorithm.
      Please use your own discretion if this occurs.',fill_mistakes:'The items underlined in red were answered wrong, the correct answers are listed underneath in green. Review these problems before trying again.',sub_answers:'Note: Answers inside blue parentheses separated by "/" are a list of possible sub-answers; only one can be used.
      For example.. (あの/その)ねこ: そのねこ or あのねこ (good) vs あの/そのねこ (bad)
      (この/)ねこ means the sub-answer is optional; it can be left out.',review:'
      ',toggle_furigana:'",check_answers:'
      ',back_to_dict:''},active:{type:null,exercise:null,index:0,path:e.location.pathname.replace(/.*?\/lessons.*?\/(.*?\/.*?)\/.*/g,"$1")},exercises:e.GenkiExercises||null,scrollTo:function(e,i){"string"==typeof e&&(e=t.querySelector(e));var a=function(){t.body.scrollTop=e.offsetTop,t.documentElement.scrollTop=e.offsetTop};i?setTimeout(a,100):a()},QuizType:{DRAG:"drag",KANA:"kana",WRITING:"writing",MULTI:"multi",FILL:"fill",STROKE:"stroke",DRAWING:"drawing"},generateQuiz:function(a){!i.exerciseData&&e.JSON&&(i.exerciseData=JSON.stringify(a));var s=t.getElementById("quiz-zone");if("object"==typeof a.type){for(var n,r=!!/(?:begin|start)=\d/.test(e.location.search)&&e.location.search.replace(/.*?(?:begin|start)=(\d).*/,"$1"),o=0,l=a.type.length,c="";o"+i.lang.opts[a.format][a.type[o]]+"";return n=GenkiModal.open({title:"Please Select an Exercise Type",content:'Please select the type of exercise you would like to do, then click "Begin" to start studying.

      '+(/\/vocabulary-index\/|\/custom-vocab\//.test(e.location)?"":"
      Current Exercise
      "+t.title.replace(/ \| Tobira Study Resources.*$/,"")+"

      ")+'
      Exercise Type

      ',buttonText:"Begin",noClose:1,zIndex:"low",callback:function(){var e=t.getElementById("exercise-type").value;if(a.type=a.type[e],a.info="object"==typeof a.info&&a.info[e]?a.info[e]:a.info,storageOK&&(localStorage["genki_pref_"+a.format]=a.type),/vocab|kana|numbers|kanji/.test(a.format)){if("kana"==a.format&&"kana"!=a.type){var s={};for(x in a.quizlet)for(d in a.quizlet[x])s[d]=a.quizlet[x][d];a.quizlet=s,a.info=a.info.replace("%{KANA}",i.active.exercise[1].replace(/.*?(Hiragana|Katakana).*/,"$1"))}if("kanji"==a.format){if(a.readings){for(x in a.quizlet){var n=a.quizlet[x].split("|");a.quizlet[x]=(n[0]?''+n[0]+"
      ":"")+(n[1]?''+n[1]:"")}a.info+=i.lang.kanji_yomikata}"drag"==a.type&&(t.getElementById("exercise").className+=a.readings?" kanji-readings":a.meanings?" kanji-meanings":"")}if("multi"==a.type){var r,o,l,c,d,u,g=[],p=[],h=[];for(x in a.quizlet)p.push(x),h.push(x);for(x=0,q=p.length;x'+(y[1]?"":"kanji"==a.format?'
      ':"")+y[0]+(y[1]?""+y[1]+"":"kanji"==a.format?"
      ":"")+(o?'
      '+o+"
      ":"")+"",answers:["A"+r]}),(c=h.slice()).splice(T,1),d=3;d-- >0&&c.length;)u=Math.floor(Math.random()*c.length),(l=a.quizlet[c[u]].replace(/\|.*?$/,""))==r?d++:g[x].answers.push("A"==l.charAt(0)?"!"+l:l),c.splice(u,1);p.splice(T,1)}a.quizlet=g}else if("writing"==a.type){var m;g={};for(x in a.quizlet)for(var k,f=(m=x.split("|"))[0].split("/"),v=0,b=f.length;v
      ":"")+'
      '+a.quizlet[p[x]].replace(/\|.*?$/,"")+"
      "+(/\|/.test(w)?w.replace("}","|answer}"):w)+"
      ";a.quizlet=g+"
      "}else"kana"==a.format&&(a.quizlet=a.chart)}else if("practice"==a.format){a.quizlet=a.quizlet[e];var z=t.querySelector(".multi-quiz-image");"fill"==a.type&&z?z.style.display="none":"multi"==a.type&&z&&(z.style.display="")}else"hirakata"==a.format&&(a.quizlet=a.quizlet[e]?a.quizlet[e]:a.quizlet[a.quizlet.length-1]);i.generateQuiz(a),i.changingExType=!1}}),!i.changingExType&&(!1!==r||storageOK&&"true"==localStorage.genkiSkipExType)&&(n.callback(),GenkiModal.close()),i.create.exerciseTypeButton(),!1}if(i.active.type=a.type,"drag"==a.type){var d,u,g='
      '+a.info+'
      ',p='
      ',h=[];for(o in a.quizlet)h.push(o);for(d=h.slice(0);h.length;)o=Math.floor(Math.random()*h.length),g+='
      "+(w?h[o].replace(/(.*?)\|(.*)/,'$1$2'):h[o])+"
      ",p+='
      ',h.splice(o,1),++i.stats.problems,!u&&w&&(u=!0);for(g+="
      "+p+"
      ",u&&(s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),g+='
      ';d.length;)g+='
      '+a.quizlet[d[o]].replace(/\|.*?$/,"")+"
      ",d.splice(o,1);g+="
      ",s.innerHTML=g+i.lang.review.replace("",i.lang.toggle_furigana+''),!storageOK||"true"!=localStorage.vocabHorizontal&&localStorage.vocabHorizontal||i.toggle.vocabOrientation(t.getElementById("toggle-orientation"),"false")}else if("kana"==a.type){g='
      '+a.info+'
      ';var m,k='
      ',f=[],v=a.quizlet;for(o=v.length-1;o>-1;o--){g+='
      ';for(m in v[o])g+='
      '+v[o][m]+"
      ",f.push('
      '+m+"
      "),++i.stats.problems;g+="
      "}for(;f.length;)k+=f[o=Math.floor(Math.random()*f.length)],f.splice(o,1);s.innerHTML=g+"
      "+k+"
      "+i.lang.review}else if("writing"==a.type){g='
      '+a.info+"
      If you don't know how to type in Japanese on your computer, please visit our help page by clicking here.
      ';var b='style="width:'+100/((M=a.columns)+1)+'%;"',y=0,w=!1;for(o in a.quizlet){for(g+='
      '+o+"
      ",l=0;M-- >0;)g+='
      ',++i.stats.problems;g+="
      ",M=a.columns}/data-helper/.test(g)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),s.innerHTML=g+"
      "+i.lang.check_answers.replace("",w?i.lang.toggle_furigana+"":""),a.quiz&&(s.className+=" no-helper"),i.input={map:t.querySelectorAll(".writing-zone-input"),index:0},i.input.map[0].autofocus=!0}else if("multi"==a.type){g='
      '+a.info+'
      NEW: You can now choose between "Instant" and "Classic" Feedback Mode for multiple choice quizzes in the Site Settings.
      ',k='
      ';var x=65,q=!1,T=(w=!1,/"format":"vocab"/.test(i.exerciseData));for(o=0,l=(E=a.quizlet).length;o
      ",x=65,++i.stats.problems}/class="furigana"|class="inline-furi"|/.test(g)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),T&&storageOK&&"true"==localStorage.spoilerMode&&(s.className+=" spoiler-mode"),s.innerHTML=g+'
      '+(i.appendix?"":'')+(w?i.lang.toggle_furigana:"")+"
      ",i.progressQuiz("init")}else if("fill"==a.type){w=!1;/class="furigana"|class="inline-furi"|/.test(a.quizlet)&&(w=!0,s.className+=" helper-"+(storageOK&&"false"==localStorage.furiganaVisible?"hidden":"present")),s.innerHTML='
      '+a.info+"
      If you don't know how to type in Japanese on your computer, please visit our help page by clicking here.
      '+a.quizlet.replace(/\{.*?\}/g,function(e){var t,a,s,n,r,o=e.slice(1,e.length-1).split("|");return"!IMG"==o[0]?i.parse.image(o):"!GRI"==o[0]?'"+o[1]+"":"!AUDIO"==o[0]?'
      ':"!PLAY"==o[0]?'':(t=o[1]?o[1]:"",a=(o[10]||o[9]||o[8]||o[7]||o[6]||o[5]||o[4]||o[3]||o[2]?o[10]||o[9]||o[8]||o[7]||o[6]||o[5]||o[4]||o[3]||o[2]:"").split(";"),(/\%\((.*?)\)/.test(t)||/\%\((.*?)\)/.test(o[0]))&&(s=[o[0].match(/%\((.*?)\)/),t.match(/%\((.*?)\)/)]),++i.stats.problems,n=/width:/.test(a[0])?a[0].split(":")[1]:a[1]&&/width:/.test(a[1])?a[1].split(":")[1]:a[2]&&/width:/.test(a[2])?a[2].split(":")[1]:s?(t?(s[0]&&s[0][1]||"/").split("/").concat((s[1]&&s[1][1]||"/").split("/")):(s[0]&&s[0][1]||"/").split("/")).sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1))+14+[t.replace(/\%\((.*?)\)/g,""),o[0].replace(/\%\((.*?)\)/g,"")].sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1)):[t,o[0]].sort(function(e,t){return t.length-e.length})[0].length*(14/(/[a-z]/i.test(t||o[0])&&!/[\u3000-\u30FF]/.test(t||o[0])?2:1))+14,r=/placeholder:/.test(a[0])?a[0].split(":")[1]:a[1]&&/placeholder:/.test(a[1])?a[1].split(":")[1]:a[2]&&/placeholder:/.test(a[2])?a[2].split(":")[1]:null,''+(t&&!/answer|furigana|placeholder/.test(a[0])||a[1]&&/hint:/.test(a[1])||a[2]&&/hint:/.test(a[2])?''+(a[1]&&/hint:/.test(a[1])?a[1].split(":")[1]:a[2]&&/hint:/.test(a[2])?a[2].split(":")[1]:t).replace(/(\!I.*?$)/,function(e,t){if(/^!I/.test(t)){for(var i=t.slice(2).split("/"),a=0,s=i.length,n="";a'+i[a]+"/";return n.slice(0,n.length-1)}})+"":"")+"")})+"
      "+i.lang.check_answers.replace("()","(false, 'fill')").replace("",w?i.lang.toggle_furigana+"":""),t.querySelector(".writing-zone-input").autofocus=!0}else if("stroke"==a.type){g='
      '+a.info+'
      ',k='
      ';var z,S=storageOK&&"false"==localStorage.strokeOrderVisible,N=storageOK&&"false"==localStorage.tracingGuideVisible;for(o=0,l=(E=a.quizlet).length;o
      ",++i.stats.problems;s.innerHTML=g+'
      ',S&&(s.className+=" stroke-order-hidden"),i.progressQuiz("init",!1,"stroke")}else if("drawing"==a.type){g='
      '+a.info+'
      ',N=storageOK&&"false"==localStorage.tracingGuideVisible,b='style="width:'+100/((M=a.columns)+1)+'%;"';var M,E=a.quizlet,j=0;for(o=0,l=a.quizlet.length;o
      "+E[o].kanji+'
      ';M-- >0;)g+='
      '+(i.debug?'':"")+"
      ",++i.stats.problems,++j;g+="
      ",M=a.columns}s.innerHTML=g+""+i.lang.check_answers.replace("()","(false, 'drawing')").replace("",'');var I=t.querySelectorAll(".kanji-canvas");for(o=0,l=I.length;o1?i.stats.mistakes:++i.stats.mistakes):(a.className+=" answer-correct",i.markedItem&&(i.markedItem.className="quiz-item",i.markedItem=null),++i.stats.solved==i.stats.problems&&i.endQuiz()))}),i.drake=B,i.globalEventListenersSet||(i.globalEventListenersSet=!0,["click","keypress"].forEach(function(e){t.addEventListener(e,function(e){if(!("keypress"==e.type&&"Enter"!=e.key||i.quizOver)){for(var a=e.target,s=4,n=s-1;s-- >0&&(s'+(i.stats.solved+1)+"/"+i.stats.problems+""},progressQuiz:function(e,a,s){if(i.textSelectMode||i.quizOver)return!1;if("init"==e)t.getElementById("quiz-q"+i.stats.solved).style.display="",i.incrementProgressBar();else{if(e&&"stroke"==s){var n=KanjiCanvas.recognize(e.dataset.canvas);e=e.parentNode.parentNode.querySelector(".kanji-canvas"),i.debug&&console.log("toDraw: "+e.dataset.kanji),i.debug&&console.log("Results: "+n),i.debug&&console.log("Correct: "+(new RegExp(e.dataset.kanji).test(n)&&e.dataset.strokesAnswer==e.dataset.strokes).toString()),e.dataset.answer=new RegExp(e.dataset.kanji).test(n)&&e.dataset.strokesAnswer==e.dataset.strokes}e.className+=" selected-answer",a&&(e.parentNode.className+=" hidden-answer"),"false"==e.dataset.answer&&(e.parentNode.parentNode.className+=" wrong-answer",++i.stats.mistakes);var r=t.getElementById("quiz-q"+i.stats.solved++),o=t.getElementById("quiz-q"+i.stats.solved);if(o)if("instant"==i.feedbackMode&&"multi"==i.active.type)i.multiNodes||(i.multiNodes={list:t.getElementById("question-list"),button:t.getElementById("next-button"),next:null,last:null}),i.quizOver=!0,i.multiNodes.list.className+=" multi-quiz quiz-over",i.multiNodes.button.style.visibility="visible",i.multiNodes.button.firstChild.focus(),i.multiNodes.next=o,i.multiNodes.last=r;else{o.style.display="",r.style.display="none";(l=o.querySelector(t.querySelector(".spoiler-mode")?".vocab-spoiler-toggle":".quiz-multi-answer"))&&l.focus(),i.incrementProgressBar()}else{i.endQuiz("stroke"==s?s:"multi");for(var l,c=0,d=(l=t.querySelectorAll('[id^="quiz-q"]')).length;cQuiz Complete!
      Problems Solved:'+n+'
      Answers Wrong:'+i.stats.mistakes+'
      Score:'+i.stats.score+'%
      Completion Time:'+r.innerHTML+'
      '+(100==i.stats.score?"PERFECT! Great Job, you have mastered this quiz! Feel free to move on or challenge yourself by trying to beat your completion time.":i.stats.score>70?"Nice work! "+i.lang[a?a+"_mistakes":"mistakes"]:"Keep studying! "+i.lang[a?a+"_mistakes":"mistakes"])+(t.querySelector(".alt-phrase")?"

      "+i.lang.sub_answers:"")+'
      '+(/\/vocabulary-index\//.test(e.location)?i.lang.back_to_dict:'')+'Back to Index
      ',storageOK&&i.active.exercise.length>0&&!/appendix|study-tools/.test(i.active.exercise[0])){var o=i.active.exercise[0],l=JSON.parse(localStorage.TobiraResults);l||(l={}),l[o]=void 0===l[o]||i.stats.score>l[o]?i.stats.score:l[o],localStorage.TobiraResults=JSON.stringify(l),i.create.removeExerciseList(),i.create.exerciseList(),"true"!=localStorage.dataBackupReminder&&void 0!=localStorage.dataBackupReminder||(++i.dataBackupReminderCount>=10&&(i.dataBackupReminderCount=0,setTimeout(function(){GenkiModal.open({title:"Backup Exercise Score Data?",content:'You\'ve recently completed 10 exercises. Would you like to backup your exercise score data?

      Save Data



      ',zIndex:"low",focus:"#save-exercise-data"})},100)),localStorage.dataBackupReminderCount=i.dataBackupReminderCount)}"stroke"==a&&(t.getElementById("toggle-stroke-numbers").style.display="",t.getElementById("toggle-tracing-guide").style.display="none"),i.drake&&setTimeout(function(){i.drake.destroy(),delete i.drake},100);var c=t.getElementById("change-exercise-type-container");c&&(c.style.display="none"),t.getElementById("exercise").className+=" quiz-over",i.scrollTo("#complete-banner",!0)},reset:function(a){if(e.JSON){if(!a&&/fill-quiz|writing-quiz/.test(t.getElementById("exercise").className)&&i.stats.mistakes>0)return GenkiModal.open({title:"Try again with your current answers?",content:"
      Would you like to try again with your current answers? This will allow you to correct the answers you got wrong while preserving what you have already written.

      ※ Please note that your answers will be lost if you change the page or exercise type.
      ",buttonText:"Yes",closeButtonText:"No",customButton:'',keepOpen:!0,callback:function(){for(var e=[],a=t.querySelectorAll(".writing-zone-input"),s=0,n=a.length;s
      '+(n?n.outerHTML:"")+'
      '+t.querySelector(".more-exercises").outerHTML,i.appendix?(s.style.display="none",t.getElementById("appendix-tool").style.display="",i.scrollTo(/\/vocabulary-index\//.test(e.location)?"#practice-words":".title"),/\/vocabulary-index\//.test(e.location)?i.appendix.jisho.launchExercise():/\/map-of-japan\//.test(e.location)?i.appendix.studyMap():/\/numbers-chart\//.test(e.location)?i.appendix.studyChart("numbers"):/\/conjugation-chart\//.test(e.location)&&i.appendix.studyChart("conjugation")):i.tools?(s.style.display="none",t.getElementById("study-tool-editor").style.display="",i.scrollTo(".title")):i.generateQuiz(JSON.parse(i.exerciseData))}else e.location.reload()},breakTime:function(){GenkiModal.open({title:"Take a Break?",content:"Taking a break and waiting before trying again can greatly help with building your memory. 5 to 10 minute breaks are recommended, but you're free to adjust the time to your liking."+(/"format":"vocab"/.test(i.exerciseData)?' Please see this page for more tips on memorizing vocab.':"")+'

      Wait Minute(s)
      ',buttonText:"Wait",keepOpen:!0,callback:function(){if(i.breakMultiplier60?n=60:n<=0&&(n=1),GenkiModal.open({title:"Taking a Break",content:'
      00:'+(n<10?"0":"")+n+":00
      ",buttonText:"End Break Time",keepOpen:!!(i.appendix||!i.tools&&/"format"/.test(i.exerciseData)),callback:function(){i.reset(),t.body.className=t.body.className.replace(" taking-a-break","")}}),t.body.className+=" taking-a-break",s=Math.floor(10*Math.random())+1,t.getElementById("genki-modal-overlay").style.backgroundImage="url(../../../resources/images/backgrounds/bg-"+(s<10?"0":"")+s+".jpg)";var r=new Timer,o=t.getElementById("break-timer");r.start({startValues:{minutes:n},target:{seconds:0},countdown:!0}),r.addEventListener("secondsUpdated",function(a){var s=r.getTimeValues().toString();if(o.innerHTML=s,"00:00:00"==s&&(o.innerHTML='Break time is up!
      Click the button below to resume your studies.
      ',t.getElementById("genki-modal-ok").style.display="inline-block",!i.local&&i.canNotify&&"granted"==Notification.permission)){new Notification(t.title.replace(/ \| Tobira Study Resources.*$/,""),{body:"Break time is up!",icon:t.querySelector('meta[property="og:image"]').content,tag:"breakTime-"+i.active.index}).onclick=function(){e.focus(),this.close()}}})}})},breakMultiplier:0,breakTimer:[5,10,15,20,30,40,50,60],breakTimerCustom:!1,changeBreakMultiplier:function(e){var t=Number(e.value);t<=5?i.breakMultiplier=0:t<=10?i.breakMultiplier=1:t<=15?i.breakMultiplier=2:t<=20?i.breakMultiplier=3:t<=30?i.breakMultiplier=4:t<=40?i.breakMultiplier=5:t<=50?i.breakMultiplier=6:t<=60&&(i.breakMultiplier=7),i.breakTimerCustom=!0},review:function(){GenkiModal.open({title:"Activate Review Mode?",content:"Are you sure you want to review? Your current progress will be lost.",callback:function(){for(var a=t.querySelectorAll("[data-answer]"),s=0,n=a.length;sRestart')+(t.querySelector(".drag-quiz")?i.lang.toggle_furigana+t.getElementById("toggle-orientation").outerHTML:""),t.getElementById("quiz-info").innerHTML='You are currently in review mode; go ahead and take your time to study. When you are ready to practice this exercise, click the "restart" button.',t.getElementById("quiz-zone").className+=" review-mode";var r=t.getElementById("change-exercise-type-container");r&&(r.style.display="none")}})},toHalfWidth:function(e){return e.replace(/[\uFF01-\uFF5E]/g,function(e){return String.fromCharCode(e.charCodeAt(0)-65248)})},check:{busy:!1,value:function(a){if(i.check.busy||a.value!=a.dataset.answer)i.check.busy&&e.setTimeout(function(){i.check.busy=!1,t.activeElement&&t.activeElement.value&&t.activeElement.value==i.input.map[i.input.index-1].value&&(t.activeElement.value="")},10);else{i.check.busy=!0;var s=i.input.map[i.input.index+1];s?s.focus():e.setTimeout(function(){a.blur(),i.check.answers(!0),i.check.busy=!1},10)}},answers:function(e,a){!i.exerciseComplete&&GenkiModal.open({title:"Check Answers?",content:e?"The last input field has been filled in. Are you ready to check your answers?":"Checking your answers will end the quiz. Do you want to continue?",buttonText:"Yes, check my answers!",callback:function(){if(i.exerciseComplete=!0,t.querySelector("#check-answers button").style.display="none",a&&"drawing"==a)for(var e,s=0,n=(d=t.querySelectorAll(".kanji-canvas")).length;s'+c.answer+(c.answer2||c.furigana?''+(c.answer2||c.furigana)+"":"")+"").replace(/%\((.*?)\)/g,function(e,t){return'('+t.replace(/\//g,'/')+')'}))),++i.stats.solved,g[s].disabled=!0}}i.endQuiz(a||"writing")}})}},toggle:{exerciseList:function(e){e.className="list-open"==e.className?"":"list-open"},list:function(e){var t="lesson-title",i=t+" lesson-open";e.className=e.className==i?t:i;for(var a=e.parentNode.querySelectorAll(".lesson-title"),s=0,n=a.length;s0;)(e=i.exercises[1==s?i.active.index-1:i.active.index+1])&&!/^\.\.\//.test(e)&&(e=e.split("|"),a+=''+e[1]+"");t.getElementById("quiz-timer").insertAdjacentHTML("afterend",a+"")},removeExerciseList:function(){var e=t.getElementById("exercise-list"),i=t.getElementById("toggle-exercises");e&&e.parentNode.removeChild(e),i&&i.parentNode.removeChild(i)},exerciseList:function(){var a='';if(i.exercises){var s,n,r,o='class="lesson-title" onclick="Genki.toggle.list(this);" onkeydown="event.key == \'Enter\' && Genki.toggle.list(this);" tabindex="0"',l='"),i.active.exercise&&(i.toggle.list(t.getElementById(/^appendix|^study-tools/.test(i.active.exercise[0])?"appendix":i.active.exercise[0].replace(/(lesson-\d+)\/.*/,"$1")).previousSibling),(n=t.querySelector('a[href*="'+i.active.exercise[0]+'"]')).className+=" active-lesson",n=n.parentNode,t.getElementById("lessons-list").scrollTop=n.offsetTop-(n.getBoundingClientRect().height+(e.matchMedia&&matchMedia("(pointer:coarse)").matches?0:6)))}else{var v='";t.getElementById("content").insertAdjacentHTML("afterbegin",v)}},exerciseTypeButton:function(){var a=t.getElementById("quiz-timer"),s=t.createElement("DIV"),n=t.createElement("BUTTON");s.id="change-exercise-type-container",s.className="center",n.id="change-exercise-type",n.className="button",n.innerHTML=' Change Exercise Type',n.onclick=function(){GenkiModal.open({title:"Change Exercise Type?",content:"To change the exercise type, you must quit the current exercise. Do you want to quit?",buttonText:"Quit",closeButtonText:"Cancel",keepOpen:!!(/\/vocabulary-index\//.test(e.location)||!i.tools&&/"format"/.test(i.exerciseData)),callback:function(){if(/(?:begin|start)=\d/.test(e.location.search)){if(!e.history||!e.history.pushState)return void(e.location.search="");e.history.pushState({},t.title,e.location.href.replace(e.location.search,"")+i.debug)}i.changingExType=!0,i.reset()}})},s.appendChild(n),a.nextSibling?a.parentNode.insertBefore(s,a.nextSibling):a.parentNode.appendChild(s)}},parse:{image:function(e){var t=/^http/.test(e[1])?e[1]:"../../../resources/images/lesson-images/"+e[1];return''+(e[2]||e[1])+''}},quickJisho:{hidden:!0,selectorHidden:!0,tabbing:!1,create:function(){if(!i.quickJisho.cache){var e=t.createElement("DIV"),a=t.createElement("DIV"),s=t.createElement("BUTTON"),n=t.createDocumentFragment();e.id="quick-jisho-toggle",e.innerHTML='',e.title="Toggle Quick Dictionary",e.tabIndex=0,e.onclick=i.quickJisho.toggle,e.onkeypress=function(e){"Enter"==e.key&&i.quickJisho.toggle()},a.id="quick-jisho-window",a.className="quick-jisho-hidden",a.innerHTML='

      Quick Dictionary

        ',s.id="quick-jisho-selector",s.className="button",s.style.display="none",s.innerHTML='Look up',s.onclick=i.quickJisho.lookUp,s.tabIndex=0,n.appendChild(a),n.appendChild(e),n.appendChild(s),t.body.appendChild(n);t.querySelector(".footer-right").style.marginRight="40px",i.quickJisho.cache={box:a,search:t.getElementById("quick-jisho-search"),results:t.getElementById("quick-jisho-results"),hits:t.getElementById("quick-jisho-hits"),selector:t.getElementById("quick-jisho-selector")},t.onselectionchange=i.quickJisho.getSelection,t.onmousemove=function(e){i.quickJisho.x=Math.abs(e.pageX-t.body.clientWidth)<100?e.pageX-95:e.pageX,i.quickJisho.y=Math.abs(e.pageY-t.body.clientHeight)<40?e.pageY-32:e.pageY+12},t.onkeydown=function(e){"Tab"!=e.key||i.quickJisho.selectorHidden||t.activeElement==i.quickJisho.cache.selector||(i.quickJisho.tabbing=!0,i.quickJisho.cache.selector.focus(),e.preventDefault())}}},toggle:function(){if(!i.jisho&&!i.quickJisho.loading){i.quickJisho.loading=!0;var e=t.createElement("SCRIPT");e.src=getPaths()+"resources/javascript/jisho.min.js",e.onload=function(){i.quickJisho.cache.search.value&&i.quickJisho.search(i.quickJisho.cache.search.value),i.quickJisho.loading=!1},t.body.appendChild(e)}i.quickJisho.hidden?(i.quickJisho.cache.box.className="",i.quickJisho.hidden=!1,i.quickJisho.cache.search.focus()):(i.quickJisho.cache.box.className="quick-jisho-hidden",i.quickJisho.hidden=!0)},search:function(t,a){i.quickJisho.searchTimeout&&e.clearTimeout(i.quickJisho.searchTimeout),i.quickJisho.searchTimeout=e.setTimeout(function(){var e,s,n,r,o,l="",c=0;if(i.quickJisho.cache.results.innerHTML="",t){t=t.toLowerCase();for(e in i.jisho)for(s=0,n=i.jisho[e].length;s'+o[0]+(o[1]?""+o[1]+"":"")+''+i.jisho[e][s].en+""+(i.jisho[e][s].v?' ['+i.jisho[e][s].v+"]":"")+''+i.jisho[e][s].l+"",c++;break}}if(!a&&!l&&t&&/[\u3400-\u9faf]/.test(t)){var d=t.match(/[\u3400-\u9faf]+/);d&&d[0]&&i.quickJisho.search(d[0],!0)}else i.quickJisho.cache.results.innerHTML=l||(t?'
      • No results found for "'+t+'".
      • ':""),i.quickJisho.cache.hits.innerHTML=c?"("+c+")":"";delete i.quickJisho.searchTimeout},300)},lookUp:function(){i.quickJisho.hidden&&i.quickJisho.toggle(),i.quickJisho.cache.search.value="".trim?i.quickJisho.selectedText.trim():i.quickJisho.selectedText,i.quickJisho.search(i.quickJisho.cache.search.value),this.style.display="none",i.quickJisho.selectorHidden=!0},getSelection:function(){if(storageOK&&"false"==localStorage.genkiJishoLookUp)return!1;if(i.quickJisho.tabbing)return i.quickJisho.tabbingOff||(i.quickJisho.tabbingOff=setTimeout(function(){i.quickJisho.tabbing=!1,delete i.quickJisho.tabbingOff},10)),!1;if(t.getSelection){var e=t.getSelection();"Range"==e.type&&e.toString&&!/quick-jisho/.test(e.focusNode.className)?(i.quickJisho.selectedText=e.toString(),i.quickJisho.cache.selector.style.left=i.quickJisho.x+"px",i.quickJisho.cache.selector.style.top=i.quickJisho.y+"px",i.quickJisho.selectorHidden&&(i.quickJisho.cache.selector.style.display="",i.quickJisho.selectorHidden=!1)):(i.quickJisho.selectedText="",i.quickJisho.selectorHidden||(i.quickJisho.cache.selector.style.display="none",i.quickJisho.selectorHidden=!0))}}},playAudio:function(e,i){var a=t.getElementById(e);a&&(a.currentTime=i,a.play())},viewStrokeOrder:function(e,t,i){var a=getPaths()+"resources/images/stroke-order/"+t+".png";GenkiModal.open({title:e+" Stroke Order",content:''})},getAlts:function(e,t,a){for(var s,n,r,o,l=t.split("|"),c=l.length,d=Math.pow(2,c),u=[],g=0;g',customButton:'View in Grammar Index',customSize:{top:"10%",left:"20%",bottom:"10%",right:"20%"}}),Get(e.href,function(a){var s=t.getElementById("appendix-tool"),n=a.match(new RegExp('(

        )',"m")),r=a.match(new RegExp("()","m")),o=e.href.replace(/#.*$/,"");n&&n[0]&&r&&r[0]?s&&(s.innerHTML=r[0]+n[0].replace(/\d+\. /,"").replace(/href="#(.*?)"/g,'onclick="Genki.getGrammarPoint(this, \'$1\'); return false;" target="_blank" href="'+o+'#$1"'),s.className=""):s&&(s.innerHTML='
        Failed to retrieve grammar point. Click "View in Grammar Index" to try viewing the grammar point directly.',s.className="center")})},randomExercise:function(){if(storageOK&&"lesson"==localStorage.genkiRandomExercise&&/lesson-\d+/.test(e.location.href))var t=new RegExp(e.location.href.replace(/.*?(lesson-\d+).*/,"$1/")),a=i.exercises.filter(function(e){return t.test(e)});else if(storageOK&&"completed"==localStorage.genkiRandomExercise&&localStorage.TobiraResults&&JSON.parse(localStorage.TobiraResults)){var s=JSON.parse(localStorage.TobiraResults);if(!(a=i.exercises.filter(function(e){return e.split("|")[0]in s}))[0])return alert("Cannot select a random exercise, because you have not completed enough exercises yet.")}else a=i.exercises;var n=a[Math.floor(Math.random()*a.length)].split("|");/lesson-\d+/.test(n[0])?e.location.href="../../../"+i.ed+"/"+n[0]+"/"+i.local+i.debug:i.randomExercise()},startOrPauseTimerByVisibility:function(){t.hidden&&i.timer.isRunning()?i.timer.pause():t.hidden||!i.timer.isPaused()||i.isTimerPausedByPopup||i.timer.start()},pauseTimerWhenOpenPopup:function(){i.timer.pause(),i.isTimerPausedByPopup=!0},startTimerWhenClosePopup:function(){i.timer.start(),i.isTimerPausedByPopup=!1},init:function(){if(i.exercises){for(var a,s=0,n=i.exercises.length,r=t.getElementById("quiz-result");s"+("appendix"==a?"巻末":"study-tools"==a?"ツール":"第"+a+"課")+" - "+i.active.exercise[1]+"

        ")):r.insertAdjacentHTML("beforebegin",'

        '+t.querySelector("TITLE").innerText.replace(/\s\|.*/,"")+"

        "),i.isTouch&&(t.ontouchstart=function(){i.isTouching=!0},t.ontouchend=function(){i.isTouching=!1},t.ontouchcancel=function(){i.isTouching=!1}),i.create.exerciseButtons()}i.create.exerciseList(),e.Genki=this}};e.onbeforeunload=function(){var e=!1,a=t.getElementById("exercise");if(a){if(a=a.className,/quiz-over/.test(a)||t.querySelector(".review-mode"))e=!1;else if(/fill-quiz|writing-quiz/.test(a)){for(var s=0,n=(r=t.querySelectorAll(".writing-zone-input")).length;s0&&(e=!0);if(e)return"Your progress will be lost. Do you want to continue?"}},i.init()}(window,document); \ No newline at end of file