body {
    margin: 0;
    background: #f4e9ff;
    font-family: 'Courier New', monospace;
    color: #444;
    image-rendering: pixelated;
}

/* cute floating hearts */
@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-150px) scale(1.3); opacity: 0; }
}

/* background decorations */
.heart {
    position: fixed;
    bottom: -20px;
    font-size: 20px;
    animation: float 6s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

/* rainbow spinning star */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- HEADER ---------- */
header {
    text-align: center;
    padding: 30px;
}
h1 {
    font-size: 40px;
    color: #ff7cc6;
    text-shadow: 2px 2px #fff;
}

/* ---------- NAVBAR ---------- */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

nav a {
    background: #ffe9f8;
    border: 2px solid #ffb8e8;
    padding: 8px 14px;
    border-radius: 10px;
    color: #ff5daa;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px #ffb3df;
    transition: all 0.2s;
}

nav a:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ---------- CONTENT BOXES ---------- */
.box {
    width: 90%;
    max-width: 650px;
    background: #fff9ff;
    margin: 20px auto;
    padding: 20px;
    border: 3px solid #ffd2ef;
    border-radius: 10px;
    box-shadow: 0 0 0 4px #ffe5f7;
}

.box h2 {
    color: #ff7cc6;
    margin-top: 0;
}

.pixel-frame {
    border: 6px solid #ffbfea;
    padding: 10px;
    width: fit-content;
    margin: 10px auto;
    background: #fff;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    margin: 50px 0 20px;
    color: #bbb;
    font-size: 14px;
}
