<!DOCTYPE html>
<html lang="en">

<head>
    <title>Complete these words with the missing letters. </title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" type="text/css" href="css/animate.css" />
    <link rel="stylesheet" type="text/css" href="css/font-awesome.min.css" />
    <style type="text/css">
        @font-face {
font-family: 'HelveticaTextbookLT-Roman';
src: url('../font/helvetica/TextbookLT-Roman.eot?#iefix') format('embedded-opentype'),  url('../font/helvetica/HelveticaTextbookLT-Roman.woff') format('woff'), url('../font/helvetica/HelveticaTextbookLT-Roman.ttf')  format('truetype'), url('../font/helvetica/HelveticaTextbookLT-Roman.svg#HelveticaTextbookLT-Roman') format('svg');
font-weight: normal;
font-style: normal;
}

html, body {
    padding: 0px;
    margin: 0px;
}

body {
    font-family: 'HelveticaTextbookLT-Roman';
    background: url('../img/game_bg.jpg') no-repeat;
    background-size: 100% 100%;
}


/* CSS for Popup Container */
/* CSS for Popup Container */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Black background with some transparency */
    z-index: 9999;
    text-align: center;
}


::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey; 
  border-radius: 30px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #d8935b; 
  border-radius: 30px;
  padding: 20px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #b30000; 
}

.popup img {
    max-width: 100%;
    max-height: 100%;
     position: fixed; /* or absolute */
  top: 50%;
  left: 50%;
  /* bring your own prefixes */
  transform: translate(-50%, -50%);
}

/* CSS for Popup Image */
.popup img {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
}

/* Add some additional styling as per your design requirements */


.img2{
     width: 90%;
     display: block;
     margin: auto;
}


.wrapper{
    position: relative;
    overflow: auto;
    background: #00000087;
    transition: all 0.9s;
    height: 100vh;
}

.wrapper:before {
  position: absolute;
  content: "";
  top: 1em;
  left: 1em;
  width: 0;
  height: 2px;
  
  transition: all 0.9s;
}
.wrapper:after {
  position: absolute;
  content: "";
  bottom: 1em;
  right: 1em;
  width: 0;
  height: 2px;
  
  transition: all 0.9s;
}

.wrapper:hover {
  background-size: 103% 104%;
  cursor: pointer;
}
.wrapper:hover .wrapper:hover {
  transform: translatex(0%);
}


.btn {
    -webkit-user-select: none;
    transition: background .3s .1s;
    border: 2px #ffffff78 solid;
    cursor: pointer;
    font-size: 19px;
    font-weight: 500;
    outline: none;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    -webkit-tap-highlight-color: #1a4f45;
    z-index: 0;
    background-color: #025565;
    color: #fff;
    line-height: 21px;
    padding: 10px 20px;
    margin: 21px 10px;
    letter-spacing: 1.5px;
    position: relative;
    display: inline-block;
    font-family: Arial,Helvetica,sans-serif;
    transition:  0.3s;
}
.btn:hover, .btn:focus, .btn:active {-ms-transform: scale(1.1); /* IE 9 */-webkit-transform: scale(1.1); /* Safari 3-8 */transform: scale(1.1);background: #3c3f41;}

.btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
.header {
   width: 100%;
   padding: 25px 0;
   text-align: center;
   font-size: 25px;
   color: #000;
   transition: all .2s ease-in;
   background: rgba(255, 255, 255, 0.4);
}

.footer {
    width: 100%;
    /* background: #ffffff; */
    box-sizing: border-box;
    text-align: center;
    /* color: #FFF; */
}

.title-h4 {
    font-size: 37px;
    font-weight: 600;
    color: #ffffff;
    font-family: auto;
    text-shadow: 1px 1px 0px #00000075;
}

@media (max-width: 480px) {
    .title-h4 {
        font-size: 15px;
        line-height: 19px;
    }
}


@media (min-width: 481px) and (max-width: 768px) {
    .title-h4 {
        font-size: 25px;
    font-weight: 600;
    font-family: auto;
    line-height: 27px;
    text-shadow: 0px 3px 2px #00000075;
    }
}

.content {
    margin: 8px auto 0;
    z-index: 9;
    position: relative;
    transition: all .2s ease-in;
}

.button-wrapper {
    display: block;
    width: 100%;
    margin-top: 0%;
}

.body-container {
    width: 100%;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}
.question-section ol {
    list-style: decimal;
    list-style-position: outside;
    margin: 15px 0px 0px 6%;
    position: relative;
}


.sub-header {
    width: 74%;
    height: auto;
    padding: 12px;
    border: 2px solid #ffffff7a;
    position: relative;
    transition: all .2s ease-in;
    color: white;
    font-family: cursive;
    text-align: center;
    background: bottom;
    background-color: #003f4b;
    margin: 0px auto;
    border-radius: 11px;
    margin-top: 9px;
}


.question-section {
    width: 74%;
    height: 450px;
    background: url(../../img/board.png);
    background-size: 100% 100%;
    padding: 11px;
    border: 2px SOLID #ffffff80;
    margin: auto;
    border-radius: 17px;
    overflow: auto;
    transition: all .2s ease-in;
    font-family: 'HelveticaTextbookLT-Roman';
}



.question-section ol li {
    font-size: 24px;
    position: relative;
    padding: 16px 2px;
    color: white;
    border: 0px solid #d8935b;
    font-family: 'FontAwesome';
    transition: all .2s ease-in;
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    :;
    ce-between;
    :;
}
.question-section input[type="text"] {
    border: none;
    font-size: 22px;
    height: 36px;
    text-align: center;
    color: white;
    text-transform: capitalize;
    border-radius: 8px;
    text-shadow: 1px 1px 1px black;
    margin: 4px;
    border: 2px solid #f6f1ea87;
    background: #6d6d6d;
    width: 55px;
    transition: transform .5s;
    font-family: 'HelveticaTextbookLT-Roman';
}



.question-section input:hover, .question-section input:focus, .question-section input:active {-ms-transform: scale(1.1); /* IE 9 */ /* Safari 3-8 */background: #a7a7b4;}
.img-submit {
    width: 28px;
    position: absolute;
    display: none;
    top: 25px;
    float: right;
    right: 10%;
}

.attempt-correct .img-submit.img-correct{
    display: block; 
}

.attempt-incorrect .img-submit.img-incorrect {
    display: block; 
}

.modal {
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0, 0, 0, 0.37);
    top: 0px;
    left: 0px;
    z-index: 10;
    display: none;
}

.modal-container {
    width: 400px;
    min-height: 200px;
    position: absolute;
    background: #FFF;
    text-align: center;
    background: white;
    left: 50%;
    top: 20%;
    margin-left: -200px;
    padding: 20px;
    box-sizing: border-box;
    -webkit-box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
    -moz-box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
}

.modal-content {
    min-height: 120px;
}

.question-section .attempt-correct input[type="text"][readonly] {
    background: #dafff1;
}

.question-section .static-ans input[type="text"][readonly] {
    /* background: #325f33; */
    color: #00ff00;
    -webkit-box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.37);
    border-color: white;
    cursor: default;
    text-transform: inherit;
}

