html {
    overflow: hidden; /* Prevent scrollbars at root */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: url('assets/cursor.png') 16 16, auto !important;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #000;
    overflow: hidden; /* Prevent all scrollbars */
}

/*
@font-face {
    font-family: 'Satoshi';
    src: url('assets/Satoshi-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}*/
@font-face {
    font-family: 'Satoshi';
    src: url('https://bcreativemedia.net/wp-content/uploads/2025/01/Satoshi-Regular.woff2') format('woff2'),
         url('https://bcreativemedia.net/wp-content/uploads/2025/01/Satoshi-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
  }

  
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7);
}

.enter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 10;
    pointer-events: auto;
}

.enter-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-text {
    font-family: 'Satoshi', sans-serif;
    font-size: 31px;
    font-weight: 760;
    color: white;
}

.snowflakes {
    position: fixed;
    top: -10vh;
    left: 0;
    width: 100%;
    height: 110%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #ffffff;
    font-size: 1.2em;
    animation: fall-smooth-zigzag 10s linear infinite;
    opacity: 1;
}

@keyframes fall-smooth-zigzag {
    0% {
        transform: translate(0, -10vh) rotate(0deg);
        opacity: 1;
    }
    10% {
        transform: translate(-30px, 10vh) rotate(15deg);
    }
    20% {
        transform: translate(30px, 20vh) rotate(-15deg);
    }
    30% {
        transform: translate(-30px, 30vh) rotate(15deg);
    }
    40% {
        transform: translate(30px, 40vh) rotate(-15deg);
    }
    50% {
        transform: translate(-30px, 50vh) rotate(15deg);
    }
    60% {
        transform: translate(30px, 60vh) rotate(-15deg);
    }
    70% {
        transform: translate(-30px, 70vh) rotate(15deg);
    }
    80% {
        transform: translate(30px, 80vh) rotate(-15deg);
    }
    90% {
        transform: translate(-30px, 90vh) rotate(15deg);
    }
    100% {
        transform: translate(30px, 110vh) rotate(-15deg);
        opacity: 0;
    }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 10.5s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 9.5s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 10.2s; animation-delay: 3s; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 9.8s; animation-delay: 4s; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 10.3s; animation-delay: 5s; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 9.7s; animation-delay: 6s; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 10.1s; animation-delay: 7s; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 9.9s; animation-delay: 8s; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 10.4s; animation-delay: 9s; }



.profile-container {
    transform: scale(1);
    max-width: 610px;
    margin: 2rem auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    text-align: center;
    will-change: transform, opacity;
    max-height: 445px;
    overflow: hidden;
}

.avatar {
    border: none;
    outline: none;
    
    width: 100px;
    height: 100px;
    border-radius: 50%;
    image-rendering: pixelated; /* Prioritize pixelated for GIFs */
    object-fit: cover; /* Ensure image fills container without distortion */
    /*border: 2px solid rgba(255, 255, 255, 0.4); */
    margin-bottom: 1rem;
}

.text-container {
    position: relative;
    z-index: 1;
}

.username {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: url("assets/sparkle_white.gif") repeat-x left center;
    background-size: 25%; /* Slightly reduce gif size for better clarity */
    padding: 10px;
    font-family: 'Satoshi', sans-serif;
    letter-spacing: 2px;
    font-size: 30px;
    font-weight: 600;
    text-shadow: 0 0 10.5px #ffffff;
    transform: translateY(-22px);
    text-rendering: optimizeLegibility;  /* Improve text rendering */
    -webkit-font-smoothing: antialiased;  /* Sharper text on webkit browsers */
    -moz-osx-font-smoothing: grayscale;  /* Sharper text on Firefox */
    image-rendering: -webkit-optimize-contrast;  /* Sharper background image */
    image-rendering: crisp-edges;  /* Sharper background image */
}

.description {
    max-width: 50ch;
    word-wrap: break-word;
    margin: 1rem 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 16px;
    font-weight: 560;
    padding: 1px;
    height: 48px;
    overflow: hidden;
    letter-spacing: 0.3px;
    color: #ffffff; /* Changed from rgba to pure white */
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9); /* Increased glow effect */
    transform: translate3d(0, -44px, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}



.descriptiontest {
    margin: 0rem 0;
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 1;
    padding: 6px;
    transform: translateY(-102px);
    height: 48px; /* Fix height to two lines to prevent resizing */
    overflow: hidden; /* Clip any overflow */
    visibility: hidden; /* Hide the element but keep space */
}


/* Location section styling */
.location {
    font-family: 'Satoshi', sans-serif;
    font-size: 12.5px;  /* Text size for location */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0rem;
    transform: translateY(-97px);  /* Move up to fit in profile container */
    color: #ffffff;
    line-height: 1;
}

