/* vitrine
Rodrigo Nishino <rodrigo.nsh@gmail.com>
*/

#home,
#profile
{
    display: none;
}

body[show=home] #home{ display: block; }
body[show=profile] #profile{ display: flex; }

#home
{
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

[orientation=landscape] #home
{
    height: 100vh;
}

@media all and (display-mode: standalone) {
    #home
    {
        height: 100vh;
    }
}

#over
{
    display: flex;
    flex-direction: column;
    position: absolute;
    inset: 0;
}

#picture
{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

#areaSelector
{
    display: block;
    width: 100%;
    border: none;
    padding: 8px;
    border-radius: 5px;
}


#livestats
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 300px;
    position: absolute;
    top: 49px;
    left: 5px;
    right: auto;
    bottom: 32px;
    padding: 0;
}


#counters
{
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
}

.counter
{
    display: flex;
    align-items: center;
    padding: 0px 10px;
    background: white;
    color: black;
    margin-right: 10px;
    border-radius: 30px;
    font-size: 10px;
}

.counter img
{
    margin-right: 10px;
}

[orientation=portrait] #livestats
{
    top: 48px;
}

#vvchat
{
    width: 100%;
    flex-grow: 1;
    overflow-y: scroll;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    direction: rtl;
    scrollbar-width: thin;
    scrollbar-color: #dbdbdb #eee;
    
    opacity: 0;
    transition: opacity 1s;
}

#vvchat::-webkit-scrollbar {
    width: 5px;
}

[orientation=landscape] #vvchat
{
    opacity: 1;
}

#vvchat.show
{
    opacity: 1;
}

.vvchat-msg
{
    display: flex;
    align-items: flex-start;
    color: black;
    margin-bottom: 12px;
    direction: ltr;
    width:  calc(100% - 4px);
}

#vvchat p
{
    font-size: 12px;
    margin: 0px;
    width: auto;
    text-align: left;
    font-family: sans-serif;
    padding: 9px;
    background: white;
    border-radius: 6px;
}

#vvchat small
{
    font-size: 10px;
    color: #fff;
    font-weight: bold;
    padding-bottom: 0px;
    margin-top: 5px;
}



.vvchat-img
{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0px 0px 3px black;
    flex-shrink: 0;
}



#controls
{
    display: flex;
    align-items: center;
    padding: 8px;
    background: #eee;
    z-index: 3;
}


#photoButton
{
    overflow: hidden;
    width: 33px;
    height: 33px;
    text-align: center;
    padding: 0px;
    background-image: url(/img/send-photo-bg.svg);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 0;
    flex-shrink: 0;
    box-shadow: none;
    
}

#profile-btn
{
        margin-left: 4px;
}

#inputPlusSend
{
    flex-grow: 1;
    display: flex;
    position: relative;
}

#inputPlusSend [data-else="isOnline"]{ margin-left: 4px; }

#inputPlusSend div{ display: flex; }

input[type="text"]
{
    flex-grow: 1;
    margin-left: 4px;
    background: #FCFCFC;
    border: 1px solid #77777757;
    border-radius: 50px;;
    padding: 10px;
    margin-right: 4px;
}

#sendbutton
{
    position: absolute;
    top: 7px;
    right: 12px;
    width: 31px;
}


#uploadButton
{
    flex-shrink: 0;
    margin-right: 4px; 
    margin-left: 8px; 
    position: relative; 
}

#uploadButton:focus{ outline: 0px; }

#uploadButton,
#uploadButton input[type=file],
#uploadButton .foto

{
    width: 33px;
    height: 33px;
    text-align: center;
    padding: 0px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 50%;
}

#uploadButton input[type=file]
{
    position: absolute;
    top: 0px;
    left: 0px;
}

#uploadButton button{ margin-left: 0px; }



input[type=file]
{
    z-index: 10;
    opacity: 0;
    cursor: pointer;
}

#uploadButton.loading button,
#photoButton.loading
{
    background-image: url(/img/spinner.gif);
}






button:hover
{
    cursor: pointer;
    opacity: 1;
}

button:disabled
{
    background-image: url(/img/spinner.gif);
}



button[emit=gps]
{
    margin: 64px auto;
}


#currentPhoto{
    background-size: contain;
    backdrop-filter: blur(8px) brightness(0.5);
}

#currentPhoto[src="#"]{
    display: none;
}

.flash #currentPhoto
{
    filter: brightness(1.1);
}


[orientation=portrait] #currentPhoto
{
    height: calc(100vh - 107px);
    height: calc(100svh - 107px);
}

[orientation=landscape] #currentPhoto
{
    height: calc(100vh - 53px);
}


#profile
{
    background-color: #E3E3E3;
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}



#profile [interactive]
{
    flex-direction: column;
}

#profile[loading] .close
{
    display: none;
}

#profile .logo
{
    display: block;
    margin-bottom: 32px;
}

#profile .icon
{
    width: 24px;
    height: 24px;
}




#vitrinevirtual-auth-user
{
    display: none;
    flex-direction: column;
    align-items: center;
}

#profile[loading] #vitrinevirtual-auth-user
{
    display: none;
}


body[user] #firebaseui-auth-container
{
    display: none;
}


body[user] #vitrinevirtual-auth-user
{
    display: flex;
}


@keyframes pulse {
    0% {
        bottom: 15px;
    }
    50% {
        bottom: -15px;
    }
    100%
    {
        bottom: 15px;
    }
    }


.profile-mine
{
    width: 140px;
    height: 140px;
    border-radius: 50%;
}

.fscreen
{
    top: 10px;
    left: unset;
	right: 10px;
    background: #ffffff21;
}

ul[emit=changeKey]
{
    list-style: none;
    list-style-position:outside;
    margin: 0px -12px;
    padding: 0px;
    margin-bottom: 32px;
    color: #565656;
}

ul[emit=changeKey] li
{
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #80808030;
    border-top: 1px solid white;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 18px;
}

ul[emit=changeKey] li:hover
{
    color: var(--accent);
}

ul[emit=changeKey] li:first-child{ border-top: none; }
ul[emit=changeKey] li:last-child{ border-bottom: none; }

ul[emit=changeKey] li.selected
{
    background: #0095f429;
    color: var(--accent)  ;
}

ul[emit=changeKey] li .visitantes
{
    color:#0070ff;
    flex-grow: 1;
    text-align: right;
}


.profile-pic
{
    width: 33px;
    height: 33px;
    border-radius: 50%;
}


#loggedUser
{
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 2px;
    background: #00000014;
    align-items: center;
    border-radius: 20px;
    margin-bottom: 32px;
}

#loggedUser img
{
    width: 33px;
    height: 33px;
    border-radius: 30px;
    background: #f4f4f4;
}

#loggedUser span
{
    flex-grow: 1;
    flex-shrink: 1;
    text-overflow: ellipsis;
}

