﻿html, body { height: 100%; }
#wrapper { 
    min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -126px; 
    background-color: #F7F7F7; 
}

#header { height: 40px; min-width: 800px; background-color: #eee; border-bottom: 1px solid #ccc; }

#header-settings { float: left; padding: 0 0 0 20px; }
#current-level { margin-right: 20px; line-height: 40px; }
#level-select { }
#settings-button { 
    position: relative; top: 4px; width: 100px; height: 30px; 
    background-color: #ddd; text-align: center;
    border: 1px solid #ccc; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; 
}
#settings-button:hover {
     cursor: pointer; background-color: #ccc; border: 1px solid #bbb; color: #000; 
}
#settings-button span { line-height: 30px;  }

#social { float: right; height: 40px; width: 130px; margin: 5px 0 0 10px; }
#social img {    
    width: 30px; height: 30px; margin-right: 5px; background-color: #fff; cursor: pointer;
    -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; 
}

#header-progress { 
    float: right; width: 340px; height: 40px; padding: 0 20px 0 20px; 
    border-top: none; border-right: none;
}
#header-progress span { line-height: 40px; }
#header-progress .progress-item { margin-right: 15px; }
#accuracy { font-size: 18px; }

#content { background-color: #F7F7F7; height: 370px; }
#app { width: 740px; height: 350px; padding: 10px; margin: 0 auto 0 auto; }

.flip {
    -webkit-transition-property: transform; -ms-transition-property: transform; -moz-transition-property: transform; transition-property: transform;
    -webkit-backface-visibility: hidden; -ms-backface-visibility: hidden; -moz-backface-visibility: hidden; backface-visibility: hidden;
    -webkit-transition-duration: 300ms; -ms-transition-duration: 300ms; -moz-transition-duration: 300ms; transition-duration: 300ms;
    -webkit-transform: rotateY(360deg); -ms-transform: rotateY(360deg); -moz-transform: rotateY(360deg); transform: rotateY(360deg);
}

.score-green2 { background-color: #8cf37f; border: 1px solid #6ad15d; }
.score-green1 { background-color: #c3ed97; border: 1px solid #a1cb75; }
.score-yellow { background-color: #FAE314; border: 1px solid #d8c102; }
.score-orange2 { background-color: #FAC014; border: 1px solid #d8b002; }
.score-orange1 { background-color: #Fc9F36; border: 1px solid #d85d02; }
.score-red { background-color: #fc8c8c; border: 1px solid #da6a6a; }
.score-gray { background-color: #ddd; border: 1px solid #bbb; }


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
     -khtml-user-select: none; /* Konqueror */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  not supported by any browser */
}


/* Card 
----------------------------------------------------------*/

#card-wrap { width: 352px; float: left; }
#card {
    width: 340px; height: 308px; padding: 5px; border: 1px solid #666; background-color: #fff;
}
#card.green { border: 1px solid #2ed518; background-color: #2ed518; }
#card.red { border: 1px solid #b30000; background-color: #b30000; }

#card-inner { width: 340px; height: 308px; background-color: #fff; }
#card-inner.green #answer-icon { background-color: #2ed518; }
#card-inner.green i.fa-times { display: none; }
#card-inner.green i.fa-check { display: block; }

#card-inner.red #answer-icon { background-color: #b30000; }
#card-inner.red i.fa-times { display: block; } 
#card-inner.red i.fa-check { display: none; } 

#question p { text-align: center; word-wrap: break-word; position: relative; }
#question-id { display: none; }
#question-kanji { font-size: 130px; top: 65px; line-height: 130px;  }
#question-kana { font-size: 50px; top: 100px; display: none; }
#question-english { font-size: 50px; top: 100px; display: none; }

#answer { display: none; }
#answer-icon { 
    position: absolute; top: 10px; left: 10px;
    width: 35px; height: 35px;
    font-size: 20px; color: white;
}
#answer-icon i.fa { line-height: 35px; text-align: center; }
#answer-kanji-wrap { 
    position: absolute; top: 50px; left: 25px; 
    width: 90px; height: 90px; 
}
#answer-kanji { font-size: 70px; line-height: 70px; text-align: center; }

#answer-translation-wrap {
    position: absolute; top: 50px; left: 135px; 
    width: 210px; height: 90px; 
}
#answer-translation-wrap p { 
    max-width: 210px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
#answer-translation-wrap p#answer-english { font-size: 18px; padding-bottom: 5px; }
#answer-translation-wrap p#answer-kun-yomi { font-size: 13px; padding-bottom: 5px; }
#answer-translation-wrap p#answer-on-yomi { font-size: 13px; }

#answer-examples {
    position: absolute; top: 155px; left: 30px;
    width: 315px; height: 130px;
}
#answer-examples td { 
    font-size: 12px; 
    padding-bottom: 5px; 
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 
}
#answer-examples td:first-child { max-width: 150px; }
#answer-examples td:nth-child(2) { max-width: 165px; padding-left: 20px; }

#answer-hirkat p { padding: 50px 0 0px 0; font-size: 50px; text-align: center; }