/* Location icon styling */
.location svg {
    width: 12.5px;  /* Icon size matching text */
    height: 12.5px;
    color: #ffffff;
    filter: drop-shadow(2px 0 4px #ffffff);  /* White glow effect */
    margin-right: 0.2rem;  /* Space between icon and text */
    position: relative;
    top: 0.5px;  /* Fine-tune vertical alignment */
}

/* Location text styling */
.location span {
    position: relative;
    top: 1px;  /* Move text down slightly to align with icon */
}

.discord-Profile-Container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 17px;
    padding: 0 20px;
    text-align: left;
    margin: 20px auto;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(15, 15, 15, 0.3);
    min-width: 100px;
    width: fit-content;
    max-width: 350px;
    position: relative;
    top: -90px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }
  
  .discord-Profile-Container.no-activity,
  .discord-Profile-Container.offline {
    width: fit-content;
    min-width: 150px;
    max-width: none;
  }
  
  .discord-Profile-Container.no-activity .asset,
  .discord-Profile-Container.offline .asset {
    display: none;
  }
  
  .card {
    display: flex;
    position: relative;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    justify-content: flex-start;
    width: fit-content;
    min-width: 100%;
    padding-right: 30px;
  }
  
  .card .avatar {
    border: none;
    outline: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    top: 8px;
    left: -6px;
    image-rendering: pixelated; /* Good for GIFs, preserves animation */
    object-fit: cover; /* Ensures proper scaling */
    -webkit-font-smoothing: antialiased;
  }
  
  #statusIcon {
    width: 14.1px !important;
    height: 14.1px !important;
    position: absolute !important;
    left: 33px !important;
    top: 48px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  .content {
    margin-left: -8px;
    margin-top: 2px;
    flex: 1;
    max-width: none;
    width: fit-content;
    text-align: left;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  
  .name {
    font-family: 'Satoshi', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: fit-content;
  }
  
  .activity {
    font-family: 'Satoshi', sans-serif;
    font-size: 12px;
    color: #b9bbbe; /* Default to gray */
    font-weight: 400; /* Default to non-bold */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    line-height: 1;
    display: block !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: none;
    width: fit-content;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  
  .activity.nothing {
    font-family: 'Satoshi', sans-serif;
    color: #b9bbbe;
    font-weight: 400;
    font-size: 11.3px;
    margin-top: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    visibility: visible !important;
    width: fit-content;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  
  .activity span {
    font-family: 'Satoshi', sans-serif;
    font-size: 11px;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    max-width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
  
  #activityLine1 span:first-of-type {
    font-weight: 700;
    color: #ffffff !important; /* Pure white for activity type */
    opacity: 1;
    margin-right: 4px; /* Spacing between type and name */
  }
  
  #activityLine1 span:not(:first-of-type) {
    color: #b9bbbe; /* Gray for activity name */
    font-weight: 400;
    opacity: 0.8;
  }
  
  #activityLine2 span {
    color: #b9bbbe; /* Gray for details in second line */
    font-weight: 400;
    opacity: 0.8;
  }
  
  #activityLine2 i {
    color: #b9bbbe; /* Gray for 'last seen' text */
    font-weight: 400;
    opacity: 0.8;
    font-style: italic;
  }
  
  .asset {
    width: 57px !important;
    height: 57px !important;
    border-radius: 10px;
    flex-shrink: 0;
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
  }
  
  .discord-Profile-Container:not(.no-activity):not(.offline) .card {
    padding-right: 70px;
  }
  
  .discord-Profile-Container:not(.no-activity):not(.offline) {
    min-width: 200px;
    width: fit-content;
    max-width: 400px;
  }

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    margin-left: -10px;
    transform: translateY(-90px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-right: -11px;
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link svg {
    font-size: 1.5em;
    color: #ffffff;
    filter: drop-shadow(1px 0 7px #ffffff);
}

.volume-wrapper {
    position: fixed;
    top: 10px; /* Top-left corner */
    left: 10px; /* Top-left corner */
    display: flex;
    align-items: center;
    border-radius: 16px;
    background: rgba(31, 30, 30, 0.2);
    padding: 8px;
    z-index: 9; /* Behind enter-overlay (z-index: 10) */
    overflow: hidden;
    transition: width 0.4s ease;
    width: 54px;
    
}

.volume-wrapper:hover {
    width: 184px;
}

.icon-container {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-right: 12px;
    cursor: pointer; /* Make clickable */
    filter: drop-shadow(1px 0 7px #ffffff);
}

.speaker-icon, .mute-icon, .wave-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.speaker-icon path {
    fill: gray;
    stroke: white;
    stroke-width: 1.3;
}

.mute-icon {
    fill: none;
    stroke: white;
    stroke-width: 1.6;
    display: none;
}

.wave-icon {
    fill: none;
    stroke: white;
    stroke-width: 1.3;
    display: none;
}

.volume-slider-container {
    width: 110px;
    height: 4px; /* thinner bar */
    position: relative;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    
}

.volume-wrapper:hover .volume-slider-container {
    opacity: 1;
    pointer-events: auto;
}

.volume-track {
    width: 100%;
    height: 100%;
    background: gray;
    border-radius: 10px;
    overflow: visible;
    position: relative;
    filter: drop-shadow(1px 0 1px #ffffff);
}

.volume-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: white;
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease; /* Smooth animation */
}

.volume-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    transition: left 0.2s ease; /* Smooth animation */
}

input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    cursor: pointer;
}

.page-views {
    position: fixed;
    bottom: 12px;
    left: 15px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 12px;
    font-family: 'Satoshi', sans-serif;
    color: #ffffff;
    line-height: 1;
}

.page-views span {
    position: relative;
    top: 0px;
}

.page-views svg {
    width: 15px;
    height: 15px;
    filter: drop-shadow(1px 0 7px #ffffff);
}

/* Slide animation for profile-container */
.slide-in {
    animation: slideIn 0.7s ease-in-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(10vh) scale(1.2);  /* Start slightly above the bottom */
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1.2);  /* End at the original position */
        opacity: 1;
    }
}

.discord-Profile-Container.offline {
    width: 50%; /* Keep original width */
}