/* Body */

body {
    margin: 0;
    overflow-x: hidden;
    padding-bottom: 70px;

    font-family: "Press Start 2P", monospace;

    background: linear-gradient(
        45deg,
        #ffd1f7,
        #cceeff,
        #fff0b3,
        #ffd1f7
    );

    background-size: 400% 400%;

    animation: bgmove 12s linear infinite;

    transition:
        background 1.2s ease,
        filter 0.6s ease;

    color: #5a1f3d;
}

@keyframes bgmove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.float {
    position: fixed;
    font-size: 22px;
    pointer-events: none;
    z-index: 1;

    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 14px;
    transform: translate(-50%, -50%);
}

.site_wrap {

    width: 920px;
    margin: 20px auto;
    background: rgba(255,255,255,0.82);
    border: 4px dotted #ff66cc;
    box-shadow:
        0 0 20px rgba(255,102,204,0.4),
        0 0 40px rgba(255,182,193,0.25);

    transform: rotate(-0.4deg);

    overflow: visible;
    position: relative;
}

/* Banner */

.header {

    position: relative;
    overflow: visible;
    padding: 24px;
    text-align: center;
    font-size: 24px;
    color: #ff3399;
    border-bottom: 4px dotted #ff66cc;

    background-image:

        url("https://khreno.neocities.org/sparkle.gif"),

        linear-gradient(
            110deg,
            #ff62a8,
            #ffb562,
            #98fd43,
            #fdf843
        );

    background-size:
        80px,
        cover;

    background-repeat:
        repeat,
        no-repeat;
    background-blend-mode: screen;

    text-shadow:
        0 0 10px white,
        0 0 20px rgba(255,79,163,0.4);
}

