.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #333;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
}

h1, p {
    color: #ffffff;
    margin: 5px 0;
    text-align: center;
}

.info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
    width: 100%;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
}

.info-box {
    display: flex;
    align-items: center;
    color: #ffffff;
    font-weight: bold;
    gap: 8px;
    background-color: #444;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.info-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.playtime-container {
    width: 100%;
    margin-top: 10px;
}

.playtime-header {
    text-align: center;
    margin-bottom: 10px;
}

.playtime-header h2 {
    font-size: 24px;
    color: #ffffff;
    margin: 0;
    margin-top: 0;
}

.playtime-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Wycentrowanie elementów w poziomie */
}

.playtime-box {
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    max-width: 200px;
    flex: 1;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.info-badges-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Wyśrodkowanie na poziomie horyzontalnym */
    align-items: center; /* Wyśrodkowanie na poziomie wertykalnym */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.user-info,
.badges-container {
    margin: 0 auto; /* Wyśrodkowanie w poziomie */
    text-align: center; /* Wyrównanie tekstu */
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.badges-container {
    gap: 20px;
    background-color: #1a1a1a;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.badges-box {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    min-width: 150px;
    max-width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.badges-container h3 {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
    font-size: 1.5em;
}

.badge-icon {
    width: 50px;
    height: 50px;
    border-radius: 10%;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.badge-link {
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.badge-link:hover::after {
    content: attr(data-badge-name);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.3s;
    text-decoration: none;
}

.in-game-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.badge-link::after {
    opacity: 0;
    text-decoration: none;
}

.badges-page {
    text-align: center;
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.badges-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.badge-details {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 100%;
    text-align: left;
    gap: 20px;
}

.badge-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 10%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.badge-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.badge-info p {
    margin: 5px 0 0;
    font-size: 1rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .info-badges-wrapper {
        flex-direction: column;
    }

    .badges-container {
        flex: 1 1 100%;
    }

    .profile-container {
        padding: 10px;
    }

    .info-container {
        flex-direction: column;
        gap: 15px;
    }

    .playtime-box {
        padding: 10px;
        font-size: 0.9em;
    }
}