.feedback-text {
    font-size: 28px;
}

.input-uppercase input[type="text"] {
    text-transform: uppercase;
}

.input-lowercase input[type="text"] {
    text-transform: lowercase;
}


.duration1s { animation-duration: 1s; }
.duration2s { animation-duration: 2s; }
.duration3s { animation-duration: 3s; }
.duration4s { animation-duration: 4s; }
.duration5s { animation-duration: 5s; }
.duration6s { animation-duration: 6s; }
.duration7s { animation-duration: 7s; }
.duration8s { animation-duration: 8s; }
.duration9s { animation-duration: 9s; }
.duration10s { animation-duration: 10s; }


.title-h2 {
    font-size: 25px;
    text-transform: uppercase;
}

@media screen and (max-width:1190px){
    .feedback-text {
        /* right: 0 !important; */
        /* bottom: -60px !important; */
    }
}

@media (max-width: 768px) {
    .question-section ol li {
        margin: 6px 0px;
        padding: 1px;
        font-size: 20px;
        width: 90%;
    }

    .body-container {
        margin: auto;
        display: block;
        padding: 11px;
        width: 92%;
    }

    .header {
        position: relative;
        height: auto;
    }

    .content {
        margin: 0px 0px 0px 0px;
        padding: 5px;
    }
}

@media (max-width: 400px) {
    .question-section ol li {
        font-size: 16px;
    }

    .question-section ol {
        margin: 0px 10px 0px 8px;
    }

    .question-section input[type="text"] {
        font-size: 14px;
        height: 17px;
        width: 28px;
    }

    .btn {
        padding: 4px;
        font-size: 9px;
    }

    .header {
        font-size: 20px;
        padding: 10px 0px;
    }

    .sub-header {
        padding: 2px;
        width: auto;
        width: 85%;
        margin-bottom: 0px;
    }

    .title-h4 {
        font-size: 18px;
    }

    .question-section {
        padding: 4px;
        height: auto;
        width: 99%;
    }

    .btn {
        margin-bottom: 0px;
        margin: 14px -2px;
    }
    
    .attempt-incorrect .img-submit.img-incorrect, .attempt-correct .img-submit.img-correct {
        top: 12px;
        left: -36px;
        width: 13px;
    }
    
    .modal-container {
        top: 1%;
        width: 98%;
        margin-left: 1%;
        left: 0%;
    }
}

.feedback-text {
    /* position: absolute; */
}

.feedback-text img {
    width: 150px;
    max-width: 100%;
}

@media screen and (max-width:460px){
    .feedback-text img {
        width: 100px;
    }

    .question-section ol li {
        font-size: 14px;
        width: 93%;
        margin: 2px;
    }

    .question-section input[type="text"] {
        font-size: 18px;
        width: 30px;
    }
}

.ques-img{
    width:23%;
    margin-left: 4%;
}
#button_play_intro {
    width: 50px;
    height: 50px;
    margin-top: 7px;
    margin-right: 2%;
    border-radius: 37px;
    /* box-shadow: #000000b0 2px 5px 9px 0px; */
    background: url(../img/soundOn_icon.png);
    background-repeat: no-repeat !important;
    background-size: 100% 100%;
    cursor: pointer;
    float: right;
    transform: perspective(1px) translateZ(0);
    position: relative;
    transition-duration: 0.3s;
    transition-property: transform;
}

