@font-face {
    font-family: 'Merchant Copy';
    src: url('../fonts/merchant-copy.doublesize.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-color: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.crt-casing {
    width: 80vw;
    height: 95vh;
    padding: 20px;
    box-sizing: border-box;
}

/* 2. The Curved Glass Display */
.crt-tube-y {
    width: 100%;
    height: 100%;
    border-radius: 100% / 10%; /* Creates the horizontal bow */
    overflow: hidden; /* Clips the contents to the bow */

}

/* NEW: 3. Bulge the Left and Right */
.crt-tube-x {
    width: 100%;
    height: 100%;
    border-radius: 5% / 100%; /* Creates the vertical bow */
    overflow: hidden; /* Clips the contents to the bow */
}

.crt-screen {
    width: 100%;
    height: 100%;
    background-color: #140514;
    position: relative;
    overflow: hidden;
    border-radius: 10%;
    box-shadow: inset 0 0 70px rgba(207, 75, 188, 0.9);
}

/* 3. The Actual Website inside the TV (Ausify VHS Vibe) */
.crt-content {
    height: 100%;
    overflow-y: hidden;
    padding: 40px;
    box-sizing: border-box;

    /* Base text color: Soft Lavender/Pink */
    color: #a55ba6;
    font-family: 'Merchant Copy', 'Courier New', Courier, monospace;

    /* The Pink/Blue Chromatic Aberration from the image */
    text-shadow:
            2px -1px 0 rgba(255, 0, 128, 0.5),   /* Hot pink shift */
            -2px 1px 0 rgba(0, 255, 255, 0.5),  /* Cyan shift */
            0 0 10px rgba(229, 179, 230, 0.6); /* Soft base glow */
}

/* The Elegant Serif Heading */
.store-homepage h1 {
    font-family: 'Merchant Copy', 'Courier New', Courier, monospace;
    font-weight: normal;
    text-align: center;
    font-size: 2.8rem;
    line-height: 1.1;
    margin-top: 60px;
    margin-bottom: 50px;
    color: #e645e8; /* Slightly brighter pink for the heading */
}

/* 4. The Figure-8 Animated Logo */
.store-logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: figure-eight 6s infinite ease-in-out;
}

/* Keyframes for the Figure-8 Loop */
@keyframes figure-eight {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(15px, -10px) rotate(5deg); }
    50%  { transform: translate(30px, 0) rotate(0deg); }
    75%  { transform: translate(15px, 10px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* 5. The Animated Video Distortion Overlay */
.crt-screen::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Keep scanlines, but add a slight pink tint to the glare */
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(20, 0, 10, 0.25) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 10;
    /* Adds the subtle moving "VHS tracking" flicker */
    animation: vhs-flicker 0.15s infinite;
}

/* Keyframes for the VHS Overlay */
@keyframes vhs-flicker {
    0%   { opacity: 0.95; background-position: 0 0; }
    50%  { opacity: 0.85; background-position: 0 2px; }
    100% { opacity: 0.95; background-position: 0 0; }
}

/* Stripped down link styling */
.crt-content a {
    color: inherit;
    text-decoration: none;
}
.crt-content a:hover {
    text-shadow: 0 0 15px #ff00ff; /* Bright neon hover state */
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 150px;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin: 50px auto;
}
.action-buttons .btn {
    display: inline-block;
    font-family: 'Merchant Copy', 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 15px 40px;
    color: #e5b3e6;
    border: 2px solid rgba(165, 91, 166, 0);
    text-shadow:
            2px 0 0 rgba(255, 0, 128, 0.5),
            -2px 0 0 rgba(0, 255, 255, 0.5);

    transition: all 0.1s ease-in-out;
}

.action-buttons .btn:hover {
    border: 2px solid #e5b3e6;
    font-size: 1.4rem;

    box-shadow: 0 0 25px rgb(229, 179, 230);
    text-shadow: none;
}

#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Keeps it behind the .crt-content */
    pointer-events: none;
    opacity: 0.07; /* Keeps the background dim so your bright text pops */
}