/*mobile view*/
@media only screen and (max-width: 960px) {
    /*bottom*/
    #home,#back,#language,#share,#search,#luckyDraw{
        width: 60px;
        height: 60px;
        line-height: 60px;
    }

    /*luckyDraw Size*/
    #luckyDraw{
        width: 60px;
        line-height: 25px;
        animation: luckyDrawAnimation 1s infinite;
        animation-direction: alternate;
    }
    /* LuckyDraw Text Style*/
    #luckydrawtext{
        font-size: 10px;
        line-height: 10px;
    }

    @keyframes luckyDrawAnimation {
        from {
            width: 60px;
        }
        to {
            width: 70px;
        }
    }

    #privacypolicy {
        bottom: 10px;
    }
}

/* pc view */
@media only screen and (min-width: 961px) {
    /*bottom*/
    #home,#back,#language,#share,#search,#luckyDraw{
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    /*luckyDraw Size*/
    #luckyDraw{
        width: 60px;
        line-height: 25px;
        animation: luckyDrawAnimation 1s infinite;
        animation-direction: alternate;
    }
    /* LuckyDraw Text Style*/
    #luckydrawtext{
        font-size: 16px;
        line-height: 16px;
    }

    @keyframes luckyDrawAnimation {
        from {
            width: 100px;
        }
        to {
            width: 110px;
        }
    }

    #privacypolicy {
        top: 10px;
    }
}
/*body*/
body{
    background-color: #f0f0f0;
}
/* main */
#main{
    height: 100%;
}
/*searchbar css*/
#searchbar{
    box-shadow: 3px 3px 6px #9999994d;
    position:fixed; /* Make it stick/fixed */
    top: -300px; /* Stay on top */
    left: 0px;
    width: 100%;
    height: 180px;
    z-index: 999998;
    transition: all .4s ease;
}
#searchbarform{
    padding: 5px;
    position: absolute;
    top: 120px;
    width: calc(100% - 20px);
    height: 50px;
    text-align: center;
}
#searchbarinput {
    display: block;
    box-shadow: 3px 3px 6px #9999994d;
    box-sizing: border-box;
    background: #ffffffe6;
    border: 0px;
    position: absolute;
    width: calc(100% - 60px);
    border-radius: 25px;
    font: 400 17px Arial; 
    margin: 5px;
    padding: 10px;
}
#searchbarbutton{
    position: absolute;
    right: 0px;
    font: 400 17px Arial; 
    background-color: #ffffffe6;
    box-shadow: 3px 3px 6px #9999994d;
    color: #000000;
    border: none;
    cursor: pointer;
    transition: all .4s ease;
    margin: 5px;
    border-radius: 25px;
    width: 40px;
    height: 40px;
}

#voicebutton{
    display: none;
    position: absolute;
    right: 0px;
    margin: 5px;
    background-color: #ffffff;
    transition: all .4s ease;
    border-radius: 50%;
    box-shadow: 3px 3px 6px #9999994d;
    width: 40px;
    height: 40px;
}

#voicebutton img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/voice.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 50%;
    -webkit-mask-position: center;
    background: #000000;
    transition: all .4s ease;
    height: 100%;
    width: 100%;
    border-radius: 50%;
}

#searchbarbutton:hover {
    background-color: #b3b3b3;
    color: #ffffff;
}

#searchbarbutton img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/search.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 50%;
    -webkit-mask-position: center;
    background: #000000;
    transition: all .4s ease;
    height: 100%;
    width: 100%;
    border-radius: 50%;
}
#searchbarbutton img:hover {
    background: #ffffff;
}

#searchbarblur{
    width: 100%;
    height: 100%;
    background: #ffffff00;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/*bottom left button*/
#bottomLeft{
    opacity: 80%;
    position: fixed;
    left: 0px;
    z-index: 999998;
    top: 45%;
}

/* LuckyDraw Div Size and Radius*/
#luckyDraw{
    margin: 6px;
    padding: 6px;
    display: inline-table;
    border-radius: 25px;
    background: #ffffff;
    box-shadow: 3px 3px 6px #999999b3;
    transition: all .4s ease;
    text-align: center;
    text-decoration: none;
    color: #000000;
}
/*Move to LuckyDraw will off transparent*/
#bottomLeft:hover{
    opacity: 100%;
}

/*Div will follow outside size*/
#luckyDrawdiv{
    width: 100%;
    height: 100%;
}

/* LuckyDraw Image Size*/
#luckydrawimage{
    top: 10%;
    width: 100%;
    margin-top: 6px;
    padding-bottom: 10px;
}

/* LuckyDraw Text Style*/
#luckydrawtext{
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
    position: relative;
}

/*bottom button*/
#bottom{
    opacity: 80%;
    position: fixed;
    right: 0px;
    z-index: 999998;
    bottom: 120px;
    overflow: auto;
    height: 50%;
}
/*bottom button*/
#home,#back,#share,#search,#language{
    margin: 10px;
    background-color: #ffffff;
    transition: all .4s ease;
    border-radius: 50%;
    box-shadow: 3px 3px 6px #9999994d;
}
/*hide back and share*/
#back,#share{
    display: none;
}
#language a{
    display: block;
    color: #000000;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
    border-radius: 50%;
}
#home:hover,#back:hover,#share:hover,#search:hover,#language a:hover,#luckyDraw:hover{
    background-color: #b3b3b3;
    color: #ffffff;
}

#privacypolicy {
    position: fixed;
    margin: 10px;
    right: 0px;
    z-index: 999998;
    border-radius: 10px;
    background-color: #ffffff;
    transition: all .4s ease;
    opacity: 80%;

}
#privacypolicy:hover {
    background-color: #b3b3b3;
    color: #ffffff;
}
#privacypolicy a{
    padding: 10px;
    display: block;
    color: #000000;
    text-align: center;
    text-decoration: none;
    transition: all .4s ease;
    font-size: 14px;
}
#privacypolicy a:hover{
    color: #ffffff;
}
#home a img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/home.svg);
}
#back a img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/back.svg);
}
#share a img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/share.svg);
    border-radius: 50%;
}
#search a img{
    -webkit-mask-image: url(https://4dluckybook.com/resource/home/search.svg);
    border-radius: 50%;
}
#home a img,#back a img,#share a img,#search a img{
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 50%;
    -webkit-mask-position: center;
    background: #000000;
    transition: all .4s ease;
    height: 100%;
    width: 100%;
    border-radius: 50%;
}
#home a img:hover,#back a img:hover,#share a img:hover,#search a img:hover{
    background: #ffffff;
}
/*app store button*/
#store{
    text-align: center;
}
#logo_app{
    display: none;
}
#href_google_play_store{
    padding: 10px 5px;
    display: none;
    height: 70px;
}
#google_play_store{
    position: relative;
    transition: all .2s ease;
    height: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
#google_play_store:hover{
    position: relative;
    height: 55px;
}