@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400&family=Silkscreen&family=Nunito+Sans:ital,wght@0,400;1,400&display=swap');

@font-face {
    font-family: 'Spirit';
    src: url('spirit.ttf') format('truetype');
}

@font-face {
    font-family: 'KiwiSoda';
    src: url('KiwiSoda.ttf') format('truetype');
}

:root {
    --bg-url: url('https://foollovers.com/mat/cloth/g03-bg-cloth.gif');
    --box-color: #f0e5d8;
    --border-color: #dccfb8;
    --text-color: #7a6e5d;
    --inner-bg: url('https://api.imghippo.com/files/YOkc9767YGE.webp');
}

body {
    background-image: var(--bg-url);
    background-repeat: repeat;
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: sans-serif;
    cursor: url('https://64.media.tumblr.com/91d8c3dbc2ccfc2a095735aed0bb3a5a/1ae51b1aeb933c49-5a/s1280x1920/4910301a61c1e0c22387f7373507b566666fb1aa.gif'), auto;
}

a, button, .nav-item, .win-btn, .chat-entry-name, .menu-item, #draw-color, #draw-size {
    cursor: url('https://64.media.tumblr.com/91d8c3dbc2ccfc2a095735aed0bb3a5a/1ae51b1aeb933c49-5a/s1280x1920/4910301a61c1e0c22387f7373507b566666fb1aa.gif'), pointer !important;
}

.neocities-box {
    background-color: var(--box-color);
    width: 850px;
    border: 6px solid var(--box-color);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Adjust for side nav */
    margin-right: 185px;
    margin-top: 40px; /* Space for the big logo */
}

.main-logo-container {
    position: absolute;
    top: -65px;
    left: 140px;
    z-index: 300;
    pointer-events: none;
    transform: rotate(-3deg);
}

.main-logo {
    font-family: 'KiwiSoda', cursive;
    font-size: 92px;
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1;
    letter-spacing: -2px;
    -webkit-text-stroke: 3px #e8a5a5;
    paint-order: stroke fill;
    text-shadow: 
        5px 5px 0px #e8a5a5,
        -1px -1px 0px #e8a5a5,
        1px -1px 0px #e8a5a5,
        -1px 1px 0px #e8a5a5,
        1px 1px 0px #e8a5a5;
    filter: drop-shadow(4px 4px 2px rgba(232, 165, 165, 0.3));
    user-select: none;
}

.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.username {
    font-family: 'Spirit', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    text-transform: lowercase;
    z-index: 1;
}

.timer {
    font-family: 'Fira Code', monospace;
    font-size: 10px;
    color: #a89a8a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.heart {
    font-size: 14px;
    color: #e8a5a5;
    line-height: 1;
    z-index: 1;
}

.box-content {
    min-height: 280px;
    background-image: var(--inner-bg);
    background-repeat: repeat;
    background-size: auto;
    image-rendering: pixelated;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    padding: 15px 15px;
    gap: 12px;
}

.left-column, .right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.right-column {
    align-items: flex-start;
}

.overlap-deco {
    position: absolute;
    width: 110px;
    height: auto;
    left: -55px;
    top: 205px;
    z-index: 100;
    pointer-events: none;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.1));
}

.pin-deco {
    position: absolute;
    width: 220px;
    height: auto;
    right: -40px;
    top: 120px;
    z-index: 105;
    pointer-events: none;
    filter: drop-shadow(4px 4px 6px rgba(0,0,0,0.15));
    transform: rotate(-12deg);
}



.hello-frame, .spotlight-frame, .stamp-marquee-box {
    width: 280px;
}

.stamp-marquee-box {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 0;
    overflow: hidden;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.05));
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-track {
    display: flex;
    gap: 8px;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
    padding-left: 8px;
}

.marquee-track img {
    height: 45px;
    width: auto;
    image-rendering: pixelated;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 2px;
    filter: sepia(0.5) hue-rotate(-20deg) saturate(0.7) brightness(1.1) contrast(0.85) drop-shadow(1px 1px 0px rgba(232, 165, 165, 0.2));
    transition: filter 0.3s ease;
}

.marquee-track img:hover {
    filter: sepia(0) hue-rotate(0) saturate(1.2) brightness(1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.intro-frame {
    width: 530px;
}

.chat-frame {
    width: 350px;
}

.updates-box {
    width: 172px;
    border-radius: 8px;
    overflow: hidden;
}

.simple-box {
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.05));
    box-sizing: border-box;
}

.sliced-frame {
    display: grid;
    grid-template-columns: 20px 1fr 20px;
    grid-template-rows: 20px 1fr 20px;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0px rgba(0,0,0,0.05));
    position: relative;
}

