* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 12pt;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
     overflow-y: scroll;
    overflow-x: hidden !important;
}

body {
    width: 100%;
    background-color: #252525;
    color: white;
    margin: 0;
    background-image: linear-gradient(135deg, #0f0024, #090017, #05000a); /* Dark purple linear gradient */
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

html, body {
    height: auto;
    min-height: 100vh;
}


@property --expand {
    syntax: "<number>";
    initial-value: 0;
    inherits: true;
}

.title {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 20px 0;
    margin-top: 10rem;
    transform: scale(1.2);
    transition: all 0.5s ease;
}


.logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    position: relative; /* Ensure logo stays in flow */
    transition: all 0.5s ease;
}

.space::before {
    content: '';
    background-image: url(bloxdToolsLogov2-min.webp);
    background-size: cover;
    width: 30px;
    height: 30px;
    padding: 10px;
    filter: blur(30px) saturate(5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the pseudo-element */
    margin: 0;
    transition: all 0.5s ease;
}

.titleBounce {
    padding-top: 20px;
    position: relative;
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; /* Ensure the titleBounce content is centered */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: all 0.5s ease;
}

.textTitleWrapper {
    display: inline-flex; /* Use inline-flex to keep letters inline */
    opacity: 1;
    animation: titleEnter ease 0.8s;
    transform: translateX(calc(var(--i) * 30px));
    transition: all 0.5s ease;
}

@keyframes titleEnter {
    from {
        opacity: 0;
        transform: translateY(30px) translateX(0) scale(0.7);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(calc(var(--i) * 30px)) scale(1);
    }
}

.titleBounce span {
    display: inline-block;
    font-size: 2rem;
    font-weight: 700;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
        transition: all 0.5s ease;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes appear {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .title {
        margin: 20px;
        margin-top: 100px;
    }

    .titleBounce {
        font-size: 1rem;
        padding-top: 10px;
    }

    .titleBounce span {
        font-size: 1.5rem;
    }

    .textTitleWrapper {
        transform: translateY(0) translateX(calc(var(--i) * 20px));
    }

    @keyframes titleEnter {
        from {
            opacity: 0;
            transform: translateY(20px) translateX(0);
        }
        to {
            opacity: 1;
            transform: translateY(0) translateX(calc(var(--i) * 20px));
        }
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .space::before {
        width: 24px;
        height: 24px;
        padding: 8px;
        filter: blur(20px) saturate(5);
    }

    h3 {
        font-size: 1.2rem;
    }
}



h3 {
    text-align: center;
    color: #715c91;
}

.main {
    flex: 1; /* Allow it to grow and fill remaining body space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* This is the key to center vertically */
    position: relative;
    width: 100%;
}

.mainDescription {
    animation: appear 0.7s ease forwards 0.5s;
    transform: translateY(10px);
    opacity: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #d4c2ff;
    text-shadow: 0 0 10px rgba(160, 130, 255, 0.4);
}

.tools {
    margin-top: 200px;
    text-align: center;
    width: 100%;
    font-size: 1.1rem;
    color: #eae6f7;
    animation: appear 0.8s ease-out forwards 0.8s;
    opacity: 0;
    transform: translateY(10px);
}


.imageConverter {
    width: 100vw;
    height: 800px;
    overflow: hidden;
    position: relative; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15pt;
    border-radius: 12px;
    flex-wrap: wrap;
    padding: 0 20px;
    box-shadow: 0 0 20px #240055;  /* imageConverter */
    transition: all 0.5s ease;
}

.titleITB {
    top: 0px;
    position: absolute;
    background-color: #150033c4;
    box-shadow: 0 0 40px #150033;
    width: 120%;
    height: 150px;
    text-align: center;
    justify-content: center;
    display: flex;
    text-shadow: 0 0 2px #fff
}

.ITBimglogo {
    width: 80px;
    height: auto;
    margin-right: 10px;
    z-index: 1;
        position: relative; /* Keep it above glow */
}

.logoITB {
      position: relative; /* Ensure ::before is positioned relative to the container */
    margin: auto 0;
    z-index: 5;
    width: 100.39px;
    height: 100.39px;
}


.logoITB::before {
    content: '';
    position: absolute;
    top: 50%;   /* Position the center */
    left: 50%;  /* Position the center */
    width: 90px; 
    height: 90px;
    background-image: url(BloxdImageConverterLogo-min2.webp);
    background-size: cover;
    filter: blur(10px) saturate(2);
    z-index: 0;
    opacity: 0.8;
    transform: translate(-60.7%, -69%) scale(1); /* Keep centered */
    animation: smartGlow 5s ease-in-out infinite;
}

@keyframes smartGlow {
    0%, 100% {
        transform: translate(-60.7%, -69%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-60.7%, -69%) scale(1.15);
        opacity: 1;
    }
}

.imageBackground {
    visibility: visible;
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(800px * 4.5);
    height: calc(450px * 4.5);
    min-width: none;
    background-image: url(itbBackground2-min.webp);
    background-size: cover;
    background-color: #170038;
    background-position: center;
    transform: translate(-50%, -50%) rotate(15deg) translateY(400px);
    opacity: 0.8;
    z-index: -1;
    filter: blur(10px);
    backdrop-filter: blur(10px);
}

.goToImageConverter {
    position: relative;
    border: none;
    outline: none;
    padding: 10px;
    width: min-content;
    height: min-content;
    color: white;
    font-weight: 700;
    font-size: 25pt;
    margin-top: 30px;
    border-radius: 14px;
    background-color: #5d2ea5;
    box-shadow: 0 0 20px #5d2ea5;  /* button */
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    animation: pulse 2.5s infinite ease-in-out;
    overflow: hidden;
    z-index: 1;
}

.goToImageConverter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #8a52ff;
    border-radius: inherit;
    filter: blur(20px);
    opacity: 0.5;
    
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);

    }
    50% {
        transform: scale(1.1);
    }
}

.goToImageConverter:hover {
    transform: rotateZ(2deg) scale(1.1);
    background-color: #1c0144;
    box-shadow: 0 0 30px #1c0144;
}


.moreComing {
    background-size: 200% auto;
}

.moreComing {
    font-size: 2.2rem;
    font-weight: 800;
    width: 100vw;
    text-align: center;
    background-image: linear-gradient(45deg, #5d2ea5, #a787f2, #5d2ea5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    height: 200px;
    padding-top: 30px;
    position: relative;
    filter: drop-shadow(0 0 10px rgba(160, 130, 255, 0.7));
    margin-top: 40px;
    
    /* Combine both animations */
    animation: appear 0.8s ease-out forwards 1.1s, shimmer 50s infinite ease;
    opacity: 0;
    transform: translateY(10px);
}


/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -200%;
    }
    50% {
        background-position: 200%;
    }
    100% {
        background-position: -200%;
    }
}

