/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
	font-family: "Shark Random Funnyness 2";
	src: url('../fonts/106414795-SRF2.eot');
	src: url('../fonts/106414795-SRF2.eot?#iefix') format('embedded-opentype'),
	url('../fonts/106414795-SRF2.svg#Shark Random Funnyness 2') format('svg'),
	url('../fonts/106414795-SRF2.woff') format('woff'),
	url('../fonts/106414795-SRF2.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
}

body {
	overflow:hidden;
}

.wrapper{
	width:680px;
	height:622px;
	background:url("../img/loader.png") no-repeat;
	margin:auto;
	position:relative;
}

.mask,#layer {
	position:absolute;
	width:100%;
	height:100%;
	top:0;
	left:0;
	background-color:#FFF;
	z-index:9999;
	display:none;
}

#layer { opacity: 0.3 }

#start {
	color: #FF0000;
	font-size: 50px;
	position: absolute;
	z-index: 99999;
	margin-left: 240px;
	margin-top: 250px;
	width: 220px;
	height: 81px;
	background: url('../img/start.png') no-repeat
}
	
.page2,.page3,.page4,.page5 { display: none }

.play {
	font-family: "Shark Random Funnyness 2";
	cursor: pointer;
	height: 39px;
	position: absolute;
}

#play_0 {
	bottom: 20px;	
	left: 204px;
	width: 265px
}

#play_1 {
	bottom: 90px;
	left: 247px;
	width: 294px
}

.card_deck {	
	height: 270px;
	position: absolute;
	cursor: pointer
}

#card_deck1 {
	background: url('../img/animals.png') no-repeat;
	left: 220px;
	top: 15px;
	width: 210px;
	height: 280px;
}

#card_deck2 {
	background: url('../img/crops.png') no-repeat;
	width: 225px;
	left: 435px;
	top: 4px
}

#card_deck3 {
	background: url('../img/jobs.png') no-repeat;
	width: 210px;
	left: 220px;
	top: 300px
}

#card_deck4 {
	background: url('../img/tools.png') no-repeat;
	width: 205px;
	left: 465px;
	top: 315px
}

#cardWrap {
	width: 425px;
	height: 505px;
	position: absolute;
	margin-left: 252px;
	top: 27px
}

.cardFace,.cardWrapper{
	width: 96px;
	height: 126px;
	position: relative;
	float: left;
	margin-right: 10px
}

.cardWrapper { cursor: pointer }

.card{
	position:absolute;
	overflow:hidden
}

.front1 {
	height: 112px;
	width: 81px;
	margin: 5px 0 0 8px;
	background: url('../img/front.png') no-repeat;
}

.back {
	height: 123px;
	width: 93px;
}

.sound {
	width: 32px;
	height: 32px;
	margin-left: 30px;
	margin-top: 71px
}

#game_con {
	width: 240px;
	height:215px;
	top: 32px;
	left: 5px;
	position: absolute;
	color: #FFF;
	text-align: center;
	text-shadow: 0 1px 6px #00008B, 0 -2px 6px #00008B, 0 0 10px #00008B, 0 0 5px #00008B
}

#game_title1 { 
	font-family: "Shark Random Funnyness 2";
	font-size: 44px;
	text-transform: uppercase;
	width: 223px;
	position: absolute;
	filter: Shadow(Color='#0000FF', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#0000FF",Strength="6") 
}
#game_title2 { 
	font-family: "Shark Random Funnyness 2";
	font-size: 33px;
	margin-top: 56px;
	width: 223px;
	position: absolute;
	filter: Shadow(Color='#0000FF', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#0000FF",Strength="6")
}
#time_txt { 
	font-size: 26px;
	margin-top: 145px;
	margin-left: 20px;
	position: absolute;
	filter: Shadow(Color='#0000FF', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#0000FF",Strength="6") 
}
#time { 
	font-size: 30px;
	margin-left: 76px;
	margin-top: 176px;
	position: absolute;
	filter: Shadow(Color='#0000FF', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#0000FF",Strength="6")
}

