html, body {
    max-width: 100vw;
}


.notes-tab {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.notes-textarea {
    flex-grow: 1;
    resize: none;
    padding: 10px;
    height: 70%;
    min-height: 200px;
}

.notes-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.save-btn {
    background-color: var(--button-bg-color);
    color: var(--button-font-color);
    border: 2px solid var(--button-border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 5px;
}

.notes-status {
    color: green;
}

.tribute-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tribute-modal-content {
    border: var(--primary-border-width) solid var(--profile-border-color);
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    color: var(--text-color);
    padding: 20px;
    border-radius: 10px;
    max-width: 400px;
    width: 85vw;
    text-align: center;
    position: relative;
}

.tribute-modal-content input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: var(--primary-border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.close-btn {
    background-color: var(--bg-color);
    color: var(--button-font-color);
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    cursor: pointer;
}

.send-tribute-btn {
    border: var(--primary-border-width) solid var(--button-border-color);
    background-color: var(--button-bg-color);
    border-radius: var(--border-radius);
    color: var(--button-font-color);
    margin-top: 10px;
    padding: 8px 16px;
    cursor: pointer;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
}
.content {
    width: 90vw;
}
.profile-content {
    padding: 20px;
    padding-top: 0;
    flex-grow: 1; /* Takes up remaining space */
    overflow-y: auto; /* Allows scrolling if content overflows */
    min-height: 0; /* Prevents flex issues that can break layout */
    max-height: 52%
}
.bio-title {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between title and icon */
}

.profile-container {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    border-radius: var(--border-radius);
    border: var(--primary-border-width) solid var(--profile-border-color);
    margin-bottom: 20px;
}
.main-section {
    flex: 2;
    border-radius: var(--border-radius);
}
#main {
    height: 56%;
}
.under-banner {
    display: flex;
    /* background: var(--bg-color); */
    background-color: color-mix(in srgb, var(--bg-color) var(--bg-opacity-percentage), transparent);
    color: var(--text-color);
    height: max(80vh, 700px);
    border-radius: var(--border-radius);
}
.right {
    flex: 0 0 30%;
    border-left: var(--primary-border-width) solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Allow stacking */
}

.leaderboard {
    padding: 20px;
    height: 273px;
    color: var(--text-color);
    border-bottom: var(--primary-border-width) solid var(--border-color);
}

.top-recipients, .top-senders {
    margin-bottom: 19px;
}

.top-recipients h3, .top-senders h3 {
    margin-bottom: 10px;
}

.top-recipients ul, .top-senders ul {
    list-style-type: none;
    padding: 0;
}

.top-recipients li, .top-senders li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.top-recipients img, .top-senders img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Links Section */
.links-section {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 0px;
    /* background: var(--bg-color); */
    color: var(--text-color);
    border-radius: var(--border-radius);
    /* max-height: 300px; */
}

#linkbar-title {
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between title and icon */
}

.edit-icon {
    text-decoration: none;
    font-size: 16px;
    color: var(--text-color) !important;
    cursor: pointer;
}

.edit-icon:hover {
    color: color-mix(in srgb, var(--text-color), white 20%) !important; /* Darker on hover */
}

#link-container {
    max-height: 100%;
    /* overflow-y: auto; */
}
.banner {
    width: 100%;
    height: 150px;
    background: #001111;
    border-radius: 10px 10px 0 0;
}
.vertical-header {
    display: none;
}
.horizontal-header {
    display: flex;
    flex-direction: column;
}
.profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    flex-shrink: 0; /* Keeps its natural height */
    min-height: 225px;
}
.pic-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.profile-pic {
    /* flex-shrink: 0; */
    width: 100px;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: var(--secondary-border-width) solid var(--border-color);
    background: lightgray;
    overflow: hidden; /* Ensures anything outside the circle is hidden */
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-adjust {
    margin-top: -50px;
}

.collar-banner {
    align-items: center;
    justify-content: center;
    display: flex;
    margin: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 8px;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: var(--primary-border-width) solid var(--border-color);
}

.collar-banner-special {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0 auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: bold;
    font-size: 1.1em;
    text-align: center;
    position: relative;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: 3px solid var(--border-color);
    box-shadow:
      0 0 5px var(--primary-color),
      0 0 10px var(--secondary-color),
      inset 0 0 5px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transition: transform 0.2s ease-in-out;
  }
  .collar-banner-special:hover {
    transform: scale(1.05) rotate(-1deg);
  }


.profile-pic img {
    width: 105%;
    height: 105%;
    object-fit: cover; /* Ensures the image fills the container */
}
.profile-info {
    margin-left: 20px;
}
.buttons {
    margin-top: 10px;
}
.left {
    width: 70%;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    overflow: hidden; /
}

.tabs-wrapper {
    
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    position: relative;
    z-index: 10; /* Bring it above content below */
    background: var(--bg-color); /* Ensure background hides anything behind */
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.tabs {
    display: inline-flex;
    white-space: nowrap;
    min-width: 100%;
    border-bottom: var(--primary-border-width) solid var(--border-color);
}

/* .tabs {
    display: flex;
    margin-top: 20px;
    border-bottom: var(--primary-border-width) solid var(--border-color);
    flex-shrink: 0; /* Keeps its natural height */
/* } */

.follow-btn{
background-color: #04AA6D; /* Green */
border: none;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
}
.tagline {
  font-style: italic;
}
.tab {
    margin: 5px;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}
.tab.active {
    background-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Apply flex only when #stats is active */
#stats.active {
    display: flex;
    justify-content: center; /* Keep centering */
    align-items: center; /* Optional: vertical centering */
    flex-direction: column; /* Adjust if needed */
}

/* Apply flex only when #stats is active */
#userstats.active {
    display: flex;
    justify-content: center; /* Keep centering */
    align-items: center; /* Optional: vertical centering */
    flex-direction: column; /* Adjust if needed */
}

/* CSS */
.button-pushable {
    position: relative;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    outline-offset: 4px;
    transition: filter 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.button-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: hsl(0deg 0% 0% / 0.25);
    will-change: transform;
    transform: translateY(2px);
    transition:
    transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

.button-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--button-bg-color), black 20%);
}