.community-builds {
    max-width: 1000px;
    width: 90%;
    margin: 80px auto 30px;
    padding: 30px;
    background: linear-gradient(145deg, #14001d, #1e002f, #14001d);
    background-size: 300% 300%;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(144, 77, 255, 0.4);
    color: #e6dcff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: appear 0.8s ease-out forwards 1.1s;
    opacity: 0;
}

.community-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    justify-content: center;
}

.community-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: #cbb2ff;
    text-shadow: 0 0 12px rgba(180, 150, 255, 0.4);
    letter-spacing: 1px;
    margin: 0.67em 0;
}

.community-screenshots {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.screenshot {
    position: relative;
    width: 22%;
    text-align: center;
}

.screenshot img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 10px #6f3edc88;
    transition: transform 0.3s ease;
}

.screenshot p {
    margin: 10px 0 0;
    font-size: 1rem;
    color: #e0d0ff;
}

.screenshot.placeholder {
    position: relative;
}

.screenshot.placeholder .tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #210c33;
    color: #e0d0ff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(144, 77, 255, 0.4);
    font-size: 0.9rem;
    width: 200px;
    text-align: center;
    z-index: 10;
}

.screenshot.placeholder:hover .tooltip,
.screenshot.placeholder:active .tooltip {
    display: block;
}

@media (max-width: 768px) {
    .community-screenshots {
        flex-direction: column;
        align-items: center;
    }

    .screenshot {
        width: 80%;
    }

    .screenshot img {
        height: 200px;
    }
}

