:root {
    --titlebar-glow-color: #fff;
    --titlebar-color: #000;
    --titlebar-font-color: #fff;
    --profile-border-color: var(--border-color);

    --background-color: #000;

    --bg-color: #000000;
    --text-color: #fff;

    --border-color: #ccc;
    --border-radius: 10px;
    --primary-border-width: 2px;
    --secondary-border-width: 3px;
    
    --button-bg-color: #159;
    --button-border-color: #fff;
    --button-font-color: #fff;
    --button-hover-color: #4db9cc;
    --button-active-color: #90eeff;
    
    --primary-color: #159;
    --secondary-color: #90eeff;

    --link-bg-color: #159;
    --link-text-color: #fff;
    --link-title-color: var(--link-text-color);
    --link-border-color: #ccc;
    --link-color: #42cef9;
    --link-clicked-color: #6bceff;

    --achevement-default-bg-color: #159;
    --achevement-default-color: #fff;
    --achevement-type-1-bg-color: #0d8837;
    --achevement-type-1-color: #fff;
    --achevement-type-2-bg-color: #cc2e2e;
    --achevement-type-2-color: #fff;
    --achevement-type-3-bg-color: #ae9c03;
    --achevement-type-3-color: #fff;

    --grid-bg-color: rgb(10, 48, 83);
    --grid-line-color: #fff;
    --grid-color: rgb(109, 158, 161);
    --grid-point-color: rgb(103, 199, 223);
    --grid-point-line-color: #fff;
    --grid-point-highlight-color: #90eeff;
    --grid-fill-color:rgb(16, 78, 136);

    --bg-opacity: 0.48;
    --bg-saturate: 1;
    --bg-heart-color: red;
    --bg-diamond-color: red;
    --bg-spade-color: black;
    --bg-club-color: black;
    --bg-border-color: white;

    --bg-opacity-percentage: 87%;
  }


  [data-theme="purple"]{
    --titlebar-glow-color: #969;
    --titlebar-color: #202;
    --titlebar-font-color: #fcf;
    --background-color: #202;
    --bg-color: #442244;
    --text-color: #fcf;
    --border-color: #c9c;
    --profile-border-color: var(--border-color);
    --primary-color: #737;
    --secondary-color: #dc6cf8;
    --border-radius: 10px;
    --link-bg-color: #747;
    --link-text-color: #fcf;
    --link-title-color: var(--link-text-color);
    --link-border-color: #000;
    --primary-border-width: 2px;
    --secondary-border-width: 3px;
    --link-color: #fcf;
    --link-clicked-color: #fcf;
    --button-bg-color: #303;
    --button-border-color: #fff;
    --button-font-color: #fcf;
    --button-hover-color: #c9c;
    --button-active-color: #c9c;

    --achevement-default-bg-color: #747;
    --achevement-default-color: #fcf;
    --achevement-type-1-bg-color: #3498db;
    --achevement-type-1-color: #fff;
    --achevement-type-2-bg-color: #ca5597;
    --achevement-type-2-color: #fff;
    --achevement-type-3-bg-color: #b07777;
    --achevement-type-3-color: #fff;

    --grid-bg-color: rgb(87, 36, 87);
    --grid-line-color: #c9c;
    --grid-color: rgb(148, 108, 148);
    --grid-point-color: #fcf;
    --grid-point-border-color: #747;
    --grid-point-highlight-color: #fcf;
    --grid-fill-color: rgb(145, 59, 145);

    --bg-opacity: 0.38;
    --bg-saturate: 0;
    --bg-heart-color: red;
    --bg-diamond-color: red;
    --bg-spade-color: black;
    --bg-club-color: black;
    --bg-border-color: white;

    --bg-opacity-percentage: 95%;
  }


  [data-theme="light"]{
    --titlebar-glow-color: #dbdbdb;
    --titlebar-color: #000;
    --titlebar-font-color: #fff;
    --background-color: #bbb;
    --bg-color: #fff;
    --text-color: rgb(0, 0, 0);
    --border-color: #000;
    --profile-border-color: var(--border-color);
    --primary-color: rgb(210, 210, 210);
    --secondary-color: #adadad;
    --border-radius: 10px;
    --link-bg-color: #ccc;
    --link-text-color: rgb(0, 0, 0);
    --link-title-color: var(--link-text-color);
    --link-border-color: #000;
    --primary-border-width: 3px;
    --secondary-border-width: 3px;
    --link-color: rgb(16, 177, 255);
    --link-clicked-color: rgb(0, 124, 255);
    --button-bg-color: #fff;
    --button-border-color: #000;
    --button-font-color: rgb(0, 0, 0);
    --button-hover-color: rgb(231, 231, 231);
    --button-active-color: #eee;
    --achevement-default-bg-color: #fff;
    --achevement-default-color: #000;
    --achevement-type-1-bg-color: #c1c1c1;
    --achevement-type-1-color: #fff;
    --achevement-type-2-bg-color: #a8a8a8;
    --achevement-type-2-color: #fff;
    --achevement-type-3-bg-color: #ad7726;
    --achevement-type-3-color: #fff;
    --grid-bg-color: rgb(255, 255, 255);
    --grid-line-color: rgb(0, 0, 0);
    --grid-color: rgb(64, 64, 64);
    --grid-point-color: rgb(181, 181, 181);
    --grid-point-border-color: rgb(21, 21, 21);
    --grid-point-highlight-color: rgb(140, 140, 140);
    --grid-fill-color: #a2a2a2;
    --bg-opacity: 0.68;
    --bg-saturate: 1;
    --bg-heart-color: red;
    --bg-diamond-color: red;
    --bg-spade-color: black;
    --bg-club-color: black;
    --bg-border-color: black;
    --bg-opacity-percentage: 100%;
  }
  


 /* unvisited link */
 a:link {
    color: var(--link-color);
  }
  
  /* visited link */
  a:visited {
    color: var(--link-clicked-color);
  }