.button-front {
    display: block;
    position: relative;
    padding: 12px 27px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: var(--button-font-color);
    background-color: var(--button-bg-color);
    will-change: transform;
    transform: translateY(-4px);
    transition:
    transform
    600ms
    cubic-bezier(.3, .7, .4, 1);
}

.button-front img{
margin: -7px 0px;
}

.button-pushable:hover {
filter: brightness(110%);
-webkit-filter: brightness(110%);
}

.button-pushable:hover .button-front {
transform: translateY(-6px);
transition:
transform
250ms
cubic-bezier(.3, .7, .4, 1.5);
}

.button-pushable:active .button-front {
transform: translateY(-2px);
transition: transform 34ms;
}

.button-pushable:hover .button-shadow {
transform: translateY(4px);
transition:
transform
250ms
cubic-bezier(.3, .7, .4, 1.5);
}

.button-icon {
max-width: 50px;
max-height: 30px;
padding: 0;
margin: 0;
}

.button-pushable:active .button-shadow {
transform: translateY(1px);
transition: transform 34ms;
}

.button-pushable:focus:not(:focus-visible) {
outline: none;
}




#link-container {
    max-width: 600px;
    margin: auto;
}

.link-bar {
    align-items: center;
    background: var(--link-bg-color);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid var(--link-border-color);
    word-break: break-word;
}
.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 10px;
}

.no-link {
    padding: 5px 15px; /* Make it half-width when no link */
}

.link-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px 5px;
    width: 100%;
    color: var(--link-text-color);
}

.link-bar a {
    text-decoration:none !important;
}

.nolink-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px 5px;
    width: 100%;
    color: var(--link-title-color);
    text-align: center;
}

.url {
    font-size: 12px;
    color: var(--link-clicked-color);
    text-decoration: underline;
    width: 100%;
}





.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 112px);
    gap: 16px;
    margin-top: 20px;
}

/* Individual Achievement */
.achievement {
    position: relative;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 6px;
    height: 190px;
    border: var(--secondary-border-width) solid var(--border-color);
}

.achievement:hover {
    transform: scale(1.05);
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}


.achievement a {
    color: var(--link-clicked-color);
    text-decoration:underline;
}


.achievement img {
    width: 100%;
    height: 100px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.achievement-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px; /* Added space below the title */
    overflow: hidden;
    position: relative;
    text-align: center; /* default to center */
    height: 24px; /* or however tall one line is */
}

.scroll-wrapper {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    transition: transform 5s linear;
}

.achievement-name::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
}

.achievement-name:hover span {
    animation: scroll-text 5s linear infinite;
}

.achievement-name span {
    display: inline-block;
    padding-right: 100%; /* add enough space for scrolling */
}
.achievement-sender {
    overflow: hidden;
}

.achievement-sender span {
    display: inline-block;
    padding-right: 100%; /* add enough space for scrolling */
}

.achievement-sender::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    pointer-events: none;
}