.buttonsTop {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(to right, #1a002b, #11001e);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  gap: 15px; /* EVEN spacing between images */
}


.buttonsTop img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.buttonsTop img:hover {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.discord-button {
    margin-left: 0 !important;
}

.navButton {
    background-color: transparent;
    border: none;
    margin-left: 50px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdownButton {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.dropdownButton img {
    width: 50px;
    height: auto;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.dropdownButton img:hover {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.dropdownContent {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(145deg, #14001d, #1e002f, #14001d);
    min-width: 160px;
    box-shadow: 0 0 20px rgba(144, 77, 255, 0.4);
    z-index: 1000;
    border-radius: 10px;
    padding: 10px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdownContent,
.dropdownContent.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdownContent a {
    color: #e0d0ff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(130, 90, 210, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdownContent a:hover {
    background-color: #210c33;
    color: #e2c6ff;
    text-shadow: 0 0 8px rgba(179, 112, 255, 0.5);
}

@media (max-width: 550px) {
    .dropdownContent {
        min-width: 120px;
        right: -10px;
    }

    .dropdownContent a {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .navButton {
        margin-left: 0;
    }
}

.bloxdToolsNav {
    width: 50px;
    height: 50px;
    margin-right: auto;
    display: flex;
    border-radius: 50%;
}

@media (max-width: 550px) {
    .bloxdToolsNav {
        display: none;
    }
    .buttonTop img {
        margin-left: 0;
    }
    .navButton {
        margin-left: 0;
    }
    .buttonsTop {
        align-items: flex-start;
        justify-content: space-evenly;
        display: flex;
    }
}

.updateSelection {
  position: relative;
  display: flex;
  justify-content: space-around;
  border-bottom: 2px solid #444; /* Optional bottom border */
  margin-bottom: 20px;
}


.updateImg {
    margin-top: 5px;
    margin-bottom: 12px;
}

.updateEntry {
    margin-bottom: 20px;
}


.tab {
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.indicator {
  position: absolute;
  bottom: 0;
  height: 4px;
  background: #a887ff;
  border-radius: 2px;
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 0;
  width: 15px;
  left: 0;
}

.selectedUpdate {
    display: flex !important;
    flex-direction: column;
}

.majorUpdates, .minorUpdates, .bugFixes {
    display: none;
}

.creditsPage, .privacypolicyPage, .updateLog {
    background-color: #0b0114;
    z-index: 99999;
    box-shadow: 0 0 30px rgba(11, 1, 20, 1);
    position: fixed;
    display: flex;
    flex-direction: column;
    width: 90vw; /* Scale with viewport width */
    max-width: 700px; /* Cap width for larger screens */
    min-width: 280px; /* Prevent overly narrow elements */
    max-height: 90vh; /* Limit height to viewport */
    overflow-y: auto; /* Allow scrolling for overflow */
    border-radius: 10px;
    padding: 20px;
    opacity: 0;
    transition: transform 0.5s ease 0.3s, opacity 0.5s ease 0.3s;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.privacypolicyPage {
    overflow: hidden !important;
}

/* .privacypolicyPage {
    margin-left: auto;
    margin-right: auto;
} */

a {
    color: rgb(156, 75, 255)
}

.subcreditPage, .subSectionPrivacy, .updateSmallBox {
    background-color: #210c33;
    margin-bottom: 7px;
    padding: 10px;
    text-align: left;
    border-radius: 10px;
}

a:active {
  color: #200044; /* Color when the link is clicked */
}

.button {
    text-wrap: nowrap;
}

.confirmPrivacyPolicy {
    background-color: #005508;
    border: 2px solid #00c503;
    box-shadow: 0 0 10px rgba(0, 255, 34, 0.7);
    margin: 10px;
    padding: 25px 30px;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 12pt;
    touch-action: manipulation; /* Updated: Improve touch responsiveness */
    min-height: 44px; /* Updated: Ensure touch target size */
}



.confirmPrivacyPolicy:hover,
.confirmPrivacyPolicy:active { /* Updated: Added :active for touch */
   background-color: #003700;
    border: 2px solid #008712;
    transform: scale(1.1);
}

.unchecked {
    background-color: #550000;
    border: 2px solid #c50000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.unchecked:hover,
.unchecked:active { /* Updated: Added :active for touch */
   background-color: #550000;
    border: 2px solid #c50000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    transform: scale(1);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    background: transparent;
}

#bgLines {
    z-index: -2; /* lines behind particles */
}





.smallDescriptionSection {
    max-width: 1000px;
    width: 90%;
    margin: 80px auto 150px;
    padding: 30px;
    background: linear-gradient(145deg, #14001d, #1e002f, #14001d);
    background-size: 300% 300%;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(144, 77, 255, 0.4);
    color: #e6dcff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: appear 0.8s ease-out forwards 1.3s, shimmer 30s infinite linear;
    opacity: 0;
    transform: translateY(10px);
}

.smallDescriptionSection p {
    font-size: 1.1rem;
			line-height: 1.75;
			text-align: center;
			color: #e0d0ff;
			text-shadow: 0 0 5px rgba(130, 90, 210, 0.2);
}