:root {
    --bg-color: #0d0d0d;
    --text-color: #f0f0f0;
    --primary-pink: #f887ff; /* Lighter/Pastel version of #F161FB */
    --secondary-pink: #ffb6c1;
    --accent-pink: #ff9efd;
    --border-color: #333;
    --font-main: 'Courier New', Courier, monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' style='fill:rgb(248, 135, 255);'><path d='M7 2l12 11.2l-5.8 0.5l3.3 7.3l-2.2 1l-3.2-7.4l-4.1 3.9z'/></svg>"), auto;
}
/* Sparkle Effect Styles */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkle-anim 0.8s linear forwards;
    box-shadow: 0 0 10px var(--primary-pink);
}

@keyframes sparkle-anim {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* Overlay for background readability */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay to make text pop */
    z-index: -1;
    pointer-events: none;
}

/* Scanlines Effect - Overlaying everything except images */
/* Images and their containers must be above the scanlines */
.art-card, .art-card img {
    position: relative;
    z-index: 100;
}

.gallery {
    position: relative;
    z-index: 150; /* Above section scanlines */
}

header, nav, section, footer {
    position: relative;
}

header::after, nav::after, section::after, footer::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 5;
}

header > *, nav > *, section > *, footer > * {
    position: relative;
    z-index: 1; /* Below scanlines (5) */
}

.gallery, .modal {
    z-index: 100 !important; /* Above scanlines */
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-pink);
    border: 2px solid var(--bg-color);
}

/* ASCII Header */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px dashed var(--primary-pink);
}

.ascii-skull, .cat-ascii {
    color: var(--primary-pink);
    font-size: 14px;
    white-space: pre;
    line-height: 1.2;
    font-family: monospace;
    display: block;
}
/* Side ASCII Art */
.side-ascii {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-pink);
    font-size: 14px;
    white-space: pre;
    z-index: 5;
    opacity: 0.8;
    pointer-events: none;
}

.left-side {
    left: 20px;
}

.right-side {
    right: 20px;
}

h1 {
    font-size: 3rem;
    color: var(--primary-pink);
    text-transform: uppercase;
    text-shadow: 2px 2px #000, 4px 4px var(--accent-pink);
    letter-spacing: 5px;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--primary-pink);
    }
    20%, 21.999%, 63%, 63.999%, 65%, 69.999% {
        opacity: 0.4;
        text-shadow: none;
    }
}

/* Corner ASCII Decorations */
.corner-ascii {
    position: absolute;
    color: var(--primary-pink);
    font-size: 20px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}

.top-left { top: 10px; left: 10px; }
.top-right { top: 10px; right: 10px; }
.bottom-left { bottom: 10px; left: 10px; }
.bottom-right { bottom: 10px; right: 10px; }
nav {
    position: sticky;
    top: 0;
    background: var(--bg-color);
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--primary-pink);
    z-index: 100;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-box {
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    border: 2px solid var(--primary-pink);
    min-width: 120px;
}

.nav-pink {
    background: var(--primary-pink);
    color: #000 !important;
}

.nav-black {
    background: #000;
    color: var(--primary-pink) !important;
}

.nav-box:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px var(--primary-pink);
}

/* Sections */
section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 20px;
    border: 1px double var(--primary-pink);
    background: #111;
    position: relative;
}

section::before {
    content: "+-----------------------+";
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--bg-color);
    color: var(--primary-pink);
    padding: 0 10px;
}

h2 {
    color: var(--primary-pink);
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.art-card {
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.art-card:hover {
    border-color: var(--primary-pink);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}

.art-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.art-card:hover img {
    transform: scale(1.05);
}

.art-info {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--secondary-pink);
}

/* Prices */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.price-card {
    border: 1px solid var(--primary-pink);
    padding: 20px;
    text-align: center;
    background: #151515;
}

.price-card h3 {
    color: var(--primary-pink);
    margin-bottom: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    display: flex;
    max-width: 1200px;
    width: 90%;
    background: #111;
    border: 2px solid var(--primary-pink);
    position: relative;
    box-shadow: 0 0 30px var(--primary-pink);
}

.modal-img-container {
    flex: 2;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.modal-img-container img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    position: relative;
    z-index: 3000; /* Above everything */
}

.modal-info-panel {
    flex: 1;
    padding: 30px;
    border-left: 2px solid var(--primary-pink);
    background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
    color: var(--text-color);
    overflow-y: auto;
}

.modal-info-panel h3 {
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 24px;
    border-bottom: 1px dashed var(--primary-pink);
    padding-bottom: 10px;
}

.modal-description {
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    border: 1px solid var(--primary-pink);
    padding: 12px 15px;
    border-radius: 4px;
    box-shadow: inset 0 0 10px rgba(248, 135, 255, 0.1);
}

.price-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--primary-pink);
    font-weight: bold;
    letter-spacing: 1px;
}

.price-value {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px var(--primary-pink);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--primary-pink);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: white;
}

@media (max-width: 800px) {
    .modal-content {
        flex-direction: column;
    }
    .modal-info-panel {
        border-left: none;
        border-top: 2px solid var(--primary-pink);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--primary-pink);
    color: var(--primary-pink);
    text-decoration: none;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: var(--primary-pink);
    color: #000;
}

/* TOS */
.tos-list {
    list-style: none;
}

.tos-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.tos-list li::before {
    content: "☠";
    position: absolute;
    left: 0;
    color: var(--primary-pink);
}

/* Responsive */
@media (max-width: 900px) {
    .price-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    font-size: 12px;
    color: #666;
    border-top: 2px dashed var(--primary-pink);
}

.ascii-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

pre {
    margin: 0;
    font-family: inherit;
    white-space: pre;
}