#button_play_intro:hover, #button_play_intro:focus, #button_play_intro:active {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
}

    </style>

    <script type="text/javascript">
        
        const MASTER_DB = {
    CONFIG: {
        MAX_INPUT: 3,                       // max length of typing
        MAX_ATTEMPT_ANS: 1,                 // attempts for showing answer button
        INPUT_FILTER_STATUS: false,
        INPUT_FILTER: [84, 116, 70, 102],   //T AND F
        INPUT_TRANSFORM: 'default',     // uppercase | lowercase | default
        INPUT_TEXT_CODE: '[<>]',
        FEEDBACK_TIME: 2500
    },

    TITLE: '',
    INSTRUCTION: '',
    QUESTIONS: [
        {
            feedback: {
                positive: '',
                negative: ''
            },
            data: [
            {
                title: 'Water can exist in all three states: solid, liquid, and gas. [<>]',
                ans: ["T"]
            },
            {
                title: "Ice-cream melts into gas when heated. [<>]",
                ans: ["F"]
            },
            {
                title: "Butter changes from solid to liquid when cooled. [<>]",
                ans: ["F"]
            },

            {
                title: "Gold can change from solid to liquid without forming a new substance. [<>]",
                ans: ["T"]
            },
            {
                title: "Water turns into ice when frozen. [<>]",
                ans: ["T"]
            },
        

          
              
            
            
            
            
            
]
        }
    ],
    
    
    ANSWERS: {      INSTRUCTION: ''     }
}

    </script>
    <script src="js/keycode.js" type="text/javascript"></script>
    <script src="js/jquery-3.2.1.min.js" type="text/javascript"></script>
    <script src="js/app.fib.js" type="text/javascript"></script>
</head>

<head>
</head>

<body>
    <video class="fullscreen-video" id="myVideo" autoplay="autoplay" muted loop>
        <source src="../img/background.mp4"> Your browser does not support the video tag.
    </video>
    <div class="wrapper">
        <div class="container">


            <header class="">
                <h2 class="" id="app-title"></h2>
            </header>
            <div class="sub-header">
                <audio controls autoplay hidden>
                    <source src="audio/bg_sound.mp3" type="audio/mpeg"> unsupported !!
                </audio>
                <h4 class="title-h4" id="app-instruction"></h4>
                <h4 class="title-h4">Write ‘T’ for true and ‘F’ for false.</h4>
            </div>
            <section class="content">
                <div class="body-container">

                    <div class="question-n">

                        <div id="well-done-popup" class="popup">
                            <img src="../img/welldone.gif" alt="Well Done">
                        </div>

                        <!-- Try Again Popup -->
                        <div id="try-again-popup" class="popup">
                            <img src="../img/TryAgain.gif" alt="Try Again">
                        </div>


                        <div class="question-section">
                            <ol id="handler-bar">
                            </ol>

                        </div>

                    </div>

                    <footer class="footer">
                        <div class="button-wrapper">
                            <button disabled class="btn btn-primary" id="btn-done">Submit</button>
                            <button disabled class="btn btn-primary" id="btn-answers">Answer</button>
                            <button disabled class="btn btn-primary" id="btn-tryagain" style="display:none">Try Again</button>
                            <button class="btn btn-primary" id="btn-reset">Reset</button>
                        </div>
                    </footer>

                    <div id="modal-feedback">
                        <p id="feedback-text" class="feedback-text"></p>
                    </div>
                </div>
            </section>

        </div>
    </div>

    <script>
        var intro_time = 13000;
        var mytime = setTimeout(remove_Audio, intro_time, mytime, $("#button_play_intro"));
        var soundPlaying = true;
        function play_pause_intro(_this) 
        {
        	console.log(soundPlaying, ' soundPlaying');
        	$("#bg_player").get(0).play();
        	console.log($(_this))
        	$(_this).css(
        	{
        		'opacity':.7,
        		'pointer-events':'none'
        	});
        	var mytime = setTimeout(remove_Audio, intro_time, mytime, _this);
        }
        function remove_Audio(_mytime, _btn)
        {
        	clearTimeout(_mytime);
        	$("#bg_player").get(0).pause();
        	$(_btn).css(
        	{
        		'opacity':1,
        		'pointer-events':'auto'
        	});	
        }
    </script>
    <script type="text/javascript">
        document.addEventListener("DOMContentLoaded", function(){
            document.body.addEventListener("touchstart", playVideo);
            function playVideo() {
                const video = document.getElementById('myVideo');
                if(video.playing) {
                } else {
                    video.play();
                }
            }
        });
    </script>
    <style type="text/css">
        .fullscreen-video {
            position: fixed;
            overflow: hidden;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translateX(-50%) translateY(-50%);
            z-index: -10;
        }
        
        .bg-overlay {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background-color: #000;
            opacity: 0.6;
            z-index: -9;
        }
    </style>


</body>

</html>