body {
    background-color: #333;
    color: rgb(255, 244, 230);
}
.voicemessagepopup {
    position: absolute;
    width: 85%;
    z-index: 999;
    align-items: center;
    justify-content: center;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 6px;
}
.outgoing::selection {
    background: #ff8800;
    color: white;
}
.sen {
    height: 30px;aspect-ratio: 1/1;
}
.incoming,.outgoing{
    overflow-wrap: break-word;
    white-space: pre-wrap;
    word-break: break-word;
}
.sendbt {
    display: flex;
    align-items: center;
    justify-content: center;
}
.profilpicture,.receiverp,.senderp {
    user-select: none;
}
code {
    background-color: #000000;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
    color: #00b53f;
    font-family: Consolas, Monaco, "Courier New", monospace;
}
.newmessage2{
    display: grid;
    grid-template-columns: 70% 10% 10% 1fr;
}
.info {
    color: #b30000;
    background-color: #ffe6e6;
    border: 1px solid #ff0000;
    padding: 15px 20px;
    border-radius: 10px;
    max-width: 100%;
    margin-left: 10px;
    font-weight: bold;
    font-family: sans-serif;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.15s;
}
.murl {
    color: #fff;
    text-decoration: underline;
}

@media  /*(min-height:632px) and*/ (min-width:1025px)  { 
    .fadd {
        display: inline-block;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        cursor: pointer;
        box-shadow: 1px 1px 5px #0786ed;
        /* height: 60px; */
        /* font-size: 150%; */
        transition: 0.2s;
    }
    .fadd:hover {
        opacity: 0.8;
        transform: scale(1.05);
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 1px 1px 8px orangered;
    }
    .fadd:active {
        opacity: 0.7;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        transform: scale(0.9);
        box-shadow: 0px 0px 8px greenyellow;
    }
    .interface {
        height: 1vh;
        display: grid;
        column-gap: 1%;
        grid-template-columns: 10% 1fr;
    }
    .bar {
        display: grid;
        grid-template-rows: 14% 14% 14% 14% 14%;
        row-gap: 6%;
        background-color: rgb(58, 60, 63);   
        height: 97%;
        border-radius: 25px;
        padding: 10% 7% 0% 7%;
        align-items: center;
    }
    .friends,.add_friends,.messages,.profil,.stored {
        font-size: 100%;
        display: block;
        height: 100%;
        width: 100%;
        cursor: pointer;
        margin-top: 0%;
        background-color: #f70a0a;
        color: #fff;
        border-radius: 20px;
        box-shadow: 0 0 3px #1e201f;
        user-select: none;
        
    }
    .messages {
        background-color: #f7a102;
    }
    .friendsimg,.add_friendsimg,.messagesimg,.profilimg,.storeimg {
        height: 100%;
        width: 100%;
        display: block;
        transition: 0.15s;
    }
    .friends:hover,.add_friends:hover,.messages:hover,.profil:hover,.stored:hover {
        background-color: #02bef7;
        opacity: 0.8;
        box-shadow: 0 0 5px #027235;
    }
    .friends:active,.add_friends:active,.messages:active,.profil:active,.stored:active {
        background-color: #02f768;
        transform: scale(0.95);
        opacity: 0.8;
        box-shadow: 0 0 5px #027235;
    }
    .chat {
        display: grid;
        grid-template-rows: 7% 1fr;
        row-gap: 35px;
        height: 93%;
    }
    .profilfiel {
        border-radius: 10px;
    }
    .profilpic {
        display: inline-block;
    }
    
    .profilpicture {
        height: 50px;
        width: 50px;
        border-radius: 25px;
        cursor: pointer;
        margin-bottom: -2px;
        transition: opacity 0.5s;
    }
    .profilpicture:hover {
        box-shadow: 0 0 3px rgb(202, 194, 194);
        opacity: 0.8;
        transform: scale(1.04);
    }
    .profilname {
        display: inline-block;
    }
    .name {
        display: inline-block;
        font-size: 180%;
        vertical-align: middle;
        margin-top: -35px;
        margin-bottom: 0px;
        border-left: solid 2px;
        padding-left: 4px;
        border-color: aliceblue;
    }
    .messagess {
        display: grid;
        grid-template-rows: 410px 1fr;
        row-gap: 50px;
        height: 30%;
    }



    .messagelist {
        display: flex;
        flex-direction: column;
        height: 40%;
    }
    .messagesfiel {
        overflow-y: auto;
        padding: 20px 20px 20px 20px;
        height: 410px;
    }

    .imageinchat {
        cursor: pointer;
    }
    .incomingdiv,.outgoingdiv {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .outgoingdiv {
        justify-content: end;
    }
    .senderp,.receiverp {
        height: 26px;
        width: 26px;
        border-radius: 13px;
        cursor: pointer;
        margin: 2px 2px 2px 2px;
        white-space: normal;
    }
    .senderp {
        margin-right: 5px;
    }
    .receiverp {
        margin-left: 5px;
    }
    .incoming {
        display: inline-block;
        background-color: rgb(236, 55, 0);
        padding: 5px 10px 5px 10px;
        border-radius: 20px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 150%;
        max-width: 70%;
    }
    .outgoing {
        display: inline-block;
        background-color: rgb(0, 83, 236);
        padding: 5px 10px 5px 10px;
        border-radius: 20px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 150%;
        max-width: 70%;
    }


    .new_messagefiel {
        border-radius: 20px;
        height: 55%;
    }

    /* .new_message {
        display: grid;
        grid-template-columns: 90% 1fr;
        column-gap: 10px;
    } */
    .newmessage3{
        display: grid;
        grid-template-columns: 90% 1fr;
        column-gap: 10px;
    }
    .messagearea {
        
        display: inline-block;
        
    }

    .messagebox {
        resize: none ;
        width: 97%;
        padding: 8px 8px 8px 8px;
        font-size: 120%;
        font-family: Arial, Helvetica, sans-serif;
        height: 35%;
        border-radius: 7px;
        border: solid ;
        border-color: #333;
        border-width: 4px;
        box-shadow: 0 1px 3px #07f271;
        transition: all 0.2s;
        
    }

    .messagebox:hover {
        border-color: #0786ed;
        opacity: 0.6;
        box-shadow: 0 1px 5px #02bef7;
    }
    .messagebox:focus {
        border-color: #07f271;
        opacity: 1;
        box-shadow: 0 1px 5px #f7a102;
    }

    .sendbt {
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        cursor: pointer;
        margin-left: 1%;
        box-shadow: 1px 1px 5px #0786ed;
        width: 90%;
        height: 66%;
        font-size: 200%;
        user-select: none;
        transition: 0.2s;
    }
    .sen {
        height: 40px;
    }
    .sendbt:hover {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 1px 1px 8px orangered;
        transform: scale(1.05);
    }
    .sendbt:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        transform: scale(0.9);
        box-shadow: 0px 0px 8px greenyellow;
    }
    a {
        text-decoration: none;
    }
}

