/*
 * 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: text;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    background-color:#363636;
    font-family: -apple-system, "Helvetica Neue", "Lucida Grande";
    font-size:12px;
    /* height:100vh; */
    margin:0px;
    padding:0px;
    /* Padding to avoid the "unsafe" areas behind notches in the screen */
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    /* text-transform:uppercase; */
    width:100%;
}

/* 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:5px;                   /* 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:400px) {
    .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 */
    }
}

#content {
    color:white;
    margin-top: 90px;
}

h1 {
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:left;
    display: -webkit-inline-flex;
    color:white;
}

.event {
    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;
}

#deviceready.ready .event.listening { display: none; }
#deviceready.ready .event.received { display: block; }

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}

.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}


@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: #363636;
    }
}

#topbar {
    background: rgb(242,100,25);
    background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
    font-weight: bold;
    font-size: 12px;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 10%;
    position: fixed;
    width: 100%;
    top: 0px;
    z-index: 99;
}

@media only screen 
    and (device-width : 375px) 
    and (device-height : 812px) 
    and (-webkit-device-pixel-ratio : 3) {
        #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 40px;
            padding-bottom: 40px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }        
     }

/* iphone X , XS, 11 Pro, 12 Mini */
@media only screen and (min-device-width: 375px) and (max-device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 50px;
            padding-bottom: 20px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }      
 }

/* iphone 12, 12 Pro */
@media only screen and (min-device-width: 390px) and (max-device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
    #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 50px;
            padding-bottom: 20px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }      
 }

/* iphone XR, 11 */
@media only screen and (min-device-width : 414px) and (max-device-height : 896px) and (-webkit-device-pixel-ratio : 2) {
    #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 50px;
            padding-bottom: 20px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }      
 }
    
/* iphone XS Max, 11 Pro Max */
@media only screen and (min-device-width : 414px) and (max-device-height : 896px) and (-webkit-device-pixel-ratio : 3) {
    #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 50px;
            padding-bottom: 20px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }      
 }

/* iphone 12 Pro Max */
@media only screen and (min-device-width : 428px) and (max-device-height : 926px) and (-webkit-device-pixel-ratio : 3) {
    #topbar {
            background: rgb(242,100,25);
            background: linear-gradient(0deg, rgba(242,100,25,1) 0%, rgba(246,174,45,1) 100%);
            font-weight: bold;
            font-size: 12px;
            padding-top: 50px;
            padding-bottom: 20px;
            padding-left: 10%;
            position: fixed;
            width: 100%;
            top: 0px;
            z-index: 99;
        }      
 }

.button-square.left {
    width: 45%;
    border: solid 2px #F6AE2D;
    border-radius: 10px;
    margin-top: 20px;
    display: inline-grid;
    height: auto;
}

.button-square.right {
    width: 43%;
margin-left: 5%;
border: solid 2px #F6AE2D;
border-radius: 10px;
margin-top: 20px;
display: inline-grid;
height: auto;
position: absolute;
min-height: 127px;
}

.button-square-icon {
    margin-left: auto;
    margin-right: auto;
    display: -webkit-flex;
    width: 80px;
}

.button-square-icon-space {
    width: 100%;
    display: -webkit-inline-flex;
}

.button-square-text {
    text-align: center;
    width: 100%;
    display: inline-grid;
    padding-bottom: 10px;
}

.separator-text {
    color: #FFFFFF;
    font-size: 16px;
}

.separator-segment {
    text-transform: uppercase;
    /* margin-left: 10%; */
    margin-top: 30px;
    border-top: 2px solid white;
    /* margin-right: 10%; */
    padding-top: 10px;
    opacity: 0.5;
}

.button-wide {
    border: 2px #AAA solid;
    border-radius: 10px;
    padding: 15px 10px 15px 10px;
    /* margin-left: 10%; */
    /* margin-right: 10%; */
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

a {
    color: white;
    text-decoration: none;
}

.back-button {
    margin-right: 10px;
}

.margin-standard {
    margin-left: 5%;
    margin-right: 5%;
    font-size: 14px;
    line-height: 22px;
}

.orange {
    border-color: #F6AE2D;
    color: #F6AE2D;
}

.txt-white {
    color:white !important;
}

.progress {
    background-color: #F6AE2D;
    height: 10px;
    border-radius: 10px;
}

.pb0 {
    width: 2%;
}

.pb2 {
    width: 2%;
}

.pb4 {
    width: 4%;
}

.pb8 {
    width: 8%;
}

.pb12 {
    width: 12%;
}

.pb16 {
    width: 16%;
}

.pb20 {
    width: 20%;
}

.pb24 {
    width: 24%;
}

.pb28 {
    width: 28%;
}

.pb32 {
    width: 32%;
}

.pb36 {
    width: 36%;
}

.pb40 {
    width: 40%;
}

.pb44 {
    width: 44%;
}

.pb48 {
    width: 48%;
}

.pb52 {
    width: 52%;
}

.pb56 {
    width: 56%;
}

.pb60 {
    width: 60%;
}

.pb64 {
    width: 64%;
}

.pb68 {
    width: 68%;
}

.pb72 {
    width: 72%;
}

.pb76 {
    width: 76%;
}

.pb80 {
    width: 80%;
}

.pb84 {
    width: 84%;
}

.pb88 {
    width: 88%;
}

.pb92 {
    width: 92%;
}

.pb96 {
    width: 96%;
}

.pb100 {
    width: 100%;
}

.progress-background {
    border-radius: 10px;
    border: #F6AE2D solid 2px;
    margin-bottom: 30px;
}

.bkg-orange{
    background-color: #F6AE2D;
    color:white;
    border-color: #F6AE2D;
}

.checklist-instruction {
    font-size:18px;
    margin-bottom: 10px;
    color: white;
}

.border-none {
    border:none !important;
}

.button-wide.position-bottom.nav {
    background-color: #53864a;
    border-color: #6effb5;
}