
.profile-container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start; /* Align items to the left */
    width: 80%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: rgb(253 219 176 / 90%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-image-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    width: 40%; /* Profile image takes 40% of the width */
    margin-right: 20px; /* Space between image and info */
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%; /* Round profile image */
    margin-bottom: 10px;
    border-color: #d45e00;
    border-style: solid;
    border-width: 4px;
}

.upload-button {
    padding: 10px 20px;
    background-color: #d45e00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-button:hover {
    background-color: #8d3d00;
}

#followerCount, #egyenleg {
    color: #d45e00;
}

#message {
    text-align: center;
    font-size: 20px;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Középre igazítja az input mezőket a formon belül */
}

#username {
    text-align: center;
    font-size: 50px;
}

#level {
    text-align: center;
    font-size: 30px;
}

#followers, #npcCount {
    margin-top: 10px;
    font-size: 30px;
}

#content-inventory > table{
    margin: auto;
    width: 80%;
    max-width: 1200px;
}


.user-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space items in the column */
    height: 100%; /* Full height to utilize space */
}

.user-info p {
    margin: 5px 0;
    text-align: left; /* Align text to the left */
    line-height: 1.5; /* Improve line spacing */
}

.xp-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #5d5d5d;
    border-radius: 5px;
    margin: 10px 0;
}

.xp-bar-filled {
    height: 100%;
    width: 70%; /* Example: fill with 70% */
    background-color: #fb7100;
    border-radius: 5px;
}

#xp-text {
    text-align: center;
    margin: 5px 0;
    font-size: 20px; /* Adjust font size */
}

.badge-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px; /* Space between icon and text */
}

#lvl {
    background: linear-gradient(
        to right,
        rgb(184, 70, 0) 0%,
        rgb(237, 126, 0) 20%,
        rgb(133, 26, 255) 40%,
        rgb(237, 126, 0) 80%,
        rgb(184, 70, 0) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 500% auto;
    animation: shine 5s ease-in-out infinite ;
}

.follow-button,
.settings-button {
    padding: 10px 15px;
    background-color: #d45e00;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

a:hover {
    color: #fff;
}

.follow-button:hover,
.settings-button:hover {
    background-color: #8d3d00;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: auto; /* Push buttons to the bottom of the user-info section */
    gap: 15px; /* Add space between buttons */
}

.following-container {
    display: flex;
    flex-wrap: wrap; /* Allows cards to wrap to the next line */
    justify-content: center; /* Center the cards */
    margin-top: 20px; /* Space above the container */
}

.card {
    width: 140px; /* Fixed width for cards */
    height: 140px; /* Fixed height for cards */
    background-color: rgba(255, 255, 255, 0.3); /* Semi-transparent background */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow effect */
    display: flex;
    flex-direction: column; /* Align content vertically */
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    margin: 10px; /* Space between cards */
    text-align: center; /* Center text */
    transition: transform 0.3s; /* Smooth scale effect on hover */
    position: relative; /* Make card the positioning context */
    cursor: pointer; /* Change cursor to pointer to indicate it's clickable */
}

.mid {
    text-align: center;
    color: white;
}



.card:hover {
    transform: scale(1.05); /* Slightly scale up on hover */
    background-color: rgba(255, 255, 255, 0.4);
}



.card img {
    width: 80px; /* Fixed width for the image */
    height: 80px; /* Fixed height for the image */
    border-radius: 50%; /* Circular image */
    object-fit: cover; /* Maintain aspect ratio without distortion */
    margin-bottom: 5px; /* Space between image and username */
}

/* Responsive Design */
@media (max-width: 768px) {
    .card {
        width: 120px; /* Smaller width for mobile */
        height: 120px; /* Smaller height for mobile */
    }
}

@media (max-width: 480px) {
    .card {
        width: 100px; /* Smaller width for very small screens */
        height: 100px; /* Smaller height for very small screens */
    }
}



@media (max-width: 768px) {
    .profile-container {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center; /* Center items */
    }

    input {
        width: 200px;
    }

    .profile-image-container {
        width: 100%; /* Image container full width on smaller screens */
        align-items: center; /* Center image and button */
    }

    .profile-image-container > img {
        width: 200px; 
        height: 200px;/* Image container full width on smaller screens */
        align-items: center; /* Center image and button */
    }

    .user-info {
        width: 100%; /* User info full width on smaller screens */
        margin-left: 0; /* Remove left margin */
    }

    .button-container {
        flex-direction: column; /* Stack buttons vertically on smaller screens */
        align-items: center; /* Center buttons */
    }

    .follow-button,
    .settings-button {
        width: 100%; /* Full width buttons on smaller screens */
        margin-bottom: 10px; /* Space between buttons */
    }

    #content-inventory > table {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center;
        width: auto;
        font-size: 15px;
    }
}


@keyframes shine {
    0% {
      background-position: 0% 50%;
    }
    100% {
      background-position: 100% 50%;
    }
}