.blink {
    color: red;
    animation: blink 1s steps(2,start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

/* Floating Buddy */

.banner-mascot {
    position: absolute;
    right: -70px;
    top: 40px;
    z-index: 999;
    pointer-events: none;
}


.mascot-float {
    display: inline-block;
    animation: mascotFloat 3s ease-in-out infinite;
}


.banner-mascot img {

    width: 200px;
    height: auto;
    display: block;

    filter:
        drop-shadow(0 0 8px rgba(255,255,255,0.7))
        drop-shadow(0 0 16px rgba(255,182,193,0.6));

    transition: transform 0.25s ease, filter 0.25s ease;

    pointer-events: auto;
}

/* hover reaction */
.banner-mascot img:hover {

    transform:
        translateY(-10px)
        scale(1.18)
        rotate(-10deg);

    filter:
        drop-shadow(0 0 10px rgba(255,255,255,0.9))
        drop-shadow(0 0 25px rgba(255,105,180,0.9))
        drop-shadow(0 0 45px rgba(255,182,193,0.6));
}

/* FLOAT ANIMATION */
@keyframes mascotFloat {

    0%   { transform: translateY(0px) rotate(-2deg); }
    50%  { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

@keyframes floatbuddy {

    0%   { transform: translateY(0px) rotate(-2deg); }
    50%  { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

.main {
    display: flex;
}

/* Sidebar */

.sidebar {

    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 14px;

    background:
        repeating-linear-gradient(
            45deg,
            #ffe0f0,
            #ffe0f0 10px,
            #fff0b3 10px,
            #fff0b3 20px
        );

    border-right:
        3px dashed #ff66cc;
}

/* Nav Tabs */

.nav {
  
    width: 70%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    padding: 20px;
    text-align: center;

    background: white;
    border: 3px solid #ff66cc;
    cursor: pointer;
    color: #ff3399;

    transition: 0.2s ease;
}

/* individual rotations */
.nav:nth-child(1) {
    transform: rotate(-2deg);
}

.nav:nth-child(2) {
    transform: rotate(2deg);
}

.nav:nth-child(3) {
    transform: rotate(-1deg);
}


/* each tab jiggles differently */
.nav:nth-of-type(1):hover {
    transform: scale(1.08) rotate(-6deg) translateY(-2px);
}

.nav:nth-of-type(2):hover {
    transform: scale(1.08) rotate(6deg) translateX(2px);
}

.nav:nth-of-type(3):hover {
    transform: scale(1.08) rotate(-2deg) translateY(-3px);
}

/* ACTIVE (clicked) tab stays tilted */
#tab1:checked ~ .main .sidebar label[for="tab1"] {
    transform: rotate(-6deg) scale(1.05);
    background: #ffe6f7;
}

#tab2:checked ~ .main .sidebar label[for="tab2"] {
    transform: rotate(6deg) scale(1.05);
    background: #e6ffe8;
}

#tab3:checked ~ .main .sidebar label[for="tab3"] {
    transform: rotate(-2deg) scale(1.05);
    background: #fff6cc;
}


/* Badges */

.badges {
    margin-top: 15px;
}

.badges img {

    width: 80px;
    margin: 4px;
    transform: rotate(-3deg);
    border: 2px solid white;
}

/* Text Box */

.content {

    display: flex;
    flex-direction: column;


    flex: 1;
    padding: 24px;
    min-height: 500px;

    background:
                linear-gradient(
            180deg,
            rgba(255,240,248,0.82),
            rgba(255,250,210,0.75),
            rgba(230,255,230,0.72)
        );

    border: 3px solid #ff9ad5;


    box-shadow:
        inset 0 0 18px rgba(255,255,255,0.7),   /* INNER GLOW */
        inset 0 0 35px rgba(255,182,193,0.35),
        0 0 18px rgba(255,105,180,0.18);


    line-height: 1.8;
}

.content::before,
.content::after {

    position: absolute;
    font-size: 18px;

    pointer-events: none;

    text-shadow:
        0 0 6px white,
        0 0 10px rgba(255,255,255,0.8);
}


.content > * {
    width: 100%;
    flex-shrink: 0;
}


.links_img {
    width: 80px !important;
    height: auto;

    margin: 4px;

    border: 2px solid white;

    transform: rotate(-3deg);

    display: inline-block;
}

.img_row {
  
      flex-wrap: wrap;
  
  display: flex;
  gap: 10px; 
  align-items: center;
  padding: 0px;
}

.float img {
    width: 140px;
}

.floatbuddy {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    pointer-events: none;
    animation: floatbuddy 3s ease-in-out infinite;
}

.floatbuddy img {
    width: 200px;
    display: block;
}

/* Top left Star*/
.content::before {

    content: "★";
    top: 8px;
    left: 10px;

    color: #ff66cc;

    transform: rotate(-12deg);
}


.hover-card {
    position: relative;
    display: inline-block;
    width: 62px;
    text-decoration: none;
}

/* BOTH IMAGES STACKED */
.hover-card img {
    width: 62px;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;

    animation: floaty 2.5s ease-in-out infinite;
}

@keyframes floaty {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* hover image hidden by default */
.hover-card .hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.hover-card:hover .normal {
    opacity: 0;
    transform: scale(1.1);
}

.hover-card:hover .hover {
    opacity: 1;
    transform: scale(1.2);
}


.hover-card:hover img {
    animation-play-state: paused;
}


/* Section Headers */

.section_header {


flex-shrink:0;
width: 100%;



    margin: 14px 0 10px 0;
    padding: 10px;
    display: block;
    clear: both;
    flex-basis: 100%;
    text-align: center;
    font-size: 12px;

    color: #ff3399;

    background:
        repeating-linear-gradient(
            45deg,
            #ffe0f0,
            #ffe0f0 10px,
            #fff0b3 10px,
            #fff0b3 20px
        );

    border:
        3px solid #ff66cc;
    border-radius: 14px;
    box-shadow:
        inset 0 0 10px rgba(255,255,255,0.6),
        0 0 10px rgba(255,182,193,0.3);

    transform: rotate(-1deg);
}

.section_header::before {
    content: "★ ";
}

.section_header::after {
    content: " ★";
}

.img_row + .section_header {
  display: block;
  width: 100%;
  margin-top: 20px;
}

.spacer {
  height: 100px;
  width: 100%;
}

.spacerr {
  height: 10px;
  width: 100%;
}

/* Tabs */

.cute_img {

    width: 100px;
    border: 4px solid #ff66cc;
    border-radius: 20px;
    padding: 6px;
    background: #fff0f8;
    box-shadow:
        0 0 10px rgba(255,102,204,0.4);

    display: block;
    margin: 10px auto;
    transition: 0.2s ease;
}

.cute_img:hover {

    transform: scale(1.05);
    box-shadow:
        0 0 16px rgba(255,102,204,0.7);
}

.page {
    display: none;
}

#tab1:checked ~ .main .p1 {
    display: block;
}

#tab2:checked ~ .main .p2 {
    display: block;
}

#tab3:checked ~ .main .p3 {
    display: block;
}


/*  scrollbar  */

::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(
        180deg,
        #ffd1e8,  /* soft pink */
        #d6ffe0   /* mint green */
    );

    border-radius: 999px;

    box-shadow:
        inset 0 0 6px rgba(255, 140, 180, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #ff9f6e,  /* warm orange */
        #ff5fa2   /* pink pop */
    );

    border-radius: 999px;

    border: 2px solid #f6fff8;

    box-shadow:
        0 0 10px rgba(255, 120, 160, 0.35),
        inset 0 0 6px rgba(255, 255, 255, 0.25);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ff7b4a,
        #ff3f93
    );

    box-shadow:
        0 0 14px rgba(255, 90, 150, 0.6),
        0 0 10px rgba(120, 255, 180, 0.3);
}

::-webkit-scrollbar-corner {
    background: transparent;
}



/* Music Player */

