/*
   Copyright 2018 Locomote Limited
   Licensed 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.
*/

body {
    margin: 0px;
    padding: 0px;
    font-size: 14px;
    align-content: center;
    align-items: center;
    background: linear-gradient(var(--g-angle), var(--g-color-0) var(--g-position-0), var(--g-color-1) var(--g-position-1));
    flex-direction: column;
    flex-wrap: nowrap;
    height: 100vh;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    --g-color-0: #243949;
    --g-position-0: 0%;
    --g-color-1: #517fa4;
    --g-position-1: 100%;
    --g-angle: 90deg;
}

/* not used for banner */
p {
    font-size : 120%;
}

h1 {
    font-size: 250%;
}

/* banner css */

.show-element {
    display: block;
}

.hide-element {
    display: none;
}

.container {
    margin: 8px;
}

.ios-pwa-banner {
position: fixed;
background-color: rgba(255, 255, 255, 0.5);
color: #383838;
font-weight: 400;
width: 90vw;
height: 70px;
bottom: 4vh;
z-index: 9999;
left: 5vw;
right: 5vw;
border-radius: 8px;
-webkit-filter: drop-shadow(1px 3px 5px rgba(49, 196, 190, 0.75));
-moz-filter: drop-shadow(1px 3px 5px rgba(49, 196, 190, 0.75));
-ms-filter: drop-shadow(1px 3px 5px rgba(49, 196, 190, 0.75));
filter: drop-shadow(1px 3px 5px rgba(49, 196, 190, 0.75));
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
}

.ios-pwa-banner::before {
content: "";
position: absolute;
border: 12px solid transparent;
border-top: 12px solid rgba(255, 255, 255, 0.5);
top: 100%;
left: 50%;
drop-filter: blur(10px);
-webkit-drop-filter: blur(10px);
}
.app-icon {
    height: 100%;
    float: left;
}

.app-icon img{
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto;
    padding: 10px;
}

.banner-text {
    width: 60%;
    height: 100%;
    float: left;
    padding: 10px 10px 10px 0px;
    font-size: 14px;
	line-height: 16px;
	text-align: left;
}

.banner-text img {
    width: 15px;
    height: 23px;
}

.closing-button {
    float: right;
    height: 100%;
}

.closing-button img {
    width: 15px;
    height: 15px;
    display: block;
    padding: 10px;
}

.vertical-align {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}


/* iPhone 5 and smaller*/
@media only screen
and (min-device-width : 0px)
and (max-device-width : 568px) {
    .ios-pwa-banner {
        font-size: 14px;
    }
    .banner-text {
        width: 65%;
    }
}

/* iPhone 6,7,8 */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 667px) {
     .ios-pwa-banner {
        font-size: 17px;
    }
    .banner-text {
        width: 65%;
    }
}

/* iPhone 6,7,8 Plus */
@media only screen
and (min-device-width : 414px)
and (max-device-width : 736px) {
    .ios-pwa-banner {
        font-size: 17px;
    }
}


/* iPhone X */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
and (-webkit-device-pixel-ratio : 3) {
    .ios-pwa-banner {
        font-size: 17px;
    }
}
