/* ============================================
   SETH'S ARCHIVE — main stylesheet
   ============================================ */

/* ---------- BASE ---------- */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Orbitron, sans-serif;
    color: black;
    min-height: 100vh;
    padding: 20px 15px 70px 15px;

    /* Neon green stars background */
    background-color: #000000;
    background-image:
            radial-gradient(3px 3px at 20px 30px, #95f64e, transparent),
            radial-gradient(4px 4px at 40px 70px, #95f64e, transparent),
            radial-gradient(2px 2px at 90px 40px, #95f64e, transparent),
            radial-gradient(3px 3px at 130px 80px, #95f64e, transparent),
            radial-gradient(2px 2px at 160px 120px, #95f64e, transparent),
            radial-gradient(2px 2px at 200px 50px, #95f64e, transparent),
            radial-gradient(4px 4px at 250px 100px, #95f64e, transparent),
            radial-gradient(2px 2px at 300px 20px, #95f64e, transparent),
            radial-gradient(3px 3px at 350px 150px, #95f64e, transparent),
            radial-gradient(4px 4px at 400px 80px, #95f64e, transparent);
    background-size: 400px 200px;
    background-repeat: repeat;
    position: relative;
    overflow-x: hidden;
}

/* Flickering star overlay layer 1 */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
            radial-gradient(4px 4px at 60px 20px, #95f64e, transparent),
            radial-gradient(3px 3px at 150px 90px, #95f64e, transparent),
            radial-gradient(5px 5px at 230px 30px, #95f64e, transparent),
            radial-gradient(3px 3px at 320px 140px, #95f64e, transparent),
            radial-gradient(4px 4px at 380px 60px, #95f64e, transparent);
    background-size: 420px 180px;
    background-repeat: repeat;
    animation: starFlicker 2.4s steps(3, end) infinite;
}

/* Flickering star overlay layer 2 */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
            radial-gradient(3px 3px at 30px 100px, #95f64e, transparent),
            radial-gradient(4px 4px at 110px 40px, #95f64e, transparent),
            radial-gradient(2px 2px at 190px 150px, #95f64e, transparent),
            radial-gradient(5px 5px at 280px 80px, #95f64e, transparent),
            radial-gradient(3px 3px at 360px 30px, #95f64e, transparent);
    background-size: 400px 200px;
    background-repeat: repeat;
    animation: starFlicker 3.1s steps(4, end) infinite reverse;
}

/* Make sure page content sits above the star layers */
body > * {
    position: relative;
    z-index: 1;
}

/* ---------- HEADINGS ---------- */
h1 {
    color: #95f64e;
    text-align: center;
    font-size: 40px;
    -webkit-text-stroke: 2px #165000;
    margin: 20px 0;
}

/* ---------- NAV / MENU ---------- */
.menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #95f64e;
}

/* ---------- GENERIC BOX ---------- */
.box {
    background-color: #95f64e;
    border: 1px solid #165000;
    padding: 15px;
    margin: 15px auto;
    max-width: 600px;
    text-align: left;
}

.box--small  { max-width: 550px; padding: 8px; text-align: center; }
.box--narrow { max-width: 500px; }
.box--wide   { max-width: 700px; }
.box--left   { max-width: 400px; margin-left: 250px; margin-right: auto; }
.box--right  { max-width: 400px; margin-left: auto; margin-right: 250px; }
.box--center { text-align: center; }

/* Legacy class names kept so existing HTML still works. */
.about-box,
.art-box,
.middle-box,
.index-box,
.welcome-box,
.left-box,
.contact-box,
.right-box,
.small-box {
    background-color: #95f64e;
    border: 1px solid #165000;
    padding: 15px;
    margin: 15px auto;
    text-align: left;
}

.about-box   { max-width: 700px; padding: 15px 40px; }
.art-box     { max-width: 525px; background-color: rgba(149, 246, 78, 0.53); }
.middle-box  { max-width: 500px; }
.index-box,
.welcome-box { max-width: 600px; }
.left-box,
.contact-box,
.right-box   { max-width: 100%; margin: 0; }
.right-box   { margin-left: auto; margin-right: 250px; }
.small-box   { max-width: 550px; padding: 8px; text-align: center; }

/* Art container */
.art-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.art-container img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Box container (flex row of boxes) */
.box-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

div.container {
    text-align: left;
    font-size: large;
    font-weight: bold;
    padding-bottom: 10px;
}

/* ---------- BLINKIES ---------- */
.blinkies-container {
    display: inline-flex;
    flex-wrap: wrap;
    width: 400px;
    gap: 10px;
    position: relative;
}

/* ---------- BUTTONS / LINKS ---------- */
.button {
    display: inline-block;
    padding: 0.15em 0.55em;
    margin: 0.15em 0.1em;
    background-color: rgb(149, 246, 78);
    color: black;
    text-decoration: none;
    border: 1px solid #165000;
    transition: border-color 0.15s, background 0.15s, transform 0.15s ease;
}

.button:hover {
    background-color: #165000;
    color: #e1ffd6;
    transform: translateY(-2px);
}

ul.bands {
    display: inline-block;
    text-align: left;
}

a:link    { color: #000000; text-decoration: none; }
a:visited { color: rgb(22, 80, 0); }
a:hover   { color: #e1ffd6; text-decoration: underline; background-color: #165000; }
a:active  { color: rgb(160, 214, 115); }

/* ============================================
   VIRUS POPUP (used by desktop.html)
   ============================================ */
.virus-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none;
    overflow: hidden;
}

.virus-content {
    width: 100%; height: 100%;
    background: #ff0000;
    animation: virusFlash 0.3s infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

@keyframes virusFlash {
    0%   { background: #ff0000; }
    25%  { background: #00ff00; }
    50%  { background: #0000ff; }
    75%  { background: #ffff00; }
    100% { background: #ff00ff; }
}

.virus-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 5px solid #fff;
}

.brand-item {
    background: white;
    padding: 20px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: brandPop 0.5s ease-in-out;
    cursor: pointer;
    transition: transform 0.3s;
    min-width: 100px;
}

.brand-item:hover { transform: scale(1.2); }

@keyframes brandPop {
    0%   { transform: scale(0) rotate(180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.brand-item .brand-logo { font-size: 48px; display: block; margin-bottom: 5px; }
.brand-item .brand-name { font-size: 14px; color: #333; }

.virus-header {
    color: white;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 4px 4px 0 #000;
    margin-bottom: 20px;
    animation: virusText 0.5s infinite alternate;
}

@keyframes virusText {
    0%   { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.1) rotate(3deg); }
}

.virus-subheader {
    color: #ffff00;
    font-size: 24px;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 20px;
    animation: blink 0.5s step-end infinite;
}

.virus-close-btn {
    position: fixed;
    top: 20px; right: 20px;
    background: #ff0000;
    color: white;
    border: 3px solid white;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000;
    animation: blink 0.3s step-end infinite;
    border-radius: 10px;
}

.virus-close-btn:hover { background: #00ff00; color: black; }

.mini-ad {
    position: fixed;
    background: #ffff00;
    border: 3px solid #ff0000;
    padding: 15px;
    font-weight: bold;
    z-index: 9999;
    font-size: 14px;
    cursor: pointer;
    animation: popIn 0.3s ease-out;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
    text-align: center;
    max-width: 200px;
}

.mini-ad .ad-icon { font-size: 32px; display: block; }
.mini-ad .ad-text { font-size: 16px; margin-top: 5px; color: #ff0000; }

@keyframes popIn {
    0%   { transform: scale(0) rotate(180deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.floating-brand {
    position: fixed;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 #000;
    animation: floatAround 5s ease-in-out infinite;
    z-index: 99998;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes floatAround {
    0%   { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(100px, -50px) rotate(90deg); }
    50%  { transform: translate(-50px, 100px) rotate(180deg); }
    75%  { transform: translate(50px, -100px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.confetti-ad {
    position: fixed;
    font-size: 24px;
    font-weight: bold;
    color: #ff0000;
    animation: confettiFall 3s ease-in forwards;
    z-index: 99997;
    pointer-events: none;
    background: white;
    padding: 5px 10px;
    border-radius: 5px;
    border: 2px solid #ff0000;
}

@keyframes confettiFall {
    0%   { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Shared animations */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

@keyframes starFlicker {
    0%   { opacity: 0.15; }
    25%  { opacity: 0.85; }
    50%  { opacity: 0.35; }
    75%  { opacity: 1; }
    100% { opacity: 0.15; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .left-box, .contact-box, .right-box {
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
    }
    .about-box { padding: 15px 20px; }
}

@media (max-width: 700px) {
    h1 { font-size: 28px; }

    .box,
    .about-box, .art-box, .middle-box, .index-box, .welcome-box,
    .left-box, .contact-box, .right-box, .small-box {
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        padding: 12px;
    }

    .menu {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }

    .blinkies-container { width: 100%; justify-content: center; }
    .box-container { flex-direction: column; align-items: center; }
    .virus-brand-grid { grid-template-columns: repeat(2, 1fr); }
    .virus-header { font-size: 28px; }
    .virus-subheader { font-size: 16px; }
}