/* ---------- Page ---------- */
body {
    margin: 0;
    background: #000 url('background.gif') no-repeat center center;
    background-size: cover;  /* makes the image fill the screen */
    font-family: "Comic Sans MS", cursive;
    color: hotpink;
}
.bg-glitter {
    position: fixed;
    inset: 0;
    background: url('background.gif') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 0.15;  /* optional for subtle glitter overlay */
}

/* Main box */
.main-box {
  width: 900px;
  margin: 40px auto;
  background: rgba(0,0,0,0.7);
  border: 6px ridge hotpink;
  display: flex;
  flex-direction: column;
  position: relative;
  height: auto;
}

/* Banner */
.banner img {
  width: 100%;
  height: 160px;  /* slightly taller banner */
  object-fit: cover;
  display: block;
}

/* Scrolling updates */
.scrolling-updates {
  background: rgba(0,0,0,0.6);
  border: 3px ridge hotpink;
  color: hotpink;
  font-size: 14px;
  font-weight: bold;
  padding: 0;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  line-height: 1.2em;
}

.scrolling-updates p {
  display: inline-block;
  padding-left: 100%;
  margin: 0;
  animation: scrollText 20s linear infinite;
}

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

/* Grid layout */
.grid-container {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-rows: auto;
  gap: 15px;
  padding: 10px;
  box-sizing: border-box;
}

/* Boxes */
.box {
  background: rgba(0,0,0,0.6);
  border: 4px groove hotpink;
  padding: 10px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Profile picture */
.profile-pic {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
  border: 3px ridge hotpink;
  border-radius: 8px;
}

/* Blinkies inside boxes */
.box img.blinkie {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100px;
  opacity: 0.28;
  z-index: 0;
  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); }
}

.box * { position: relative; z-index: 2; }

/* Grid placement */
.bio       { grid-column: 1; grid-row: 1; min-height: 260px; }
.navigation{ grid-column: 1; grid-row: 2; min-height: 160px; }
.welcome   { grid-column: 2; grid-row: 1 / 3; min-height: 260px; }
.updates   { grid-column: 1 / 3; grid-row: 3; min-height: 250px; }

/* Chaos floating items */
.chaos {
  position: absolute;
  z-index: 1;
  width: 80px;
  pointer-events: none;
  opacity: 0.85;
  animation: drift 5s infinite ease-in-out;
}
.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: hotpink;
    color: black;
    font-weight: bold;
    padding: 4px 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom: 4px ridge black;
    cursor: default;
}

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


.chaos:nth-of-type(1){ top:140px; left:40px; animation-duration:5s; }
.chaos:nth-of-type(2){ top:220px; left:260px; animation-duration:6s; }
.chaos:nth-of-type(3){ top:320px; left:120px; animation-duration:4.6s; }
.chaos:nth-of-type(4){ top:200px; left:520px; animation-duration:7s; }
.chaos:nth-of-type(5){ top:360px; left:700px; animation-duration:5.4s; }
.chaos:nth-of-type(6){ top:300px; left:600px; 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); }
}

/* Close button functionality */
.title-bar .close-btn {
  cursor: pointer;
}