@font-face {
    font-family: 'Hax'; /* Name of the font */
    src: url('/assets/font/Hacked-KerX.ttf') format('truetype'); /* Add more formats if needed */
    font-weight: normal; /* Define weights (optional) */
    font-style: normal; /* Define style (optional) */
}


.heart {
    color: var(--bg-heart-color);
}
.diamond {
    color: var(--bg-diamond-color);
}
.spade {
    color: var(--bg-spade-color);
}
.club {
    color: var(--bg-club-color);
}
#suit-backdrop {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, 80px);
    grid-auto-rows: 80px;
    z-index: -1;
    pointer-events: none;
    margin-top: 50px;
}

.warning {
  color: var(--text-color);
  font-style: italic;
  font-weight: bold;
  margin-top: 20px;
}

.suit {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    opacity: var(--bg-opacity);
    user-select: none;
    pointer-events: auto;
    transition: transform 0.5s ease;
    -webkit-text-stroke: 2px var(--bg-border-color);
    filter: saturate(var(--bg-saturate));
}

.suit.spin {
    transform: rotateY(360deg) scale(1.2);
}


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

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

.notification-bell, .notification-mail {
    position: relative;
    display: inline-block;
    color: var(--titlebar-font-color);
}

.notification-bell .fas, .notification-mail .fas {
    font-size: 2rem; /* Adjust the size of the bell */
}

.notification-bell .bell-link, .notification-mail .mail-link {
    text-decoration: none; /* Removes the default underline from the link */
    color: inherit;
    display: inline-block;
}

.money-link {
    text-decoration: none; /* Removes the default underline from the link */
    color: inherit;
    display: inline-block;
}

.notification-bell .bell-link:hover, .notification-mail .mail-link:hover {
    opacity: 0.8; /* Optional: Add hover effect */
}

.notification-bell .badge, .notification-mail .mailbadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 1rem; /* Adjust the number size */
    width: 20px; /* Width of the circle */
    height: 20px; /* Height of the circle */
    border-radius: 50%;
    text-align: center;
    line-height: 20px; /* Center the number vertically */
    user-select: none;
}

.titlebar {
    position: fixed; /* Make the element fixed */
    top: 0;          /* Position it at the top of the screen */
    left: 0;         /* Align it to the left edge */
    width: 100%;     /* Make it span the full width of the viewport */
    background-color: var(--titlebar-color); /* Optional: Set a background color to avoid transparency */
    z-index: 1000;   /* Ensure it stays on top of other elements */
    display: flex;
    flex-direction: row;
    /* box-shadow: 0 3px 5px rgba(255, 255, 255, 0.3); Optional: Add a shadow for better visibility */
    box-shadow: 0 3px 5px color-mix(in srgb, var(--titlebar-glow-color) 70%, transparent);
    height: 60px;
}

.offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    /* max-width: 600px; */
    margin: auto;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: var(--primary-border-width) solid var(--border-color);
    color: var(--text-color);
    padding: 20px;
  }

.logo-link {
    display: flex; /* Align items horizontally */
    align-items: center; /* Vertically align image and text */
    text-decoration: none; /* Remove underline from link */
    color: inherit; /* Preserve text color */
}

.title {
    font-family: 'Hax';
    /* font-size: 55px; */
    color: var(--titlebar-font-color);
    font-size: clamp(10px, 4vw, 55px);
}
.logo {
    padding: 5px;
}
.logo img {
    max-height: 50px;
    max-width: 50px;
}

.content {
    margin-top: 75px;
}


.menu-section {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

.money {
    font-family: 'Hax';
    /* font-size: 40px; */
    color: var(--titlebar-font-color);
    min-width: 80px; /* Ensure consistent alignment */
    text-align: right;
    margin-left: 10px;
    font-size: clamp(15px, 5vw, 40px);
}
.red {
    color: red;
}
.green {
    color: green;
}

.hamburger-menu {
    width: 30px;
    height: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    background: var(--titlebar-font-color);
    border-radius: 2px;
}

.dropdown-menu {
    display: none; /* Start with the dropdown hidden */
    position: fixed;
    top: 65px;
    right: 5px;
    background-color: var(--titlebar-color);
    color: var(--titlebar-font-color);
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); */
    box-shadow: 0 2px 5px color-mix(in srgb, var(--titlebar-color) 70%, transparent);
    padding: 10px;
    border-radius: 5px;
    flex-direction: column;
    gap: 10px;
    z-index: 5000;
    border: 3px solid var(--titlebar-font-color);
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    user-select: none; /* Prevent text selection */
}

