/* -------------------- Fonts -------------------- */
@font-face {
    font-family: 'CurlzMT';
    src: url('fonts/CurlzMT.ttf') format('truetype');
}

/* -------------------- Reset & Body -------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #aaf8ff;
    font-family: Arial, sans-serif, 'CurlzMT', cursive, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-size: 16px;
    cursor: url('img/pizza.png'), auto;
}

a, button, img {
  cursor: url('img/pizza.png'), pointer !important;
}

/* -------------------- Page Wrapper -------------------- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    padding-top: 70px; 
    gap: 0;
    position: relative;
}

/* -------------------- Main Box -------------------- */
.main-box {
    position: relative;
    width: 1200px;
    margin: 40px auto;
    background-color: #fff;
    border: 5px solid #00ffff;
    outline: 5px solid #000;
    outline-offset: -10px;
    padding: 20px;
    z-index: 1;
    transform: scale(0.9);
    transform-origin: top center;
}

/* Top border glued outside main-box */
.border-top {
    position: absolute;
    top: -25px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('img/curtain-top.png');
    background-repeat: repeat-x;
    background-size: auto 20px;
    z-index: 2;
}

/* Left border glued to main-box */
.border-left {
    position: absolute;
    top: 0;
    left: -25px;
    width: 20px;
    height: 100%;
    background-image: url('img/curtain-left.png');
    background-repeat: repeat-y;
    background-size: 20px auto;
    z-index: 2;
}

/* Right border glued to main-box */
.border-right {
    position: absolute;
    top: 0;               /* start at top of main-box */
    right: -25px;         /* negative = outside main-box */
    width: 20px;          /* thickness of border */
    height: 100%;         /* same height as main-box */
    background-image: url('img/curtain-right.png');
    background-repeat: repeat-y;   /* tile vertically */
    background-size: 20px auto;    /* scale tile width, let height adjust */
    z-index: 2;           /* above background but below main content */
}

/* Bottom border glued to main-box */
.border-bottom {
    position: absolute;
    bottom: -25px;        /* negative = outside main-box */
    left: 0;              /* align with left edge of main-box */
    width: 100%;          /* same width as main-box */
    height: 20px;         /* small tile height */
    background-image: url('img/curtain.png'); /* your bottom curtain image */
    background-repeat: repeat-x;              /* tile horizontally */
    background-size: auto 20px;               /* scale image to fit height */
    z-index: 2;           /* above background but below main content */
}

/* -------------------- Header -------------------- */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 50px;
    font-family: 'CurlzMT', cursive;
    color: #099aca;
}

.subtitle {
    font-size: 14px;
    color: #555;
}

/* -------------------- Kinsona -------------------- */
.right-overlay {
    position: fixed;       /* stays fixed while scrolling */
    top: 70%;              /* vertical center */
    right: -2%;              /* stick to right side */
    transform: translateY(-50%); /* truly center vertically */
    height: 500px;         /* adjust size */
    z-index: 5;            /* below header (header z-index: 9999) */
    pointer-events: none;  /* optional: lets clicks pass through */
}

/* -------------------- Content -------------------- */
.content {
    display: flex;
    gap: 20px;
}

.left-column,
.right-column {
    width: 25%;
}

.middle-column {
    width: 50%;
}

.info-box {
    padding: 15px;
    line-height: 1.5;
    text-align: center;
}