.f-tl { background: url('top-left%20corner.gif') no-repeat center; background-size: 100% 100%; }
.f-t  { background: url('top%20edge%20(top%20horizontal).gif') repeat-x center; background-size: auto 100%; }
.f-tr { background: url('top-right%20corner.gif') no-repeat center; background-size: 100% 100%; }
.f-l  { background: url('left%20edge%20(left%20vertical).gif') repeat-y center; background-size: 100% auto; }
.f-r  { background: url('right%20edge%20(right%20vertical).gif') repeat-y center; background-size: 100% auto; }
.f-bl { background: url('bottom-left%20corner.gif') no-repeat center; background-size: 100% 100%; }
.f-b  { background: url('bottom%20edge%20(bottom%20horizontal).gif') repeat-x center; background-size: auto 100%; }
.f-br { background: url('bottom-right%20corner.gif') no-repeat center; background-size: 100% 100%; }

.f-c {
    background: white;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.spotlight-frame {
    animation: fadeIn 1s ease-in-out;
}

.chat-row {
    display: flex;
    gap: 8px;
    width: 530px;
    align-items: flex-start;
}

.update-list {
    font-size: 10px;
    padding: 8px !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.update-list::-webkit-scrollbar {
    width: 4px;
}

.update-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.update-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dotted var(--border-color);
    padding-bottom: 2px;
    color: #666;
}

.update-item span {
    font-weight: bold;
    color: #e8a5a5;
    font-family: 'Silkscreen', cursive;
}

.chat-container {
    padding: 8px !important;
}

.chat-messages {
    height: 100px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 8px;
    font-size: 11px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.chat-entry {
    margin-bottom: 6px;
    border-bottom: 1px dotted rgba(0,0,0,0.05);
    padding-bottom: 2px;
    word-wrap: break-word;
}

.chat-entry-name {
    font-weight: bold;
    color: #b88a8a;
    cursor: pointer;
    margin-right: 4px;
}

.chat-entry-name:hover {
    text-decoration: underline;
}

.chat-badge {
    height: 11px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
    position: relative;
    top: -1px;
}

.chat-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-form input {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 10px;
    padding: 4px 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    color: var(--text-color);
    outline: none;
}

.chat-input-row {
    display: flex;
    gap: 4px;
}

.chat-input-row input {
    flex-grow: 1;
}

#chat-send {
    font-family: 'Silkscreen', cursive;
    font-size: 9px;
    padding: 0 8px;
    background: var(--box-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

#chat-send:hover {
    background: white;
    filter: brightness(1.1);
}

.side-nav {
    position: absolute;
    right: -170px;
    top: 30px;
    width: 155px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
    z-index: 90;
    overflow: hidden;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.nav-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.nav-item {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Silkscreen', cursive;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 0px solid #e8a5a5;
    position: relative;
}

.nav-item:hover {
    background: #fff9f0;
    padding-left: 18px;
    color: #e8a5a5;
    border-left: 4px solid #e8a5a5;
}

.nav-item span {
    position: relative;
    z-index: 1;
}

.nav-item::after {
    content: '♡';
    position: absolute;
    right: 10px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    font-size: 12px;
}

.nav-item:hover::after {
    opacity: 1;
    transform: scale(1);
    right: 8px;
}

.nav-footer {
    padding: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 11px;
    text-align: center;
    color: #a89a8a;
    font-family: 'Nunito Sans', sans-serif;
    background: #fdfaf5;
}

@keyframes bounceIn {
    0% { transform: translateX(20px) scale(0.9); opacity: 0; }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

.inner-header {
    font-family: 'Silkscreen', cursive;
    font-size: 11px;
    padding: 3px 6px;
    background: var(--box-color);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
}

.window-controls {
    display: flex;
    gap: 3px;
}

.win-btn {
    width: 12px;
    height: 12px;
    border: 1px solid var(--border-color);
    background: #fff9f0;
    position: relative;
    cursor: default;
    border-radius: 2px;
}

.win-btn:hover {
    background: white;
}

.win-btn::before, .win-btn::after {
    content: '';
    position: absolute;
    background: var(--text-color);
    opacity: 0.7;
}

/* Minimize icon */
.win-btn.min::after {
    bottom: 2px;
    left: 2px;
    width: 6px;
    height: 1.5px;
}

/* Maximize icon */
.win-btn.max::after {
    top: 2px;
    left: 2px;
    width: 6px;
    height: 5px;
    border: 1px solid var(--text-color);
    background: transparent;
}

/* Close icon */
.win-btn.close::before, .win-btn.close::after {
    top: 5px;
    left: 2px;
    width: 6px;
    height: 1px;
}

.win-btn.close::before { transform: rotate(45deg); }
.win-btn.close::after { transform: rotate(-45deg); }

.inner-body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    padding: 12px;
    line-height: 1.5;
    color: #555;
}

.intro-gif {
    position: absolute;
    top: 55px;
    right: 6px;
    width: 38px;
    height: auto;
}

.phone-deco {
    position: absolute;
    bottom: -35px;
    right: 60px;
    width: 200px;
    height: auto;
    z-index: 110;
    pointer-events: none;
    filter: drop-shadow(3px 3px 5px rgba(0,0,0,0.1));
    animation: phoneRing 4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes phoneRing {
    0%, 90%, 100% { transform: rotate(0deg) scale(1); }
    92% { transform: rotate(3deg) scale(1.02); }
    94% { transform: rotate(-3deg) scale(1.02); }
    96% { transform: rotate(3deg) scale(1.02); }
    98% { transform: rotate(-3deg) scale(1.02); }
}

.hello-deco {
    float: left;
    width: 42px;
    margin-right: 10px;
    margin-bottom: 4px;
}

.ribbon-deco {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.1));
}

.ribbon-br {
    bottom: -30px;
    left: -65px;
    width: 115px;
    z-index: 200;
}

.ribbon-bl {
    bottom: -15px;
    left: -25px;
    transform: scaleX(-1);
}

.spotlight-photos {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.spotlight-photos img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.spotlight-photos img:hover {
    transform: scale(1.05);
}

.spotlight-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    color: var(--text-color);
}

.music-icon {
    width: 16px;
    height: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.spirit-name {
    font-family: 'Spirit', sans-serif;
    font-size: 1.2em;
}

/* Drawing Window Styles */
.draw-window {
    position: fixed;
    top: 100px;
    left: 50px;
    width: 350px;
    height: 400px;
    z-index: 2000;
    cursor: default;
    user-select: none;
}

.draw-window .f-c {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}



.header-title {
    display: flex;
    align-items: center;
}

#draw-header {
    cursor: move;
}

.draw-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

#draw-color {
    border: none;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    cursor: pointer;
}

#draw-size {
    width: 60px;
    cursor: pointer;
    accent-color: #e8a5a5;
}