.achievement-sender:hover span {
    animation: scroll-text 5s linear infinite;
}

.achievement-sender span {
    display: inline-block;
    padding-right: 100%; /* add enough space for scrolling */
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-100%);
    }
}

.achievement-tooltip {
    position: absolute;
    top: 0px;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px;
    font-size: 12px;
    display: none;
    border-radius: 5px;
    box-sizing: border-box;
}

.achievement:hover .achievement-tooltip {
    display: block;
}

.achievement:hover img {
    transform: scale(1.1);
}

.grant-div {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    align-items: flex-end;   /* Ensures the button stays at the bottom */
    /* position: absolute;      Positions it relative to the achievement container */
    /* left: 50%;
    transform: translateX(-50%); */
    width: 100%;             /* Takes up the full width of the container */
}
.grant-btn {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    z-index: 1; /* Ensure the button appears above the image */
    margin-bottom: 10px;
}

.grant-btn:hover {
    background-color: #45a049;
}


/* Define background colors for different achievement types */
.bg-type-1 {
    background-color: var(--achevement-type-1-bg-color);
    color: var(--achevement-type-1-color);
}

.bg-type-2 {
    background-color: var(--achevement-type-2-bg-color);
    color: var(--achevement-type-2-color);
}

.bg-type-3 {
    background-color: var(--achevement-type-3-bg-color);
    color: var(--achevement-type-3-color);
}

.bg-default {
    background-color: var(--achevement-default-bg-color);
    color: var(--achevement-default-color);
}


.confirmation-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* This centers the message */
    background-color: var(--background-color); /* Green background */
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999; /* Ensures it appears above other content */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}



.chart-container {
    width: 100%;   /* Make it take full width of parent */
    height: 90%;  /* 90% of the viewport height */
    max-height: 600px; /* Prevent it from getting too tall on large screens */
    display: flex; 
    justify-content: center;
    align-items: center;
    min-height: 300px;
    max-width: 800px;
}

#stats {
    width: 95%;
    
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spacer {
    margin-left: 15px;
}

#userstats {
    width: 95%;
    
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#stats-graph {
    display: block;
    background: var(--grid-bg-color);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
}

#userstats-graph {
    display: block;
    background: var(--grid-bg-color);
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
}


.stats-buttons {
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px; /* Spacing between buttons */
    align-items: stretch; /* Ensures buttons stretch full width */
}

.stats-btn {
    background: var(--button-bg-color);
    color: var(--button-font-color);
    border: 2px solid var(--button-border-color);
    padding: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    text-align: center;
    margin: 5px;
}

.userstats-btn {
    background: var(--button-bg-color);
    color: var(--button-font-color);
    border: 2px solid var(--button-border-color);
    padding: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    text-align: center;
    margin: 5px;
}

.stats-btn:hover {
    background: var(--button-bg-color);
    color: var(--button-font-color);
    border-color: var(--button-secondary-color);
}

.stats-btn.active {
    background: var(--button-active-color);
    color: var(--button-font-color);
    border-color: var(--button-border-color);
    transform: scale(1.05);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}

.userstats-btn:hover {
    background: var(--button-bg-color);
    color: var(--button-font-color);
    border-color: var(--button-secondary-color);
}

.userstats-btn.active {
    background: var(--button-active-color);
    color: var(--button-font-color);
    border-color: var(--button-border-color);
    transform: scale(1.05);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
}


