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

html {
    font-size: 1em;
    line-height: 1.4;
}
body{
	overflow:hidden;
}
::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}
audio,
canvas,
img,
video {
    vertical-align: middle;
}
fieldset {
    border: 0;
    margin: 0;
    padding: 0; 
}
textarea {
    resize: vertical;
}
.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
.section{
	height: 622px;
    margin: 0 auto;
    position: relative;
    width: 680px;	
}
.wrapper {
    height: 622px;
    margin: 0 auto;
    position: relative;
    width: 680px;
	padding-top:1px;
	overflow:hidden;
	background:url(../img/loader.png) no-repeat;
}
.learn {
    background-color: #CCCCCC;
    bottom: 61px;
    height: 34px;
    left: 219px;
    position: absolute;
    width: 405px;
	cursor:pointer;
	opacity:0;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}
.play {
    background-color: #CCCCCC;
    bottom: 18px;
    height: 34px;
    left: 219px;
    position: absolute;
    width: 405px;
	cursor:pointer;
	opacity:0;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

#overlay {
    background-color: #FFFFFF;
    display: none;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
	z-index:9; 
    width: 100%;
}
.table {
    border-collapse: separate;
    border-spacing: 5px;
    display: block;
    margin: 167px auto 0;
}
.tr{
	display:table-row;
}
.td {
    /*background-color: #CCCCCC;*/
    display: inline-block;
    height: 165px;
    margin: 0 30px 50px 30px;
    position: relative;
    width: 165px;
}

.td > img {
    display: block;
    margin: 0 auto;
}

.td > p {
    bottom: 0;
    color: #cccccc;
    display: block;
    font-size: 24px;
    overflow: hidden;
    position: absolute;
    text-align: center;
    width: 100%;
	margin:0;
}

#td4 > p {
    text-indent: -40px;
}

.scoreBar {
    height: 31px;
	position:relative;
	background-repeat:no-repeat;
	/*background:url(../img/nave.png) no-repeat;*/
}

.scoreBar > div{
	display:inline-block;
	color:#fff;
	height: 21px;
	vertical-align:top;
	padding:5px 10px;
	position:absolute;
	font-weight: bold;
	font-size:15px;
}

#time {
    padding: 5px 10px;
   /* width: 169px;*/
   	width:30px;
   	left:88px;
}

#rounds {
    left: 338px;
}

#mute {
    cursor: pointer;
    right: 61px;
    width: 19px;
}

#help {
    cursor: pointer;
    right: 9px;
    width: 20px;
}
.xgame {
    height: 589px;
    position: relative;
}

.dragBox {
    bottom: 5px;
    height: 110px;
    position: absolute;
    text-align: center;
    width: 100%;
}

.dragItem {
    display: inline-block;
	position:absolute;
	cursor:pointer;
	bottom:8px;
	z-index:1;
}

.dragItem > img{
	display:inline-block;
	vertical-align:top;
}

.dragBox > div {
    display: inline-block;
	position:absolute;
	bottom:8px;
}

.dropItem {
    /*background-color: #CCCCCC;
	opacity: 0.5;*/
    height: 141px;
    position: absolute;
    width: 141px;
	text-align:center;
}

#resultBox,
#helpBox {
    background:url(../img/popup.png) no-repeat;
    top:112px;
	left:141px;
	z-index:99;
	width:337px;
    height:350px;
	display:none;
	padding: 30px;
    position: absolute;
}

#checkOut {
   /* background-color: #CCCCCC;*/
    bottom: 170px;
    height: 66px;
    left: 45px;
    opacity: 0.5;
    position: absolute;
    width: 69px;
}

.cursor{
	cursor:pointer;
}

#resultBox > span{
	display:block;
	margin-left:15px; 
	margin-right:15px;
	color:#fff;
	text-shadow: 0 2px 4px #FF0000, 0 -2px 10px #FF0000;
	filter: Shadow(Color='#FF0000', Direction=100, Strength=0);
	filter: progid:DXImageTransform.Microsoft.Glow(Color="#FF0000",Strength="3")
}

#helpBox > span{
	display:block;
	margin-left:10px; 
	color:#fff;
}

.muted{
	background:url(../img/mute.png) no-repeat scroll 0 5px rgba(0, 0, 0, 0);
}



.ImageRiver {
    background-color: #CCCCCC;
    display: block;
    height: 118px;
    margin: 133px 24px 0 auto;
    opacity: 0;
    width: 117px;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}
.dwnit {
    background-color: #CCCCCC;
    display: block;
    height: 20px;
    margin: 40px 82px 0 auto;
    opacity: 0;
    width: 132px;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

._rTop {
    font-size: 23px;
    font-style: italic;
}

._wTop {
    font-size: 23px;
    margin-top: 28px;
    text-align: center;
}

._rMid{
    height: 175px;
    margin-top: 116px;
}

._wMid {
    font-size: 20px;
    margin-top: 110px;
    min-height: 128px;
    text-align: center;
}

._wBtm {
    font-size: 23px;
    text-align: center;
	cursor:pointer;
}

._rBtm {
    margin-right: 15px;
    text-align: right;
	cursor:pointer;
}

._hMid> p > label {
    display: inline-block;
    vertical-align: top;
    width: 90%;
	margin-left:10px;
	text-indent:0;
}
._hBtm {
    font-size: 24px;
    margin-right: 15px;
    text-align: right;
	cursor:pointer;
}
._hMid {
    min-height: 265px;
}
._cBtm {
    font-size: 22px;
    margin-right: 10px;
    margin-top: 190px;
    text-align: right;
	cursor:pointer;
}
._cTop {
    font-size: 34px;
    margin-top: 71px;
    text-align: center;
    text-indent: -15px;
}
#layerMask{
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
	z-index:99999;
	background-color:rgba(0,0,0,0.60);
	display:none;
	text-align:center;
}
#layerMask > span {
    margin-top:275px;
	text-align:center;
	min-width:10px;
	display:inline-block;
}

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

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

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}
.hidden {
    display: none !important;
    visibility: hidden;
}
.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;
    }
}
