html {
    overflow-x: hidden;
}

/* Low Stim Mode Button */
.lowstim-button {
    display: none; /* Hidden on desktop by default */
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 99999;
    padding: 8px 14px;
    background-color: #666666;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
}

.lowstim-button:hover {
    background-color: #555555;
}

.lowstim-button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Show on mobile devices */
@media (max-width: 767px) {
    .lowstim-button {
        display: block;
    }
}

/* Also show on reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .lowstim-button {
        display: block;
    }
}

body {
    font-family: "Times New Roman", Times, serif;
    background-color: #FFFFFF;
    background-image: url('assets/Untitled_Artwork.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #000000;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}

.border-frame {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 0;
    overflow: hidden;
}

.border-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}

.border-left {
    left: 0;
}

.border-right {
    right: 0;
}

@media (max-width: 767px) {
    .border-frame {
        display: none;
    }
}

.foreground-art {
    position: fixed;
    z-index: 9000;
    pointer-events: none;
}

.foreground-art img {
    width: 100%;
    height: auto;
    image-rendering: crisp-edges;
}

.foreground-art.top-left {
    top: 0;
    left: 0;
    width: 180px;
}

@media (min-width: 768px) {
    .foreground-art.top-left {
        position: absolute;
        top: 5%;
        left: 5%;
        width: 150px;
        z-index: 100;
        pointer-events: auto;
        cursor: grab;
    }
}

.screen-artifacts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.screen-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.015) 0px,
        rgba(0, 0, 0, 0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}

.dead-pixel {
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #000;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
}

.glitch-lines-wrapper {
    position: absolute;
    top: 0;
    left: 15%;
    bottom: 0;
    width: 50px;
    height: 100%;
}

.glitch-line {
    position: absolute;
    top: 0;
    height: 100%;
}

.flicker-line {
    left: 0;
    width: 6px;
    background: linear-gradient(to right, 
        rgba(0, 255, 0, 0.4) 0%, 
        #000000 20%, 
        #000000 80%, 
        rgba(128, 0, 128, 0.5) 100%
    );
    animation: line-flicker 7s infinite;
}

.green-line {
    width: 1px;
    background-color: rgba(0, 50, 0, 0.15);
}

@keyframes line-flicker {
    0%, 40%, 42%, 45%, 60%, 62%, 100% { 
        opacity: 0.8; 
        width: 6px;
    }
    41% { 
        opacity: 0.6; 
        width: 7px; 
        background: linear-gradient(to right, 
            rgba(0, 255, 0, 0.6) 0%, 
            rgba(50, 0, 0, 0.9) 20%, 
            rgba(50, 0, 0, 0.9) 80%, 
            rgba(128, 0, 128, 0.7) 100%
        );
    }
    61% { 
        opacity: 0.7; 
        width: 6.5px; 
    }
}

.container {
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    z-index: 9999;
}

.bottom-marquee {
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    padding: 5px 0;
}

.scroll-hint {
    display: none;
}

@media (max-width: 767px) {
    .scroll-hint {
        display: block;
        position: fixed;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: #000;
        color: #fff;
        padding: 8px 15px;
        font-family: "Courier New", Courier, monospace;
        font-size: 0.8rem;
        z-index: 9998;
        animation: pulse 2s ease-in-out infinite;
        border: 2px solid #fff;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }
}

#teleport-cd {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: 
        conic-gradient(from 0deg, transparent 28deg, #ffffffb7 30deg 35deg, transparent 37deg 98deg, #ae00ffb7 100deg 105deg, transparent 107deg),
        conic-gradient(
            #0d00ffc7 0deg 60deg, 
            #000000a4 60deg 120deg, 
            #ffffffaa 120deg 180deg, 
            #0000007c 180deg 240deg, 
            #0000ffa7 240deg 300deg, 
            #00000053 300deg 360deg
        );
    z-index: 9999;
    cursor: pointer;
    animation: spin 0.5s linear infinite;
    border: 3px solid #000;
    box-shadow: 5px 5px 0px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.2s ease, left 0.2s ease;
}

.cd-inner {
    width: 30px;
    height: 30px;
    background: #000;
    border-radius: 50%;
    border: 2px solid #fff;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.collage-layout {
    position: relative;
    width: 100%;
    min-height: 80vh;
    padding: 50%;
    box-sizing: border-box;
}

.window-box {
    background: #fff;
    border: 2px solid #000;
    box-shadow: 5px 5px 0px #000;
    margin-bottom: 20px;
    text-align: left;
    cursor: grab;
    touch-action: none;
}

.window-box:active {
    cursor: grabbing;
}

.window-bar {
    background: #000;
    color: #fff;
    padding: 2px 5px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
    border-bottom: 1px solid #000;
}

.window-content {
    padding: 15px;
}

.src-link {
    display: block;
    text-align: right;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-family: "Courier New", Courier, monospace;
    color: #666;
    background: #eee;
    border-top: 1px solid #ccc;
}

.src-link:visited {
    color: #666;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    font-family: "Courier New", Courier, monospace;
    border: 2px solid #0000EE;
    padding: 5px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #0000EE;
}

.specs-grid span:nth-child(odd) {
    font-weight: bold;
}

.location-pin {
    font-size: 80px;
    display: block;
    text-align: center;
    animation: rotateY 2s ease-in-out infinite;
    transform-style: preserve-3d;
    margin: 10px 0;
}

@keyframes rotateY {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

a {
    color: #0000EE;
    text-decoration: underline;
}

a:visited {
    color: #551A8B;
}

h1 {
    font-size: 3rem;
    margin: 0;
    line-height: 1;
    text-transform: uppercase;
    font-style: italic;
    color: #0000EE;
    text-shadow: 3px 3px 0px #ccc;
    text-decoration: underline;
}

.sub-title {
    font-size: 1.2rem;
    border: none;
    margin: 0;
    color: #551A8B;
}

.blink {
    animation: blinker 1.5s linear infinite;
    color: red;
    font-weight: bold;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.payment-link {
    display: block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
}

.payment-link:hover {
    background: #fff;
    color: #000;
    outline: 1px solid #000;
}

.bg-element {
    position: absolute;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

.bg-1 {
    top: 50px;
    left: -20px;
    width: 200px;
    transform: rotate(0deg);
}

.bg-2 {
    position: fixed;
    top: 20%;
    right: 0;
    width: 600px;
    height: 180vh;
    transform: translateX(70%);
    filter: invert(1);
    z-index: 1;
}

.bg-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-3 {
    top: 20%;
    right: 50%;
    left: 20%;
    width: 500px;
    transform: rotate(-5deg);
    opacity: 1;
    z-index: 50;
}

@media (min-width: 768px) {
    .collage-layout {
        height: 100vh;
        display: block;
    }

    .window-box {
        position: absolute;
        width: 720px;
    }

    .title-box {
        top: 8%;
        left: 20%;
        z-index: 10;
    }

    .vibe-box {
        top: 40%;
        right: 15%;
        width: 300px;
        z-index: 5;
    }

    .location-box {
        bottom: 12%;
        left: 10%;
        width: 420px;
        z-index: 8;
        background: #ffff00;
        border: 4px solid #ff0000;
        box-shadow: 8px 8px 0px #000, 0 0 20px rgba(255,0,0,0.5);
    }

    .location-box .window-bar {
        background: #ff0000;
        font-weight: bold;
    }

    .ticket-box {
        top: 15%;
        left: 45%;
        right: 5%;
        width: 336px;
        z-index: 12;
    }

    .factory-box {
        bottom: 15%;
        right: 5%;
        width: 384px;
        height: 360px;
        z-index: 14;
    }

    .colors-box {
        width: 360px;
        height: 360px;
        z-index: 13;
    }
    
    .road3-box {
        top: 55%;
        left: 5%;
    }
    
    .blackpages-box {
        top: 75%;
        left: 30%;
        z-index: 12;
    }

    .video-box {
        top: 5%;
        right: 5%;
        width: 360px;
        height: 360px;
        z-index: 16;
    }

    .mailing-box {
        bottom: 15%;
        right: 35%;
    }

    .bg-1 {
        top: 20%;
        left: 60%;
        width: 400px;
        opacity: 0.4;
    }

    .bg-2 {
        position: fixed;
        top: 15%;
        right: 0;
        width: 750px;
        height: 195vh;
        transform: translateX(70%);
        opacity: 0.8;
        z-index: -1;
    }

    .bg-3 {
        top: 55%;
        right: 15%;
        left: auto;
        width: 600px;
        transform: rotate(-8deg);
        opacity: 1;
        z-index: 10;
    }
    
    .hidden-portal {
        top: 82%;
        left: 55%;
        width: 15px;
        height: 15px;
        opacity: 0.5;
    }
}

@media (max-width: 767px) {
    .container {
        overflow-x: auto;
        overflow-y: auto;
        height: 100vh;
        width: 100vw;
    }

    .collage-layout {
        width: 1200px;
        height: 550px;
        min-height: 550px;
        position: relative;
        display: block;
    }

    .window-box {
        position: absolute;
        cursor: grab;
    }

    .title-box {
        top: 5%;
        left: 30%;
        width: 350px;
        z-index: 10;
    }

    .vibe-box {
        top: 35%;
        left: 75%;
        width: 200px;
        z-index: 5;
    }
    
    .vibe-box .window-content {
        height: 200px;
        overflow: hidden;
    }
    
    .vibe-box .window-content img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .location-box {
        top: 55%;
        left: 20%;
        width: 300px;
        z-index: 8;
        background: #ffff00;
        border: 4px solid #ff0000;
        box-shadow: 8px 8px 0px #000, 0 0 20px rgba(255,0,0,0.5);
    }
    
    .location-box .window-bar {
        background: #ff0000;
    }

    .ticket-box {
        top: 10%;
        left: 70%;
        width: 250px;
        z-index: 12;
    }

    .colors-box {
        width: 250px;
        height: 250px;
        z-index: 13;
    }
    
    .colors-box .window-content {
        height: 200px;
    }
    
    .road3-box {
        top: 50%;
        left: 50%;
    }
    
    .blackpages-box {
        top: 65%;
        left: 75%;
        z-index: 12;
    }

    .video-box {
        top: 8%;
        left: 90%;
        width: 280px;
        z-index: 16;
    }
    
    .video-box .window-content {
        height: 250px;
    }

    .bg-element {
        position: absolute;
    }
    
    .bg-1 {
        display: none;
    }

    .bg-2 {
        position: absolute;
        top: -75%;
        right: -200px;
        left: auto;

        height: 300%;
        opacity: 0.7;
        z-index: -1;
    }
    
    .bg-3 {
        top: 25%;
        left: 40%;
        width: 400px;
        opacity: 0;
        z-index: 50;
    }
    
    .location-pin {
        font-size: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }

    .sub-title {
        font-size: 1rem;
    }
    
    .specs-grid {
        font-size: 0.8rem;
    }
    
    .foreground-art.top-left {
        display: none;
    }
}

.file-list {
    text-align: left;
    margin: 20px auto;
    max-width: 300px;
    border: 1px solid #ccc;
    padding: 10px;
    font-family: "Courier New", Courier, monospace;
    background-color: #f9f9f9;
}

.file-list p {
    margin: 5px 0;
}

.file-list a {
    color: #0000EE;
    text-decoration: underline;
}

.file-list a:visited {
    color: #551A8B;
}

#loading-msg {
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    margin: 20px 0;
    color: #FF0000;
}

.address-section {
    margin: 50px 0;
    padding: 20px;
    border: 1px solid #000;
}

.reveal-info {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

#reveal-btn {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000;
    padding: 10px 20px;
    font-size: 1rem;
    font-family: "Courier New", Courier, monospace;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

#reveal-btn:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.hidden {
    display: none;
}

#address-box {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.ticket-section {
    margin-top: 60px;
    padding-top: 20px;
}

.email {
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #000;
    color: #FFF;
    display: inline-block;
    padding: 5px 10px;
    font-family: "Courier New", Courier, monospace;
}

.small-text {
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-image img {
        margin: 20px 0;
    }
}

.credits-box {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 280px;
    z-index: 100;
}

.credits-box .window-content {
    font-family: "Courier New", Courier, monospace;
    font-size: 0.65rem;
    text-align: left;
    line-height: 1.4;
}

.credits-box a {
    color: #0000EE;
    text-decoration: none;
}

.credits-box a:hover {
    text-decoration: underline;
}

.mailing-box {
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 200px;
    z-index: 20;
    background: #fff;
}

.mailing-box .window-content {
    padding: 10px;
}

.mailing-box p {
    margin: 0 0 8px 0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.8rem;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#email-input {
    padding: 5px;
    border: 1px solid #000;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
}

#email-form button {
    background: #000;
    color: #fff;
    border: none;
    padding: 5px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75rem;
    cursor: pointer;
}

#email-form button:hover {
    background: #333;
}

#email-status {
    font-size: 0.7rem;
    margin-top: 5px;
    font-family: "Courier New", Courier, monospace;
}

#email-status.success {
    color: green;
}

#email-status.error {
    color: red;
}

@media (max-width: 767px) {
    .credits-box {
        position: absolute;
        bottom: 5%;
        left: 5%;
        right: auto;
        width: 250px;
        font-size: 0.55rem;
        z-index: 100;
    }
    
    .mailing-box {
        position: absolute;
        top: 65%;
        left: 60%;
        width: 200px;
        z-index: 20;
    }
}
