body {
    background-color: #333;
    color: rgb(255, 244, 230);
}
.pfp {
    user-select: none;
}
/* .f1 {
    padding-bottom: 10px;
    padding-top: 10px;
} */
.info {
    overflow-y: auto;
}
.cansel {
    position: absolute;
    right: 1%;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    background-color: #07f2f2;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    /*margin-left: 50%;*/
    box-shadow: 1px 1px 5px #0786ed;
    /* width: 10%; */
    height: 80%;
    font-size: 40px;
    transition:  0.2s;
}
.vimage{
    height: 45vh;
}
@media  /*(min-height:632px) and*/ (min-width:1025px) { 
    .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: 111%;
        border-radius: 25px;
        padding: 10% 7% 0% 7%;
    }
    .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;
        transition: 0.2s;
    }
    .profil {
        background-color: #f7a102;
    }
    .friendsimg,.add_friendsimg,.messagesimg,.profilimg,.storeimg {
        height: 100%;
        width: 100%;
        display: block;
        
    }
    .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;
        opacity: 0.8;
        box-shadow: 0 0 5px #027235;
        transform: scale(0.95);
    }
    .account {
        display: grid;
        grid-template-rows: 15% 1fr ;
        row-gap: 10px;
        height: 117%;
    }
    .profilfiel {
        border-radius: 10px;
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: center;
        /* height: 100%; */
    }
    .profilbar {
        
        align-items: center;
        height: 100%;
    }
    .profilpic {
        display: inline-block;
        height: 100%;
        width: 100%;
        padding-top: 12%;
    }
    .decline {
        position: absolute;
        right: 10px;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #f80606;
        border-radius: 30px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        /* margin-left: 1%; */
        box-shadow: 1px 1px 5px orangered;
        width: 10%;
        height: 50px;
        font-size: 200%;
        transition: 0.2s;
    }
    .decline:hover {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 1px 1px 8px orangered;
        transform: scale(1.05);
    }
    .decline:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.9);
    }
    .accept{
        position: absolute;
        right: 13%;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        /*margin-left: 50%;*/
        box-shadow: 1px 1px 5px #0786ed;
        width: 10%;
        height: 50px;
        font-size: 40px;
        transition:  0.2s;
    }
    .cansel {
        cursor: pointer;
    }
    .accept:hover,.cansel:hover {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 1px 1px 8px orangered;
        transform: scale(1.05);
    }
    .accept:active,.cansel:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.95);
    }
    .profilpicture {
        height: 100px;
        width: 100px;
        border-radius: 80px;
        cursor: pointer;
        transition: opacity 0.5s;

    }
    .profilpicture:hover {
        box-shadow: 0 0 3px rgb(202, 194, 194);
        opacity: 0.8;
    }
    .profilname {
        display: inline-block;
       
    }
    .name {
        display: inline-block;
        font-size: 200%;
        vertical-align: middle;
        
        margin-bottom: 0px;
        border-left: solid 2px;
        padding-left: 4px;
        border-color: aliceblue;
        margin-top: -2%;
    }
    .nbfriendsp {
        font-size: 300%;
        margin: 0;
    }
    a {
        text-decoration: none;
    }
    .info {
        display: grid;
        grid-template-rows: 6% 8% 1fr 1fr;
        row-gap: 10px;
        height: 115%;
        border-radius: 5px;
        
    }
    .requests,.requestsout {
        display: grid;
        row-gap: 5px;
        margin-top: 10px;
        width: 90%;
        overflow-y: auto;
        border-radius: 10px;
        margin-left: 6%;
        height: 30vh;
        padding: 15px 10px ;
    }
    .f1 {
        position: relative;
        align-items: center;
        display: flex;
        width: 100%;
        height: 60px;
        cursor: pointer;
        user-select: none;
        border-radius: 15px;
        background-color: #fff;
        color: #1e201f;
        padding-bottom: 10px;
        padding-top: 10px;
    }
    .f1:hover {
        background-color: #aca8a8;

    }
    .requests .profilpicture {
        border-radius: 29px;/*30px*/
        height: 58px;/*90%*/
        width: 58px;
        box-shadow: 0 0 3px rgb(202, 194, 194);
        margin-left: 1%;
        margin-right: 1%;
    }
    .requestsout .profilpicture {
        border-radius: 29px;/*30px*/
        height: 58px;/*90%*/
        width: 58px;
        box-shadow: 0 0 3px rgb(202, 194, 194);
        margin-left: 1%;
        margin-right: 1%;
    }
    .username {
        font-size:200%;
        margin: 0;
        /* white-space: nowrap; */
        width: 49%;
        overflow-wrap: break-word;
    }
    .delete {
        
        height: 60%;
    }
    .deletebutton {
        
        margin-left: 45%;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #f80606;
        border-radius: 10px;
        cursor: pointer;
        margin-top: 50px;
        
        box-shadow: 1px 1px 5px orangered;
        width: 55%;
        height: 80px;
        font-size: 200%;
        transition:  0.2s;
    }
    .deletebutton:hover {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 1px 1px 8px orangered;
        transform: scale(1.03);
    }
    .deletebutton:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.95);
    }
    .more {
        height: 80%;
    }
    .requestsout {
        margin-top: 0px;
    }
}
@media (max-width:1024px) {
    .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;
    }
    .profil {
        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;
        
    }
    .account {
        display: grid;
        grid-template-rows: 15% 1fr;
        row-gap: 25px;
        height: 90%;
    }

    .requests,.requestsout {
        display: grid;
        row-gap: 5px;
        margin-top: 15px;
        width: 93%;
        overflow-y: auto;
        border-radius: 10px;
        margin-left: 0%;
        height: 25vh;
        padding: 15px 10px ;
    }
    .f1 {
        align-items: center;
        display: flex;
        width: 98%;
        height: 60px;
        position: relative;
        user-select: none;
        border-radius: 15px;
        background-color: #fff;
        color: #1e201f;
        padding-right: 10px;
    }
    /*.f1:hover {
        background-color: #aca8a8;

    }*/
    .requests .profilpicture {
        border-radius: 25px;/*30px*/
        height: 50px;/*90%*/
        width: 50px;
        box-shadow: 0 0 3px rgb(202, 194, 194);
        margin-left: 1%;
        margin-right: 1%;
    }
    .requestsout .profilpicture {
        border-radius: 25px;/*30px*/
        height: 50px;/*90%*/
        width: 50px;
        box-shadow: 0 0 3px rgb(202, 194, 194);
        margin-left: 1%;
        margin-right: 1%;
    }
    .username {
        font-size:120%;
        margin: 0;
        width: 50%;
        overflow-wrap: break-word;

    }
    .delete {
        
        height: 60%;
    }
    .decline {
        position: absolute;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #f80606;
        border-radius: 30px;
        
        display: flex;
        align-items: center;
        justify-content: center;
        margin-left: 3px;
        box-shadow: 1px 1px 5px orangered;
        width: 13%;
        height: 45px;
        font-size: 190%;
        transition: 0.2s;
        right: 10px;
    }
    .decline:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.8);
    }
    .accept{
        position: absolute;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #07f2f2;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        right: 18%;
        /*margin-left: 25%;*/
        box-shadow: 1px 1px 5px #0786ed;
        width: 13%;
        height: 45px;
        font-size: 35px;
        transition:  0.2s;
    }
    .accept:active,.cansel:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.8);
    }

    .profilfiel {
        border-radius: 10px;
        display: grid;
        grid-template-columns: 80px 1fr;
        align-items: center;
        height: 100%;
    }
    .profilbar {
        
        align-items: center;
        height: 100%;
    }
    .profilpic {
        display: inline-block;
        height: 100%;
        width: 100%;
        padding-top: 25%;
    }
    .profilpicture {
        height: 70px;
        width: 70px;
        border-radius: 35px;
        transition: opacity 0.5s;
    }
    .profilpicture:hover {
        box-shadow: 0 0 3px rgb(202, 194, 194);
        opacity: 0.8;
    }
    .profilname {
        display: inline-block;
       
    }
    .name {
        display: inline-block;
        font-size: 200%;
        vertical-align: middle;
        
        margin-bottom: 0px;
        border-left: solid 2px;
        padding-left: 4px;
        border-color: aliceblue;
        margin-top: -5%;
    }
    .nbfriendsp {
        font-size: 150%;
        margin: 0;
    }
    a {
        text-decoration: none;
    }
    .info {
        display: grid;
        grid-template-rows: 2% 12% 1fr 1fr;
        row-gap: 10px;
        height: 70vh;
        border-radius: 5px;
    }
    .delete {
        height: 50%;
    }
    .deletebutton {
        margin-left: 5%;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-user-select: none;
        background-color: #f80606;
        border-radius: 10px;
        
        margin-top: -40px;
        
        box-shadow: 1px 1px 5px orangered;
        width: 90%;
        height: auto;/*1fr*/
        font-size: 170%;
        transition: 0.2s;
    }
    .deletebutton:active {
        opacity: 0.6;
        background-color: #fff;
        border-width: 3px;
        border-color: lightskyblue;
        box-shadow: 0px 0px 8px greenyellow;
        transform: scale(0.95);
    }
    .more {
        height: 90%;
    }
    /* .requestsout {
        margin-top: 50px;
    } */
}
@media (max-width:852px) and (max-height:474px) {
    .profilname {
        padding-top: 2%;
    }
    .profilpic {
        display: inline-block;
        height: 100%;
        width: 100%;
        padding: 0;
    }
    .profilpicture {
        height: 40px;
        width: 40px;
        border-radius: 20px;
        transition: opacity 0.5s;
    }
    .profilpicture:hover {
        box-shadow: 0 0 3px rgb(202, 194, 194);
        opacity: 0.8;
    }
    .profilfiel {
        grid-template-columns: 45px 1fr;
    }
}
@media  (min-height:632px) and (min-width:853px) {
    .requests,.requestsout {
        height: 25vh;
    }
}
@media (max-width:570px) {
    .cansel {
        font-size: 140%;
    }
    .username {
        width: 45%;          /* Set max width */
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
        font-size: 100%;
    }
    .name {
        font-size: 150%;
    }
}
@media (max-width:401px) {
    .username {
        font-size: 90%;
    }
}
@media (max-width:367px) {
    .inf{
        font-size: 90%;
    }
    .username {
        font-size: 70%;
    }
    .username {
        width: 40%;          /* Set max width */
        word-wrap: break-word; /* Break long words if needed */
        overflow-wrap: break-word;
    }
    .cansel {
        font-size: 110%;
    }
    .name {
        font-size: 120%;
    }
}
@media (max-width:265px){
    .info {
        grid-template-rows: 1% 10% 1fr 1fr;
    }
    .inf{
        font-size: 75%;
    }
    .cansel {
        font-size: 100%;
    }
    .name {
        font-size: 90%;
    }
    .nbfriendsp {
        font-size: 100%;
    }
    .requests,.requestsout {
        height: 25vh;
    }
    .username {
        font-size: 60%;
        width: 38%;
    }
}
@media (max-width:225px){
    .inf{
        font-size: 65%;
    }
}
@media (max-width:205px){
    .inf{
        font-size: 60%;
    }
}
.gf1 {
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: #fff;
}
.gf1:hover {
    opacity: 0.8;
}
.f1:hover {
    background-color: #aca8a8;
}
.profilpicture:active {
    transform: scale(0.95);
}
@keyframes spin {0% { transform: rotate(0deg); }100% { transform: rotate(360deg); }}
.gfad {
    background-color: #FFD700;
    color: #fff;
}
.premium-cancel-btn {
    background: linear-gradient(to right, #3a3a3a, #2b2b2b); /* dark gradient */
    color: #bbb; /* soft, pale text */
    box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05),
                0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}
@media (max-width:419px) {
    .vimage{
        height: 40vh;
    }
}
@media (max-width:380px) {
    .vimage{
        height: 38vh;
    }

}


.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: 50%;
    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;
    }
}