.music-toy {

    margin-top: 18px;

    padding: 12px;

    background:
        linear-gradient(
            180deg,
            #ffe6f7,
            #fff6cc
        );

    border:
        3px solid #ff4fa3;

    border-radius: 16px;

    box-shadow:
        0 0 10px rgba(255,79,163,0.4),
        0 0 20px rgba(255,182,193,0.3);

    transform: rotate(-1deg);

    transition:
        box-shadow 0.5s ease,
        transform 0.3s ease;
}

.music-toy:hover {
    transform: rotate(1deg) scale(1.02);
}

.top-row {

    display: flex;
    align-items: center;

    gap: 8px;
}

.note {
    font-size: 18px;
}

.now {
    flex: 1;
}

.label {

    font-size: 8px;
    color: #ff4fa3;
    margin-bottom: 4px;
}

.song {

    font-size: 10px;
    color: #5a1f3d;
    word-break: break-word;
}

.play {

    width: 32px;
    height: 32px;
    border: none;
    border-radius: 10px;
    background: #ff4fa3;
    color: white;
    cursor: pointer;
    font-family: inherit;
    box-shadow:
        0 4px 0 #c2185b;
}

.play:active {

    transform: translateY(2px);
    box-shadow: none;
}

.cute-bar {

    margin-top: 10px;
    height: 8px;
    background: #ffd1e8;
    border-radius: 999px;
    overflow: hidden;
}

.fill {

    width: 0%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #ff4fa3,
            #ffd1f7,
            #ffb3d9
        );

    transition: width 0.2s linear;
}

.controls {

    margin-top: 8px;
    text-align: center;
    font-size: 7px;
    color: #a84a7a;
}


/* Footer */

.footer {

    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 928px;
    box-sizing: border-box;
    padding: 12px;
    text-align: center;
    font-size: 10px;
    color: #ff3399;

    border-top: 3px dashed #ff66cc;
    background: rgba(255,240,248,0.92);
    backdrop-filter: blur(4px);
    z-index: 9999;
    box-shadow:
        0 0 12px rgba(255,102,204,0.35);
}

.footer.playing {

    box-shadow:
        0 0 15px rgba(255,79,163,0.6),
        0 0 30px rgba(255,182,193,0.5),
        0 0 50px rgba(255,102,204,0.35);

    border-top: 3px solid #ff4fa3;

    animation: footerGlow 1.8s ease-in-out infinite;
}

@keyframes footerGlow {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
    100% {
        filter: brightness(1);
    }
}

/* COPY BOX  */
.copy_box {
    width: 120px;
     height: 40px;
    padding: 6px;
    margin-top: -205px;

        display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    background: rgba(255,255,255,1);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 12px;

    backdrop-filter: blur(6px);
}

.copy_box textarea {
    width: 100%;
    height: 30px;
    margin: 0;
    padding: 10px;

    font-size: 10px;
    font-family: monospace;

    border: 1px solid #e8ecff;
    border-radius: 6px;

    resize: none;
    overflow: hidden;

    box-sizing: border-box;
}

.copy_box button {
    margin-top: 4px;
    padding: 3px 6px;

    font-size: 8px;
    font-family: inherit;

    border: none;
    border-radius: 6px;

    background: #ff4fa3;
    color: white;

    cursor: pointer;
}

.copy_box button:hover {
    background: #7CFF6B;
}


/* POPUP */
#copiedPopup {
    margin-top: 10px;
    font-size: 12px;
    color: #6FA8FF;

    opacity: 0;
    transform: translateY(5px);

    transition: 0.3s ease;
}

/* =========================
   Mobile
========================= */
@media (max-width: 768px) {
    .site_wrap {
        width: 95%;
        transform: none;
        margin: 10px auto;
    }

    .main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 3px dashed #ff66cc;
    }

    .content {
        padding: 16px;
    }
    
    .img_row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    gap: 10px;

    margin: 6px 0;
    padding: 0;

    max-width: 100%;
}

    .header {
        font-size: 18px;
        padding: 18px;
    }

    .banner-mascot {
        right: 10px;
        top: 10px;
    }

    .banner-mascot img {
        width: 90px;
    }

    .floatbuddy {
        right: 8px;
        left: auto;
        bottom: 60px;
    }

    .floatbuddy img {
        width: 80px; 
        filter:
            drop-shadow(0 0 6px rgba(255, 200, 120, 0.5))
            drop-shadow(0 0 12px rgba(255, 160, 80, 0.3));
    }
}

    .music-toy {
        transform: none;
    }

    .nav {
        transform: none;
    }

    .footer {
        width: 100%;
        left: 0;
        transform: none;
    }
    
    .copy_box {
        width: 95%;
        max-width: 160px;

        padding: 5px;

        margin: 8px auto;
    }

    .copy_box textarea {
        width: 100%;
        height: 24px;

        font-size: 7px;
        padding: 3px;
    }

    .copy_box button {
        width: 100%;

        padding: 5px;

        font-size: 7px;
    }
    
        .links_img {

        width: 50px !important;

        margin: 2px;

        border: 1px solid white;

        transform: rotate(-2deg);
    }
}  