.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.profile-section {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.profile-avatar {
    width: 5em;
    height: 5em;
    border-radius: 50%;
    background-color: #666;
    object-fit: cover;
}

.profile-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.profile-link:hover {
    text-decoration: underline;
}

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

.profile-info p {
    margin: 5px 0;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-joined {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.game-history {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    margin-bottom: 10px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--hover-color);
}

th {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 500;
}

tbody tr:nth-child(even) {
    background-color: #3A3F42;
}

tbody tr:hover {
    background-color: var(--hover-color);
    transition: background-color 0.3s ease;
}

/* Result colors */
.win {
    color: green;
    font-weight: bold;
}

.loss {
    color: red;
    font-weight: bold;
}

.draw {
    color: orange;
    font-weight: bold;
}

/* Elo change colors */
.positive {
    color: green;
}

.negative {
    color: red;
}

.custom-tooltip {
    position: absolute;
    display: flex;
    align-items: center;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    font-size: 14px;
    min-width: 220px;
    z-index: 1000;
    transition: opacity 0.2s ease-in-out;
}

.custom-tooltip img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-right: 10px;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
}

.tooltip-content strong {
    font-size: 15px;
    font-weight: bold;
    color: #fff;
}

.tooltip-content p {
    margin: 5px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

.copy-icon::before {
    content: "📋";
    /* Clipboard icon */
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
}

.eye-icon::before {
    content: "👁️";
    /* Eye icon */
    font-size: 14px;
    cursor: pointer;
    opacity: 0.7;
}

.custom-tooltip:hover {
    opacity: 1;
}