.dropdown-option:hover {
    background-color: #f0f0f0; /* Light background on hover */
    background-color: color-mix(in srgb, var(--titlebar-color), white 20%);
}

.option-title {
    font-family: 'Hax';
    font-size: 16px;
    color: var(--titlebar-font-color);
}

/* .dropdown-menu .dropdown-option:last-child {
    border-top: 1px solid #ddd; /* Optional: add a separator before the last item (Log Out)
 }*/


.login-button {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-family: 'Hax';
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.login-button:hover {
    background-color: white;
    color: black;
}


.profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid darkslategrey;
    /* background: lightgray; */
    overflow: hidden; /* Ensures anything outside the circle is hidden */
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile img {
    width: 105%;
    height: 105%;
    object-fit: cover; /* Ensures the image fills the container */
}









.update-content {
    margin: 10px;
}

.home-latest-update {
    background: var(--bg-color);
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    border: var(--primary-border-width) solid var(--border-color);
}

.home-latest-update .topflex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.home-section {
    padding: 10px;
    border-radius: var(--border-radius);
    border: var(--primary-border-width) solid var(--border-color);
    background: var(--bg-color);
    margin-bottom: 2rem;
    padding: 15px;
}

.scrolling-tiles {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    padding: 5px;
}

.tile {
    min-width: 120px;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    border: var(--primary-border-width) solid var(--border-color);
}

.activity-list {
    background: var(--bg-color);
    list-style: none;
    padding-left: 0;
}

.activity-list li {
    padding: 0.5rem 0;
}

.top-list {
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-user {
    background: var(--bg-color);
    padding: 0.75rem;
    border-radius: 1rem;
}


.more-updates {
    margin-top: 1rem;
}



.updates-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    color: var(--text-color);
}


.update-entry h2 {
    color: var(--link-color);
    margin-bottom: 0.5rem;
}

.update-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

.update-body img {
    max-width: 100%;
    border-radius: 6px;
}

.update-body a {
    color: var(--link-color);
    text-decoration: underline;
}

.update-entry {
    background-color: var(--bg-color);
    margin: 20px 0;
    border-radius: var(--border-radius);
    padding: 0px;
    border: var(--primary-border-width) solid var(--border-color);
}

.post-title{
    background-color: var(--primary-color);
    margin: 0;
    padding: 10px;
    border-radius: var(--border-radius);
    box-sizing: border-box;
}

.update-entry h2 {
    font-size: 1.5em;
    margin: 0;
    padding: 10px 0;
    color: white;
    background-color: var(--primary-color); /* Primary background color */
    border-radius: 6px;
    padding-left: 10px;
}

.update-meta {
    font-size: 0.9em;
    color: var(--text-color);
    margin: 10px 0;
}

.update-body {
    font-size: 1.1em;
    color: var(--text-color);
    margin-top: 15px;
    padding: 10px;
    padding-top: 0px;
}
  .topflex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color); /* Primary background color */
    box-sizing: border-box;
  }
  .create-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    margin: auto;
    background: var(--button-bg-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: var(--primary-border-width) solid var(--border-color);
    color: var(--button-font-color);
    padding: 10px 0;
  }


  .flexbox {
    display: flex;
    justify-content: center;
  }

  .flex-container {
    display: flex;
    justify-content: space-evenly;
    width: 90vw;
  }
  .flex-content {
    width: 60vw;
  }
  .flex-two {
    min-width: 20vw;
  }


  .top-list {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: space-between;
    }

    .top-group {
        flex: 1 1 45%;
    }

    .top-user {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
    }

    .top-user-img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 1rem;
    }

    .top-user-info {
        display: flex;
        flex-direction: column;
    }

.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);
}

.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 */
}

.full-text { display: inline; }
.short-text { display: none; }

@media (max-aspect-ratio: 1/1) {
    .game-title {
        font-size: 1rem;
    }
    .game-card {
        width: 55px;
        height: 90px;
    }

    .flex-container{
        flex-direction: column;
        align-items: center;
    }
    .flex-content {
        width: auto;
    }
    .home-section{
        width: 90vw;
    }

  }

  @media (max-aspect-ratio: 1/1) {
    .game-title {
        font-size: 1rem;
    }
    .game-card {
        width: 55px;
        height: 90px;
    }

    .flex-container{
        flex-direction: column;
        align-items: center;
    }
    .flex-content {
        width: auto;
    }
    .home-section{
        width: 90vw;
    }

  }

  @media (max-width: 524px) {
  .full-text { display: none; }
  .short-text { display: inline; }
}