* {
    box-sizing: border-box;
}
body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: 'Press Start 2P', 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    /* Subtle CRT scanline effect */
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
}

.content {
    padding: 50px;
    text-align: center;
}
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.logo {
    max-width: 100%; 
    height: auto;    
    display: block;
    margin: 40px auto; 
    animation: blink 2s infinite; 
}


.logo2 {
    max-width: 100%; 
    height: auto;    
    display: block;
    margin: 40px auto; 
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.8; }
}

.blinking-text {
    color: #C1B5B5; 
	text-shadow: 2px 2px 0px #ee7a02, 8px 8px 0px #000000; /* 3D drop shadow */
    font-size: 14px; 
    animation: blink 1s infinite;
	
}

.text {
    color: #d4d4d4; 
	text-shadow: 2px 2px 0px #AF0F07, 8px 8px 0px #000000; /* 3D drop shadow */
    font-size: 14px; 
	
}

hr {
    border: 0;
    height: 4px;
    background-color: #d4d4d4;
    box-shadow: 0px 4px 0px #555555;
    margin: 40px 0;
}


a {
    color: #d4d4d4;
    text-decoration: none;
}
a:hover {
    color: #000000;
    background-color: #d4d4d4;
}
a::before {
    content: "> ";
    color: #d40000;
    opacity: 0;
}
a:hover::before {
    opacity: 1;
}

.frame-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 20px;
}

.text-frame {
    background-color: #656565;
    border: 4px solid #FFFFFF;
    border-radius: 6px;
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.5), 
                4px 4px 0px rgba(0,0,0,0.8);
    padding: 20px;
    width: 48%;
    color: #d4d4d4;
    text-align: left;
    font-size: 12px;
    line-height: 1.8;
}

.text-frame h3 {
    color: #d1080c;
	text-shadow: 2px 2px 0px #a2090a; /* 3D drop shadow */
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px dashed #FFFFFF;
    padding-bottom: 10px;
    font-size: 14px;
}

.text-frame ul {
    list-style-type: none;
    padding: 0;
}

.text-frame li {
    margin-bottom: 15px;
}


.wtext-frame {
    background-color: #656565;
    border: 4px solid #FFFFFF;
    border-radius: 6px;
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.5), 
                4px 4px 0px rgba(0,0,0,0.8);
    padding: 20px;
    width: 100%;
    color: #d4d4d4;
    text-align: left;
    font-size: 12px;
    line-height: 1.8;
}

.wtext-frame h3 {
    color: #d1080c;
	text-shadow: 2px 2px 0px #a2090a; /* 3D drop shadow */
    margin-top: 0;
    text-transform: uppercase;
    border-bottom: 2px dashed #FFFFFF;
    padding-bottom: 10px;
    font-size: 14px;
}

.wtext-frame ul {
    list-style-type: none;
    padding: 0;
}

.wtext-frame li {
    margin-bottom: 15px;
}
.image-frame {
    background-color: #222222;
    border: 4px solid #888888;
    border-radius: 6px;
    box-shadow: inset -3px -3px 0px rgba(0,0,0,0.8), 
                4px 4px 0px rgba(0,0,0,0.8);
    padding: 20px;
    margin-top: 30px;
}

.image-frame h2 {
    color: #00FF00;
    font-size: 16px;
    margin-bottom: 20px;
}

.image-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 15px;
}

.sprite-box {
    background-color: #000000;
    border: 3px solid #555555;
    width: 150px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 0px #000;
}

.sprite-box img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated; 
}

.image-table img {
    width: 100%;
    height: 100%;
    image-rendering: pixelated; /* Keeps low-res images blocky */
}

/* Retro HUD Footer */
.hud-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #FFFFFF;
}

.score-box {
    background-color: #000000;
    border: 2px solid #FFFFFF;
    padding: 10px 15px;
    color: #dd571c;
}

@media (max-width: 768px) {
    .frame-container {
        flex-direction: column;
    }

    .text-frame {
        width: 100%;
    }


    .hud-footer {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================================
   EASTER EGG MELTDOWN STYLES
   ========================================= */

.melt-strip {
    position: fixed;
    top: 0;
    width: 10vw;
    height: 100vh;
    overflow: hidden;
    z-index: 9999;
    /* The steps() function makes the drop chunky and 16-bit */
    animation: meltDown 1.5s steps(30) forwards;
}

.melt-inner {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100vh;
}

@keyframes meltDown {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* =========================================
   SPLIT SCREEN PORTAL STYLES
   ========================================= */

.split-half {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    /* Give the halves the same background as the original body */
    background-color: #111111;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    padding: 20px; /* Matches the original body padding */
    display: flex;
    justify-content: center;
}

/* Ensure the cloned container doesn't stretch */
.split-half .container {
    width: 100%;
    max-width: 800px;
    position: absolute;
}

/* Slice the left half and animate it moving left */
.left-half {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    animation: splitLeft 2s cubic-bezier(0.64, 0.04, 0.35, 1) forwards;
}

/* Slice the right half and animate it moving right */
.right-half {
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    animation: splitRight 2s cubic-bezier(0.64, 0.04, 0.35, 1) forwards;
}

@keyframes splitLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-55vw); opacity: 0; }
}

@keyframes splitRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(55vw); opacity: 0; }
}