/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

@font-face {
    font-family: Forte;
    src: url('../forte/FORTE.ttf');
}


body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    background-attachment:fixed;
    font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
	background-color:#d9d8d9;
    font-size:12px;
    height:100%;
    margin:0px;
    padding:0px;
    text-transform:uppercase;
    width:100%;
}

.background {
color:#1f1f1f;
position:absolute;
width:100%;
height:100%;
padding:0px;
margin:0px;
font-family:'Forte', sans-serif;
}

#numbers-wrapper {
width:370px;
height:370px;
margin-left:0;
background-color:#8d8b8d;
overflow:hidden;
}

.number-box {
background-color:#FFFFFF;
float:left;
width:80px;
margin:0px;
height:80px;
text-align:center;
font-size:3em;
line-height:80px;
position:absolute;
font-family:'Forte', sans-serif;
}


.middle-wrapper {
	margin-left:15%;
	margin-top:15%;
	text-align: center;
	width: 70%;
}

.middle-logo, .middle-title {
	font-size:5.5em;
	margin-top:0;
	margin-bottom:0;
}

.middle-logo{
	margin-left:20px;
}

.middle-title{
	font-size:2em;
}

#game-wrapper-top {
	overflow:hidden;
}

.gm-3{
	width:50%;
	float:left;
}

#game-wrapper-right {
	text-align:right;
}

#game-wrapper-middle {
	text-align:center;
}

button {
	background-color:transparent;
	border-style:none;
	cursor:pointer;
}

#play-btn,#pause-btn {
	font-size:2em;
	margin-top:5px;
	margin-left:5px;
}

#play-btn{
display:none;
}

#main-game-wrapper {
	margin-left:0;
	margin-top:3%;
}

#main-game-header {
	font-size:3em;
}

#timer-text, #tries-text {
	font-size:2em;
	margin-top:1px;
	margin-right:5px;
	margin-bottom:1px;
}

#tries-info, #timer-info {
	margin-top:1px;
	margin-right:5px;
}

#score-text {
	font-size:6em;
	margin-left:15%;
}

#click-wrapper {
	margin-top:20px;
text-align:center;
}

#hand-btn, #sound-btn {
	font-size:4em;
	padding:7px;
}

#main-game-header,#score-text {
	margin-top:5px;
	margin-bottom:5px;
}

#click-wrapper-info{
	margin-left:-40px;
}

#best-try-text, #best-time-text {
	font-size:1.1em;
	margin-bottom:7px;
	margin-top:2px;
	margin-left:-40px;
}

#best-try-text, #game-wrapper-middle {
display:none;
}

#overlay-wrapper {
	position:fixed;
	width:100%;
	height:100%;
	top:0;
	display:none;
}

#overlay-background {
	background:#000;
	width:100%;
	height:100%;
	position:absolute;
	opacity:0.5;
}

#overlay-info-wrapper {
	background-color:#FFFFFF;
	width:50%;
	margin-left:25%;
	margin-top:10%;
	text-align:center;
	padding-bottom:20px;
	position:absolute;
}

#overlay-info {
font-size:2em;
padding-top:20px;
padding-bottom:20px;
margin:0px;
}

#overlay-no-try,#overlay-best-try {
font-size:1.2em;
padding-top:2px;
padding-bottom:2px;
margin:0px;
margin:0px;

}

#btn-play, #btn-replay {
font-size:2em;
margin-left:10px;
margin-right:10px;
margin-top:10px;
}

.game-description {
	font-size:1.3em;
	font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
}

.link-btn {
	font-size: 2em;
	color:#1f1f1f;
	text-decoration: none;
	font-weight: bold;
}

.controls-wrapper {
	margin-top: 10px;
}

#home-best-score{
	font-size: 1.5em;
}

/* Portrait layout (default) */
.app {
    background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position:absolute;             /* position in the center of the screen */
    left:50%;
    top:50%;
    height:50px;                   /* text area height */
    width:225px;                   /* text area width */
    text-align:center;
    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
                                   /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:480px) {
    .app {
        background-position:left center;
        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
	
}

@media screen and (max-width:480px) {
    #click-wrapper {
	margin-left:0;
	text-align:center;
    }

    #overlay-info-wrapper {
    	width:95%;
    	margin-left:2.5%;
    }


}

h1 {
    font-size:24px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

.event {
    border-radius:4px;
    -webkit-border-radius:4px;
    color:#FFFFFF;
    font-size:12px;
    margin:0px 30px;
    padding:2px 0px;
}

.event.listening {
    background-color:#333333;
    display:block;
}

.event.received {
    background-color:#4B946A;
    display:none;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
@-webkit-keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}