.mod-tools {
    border: var(--primary-border-width) solid var(--profile-border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.mod-tools h3 {
    color: var(--titlebar-font-color);
    text-shadow: 0 0 5px var(--titlebar-glow-color);
    margin-bottom: 20px;
}

.mod-tools input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: var(--primary-border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
}

.mod-tools .form-group {
    margin-bottom: 15px;
}

.mod-tools label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mod-tools input[type="text"],
.mod-tools input[type="number"] {
    width: auto;
    padding: 8px;
    border: var(--primary-border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 10px;
    margin-top: 0;
}

.mod-tools button {
    background-color: var(--button-bg-color);
    color: var(--button-font-color);
    border: 2px solid var(--button-border-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-top: 5px;
}

.mod-tools button:hover {
    background-color: var(--button-hover-color);
}

.mod-tools button:active {
    background-color: var(--button-active-color);
}

.mod-tools .quick-links {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mod-tools .quick-links a.button {
    background-color: var(--link-bg-color);
    color: var(--link-text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    border: 2px solid var(--link-border-color);
    transition: background-color 0.2s, color 0.2s;
}

.mod-tools .quick-links a.button:hover {
    background-color: var(--link-clicked-color);
    color: var(--link-text-color);
}



@media (max-width:450px) {
    .achievements-grid {
        gap: 6px;
    }    
}
@media (max-width: 800px) {
    .horizontal-header {
        display: none;
    }
    .vertical-header {
        display: flex;
        flex-direction: column;
    }

    .profile-info {
        margin-left: 0px;
    }

    .stats-btn {
        margin: 2px;
        padding: 2px;
    }
    .stats-buttons {
        gap: 2px;
    }

    .userstats-btn {
        margin: 2px;
        padding: 2px;
    }
    .userstats-buttons {
        gap: 2px;
    }    

}


.game-card.blocked {
    position: relative;
    opacity: 0.4;
    pointer-events: none;
}

.game-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: red;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.games-grid {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.game-top {
    display: flex;
}
.margin-adjust {
    margin: -11px;
}

.games-box {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}

.games-content {
    /* background-color: var(--background-color); */
}

.game-card {
    background-color: var(--bg-color);
    border: var(--primary-border-width) solid var(--link-border-color);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 5px var(--link-border-color);
    width: 100px;
    height: 130px;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px var(--link-clicked-color);
}

.game-title {
    color: var(--text-color);
    font-weight: bold;
    font-size: 1rem;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}



.tabs-container {
  position: relative;
}

/* Scrollable tabs wrapper */
.tabs-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  white-space: nowrap;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

/* Tabs */
.tabs {
  display: inline-flex;
  min-width: 100%;
}

.tab {
  margin: 5px;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.tab.active {
  background-color: var(--primary-color);
}

/* Scroll hint icon */
.scroll-hint {
  display: none;
}

.scroll-container {
    display: none;
}

.scroll-hint-left {
  display: none;
}

.scroll-container-left {
    display: none;
}

@media (max-aspect-ratio: 1/1) {

    .tabs-wrapper {
        margin-left: 20px;
        margin-left: 20px;
    }

    .scroll-container-left {
        background-color: var(--bg-color);
        width: 20px;
        height: 45px;
        display: block;
        position: absolute;
        left: 0px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--text-color);
        pointer-events: none;
        z-index: 20000;
    }
    .scroll-hint-left {
        display: block;
        position: absolute;
        left: 5px;
        top: 38%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--text-color);
        pointer-events: none;
        z-index: 20000;
        animation: blink 1.5s infinite;
    }

    .scroll-container {
        background-color: var(--bg-color);
        width: 20px;
        height: 30px;
        display: block;
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 24px;
        color: var(--text-color);
        pointer-events: none;
        z-index: 20000;
    }
  .scroll-hint {
    display: block;
    position: absolute;
    right: 5px;
    top: 38%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-color);
    pointer-events: none;
    z-index: 20000;
    animation: blink 1.5s infinite;
  }

  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
}

/* Fading gradients */
.scroll-gradient {
  position: absolute;
  top: 0;
  width: 30px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.scroll-gradient.left {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.scroll-gradient.right {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

@media (max-aspect-ratio: 1/1) {
  .scroll-gradient {
    display: block;
  }
}




@media (max-aspect-ratio: 1/1) {
    .game-title {
        font-size: 1rem;
    }
    .game-card {
        width: 55px;
        height: 90px;
    }
    .games-grid {
        display: flex;
        gap: 10px;
        padding: 10px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-evenly;
    }

    .button-front {
        font-size: 1.25rem;
    }

    .left {
        width: 100%
    }

    .profile-container {
        border-radius: 10px;
        width: 90vw;
    }

    .under-banner {
        flex-direction: column; /* Stack elements instead of side by side */
        height: auto; /* Let it grow based on content */
        max-height: none;
    }

    .main-section {
        flex: 1;
        padding-right: 0;
        max-width: 100%;
    }

    .right {
        flex: 1;
        border-left: none;
        border-top: var(--primary-border-width) solid var(--border-color); /* Separate with a top border instead of left */
        padding-top: 15px;
    }

    .leaderboard {
        height: auto;
        padding: 10px;
        border-bottom: none;
    }

    .profile-content {
        padding: 10px;
    }
    .links-section {
        width: 100%;
        padding: 0;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-pic {
        margin-bottom: 10px;
        margin-top: 0px;
    }

    .buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .button-pushable {
        margin: 5px;
    }

    #link-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .link-bar {
        display: flex;
        align-items: center;
        background: var(--link-bg-color);
        padding: 10px;
        margin: 5px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
        width: 80%
    }


    .links-section {
        border-radius: 0px;
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        border-top: var(--primary-border-width) solid var(--border-color);
    }


}