#answer-instructions { 
    position: absolute; top: 305px; left: 110px;
    font-size: 11px; text-align: right; 
    padding-right: 12px;
}

#card-options { margin-top: 10px; text-align: center; }
#card-options li { display: inline-block; margin-left: 10px; }


/* Grid 
----------------------------------------------------------*/

#grid-wrap { float: right; }
#match-grid { }
#match-grid div.cell { 
    float: left; width: 98px; height: 98px; margin: 0 0 7px 9px;
    padding: 1px; border: 1px solid #666; background-color: #fff; cursor: pointer; 
}
#match-grid div.green { background-color: #2ed518; border: 1px solid #2ed518; }
#match-grid div.red { background-color: #b30000; border: 1px solid #b30000; }

#match-grid div.icon { position: absolute; width: 17px; height: 17px; padding: 1px 0 0 2px; display: none; }
#match-grid div.icon i { color: #fff; display: none; }
#match-grid div.green div.icon  { background-color: #2ed518; display: block; }
#match-grid div.green div.icon i.fa-check  { display: block; }
#match-grid div.red div.icon  { background-color: #b30000; display: block; }
#match-grid div.red div.icon i.fa-times  { display: block; }

#match-grid div.inner { position: relative; width: 96px; height: 96px; background-color: #fff; }
#match-grid span { display: none; }

#match-grid div.green div.question, #match-grid div.red div.question { display: none; }
#match-grid div.question p { position: relative; text-align: center; word-wrap: break-word; }
#match-grid div.question p.kanji { font-size: 45px; line-height: 45px; top: 25px; display: none; }
#match-grid div.question p.kana { font-size: 17px; top: 30px; display: none; }
#match-grid div.question p.english { font-size: 16px; top: 40px; }

#match-grid div.answer { display: none; }
#match-grid div.green div.answer, #match-grid div.red div.answer { display: block; }
#match-grid div.answer p { margin-top: 10px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#match-grid div.answer p.kanji { font-size: 30px; line-height: 30px; }
#match-grid div.answer p.english { font-size: 12px; line-height: 12px; }
#match-grid div.answer p.kana { font-size: 12px; line-height: 12px; }

#grid-options { margin-top: 3px; text-align: center; }
#grid-options li { display: inline-block; margin-left: 10px; }


/* Footer 
----------------------------------------------------------*/

#footer, #push { height: 115px; }
#footer { padding-top: 10px;  background-color: #eee; border-top: 1px solid #D3D6DB; min-width: 760px; }
#adds { margin: 0 auto 0 auto; width: 750px; }
#adds li { 
    display: block; float: left; margin-left: 90px; width: 110px;
    text-align: center; line-height: 15px;  font-size: 11px; 
}
#adds li.first { margin-left: 20px; }
#adds li img.add-img { height: 80px; }

#add-box { 
    height: 80px; width: 600px; padding: 10px; cursor: pointer;
    background-color: #fff; color: #555;
    -webkit-border-radius: 5px;-moz-border-radius: 5px; border-radius: 5px;
}
#add-box img.logo { height: 78px; width: 78px; float: left; }
#add-box img.screenshot { height: 78px; width: 45px; float: left; margin-left: 20px; border: 1px solid #ddd; }

#add-copy { float: left; width: 180px; padding-left: 10px; }
#add-copy h1 { font-size: 15px; margin-bottom: 15px; width: 180px; float: left; }
#add-copy p { font-size: 12px; margin-bottom: 8px;  }
#add-copy h2 { font-size: 11px; color: #999; }

#add-copy2 { float: left; width: 400px; padding-left: 10px; }
#add-copy2 h1 { font-size: 15px; margin-bottom: 15px; }
#add-copy2 p { font-size: 12px; margin-bottom: 8px;  }

#add-links { float: right; width: 140px; }
#add-links img.appstore { height: 35px; width: 120px; float: right; }

/* Complete 
----------------------------------------------------------*/

#complete-window { display: none; width: 400px; font-size: 12px; }
#complete-window p { padding: 20px; }
#complete-score { 
    height: 90px; margin: 0 20px 30px 20px;
    font-size: 70px; text-align: center; line-height: 90px;  
}

/* Settings 
----------------------------------------------------------*/

#settings-window { display: none; width: 550px; font-size: 12px; }
#settings-content { padding: 10px; height: 390px; }
#settings-content p { padding: 5px; line-height: 18px; }

#level-grid { border-spacing: 5px; margin-top: 15px; }
#level-grid th { font-weight: normal; color: #999; }
#level-grid th span { display: block; width: 35px;  }
#level-grid th.row-label { width: 70px; text-align: left; }
#level-grid td { 
    text-align: center; line-height: 30px; cursor: pointer; 
}
#level-grid td.row-label { text-align: left; cursor: default; }
#level-grid td.empty-box { cursor: default; border: 1px solid #ddd; }
#level-grid td span { display: block; height: 30px; width: 35px; }
#coming-soon { text-align: left; }


/* Message 
----------------------------------------------------------*/

#message-window { display: none; width: 400px; font-size: 12px; }
#message-window p { padding: 20px; }

