body {
    margin: 0;
    background-color: #000000;
    font-family: 'Golos Text', sans-serif;
    transition: 1s;
}
a {
    text-decoration: none;
  }
reply {
    font-weight: 800; /* You can adjust this value to make it bolder */
    font-family: 'Lato', sans-serif;
    background-color: #222222;
    border-radius: 6px;
    padding: 1px;
  }
.logo {
    width: 200px;
    transition: 0.25s;
    margin: 0px 0px 32px;
}
.logoinchat {
    width: 40%;
    opacity: 50%;
    margin-bottom: 50px;

}
.sidebar {
    width: 250px;
    background-image: url(../images/star.gif);
    color: white;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: width 0.3s; /* Add smooth transition for sidebar width */
    border-right: 2px solid #111111;
}
.sidebar h1 {
    margin-top: 20px;
}
.contact {
    background-color: #303030;
}
.contact:hover {
    background-color: rgb(31, 32, 37);
}

.container {
    display: flex;
    height: 100vh;
}


.sidebar.collapsed {
    width: 0;
}

.sidebar .contact {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
}

.sidebar .contact img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.sidebar .contact span {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}
.sidebar .contact span:active {
    font-size: 16px;
    color: #fff;
    text-decoration: none;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: #000000;
    color: white;
    padding: 10px;
    text-align: center;
}

.contact-profile {
    display: flex;
    align-items: center;
}

.contact-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.myprofile {
    display: inline-flex;
    padding: 5px;
}
.myprofile p {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin-top: 10px;
    margin-left: 10px;
}
.myprofile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.popup-content img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.contact {
    display: flex;
    align-items: center;
    color: #fff;
}
.messages {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.backbtn {
    top: -30px;
}
.outer{
    width:100%;
    margin-top:5px;
    display:flex;
    animation: fadeIn 0.22s;
}
#inner{
    max-width: 80%;
    font-size: 18px;
    padding:11px;
    border-radius: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.516);
    animation: slideIn 0.22s; 
}
.me{
    background-color: #00609f;
    color:#fff;
    max-width: 80%;
    font-size: 18px;
    padding:11px;
    box-sizing: border-box;
    box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.516);
    animation: slideIn 0.22s;
    
     
}
.notMe{
    border-radius: 20px;
    background:#303030;
    color:#fff;
    max-width: 80%;
    font-size: 18px;
    padding:11px;
    box-sizing: border-box;
    box-shadow: 0 0 9px 0px rgba(0, 0, 0, 0.516);
    animation: slideIn 0.22s;
}
#dltMsg {
    border-radius: 50px;
    float: right;
    margin-left: 30px;
    margin-top: 5px;
    font-size: 8px;
    background-color: #000000;
    opacity: 10%;
    border-color: transparent;
    color: #ffffff;
}
#dltMsg:hover {
    border-radius: 50px;
    float: right;
    margin-left: 30px;
    margin-top: 5px;
    font-size: 8px;
    background-color: #921717;
    border-color: transparent;
    color: #fff;
    opacity: 100%;
    cursor: pointer;
}
.signout {
    color: #939393;
    text-decoration: none;
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
}
.signoutmob {
    color: #5c4e4e;
    text-decoration: none;
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
}
.nameuser {
    font-weight: bold;
    font-size: 15px;
}
.nameuser1 {
    font-weight: bold;
    font-size: 20px;
}
.nameuser-texts {
    font-weight: bold;
    font-size: 13px;
}
.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.type {
    display: flex;
    position: sticky;
    bottom: 0;
    background-color: #000000;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
}


.messagetext {
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
    background-color: #333333;
    border-radius: 10px;
    color: #fff;
}

.sendbutton {
    padding: 10px;
    background-color: #2d749c;
    color: white;
    border: none;
    cursor: pointer;
}
.myname {
    text-align: center;
    margin-top: 30px;
    font-size: 20px;
}
div.contact span {
    text-decoration: none;
}

/*star/*/

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .sidebar {
        width: 0;
        overflow: hidden;
    }

    .sidebar.collapsed {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #128C7E;
        z-index: 1;
    }

    .sidebar.collapsed .contact {
        display: block;
        text-align: center;
        padding: 15px;
    }
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 2;
}



.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}
.media {
    font-size: 20px;
    cursor: pointer;
    background-color: #970000;
    border-radius: 2px;
    transition: 0.21s;
}
.media:hover {
    cursor: pointer;
    background-color: rgb(141, 92, 59);
    border-radius: 10px;
}

.textbubble-notme {
    margin-top: -20px;
}
.my-div {
    display: none; /* Hide by default */
    /* Add other styles as needed */
}
/* for pop up */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
  }
  
  .popup-content {
    background: #121212;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    text-align: center;
  }
  .chat-list {
    padding: auto;
    border-radius: 20px;
    margin: 20px auto;
    background-color: #121212;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.contact-name {
    font-weight: bold;
}
.clearchat {
    opacity: 60%;
    background-color: transparent;
    font-size: 15px;
    padding: 10px 40px;
    color: #ca2828;
    border-radius: 20px;
    border-color: transparent;
    text-align: center;
}
.clearchat:hover {
    opacity: 100%;
    color: #fff;
    background-color: #921717;
}
.sendimage {
    opacity: 60%;
    background-color: transparent;
    font-size: 15px;
    padding: 10px 40px;
    color: #108d00;
    border-radius: 20px;
    border-color: transparent;
    text-align: center;
}
.sendimage:hover {
    opacity: 100%;
    color: #fff;
    background-color:  #108d00;;
}
.clearchatmob {
    background-color: #921717;
    font-size: 10px;
    padding: 10px;
    color: #fff;
    border-radius: 20px;
    border-color: transparent;
}

/* Media query for mobile devices */
@media screen and (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    .my-div {
        display: block; /* Show on screens 786px or less */
    }
    body {
        background-image: url(../images/star.gif);
    }
}
@media screen and (max-width: 768px) {
    

    .menu-button {
        display: block;
        cursor: pointer;
        font-size: 20px;
    }

}

@media screen and (max-width: 375px) {
    .me{
        font-size: 16px;
        
         
    }
    .notMe{
        font-size: 16px;
    }
    #inner {
        font-size: 16px;
    }
}