@media (max-width:1024px) {
    .voicemessagepopup {
        width: 97%;
    }
    .fadd {
        display: inline-block;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        box-shadow: 1px 1px 5px #0786ed;
        /* height: 60px; */
        /* font-size: 110%; */
        transition: 0.2s;
    }
    
    .fadd:active {
        opacity: 0.7;
        transform: scale(0.9);
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
    }
    .interface {
        height: 1vh;
        display: grid;
        row-gap: 50px;
        grid-template-rows: 50px 1fr;
    }

    .bar {
        display: grid;
        grid-template-columns: 14% 14% 14% 14% 14%;
        column-gap: 6%;
        background-color: rgb(58, 60, 63);   
        padding: 10px 3% 70px 3%;
        border-radius: 25px;
        align-items: center;
        justify-content: center;
    }
    .friends,.add_friends,.messages,.profil,.stored {
        font-size: 100%;
        display: block;
        height: 60px;
        width: 110%;
        margin-top: 0%;
        background-color: #f70a0a;
        color: transparent;
        border-radius: 20px;
        box-shadow: 0 0 3px #1e201f;
        user-select: none;
        transition: 0.15s;
    }
    .messages {
        background-color: #f7a102;
    }
    .friends:active,.add_friends:active,.messages:active,.profil:active,.stored:active {
        background-color: #02f768;
        opacity: 0.8;
        transform: scale(0.95);
        box-shadow: 0 0 5px #027235;
    }
    .friendsimg,.add_friendsimg,.messagesimg,.profilimg,.storeimg {
        height: 100%;
        width: 100%;
        display: block;
        
    }
    .chat {
        display: grid;
        grid-template-rows: 9% 1fr;
        row-gap: 12px;/*48px*/
        height: 97%;/*80*/
    }



    .profilfiel {
        border-radius: 10px;
    }

    .profilpic {
        display: inline-block;
    }
    .profilpicture {
        height: 50px;
        width: 50px;
        border-radius: 25px;
        margin-bottom: -2px;
        transition: opacity 0.5s;
    }
    .profilpicture:active {
        box-shadow: 0 0 3px rgb(202, 194, 194);
        opacity: 0.8;
    }
    .profilname {
        display: inline-block;

    }
    .name {
        display: inline-block;
        font-size: 150%;
        vertical-align: middle;
        margin-top: -35px;
        margin-bottom: 0px;
        border-left: solid 2px;
        padding-left: 4px;
        border-color: aliceblue;
    }
    .messagess {
        display: grid;
        grid-template-rows: auto auto;/*200px 65px*/
        row-gap: 12px;/*180px*/
        height: 97%;
    }


    .messagelist {
        display: flex;
        flex-direction: column;
        height: 80%;/*40%*/
    }

    .incomingdiv,.outgoingdiv {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .outgoingdiv {
        justify-content: end;
    }
    .senderp,.receiverp {
        height: 24px;
        width: 24px;
        border-radius: 12px;
        margin: 2px 2px 2px 2px;
        white-space: normal;
    }
    .senderp {
        margin-right: 5px;
    }
    .receiverp {
        margin-left: 5px;
    }

    .incoming {
        display: inline-block;
        background-color: rgb(236, 55, 0);
        padding: 5px 8px 5px 8px;
        border-radius: 20px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 150%;
        max-width: 70%;
        
    }
    .outgoing {
        display: inline-block;
        background-color: rgb(0, 83, 236);
        padding: 5px 8px 5px 8px;
        border-radius: 20px;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 150%;
        max-width: 70%;
        
    }

    .messagelist {
        height: 80%;/*40%*/
    }
    .messagesfiel {
        overflow-y: auto;
        padding: 10px 10px 10px 10px;
        height: 65vh;
    }


    .m1div,.m2div {
        display: block;
        
    }

    .new_messagefiel {
        border-radius: 20px;
        height: 55%;
    }

    /* .new_message {
        display: grid;
        grid-template-columns: 85% 1fr;
        column-gap: 10px;
    } */
    .newmessage3{
        display: grid;
        grid-template-columns: 85% 1fr;
        column-gap: 10px;
    }
    .messagearea {
        
        display: inline-block;
        
    }

    .messagebox {
        resize: none ;
        width: 97%;
        padding: 5px 5px 5px 5px;
        font-size: 110%;
        font-family: Arial, Helvetica, sans-serif;
        height: 35%;
        border-radius: 7px;
        
        border-width: 3px;
        box-shadow: 0 1px 3px #07f271;
        transition: all 0.2s;
        
    }

    .messagebox:focus {
        border-color: #07f271;
        opacity: 1;
        box-shadow: 0 1px 5px #f7a102;
    }

    .sendbt {
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        margin-left: 1%;
        box-shadow: 1px 1px 5px #0786ed;
        width: 90%;
        height: 60%;
        font-size: 110%;
        user-select: none;
        transition: 0.2s;
    }

    .sendbt:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.9);
    }
    a {
        text-decoration: none;
    }
}
@media (max-width:852px) and (max-height:474px)/* (max-height:668px) and (max-width:400px)*/{ 
    .messagesfiel {
        height: 350px;
    }
    .chat {
        row-gap: 50px;
    }
}
@media (max-width:1024px) and (max-height:600px) {
    .chat {
        row-gap: 30px;
    }
}
@media (max-width:515px) {
    .newmessage2 {
        grid-template-columns: 65% 12% 12% 1fr;
        column-gap: 0;
    }
    /* .new_message {
        grid-template-columns: 80% 1fr;
        column-gap: 10px;
    } */
    .newmessage3{
        grid-template-columns: 80% 1fr;
        column-gap: 10px;
    }
    .name {
        font-size: 120%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:388px) {
    .newmessage2 {
        grid-template-columns: 62% 12% 12% 1fr;
        column-gap: 0;
    }
    .name {
        font-size: 85%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:325px) {
    .newmessage2 {
        grid-template-columns: 60% 12% 12% 1fr;
        column-gap: 0;
    }
    .name {
        font-size: 80%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:279px) {
    .newmessage2 {
        grid-template-columns: 60% 12% 12% 1fr;
        column-gap: 0;
    }
    .name {
        font-size: 80%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
    .sen {
        height: 25px;
    }
}
@media (max-width:295px) {
    .name {
        font-size: 60%;
        word-wrap: break-word; 
        overflow-wrap: break-word;
    }
    .sen {
        height: 25px;
    }
}
@media (max-width:650px) {
    .lname {
        font-size: 110%;
    }
}
@media (max-width:515px) {
    .lname {
        font-size: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
@media (max-width:460px) {
    .lname {
        font-size: 85%;
    }
}
@media (max-width:404px) {
    .lname {
        font-size: 80%;
    }
}
@media (max-width:388px) {
    .lname {
        font-size: 75%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:370px) {
    .lname {
        font-size: 70%;
    }
}
@media (max-width:354px) {
    .name {
        font-size: 65%;
    }
}
@media (max-width:339px) {
    .lname {
        font-size: 60%;
    }
}
@media (max-width:325px) {
    .lname {
        font-size: 55%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:295px) {
    .lname {
        font-size: 50%;
    }
}
@media (max-width:279px) {
    .lname {
        font-size: 45%;
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
}
@media (max-width:295px) {
    .lname {
        font-size: 60%;
        word-wrap: break-word; 
        overflow-wrap: break-word;
    }
}
@keyframes spin {0% { transform: rotate(0deg); }100% { transform: rotate(360deg); }}
/*
@media   (min-width:853px) { 
    Old pc style
@media (max-width:852px) {
    Old mobile/Tablet style
}*/
.gout {
    background: linear-gradient(to right, #6a11cb, #2575fc, #1db954);
    /* background: linear-gradient(to right, #0f766e, #06b6d4, #8b5cf6); */
}
.gin {
/*     
    background: linear-gradient(to right, #0f766e, #06b6d4, #8b5cf6);
    background: linear-gradient(to right, #23e741,hsl(346, 97%, 54%), #2226f8); */
    /* background: linear-gradient(to right, #23e741,hsl(50, 97%, 54%), #2226f8); */
    /* background: linear-gradient(to right, #23e741,hsl(168, 97%, 54%), #2226f8); */
    /* background: linear-gradient(to right, #23e741, #2226f8,hsl(0, 97%, 54%));
    background: linear-gradient(to right, #07bb22, #2226f8,hsl(0, 97%, 54%));
    background: linear-gradient(to right, #f4e918, #e8bf09);
    background: linear-gradient(to right,#0f766e, #11cb5b,  #1db954); */
    /* background: linear-gradient(to right, #0f766e, #06b6d4, #8b5cf6);
    background: linear-gradient(to right, #6a11cb, #2575fc); */
    background: linear-gradient(to right, #07bb22, #2226f8,hsl(0, 97%, 54%));
    /* background-color: #ffd700;
    background: linear-gradient(135deg, #FFD700, #FFC300, #FFB700, #FFA500);
    color: #000000; */
}
.ginai {
    background: linear-gradient(to right, #0f766e, #06b6d4, #8b5cf6);
}
/* .gin::selection {
    background-color: #e6ca12;
}
.ginai::selection {
    background-color: #e6ca12;
} */
 .decline {
    background-color: #fd0808;
    box-shadow: 1px 1px 5px #ed4807;
}
.acdec {
    display: grid;
    align-items: center;
    justify-content: center;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    column-gap: 2%;
}
.accept,.decline {
    vertical-align: middle;
    width: 80%;
    font-size: 2rem;
    height: 40px;
}
@media (max-width:699px) {
    .voicemessagepopup {
        width: 90%;
    }
}


.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}
.image-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    min-width: 50%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    transition: transform 0.2s ease;
}
@media(min-width:1025px){
    .image-overlay.active img:hover {
        transform: scale(1.02);
    }
    .image-overlay img {
        cursor: pointer;
    }
}

.controls {
    /* position: absolute;
    bottom: 10px; */
    display: flex;
    justify-content: center;
    gap: 20%;
    width: 100%;
    /* padding-top: 10px; */
    padding-bottom: 5px;
}
.call,.clearchat {
    padding: 12px 20px;
    border: none;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    background: rgb(255, 254, 254);
    color: white;
    font-size: 16px;
    backdrop-filter: blur(5px);
    transition: 0.2s;
    aspect-ratio: 1/1;
    border-radius: 50%;
    height: 5vh;
}
@media (min-width:1025px) {
    .call:hover,.clearchat:hover {
        opacity: 0.8;
    }
    .call,.clearchat {
        cursor: pointer;
        height: 15vh;
    }
}
@media (max-width:1022px) {
    .call,.clearchat {
        height: 10vh;
    }
}
@media (max-width:300px) {
    .call,.clearchat {
        height: 6vh;
    }
}
.call {
    background-image: url('../Images/accept-call.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: rgb(16, 225, 16);
}
.clearchat {
    background-image: url('../Images/clear-chat.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-color: red;
}