/*
Author: Joseph Kreifels II

*/

*::-webkit-scrollbar {
    width: 3px;
   /* Width of the scrollbar */
}

*::-webkit-scrollbar-track {
    background: #111;
}

*::-webkit-scrollbar-thumb {
    background: #f2f2f2;
    border: 2px solid #888;
    border-radius: 5px;
}

/* Taping objects on the screen with a smartphone can cause text to highlight, I don't want that */
.noSelect {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {   
    font-family: sans-serif, Arial;
    font-size: 1.10em;
    color: white;
    background-color: #000;;
    margin: 0;   
}

#screen {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #141314; /*#1b191a;*/ /*#131313;*/
    
    max-width: 552px;
    max-height: 932px;  
    width: 100vw;
    height: 100vh;

}

#appbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 0.5px solid #181717d8;
    top: 0;
    padding-top: 5px;
    padding-bottom: 5px; 
    background-color: #201F20;/* #0f9d58; */ /* #202020; */
    color: white;
    font-size: 1.3em;
    font-weight: bold;
}

.appbar-btn {
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: 0px;
    padding-top: 0px;

    margin: 0px;
}
#btnBack {
    max-width: 40px;
    max-height: 40px;
}

#btnOptions {
    max-width: 30px;
    max-height: 30px;
}

#appbar-name {
}

#btnOptions, #btnBack {
    visibility: hidden; /* Hidden by default when pageloads */
}


.hidden {
    display: none;
}

#contacts {
    display: flex;
}

#contacts img {

}

.messageContact {
    display: flex;
    align-items: center;
    margin: 20px;
    
}

.messageContact img {
    border-radius: 50%;
    width:18%;
    margin-right: 20px;
}

.noContactImg {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-sizing: border-box;
    color: white;
    font-weight: bold;
    font-size: 2em;
    width: 18%;
    height: 0;
    padding-top: 9%;  /* .messageContact img has a width of 18%, we devide that by 2 and use that value for top and bottom to recreate 18% */ 
    padding-bottom: 9%;   
    margin-right: 20px;

    /* 1: rgba(157, 255, 157, 0.534);
    2: rgba(157, 164, 255, 0.534);
    3: rgba(255, 157, 157, 0.534);
    4: rgba(245, 133, 59, 0.767);
    5: rgba(245, 59, 115, 0.767);
    */

}

.messageContact sub {
    display: inline-block;
    white-space: nowrap;
    width: 65vw;
    max-width: 345px;
    overflow: hidden;
    text-overflow: ellipsis;
}


#profile-image {
    max-width: 100%;
    border-bottom: 1px solid #333;
}

#profile-bio {
    padding: 10px;
    font-size:1.1em;
    overflow-y: scroll;
    max-height: 40vh;
    height:  40vh;
    border-top: 1px solid #f3f3f3;
    border-bottom: 1px solid #f3f3f3;
}


fieldset {
    max-width: 552px;

}
legend {
    font-weight: bold;
    background-color: white;
    color: black;
    padding-left: 12px;
    padding-right: 12px;
}

#page-Login, #page-Options {
    
    max-width: 552px;
    font-size: 1.3em;
}

.txtInputBox {
    width: 100%;
    resize: none; 
    border: none;
    margin-left: 0;
    margin-top: 0;
    background-color: rgba(0,0,0,0);
    color: #fff;
    font-family: sans-serif, Arial;;
    font-size: 0.9em;
    
}

.txtInputBox:focus {
    outline-width: 0;
}

#btnSaveSettings, #btnLogin, #btnLogout {
    padding: 0;
    border: none;
    background: none;
    float: right;
    color: rgb(135 213 237);
    font-weight: bold;
    font-size: .75em;
    margin-right: 15px;  
}

.screen-container {
    max-height: 932px;
    height: 100vh;

    /*border-radius: 25px;*/
    overflow-x: clip;
    overflow-y: scroll;
    scrollbar-width: thin;
}

#page-chat {
    /* overflow: clip; */
}

#chat-container {
    max-height: calc(932px - 106px);
    height: calc(100vh - 110px);
    margin: 1px 0px 2px 0px; 
    padding-left: 10px;
    padding-right: 10px;
    background-color: #141314;
    /*border-radius: 25px;*/
    overflow-y: scroll;
    overflow-x: clip;
    scrollbar-width: thin;          
}
#chat-container img {
    width: 100%;
    margin-top: 6px;
    margin-bottom: 3px;
}




.message {

    padding: 15px;
    margin: 10px 0;
    border-radius: 25px;
    width: fit-content; 
    max-width: 312px;
    clear: both;
}

.user-message {
    background-color: #007bff; /*#007bff63;*/ /*#822eff*/ /*#007BFF;*/
    text-align: right;
    float: right;
    text-align: start;

}

.friend-message {
    background-color: #313032; /*#343335;*/ /*#81818134;*/ /*#81818142 */ /* #3e3547; */ /*#4d2c69*/
    float: left;
}
.system-message {
    background-color: #ff00007c; /*#81818142 */ /* #3e3547; */ /*#4d2c69*/
    max-width: 412vw;
}


#textboxAndButton {
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    margin: 6px 0 0 7px;
    background-color: #313032; /*#101010*/
    border-radius: 25px;
    /*border: 1px solid rgba(255, 255, 255, 0.89); */
    overflow: hidden;

    width: 96vw;
    max-width: 545px;
    
}


#btnSendMessage {
    display: flex;
    justify-self: flex-end;
    border: none;
    border-radius: 25%;
    font-size: 1.5em; 
    background-color: #313032; /*rgba(20, 20, 20, 0.329)*/
    color:rgb(66, 126, 255);
    
    margin: 0;

    max-width: 40px;
    max-height: 40px;
    margin: 0; 
    padding: 0 10px 0 0;


}

.chat-input {
    width: 90vw;
    resize: none; 
    border: none;
    margin-left: 0;
    margin-top: 0;
    padding: 10px;
    padding-left: 15px;
    background-color: rgba(0,0,0,0);
    color: #fff;
    font-family: sans-serif, Arial;;
    font-size: 1em;
}

textarea::placeholder {
    color:white;
}


textarea:focus {
    outline: none;
}

/*****************************************************************/

