/*
    Author: Quang Huỳnh
*/



#pwa-online {
    position: absolute;
    top: -50px;
    width: 100%;
    height: 50px;
    z-index: 9999999999;
    transition: all 0.5s linear; /* vendorless fallback */
    -o-transition: all 0.5s linear; /* opera */
    -ms-transition: all 0.5s linear; /* IE 10 */
    -moz-transition: all 0.5s linear; /* Firefox */
    -webkit-transition: all 0.5s linear; /*safari and chrome */
}

#pwa-online .on, #pwa-online .off {
    display: none;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    font-weight: bold;
}

#pwa-online .on {
    background-color: #d4edda;
    color: #155724;
}

#pwa-online .off {
    background-color: #f8d7da;
    color: #721c24;
}

#pwa-banner-only-ios {
    position: fixed;
    bottom: -100px;
    display: -webkit-inline-box;
    width: 100%;
    height: 60px;
    z-index: 999999999;
    background-color: #f3eeed;
    padding: 10px 0;
    border-radius: 10px;
    transition: all 0.5s linear; /* vendorless fallback */
    -o-transition: all 0.5s linear; /* opera */
    -ms-transition: all 0.5s linear; /* IE 10 */
    -moz-transition: all 0.5s linear; /* Firefox */
    -webkit-transition: all 0.5s linear; /*safari and chrome */
}

#pwa-banner-only-ios .add-icon {
    width: 50px;
    padding: 0 10px;
    font-size: 35px;
    color: #ed2623;
    text-align: center;
    vertical-align: middle;
    height: 100%;
    display: inline-flex;
}

#pwa-banner-only-ios .description {
    padding: 0 10px;
    width: 85%;
    font-size: 12px;
    line-height: 10px;
}

#pwa-banner-only-ios .description img {
    width: 20px;
    margin: 0 5px;
}

#pwa-banner-only-ios .description::after{
    content: '';
    position: absolute;
    transform: translate(-50%, -50%);
    left: 50%;
    bottom: 0;
    top: 100%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 20px solid #f3eeed;
    clear: both;
}

@media all and (display-mode: standalone) {

}


@media (min-width:1025px) {
    .pwa-register {
        display: none;
    }

}

@media (max-width:1024px) {
    .pwa-register {
        display: none;
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 150px;
        background-color: #FFF;
        z-index: 99999999;
        overflow: hidden;
        box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2), 0 -1px 10px rgba(0, 0, 0, 0.5);
    }

    .pwa-register .info {
        display: -webkit-inline-box;
        height: 100px;
        padding: 15px 0 0 15px;
    }

    .pwa-register .logo {
        width: 75px;
        height: 75px;
        border-radius: 50%;
        border: 1px solid #ed2623;
    }

    .pwa-register .info .title {
        padding: 0 0 0 20px;
    }

    .pwa-register .info .title h3 {
        margin-top: 0;
        font-weight: bold;
        color: #000;
        font-style: initial;
    }

    .pwa-register .info .title p {
        font-style: initial;
    }

    .pwa-register .add-homescreen-button {
        position: absolute;
        right: 10px;
        bottom: 0;
        transform: translate(-2%, -20%);

        width: 200px;
        height: 40px;
        cursor: pointer;
        overflow: hidden;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        vertical-align: middle;
        z-index: 1;
        -webkit-transition: .3s ease-out;
        transition: .3s ease-out;
        text-decoration: none;
        color: #fff;
        background-color: #ed2623;
        text-align: center;
        letter-spacing: .5px;
        -webkit-transition: background-color .2s ease-out;
        transition: background-color .2s ease-out;
        cursor: pointer;
        font-size: 14px;
        outline: 0;
        border: none;
        border-radius: 2px;
        line-height: 40px;
        font-style: initial;
        padding: 0 16px;
        text-transform: uppercase;
        vertical-align: middle;
        -webkit-tap-highlight-color: transparent;
        -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
        box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
    }

    .pwa-register .add-homescreen-button:hover {
        background-color: #bf1c1a;
        -webkit-box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
        box-shadow: 0 3px 3px 0 rgba(0,0,0,0.14), 0 1px 7px 0 rgba(0,0,0,0.12), 0 3px 1px -1px rgba(0,0,0,0.2);
    }


    .close-thin {
        color: #777;
        font: 35px/100% arial, sans-serif;
        position: absolute;
        right: 10px;
        text-decoration: none;
        text-shadow: 0 1px 0 #fff;
        top: 15px;
    }

    .close-thin:after {
        content: '×'; /* UTF-8 symbol */
    }


}
