/* ---------- Page ---------- */
body {
    background: url('jodioawe.jpg') no-repeat center;
    background-size: cover; /* cover the screen without dark overlay */
    font-family: "Comic Sans MS", cursive;
    color: purple;
    margin: 0;
    padding: 0;
}

/* Glitter overlay stays semi-transparent if desired */
.bg-glitter {
    position: fixed;
    inset: 0;
    background: url('jodioawe.jpg') no-repeat center;
    background-size: cover;
    z-index: -1;
    opacity: 100; /* you can reduce opacity or set to 0 for full brightness */
}
/* MAIN BOX - allow scrolling */
.main-box {
    position: relative; /* was fixed, now relative to allow scrolling */
    margin: 20px auto;  /* center horizontally with margin */
    width: 900px;
    max-width: 95vw;
    background: rgba(0, 0, 0, 0.7);
    border: 6px ridge purple;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
    z-index: 10;
}

/* Optionally, scroll inside main box if content exceeds height */
.main-box-inner {
    max-height: 80vh;  /* adjust based on screen */
    overflow-y: auto;
    width: 100%;
}
.banner img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

/* Scrolling updates */
.scrolling-updates {
    background: rgba(177, 9, 219, 0.8);
    border: 3px ridge purple;
    color: black;
    font-size: 14px;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1.2em;
    padding: 5px;
    width: 90%;
    margin: 10px auto;
}

.scrolling-updates p {
    display: inline-block;
    animation: scrollText 20s linear infinite;
}

@keyframes scrollText {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Grid */
.grid-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
    margin: 20px 0;
}

.left-column-wrapper,
.right-column-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Boxes */
.box {
    background: rgba(177, 9, 219, 0.8);
    border: 4px groove purple;
    border-radius: 12px;
    padding: 12px;
    width: 280px;
    min-height: 120px;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    overflow: hidden;
    color: black;
    font-family: "Comic Sans MS", cursive;
    box-shadow: 0 4px 12px rgba(177, 9, 219, 0.8);
}

.box:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px purple, 0 0 30px #C347FF, 0 0 45px #C347FF;
}

/* Profile pictures */
.profile-pic {
    width: 100%;
    max-width: 180px;
    height: auto;
    display: block;
    border: 3px ridge purple;
    border-radius: 8px;
}

/* Blinkies inside boxes */
.box img.blinkie {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 100px;
    opacity: 0.28;
    z-index: 1;
    pointer-events: none;
    animation: floatBlinkie 3.2s infinite ease-in-out;
}

@keyframes floatBlinkie {
    0% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(8px,-6px) rotate(4deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}

/* Title bar */
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: purple;
    color: black;
    font-weight: bold;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 4px ridge black;
    cursor: default;
    padding: 5px 10px;
    width: 100%;
}

.title-bar .close-btn {
    cursor: pointer;
    font-size: 18px;
    line-height: 18px;
}

/* Navigation tabs */
.navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.navigation ul li a img {
    display: block;
    max-width: 100%;
    border: 2px ridge purple;
}

.navigation ul li a img:hover {
    border-color: limegreen;
    transform: scale(1.05);
    transition: 0.2s ease-in-out;
}

/* Chaos floating items fixed */
.chaos {
    position: fixed;
    width: 80px;
    pointer-events: none;
    opacity: 0.85;
    z-index: 8;
    animation: drift 5s infinite ease-in-out;
}

.chaos:nth-of-type(1) { top:50px; left:50px; animation-duration:5s; }
.chaos:nth-of-type(2) { top:100px; left:200px; animation-duration:6s; }
.chaos:nth-of-type(3) { top:150px; left:100px; animation-duration:4.6s; }
.chaos:nth-of-type(4) { top:120px; left:400px; animation-duration:7s; }
.chaos:nth-of-type(5) { top:200px; left:500px; animation-duration:5.4s; }
.chaos:nth-of-type(6) { top:180px; left:450px; animation-duration:6.1s; }

@keyframes drift {
    0% { transform: translate(0,0) rotate(0deg); }
    25% { transform: translate(12px,-18px) rotate(8deg); }
    50% { transform: translate(-18px,12px) rotate(-8deg); }
    75% { transform: translate(10px,16px) rotate(6deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}

.gallery-img {
  width: 100%;
  max-width: 250px;
  margin: 5px auto;
  display: block;
  border: 2px ridge purple;
  border-radius: 8px;
}
.bouncy {
  position: fixed;
  width: 90px;     /* change size if needed */
  height: auto;
  pointer-events: none;
  z-index: 9999;
}