#go {
	width: 420px;
	height: 510px;
	left: 250px;
	top: 20px;
	color: #02FF01;
	font-size: 20px;
	text-align: center;
	font-family: sans-serif;
	position: absolute
}

#go_txt { 
	font-family: "Shark Random Funnyness 2";
	margin-top: 205px 
}

.tick {
	width: 140px;
	height: 145px;
	background: url('../img/tick.png') no-repeat
}

#card_deck1 > .tick { margin-left: 48px;margin-top: 65px }
#card_deck2 > .tick { margin-left: 55px;margin-top: 55px }
#card_deck3 > .tick { margin-left: 50px;margin-top: 55px }
#card_deck4 > .tick { margin-left: 35px;margin-top: 50px }

.video_con {
	position: absolute;
	top: 200px;
	left: 230px;
	display: none;
}

.continue {
	position: absolute;
	cursor: pointer;
	width: 261px;
	height: 33px;
	top: 535px;
	left: 227px
}

#over1 {
	width: 673px;
	height: 388px;
	position: absolute;
	z-index: 9990;
	display: none
}

.result {
	width: 500px;
	height: 395px;
	background: url("../img/prize.png") no-repeat;
	position: absolute;
	z-index: 9990;
	left: 100px;
	top: 100px
}

.certificate {
	cursor: pointer;
	height: 136px;
	left: 312px;
	position: absolute;
	top: 155px;
	width: 125px;
}

#pass1 {
	cursor: pointer;
	height: 112px;
	left: 41px;
	position: absolute;
	top: 232px;
	width: 81px;
}

#pass2 {
	cursor: pointer;
	height: 18px;
	left: 245px;
	position: absolute;
	top: 326px;
	width: 127px;
}

/* pop_up code starts here */

.popup {
	display: none;
	opacity: 0; 
	position: absolute;
	left: 170px;
	top: 90px;
	width: 388px;
	height: 437px;
	font-size: 25px;
	font-weight: bold;
	z-index: 999;
	text-align: center;
	box-shadow: 10px 10px 15px #FF0000,-10px -10px 15px #FF0000;
	text-shadow: 0 1px 6px #00008B, 0 -2px 6px #00008B, 0 0 10px #00008B, 0 0 5px #00008B;
	color:  #FFF;
}

.popup_cont {
	top: 30%;
	font-size: 38px;
	margin: 0 20px;
	position: absolute;
	text-align: left;
	width: 100%;
}

.popup a {
	bottom: 3%;
	color: #FFF;
	font-size: 30px;
	font-weight: normal;
	position: absolute;
	right: 35px;
	text-decoration: none;
	filter: Shadow(Color='#00008B', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#00008B",Strength="13");
}

#popup_help { background: url('../img/help.jpg') no-repeat }
#popup { width: 400px;height:360px;top:135px;background: url('../img/pop_up.png') no-repeat;box-shadow: 10px 10px 15px #00008B,-10px -10px 15px #00008B }
#popup a { font-weight: bold }

#overlay {
	width: 100%;
	height: 100%;
	background-color: #fff;
	filter:alpha(opacity=50);
	-moz-opacity: 0.5;
	-khtml-opacity: 0.5;
	opacity: 0.5;
	z-index: 99;
	position: absolute;
	display: none
}

/* pop_up code ends here */

/*footer css starts here */
.footer {
	color: #FFF;
	font-weight: bold;
	font-size: 17px;
	width: 680px;
	height: 35px;
	top: 587px;
	background: url("../img/footer.jpg") no-repeat;
	position: absolute;
	display: none
}

.score_con {
	width: 270px;
	height: 34px
}

.score {
	width: 50px;
	margin-left: 102px;
	margin-top: 7px;
	position: absolute
}

.mute {
	cursor: pointer;
	width: 43px;
	height: 25px;
	margin-left: 556px;
	margin-top: 5px;
	background: url("../img/unmute.png") no-repeat;
	position: absolute
}

.help {
	cursor: pointer;
	width: 38px;
	height: 20px;
	margin-left: 627px;
	margin-top: 8px;
	position: absolute
}
/* footer css ends here */


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}