/* Generic boxes inside content */
.nav-box,
.updates-box,
.cbox,
.song-box {
    border: 1px solid #00ffff;
    padding: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.cbox {
    height: 250px;
}

.song-box p {
    text-align: left;
}

/* -------------------- Friends -------------------- */
.gif-row {
  display: flex;       /* horizontal row */
  gap: 20px;           /* space between each GIF+text */
  justify-content: center; /* optional: center the row */
}

.gif-row a {
  display: flex;
  flex-direction: column; /* stack GIF above text */
  align-items: center;    /* center text under GIF */
  text-decoration: none;  /* remove underline */
  color: inherit;         /* keep default text color */
}

.gif-row img {
  width: 120px; /* adjust GIF size */
  height: auto;
  cursor: pointer; /* make it look clickable */
}

.gif-row p {
  margin: 5px 0 0 0; /* small space above text */
  font-size: 14px;
  text-align: center;
}


a:hover .tiny-gif {
  transform: scale(1.1); /* 10% bigger */
}

/* -------------------- Interests -------------------- */
.side-box {
    background-color: #fff;
    border: 1px solid #00ffff;   /* inner cyan border */
    outline-offset: -8px;
    padding: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow-y: auto; /* scrollbar if needed */
    scrollbar-width: thin;        /* for Firefox: make scrollbar thinner */
    scrollbar-color: #00ffff #000; /* scrollbar color: thumb & track */
}

.side-box h2 {
    text-align: center;
}

.genres-box {
    height: 220px;      /* change this to whatever you like */
    overflow-y: auto;
}

.artists-box {
    height: 220px;      /* change this to whatever you like */
    overflow-y: auto;
}

.characters-box {
    height: 200px;      /* change this to whatever you like */
    overflow-y: auto;
}

/* -------------------- Friends -------------------- */
.info-box {
    text-align: left;
}

.info-box h2{
    text-align: center;
}

/* -------------------- Updates -------------------- */
.updates-box {
    border: 1px solid #00ffff; /* your existing border */
    padding: 5px 4px;
    margin-bottom: 20px;
    max-height: 250px;  /* limit the visible height */
    overflow-y: auto;   /* show vertical scrollbar if content overflows */
    scrollbar-width: thin;        /* for Firefox: make scrollbar thinner */
    scrollbar-color: #00ffff #000; /* scrollbar color: thumb & track */
}

.updates-box p {
    margin-bottom: 8px; /* space between each paragraph */
    line-height: 1.4;   /* optional: makes text more readable */
    text-align: left;
}

/* Optional: custom scrollbar for Webkit (Chrome, Edge, Safari) */
.updates-box::-webkit-scrollbar {
    width: 8px;
}

.updates-box::-webkit-scrollbar-track {
    background: #000;
}

.updates-box::-webkit-scrollbar-thumb {
    background-color: #00ffff;
    border-radius: 4px;
}

/* -------------------- Navigation -------------------- */
.nav-box ul {
    list-style: none;
}

.nav-box li {
    margin: 6px 0;
}

.nav-box a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.1s;
    padding: 5px 4px;
}

.nav-box a:hover {
    animation: shake 0.3s infinite;
}

/* Section titles */
h2 {
    font-size: 30px;
    margin-bottom: 8px;
    font-family: 'CurlzMT', cursive;
    color: #099aca;
}

/* -------------------- Stamp Box -------------------- */
.stamp-box {
    width: 100%;
    margin: 0;
    padding: 10px;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.stamp-box img {
    width: 100px;
    height: auto;
}

/* -------------------- Music Box -------------------- */
.music-box {
    width: 100%;
    height: 80px;
    margin: 0 auto;
    background-color: #fff;
    border: 2px solid #00ffff;   /* inner border (cyan) */
    outline: 6px solid #000;     /* outer border (black) */
    outline-offset: -8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    gap: 5px;
    position: relative;
}

/* Music controls layout */
.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Play / Next buttons custom look */
.music-controls button {
    background-color: #fff;       /* white background */
    color: #000;                  /* black text/icon */
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.music-controls button:hover {
    background-color: #00ffff;
    transition: 0.0s;
}

/* Volume slider custom style */
#volume-slider {
    width: 80px;
    -webkit-appearance: none;
    background: #000;          /* track background */
    height: 6px;
    border-radius: 3px;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #00ffff;       /* thumb color */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;   /* optional white border */
    margin-top: -4px;          /* align with track */
}

#volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
}

/* Now playing scrolling text */
.now-playing {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
    margin-left: 10px;
    color: #000;
    padding: 2px 5px;
}

.now-playing span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 15s linear infinite;
}

/* Progress bar custom style */
#progress-bar {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #000;        /* track background */
    border-radius: 4px;
    margin-top: 5px;
}

#progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #00ffff;     /* progress thumb */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
    margin-top: -3px;        /* center on track */
}

#progress-bar::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #000;
}

/* Hide default audio element */
#audio-player {
    display: none;
}

/* -------------------- Top Banner -------------------- */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #000;
    color: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.scrolling-text {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    font-size: 60px;
    font-family: 'CurlzMT', cursive;
    animation: scroll-top-banner 15s linear infinite;
}

/* -------------------- Pattern Container -------------------- */
.pattern-container {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('img/curtain.png');
    background-repeat: repeat-x;
    background-position: top left;
    background-size: auto 20px;
    z-index: 9999;
}

.pattern-container .pattern-img {
    height: 100%;
    display: inline-block;
    animation: scroll-pattern 10s linear infinite;
}

/* -------------------- Animations -------------------- */
@keyframes scroll-text {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-top-banner {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

@keyframes scroll-pattern {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}


@keyframes shake {
    0% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
    100% { transform: translateX(0); }
}


/* -------------------- Stars -------------------- */
.falling-star {
    position: fixed;
    top: -40px;
    width: 16px;
    height: 16px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 9998;
    animation-name: fall;
    animation-timing-function: linear;
}

@keyframes fall {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(110vh);
    }
}