/*================================================*/
/*  style.css by tomasz.pro 2023-2025             */
/*      for pro apps                              */
/*                                                */
/*          .class                                */
/*          #id                                   */
/*                                                */
/*================================================*/

/*================================================*/
/*  Tło*/
/*================================================*/
.background1,
.background2,
.background3 {
    position: absolute;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.background1 {
    background-image: url('https://www.PetSocialNetwork.pro/img/bg/bg1.webp');
}
.background2 {
    background-image: url('https://www.PetSocialNetwork.pro/img/bg/bg2.webp');
}
.background3 {
    background-image: url('https://www.PetSocialNetwork.pro/img/bg/bg3.webp');
}
/*================================================*/
/*  Aplikacja*/
/*================================================*/

/*======================*/
/*kazda tabela*/
/*======================*/
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 10%;
}
td {
    text-align: left;
    padding: 4px;
}
th {
    padding: 8px;
    text-align: center;
}
td {
    height: 4vw;
}
tr:nth-child(even) {
    background-color: rgba(65, 65, 65, 0.35);
}
tr:nth-child(odd) {
    background-color: rgba(55, 55, 55, 0.35);
}
@media only screen and (max-width: 1000px) {
    table {
        font-size: 1.6vw;
    }
}
/*======================*/
/*menu: tryby itemshop*/
/*======================*/
.server-selection {
    text-align: center;
}
/*======================*/
/* itemlist */
/*======================*/
#PanelList {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    overflow-y: scroll;
    height: 100%;
}
.itemlist, .itemlist td {
    text-align: center;
}
.itemlist .NazwaItemTh,
.itemlist .NazwaItemTd {
    text-align: left;
}
.itemlist .KupTd {
    width: 1%;
}
@media only screen and (max-width: 1000px) {
    .itemlist {
        font-size: 2vw;
    }

    .itemlist .buttonBlue {
        white-space: normal;
        font-size: 1.2vw;
    }
}
/*======================*/
/* buyTable */
/*======================*/
#price {
    margin: 20px 0;
    font-size: clamp(1.0vw, 1.5vw, 2vw);
}
@media only screen and (max-width: 1000px) {
    #price {
        font-size: 2.6vw;
    }
}
.buyTable .buttonBlue {
    margin: 20px 0;
}
@media only screen and (max-width: 1000px) {
    .buyTable .buttonBlue {
        font-size: 2.6vw;
    }
}
.buyTable td {
    height: 3vw;
    padding-left: 2%;
    padding-bottom: 20px;
}
.buyTable th {
    width: 20%;
}
.item-icon {
    width: 8vw;
}
.item-name-wartosc {
    font-size: 2rem;
    font-weight: bold;
    vertical-align: bottom;
    padding: 2%;
}
@media only screen and (max-width: 1000px) {
    table.buyTable {
        font-size: 2vw;
    }
    table.buyTable th {
        height: 8vw;
    }
    .item-icon {
        width: 16vw;
    }
}


/* Stylizacja zdjęcia profilowego */
#avatar-container {
    text-align: center;
    margin-bottom: 20px;
}
.friend-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* Stylizacja sekcji znajomych */
.friends-section,
#friends-section {
    width: 1000px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    align-items: start;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease-in-out;
    margin: 1rem;
}

.friends-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.friend-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.friend-item:hover {
    transform: translateY(-5px);
}

.friend-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.friend-item span {
    font-weight: 600;
    margin-bottom: 10px;
}

.friend-item button {
    width: 100%;
}

.friends-management {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .friends-management {
        grid-template-columns: 1fr;
    }
}

.friend-info {
    flex-grow: 1;
}

.friend-info a {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.friend-info a:hover {
    text-decoration: underline;
}

.request-message {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.request-actions {
    display: flex;
    gap: 10px;
}

.empty-list {
    text-align: center;
    padding: 20px;
    color: #666;
}