/*
 * 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 */
}

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-color:#E4E4E4;
    background-attachment:fixed;
    font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
    font-size:12px;
    height:100%;
    margin:0px auto;
    padding:0px;
    text-transform:uppercase;
    width:630px;
}

.app {
  width: 100%;
  height: 100%;
}

/* Portrait layout (default) */
.start-screen {
    position:absolute;             /* position in the center of the screen */
    left:calc(50% - 144px);
    top:15%;
    height:50px;                   /* text area height */
    width:288px;                   /* text area width */
    text-align:center;
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .start-screen {
        background-position:left center;
        padding:0px;  /* padding-top + padding-bottom + text area = image height */
        margin:0px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
}

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;
}

button {
  background-color: green;
  border: none;
  height: 35px;
  padding: 5px 30px;
}

.button {
  height: 15px;
  border-radius:4px;
  -webkit-border-radius:4px;
  color:#FFFFFF;
  font-size:12px;
  font-weight: bold;
  margin:30px 30px;
  padding:10px;
}
.button.listening {
  display: block;
}
.button.listening {
  display: none;
}
.button.start-game {
  font-weight: bold;
  height: 50px;
  font-size: 18px;
  background-color: green;
  padding: 0px 45px;
}
.button.rules {
  font-weight: bold;
  height: 35px;
  font-size: 12px;
  background-color: green;
  margin: 0px 60px;
}
.button a {
  color:#FFFFFF;
  text-decoration:none;
}
.buttom {
  float:left;
}
.button.bottom {
  height: 35px;
  margin: 5px 5px;
  width: 50%;
}
.button.green {
  background-color: green;
}
#bottom-nav {
  text-align: center;
  margin: 0 auto;
}
#bottom-nav i {
  float:left;
  margin-top: 5px;
  margin-left: 3px;
}
#rules-container {
  width: 80%;
  height: 80%;
  margin: 50px auto;
}
#rules {
  background-color: white;
  width: 500px;
  height: 450px;
  top: 5%;
  z-index: 10;
  position: absolute;
  overflow: scroll;
  padding: 5px;
}
#rules em {
  text-decoration: underline;
}
#rules em, p {
  text-transform: none;
}
#rules a  {
  text-decoration: underline;
}
#rules-container .fa {
  position: absolute;
  top: 14px;
  left: 1050px;
  z-index:15;
}
#cards-out {
  position: absolute;
  text-align: center;
  width: 250px;
  margin: 0 auto;
  top: 25%;
  left: calc(50% - 125px);
}
#cards-out button {
  border-radius:4px;
  -webkit-border-radius:4px;
  color:#FFFFFF;
}