.draw-btn {
    font-family: 'Silkscreen', cursive;
    font-size: 9px;
    padding: 2px 6px;
    background: var(--box-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    cursor: pointer;
}

.draw-btn:hover {
    background: white;
}

.canvas-container {
    flex: 1;
    background: #fff;
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}

#paint-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.draw-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nwse-resize;
    z-index: 2001;
}

.warning-text {
    color: #e8a5a5;
    font-style: italic;
}

/* Custom Context Menu */
.context-menu {
    display: none;
    position: fixed;
    z-index: 10000;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.05);
    padding: 2px;
    min-width: 130px;
    font-family: 'Silkscreen', cursive;
    font-size: 10px;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-color);
    transition: background 0.2s;
}

.menu-item:hover {
    background: var(--box-color);
}

/* CRT Effect */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, rgba(18, 16, 16, 0) 40%, rgba(18, 16, 16, 0.15) 100%),
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 100%, 100% 3px, 4px 100%;
    pointer-events: none;
    z-index: 9999;
}

.crt-overlay::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 0%, rgba(18, 16, 16, 0.05) 50%, rgba(18, 16, 16, 0) 100%);
    background-size: 100% 200%;
    animation: scanline 8s linear infinite;
    pointer-events: none;
}

body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.015);
    opacity: 0;
    z-index: 9998;
    pointer-events: none;
    animation: flicker 0.12s infinite;
}

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

@keyframes flicker {
    0% { opacity: 0.552; }
    5% { opacity: 0.482; }
    10% { opacity: 0.591; }
    15% { opacity: 0.415; }
    20% { opacity: 0.579; }
    25% { opacity: 0.451; }
    30% { opacity: 0.567; }
    35% { opacity: 0.422; }
    40% { opacity: 0.588; }
    45% { opacity: 0.461; }
    50% { opacity: 0.549; }
    55% { opacity: 0.432; }
    60% { opacity: 0.573; }
    65% { opacity: 0.444; }
    70% { opacity: 0.555; }
    75% { opacity: 0.425; }
    80% { opacity: 0.596; }
    85% { opacity: 0.448; }
    90% { opacity: 0.561; }
    95% { opacity: 0.419; }
    100% { opacity: 0.552; }
}

.neocities-box, .inner-card {
    filter: contrast(1.05) brightness(1.02) saturate(1.1);
    text-shadow: 0 0 1px rgba(0,0,0,0.1);
}

/* Construction Gate */
.construction-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #2c1e14;
    background-image: var(--bg-url);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-window {
    width: 400px;
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.lock-content {
    text-align: center;
    padding: 30px 20px !important;
}

.lock-gif {
    width: 60px;
    margin-bottom: 15px;
}

.lock-title {
    font-family: 'Silkscreen', cursive;
    font-size: 16px;
    color: #e8a5a5;
    margin: 0 0 10px 0;
}

.lock-text {
    font-size: 12px;
    margin-bottom: 20px;
    color: #7a6e5d;
}

.lock-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lock-input-group input {
    font-family: 'Nunito Sans', sans-serif;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    outline: none;
    text-align: center;
    font-size: 14px;
}

.lock-input-group button {
    font-family: 'Silkscreen', cursive;
    background: #e8a5a5;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s;
}

.lock-input-group button:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.lock-error {
    color: #ff4d4d;
    font-size: 11px;
    margin-top: 10px;
    min-height: 14px;
    font-family: 'Silkscreen', cursive;
}