/*This file is mostly created by chatgpt.*/


/* --------------------------------------------------------------------------
   1. GLOBAL
   -------------------------------------------------------------------------- */

:root {
    --bg: #050708;
    --bg-soft: #090d0f;
    --panel: #0b1012;
    --panel-raised: #0f1619;
    --panel-hover: #121b1f;

    --border: #1b3030;
    --border-bright: #245050;

    --green: #39ff88;
    --green-dim: #1b9b55;
    --green-dark: #0d3d27;

    --cyan: #28d7d7;
    --cyan-dim: #167777;

    --red: #ff3b4f;
    --red-dim: #8f1f2c;

    --yellow: #ffd166;
    --yellow-dim: #806a32;

    --text: #d6e4e2;
    --text-muted: #79918e;
    --text-dark: #3c5552;

    --shadow:
        0 0 0 1px rgba(57, 255, 136, 0.02),
        0 12px 40px rgba(0, 0, 0, 0.45);

    --glow-green:
        0 0 8px rgba(57, 255, 136, 0.18);

    --glow-cyan:
        0 0 8px rgba(40, 215, 215, 0.18);

    --radius: 3px;
    --max-width: 1250px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 50px 20px 80px;

    color: var(--text);
    background:
        radial-gradient(
            ellipse at 50% -10%,
            rgba(20, 75, 67, 0.18) 0%,
            rgba(5, 7, 8, 0) 45%
        ),
        var(--bg);

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 15px;
    line-height: 1.65;
}

/* Subtle terminal scanlines. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.012) 0,
            rgba(255, 255, 255, 0.012) 1px,
            transparent 1px,
            transparent 4px
        );

    opacity: 0.35;
}

/* Very subtle green terminal glow at the top of the page. */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--green),
        var(--cyan),
        var(--green),
        transparent
    );

    opacity: 0.65;
    box-shadow: 0 0 18px rgba(57, 255, 136, 0.35);
    pointer-events: none;
}

::selection {
    color: #001108;
    background: var(--green);
}

a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px dashed rgba(40, 215, 215, 0.45);
    transition:
        color 0.15s ease,
        text-shadow 0.15s ease,
        border-color 0.15s ease;
}

a:hover {
    color: #8fffff;
    border-color: var(--cyan);
    text-shadow: 0 0 8px rgba(40, 215, 215, 0.5);
}

p {
    margin: 0 0 18px;
}

ul,
ol {
    margin: 12px 0 22px;
    padding-left: 28px;
}

li {
    margin: 7px 0;
}

strong {
    color: #ffffff;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 30px 0;
}


/* --------------------------------------------------------------------------
   2. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
}

h1 {
    margin-bottom: 28px;
    color: var(--green);
    font-size: clamp(28px, 4vw, 42px);
    text-shadow: 0 0 12px rgba(57, 255, 136, 0.2);
}

h1::before {
    content: "// ";
    color: var(--text-dark);
}

h2 {
    margin-bottom: 16px;
    color: var(--cyan);
    font-size: 23px;
}

h2::before {
    content: "> ";
    color: var(--green-dim);
}

h3 {
    margin-bottom: 14px;
    color: var(--green);
    font-size: 17px;
}

code {
    padding: 3px 7px;
    color: var(--green);
    background: #020504;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: inherit;
    font-size: 0.92em;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}


/* --------------------------------------------------------------------------
   3. SHARED PANELS
   -------------------------------------------------------------------------- */

#playerpoc-introduction,
#playerpoc-textarea-div,
#playerpoc-generated-link-div,
.deliver-link-area,
#attackerhub-introduction,
#attackerhub-detailed-steps,
#log-viewer-main-window {
    width: min(100%, var(--max-width));
    margin-left: auto;
    margin-right: auto;
}

#playerpoc-introduction,
#attackerhub-introduction {
    margin-bottom: 24px;
}

#playerpoc-introduction,
#attackerhub-introduction,
.deliver-link-area,
#attackerhub-detailed-steps,
#playerpoc-textarea-div,
#playerpoc-generated-link-div {
    padding: 30px;
    background:
        linear-gradient(
            135deg,
            rgba(15, 22, 25, 0.98),
            rgba(7, 12, 14, 0.98)
        );

    border: 1px solid var(--border);
    border-left: 3px solid var(--green-dark);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    position: relative;
}

/* Tiny "hardware" corner decoration. */
#playerpoc-introduction::before,
.deliver-link-area::before,
#attackerhub-introduction::before,
#attackerhub-detailed-steps::before,
#playerpoc-textarea-div::before,
#playerpoc-generated-link-div::before,
#log-viewer-main-window::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;

    width: 45px;
    height: 45px;

    border-top: 1px solid rgba(57, 255, 136, 0.4);
    border-right: 1px solid rgba(57, 255, 136, 0.4);

    pointer-events: none;
}


/* --------------------------------------------------------------------------
   4. PLAYER PoC GENERATOR
   -------------------------------------------------------------------------- */

#playerpoc-introduction {
    border-left-color: var(--cyan-dim);
}

#playerpoc-introduction h1 {
    color: var(--cyan);
}

#playerpoc-textarea-div {
    margin-top: 24px;
}

#playerpoc-form {
    margin: 0;
}

#playerpoc-textarea {
    display: block;
    width: 100%;
    min-height: 420px;

    padding: 18px;

    resize: vertical;

    color: var(--green);
    background:
        linear-gradient(
            rgba(0, 20, 12, 0.55),
            rgba(0, 5, 4, 0.8)
        ),
        #020504;

    border: 1px solid var(--border-bright);
    border-radius: var(--radius);

    outline: none;

    font-family:
        "Courier New",
        Courier,
        monospace;

    font-size: 14px;
    line-height: 1.55;

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(57, 255, 136, 0.02);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#playerpoc-textarea::placeholder {
    color: #3b5b53;
    opacity: 1;
}

#playerpoc-textarea:focus {
    border-color: var(--green-dim);

    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(57, 255, 136, 0.12),
        0 0 18px rgba(57, 255, 136, 0.08);
}

#playerpoc-generated-link-div {
    margin-top: 24px;
    border-left-color: var(--yellow-dim);
}

#playerpoc-generated-link-div p {
    margin-bottom: 20px;
}

#playerpoc-copy-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

#copyMessage {
    display: none;

    margin: 0;
    padding: 5px 9px;

    color: var(--green);
    background: rgba(57, 255, 136, 0.055);

    border: 1px solid var(--green-dark);
    border-radius: 2px;

    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;

    box-shadow:
        0 0 12px rgba(57, 255, 136, 0.05),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#copyMessage::before {
    /* content: "[+] "; */
    color: var(--green);
}

#playerpoc-generated-link {
    display: inline-block;
    max-width: 100%;
    padding: 8px 11px;

    color: var(--green);
    background: #030806;
    border: 1px solid var(--border);

    overflow-wrap: anywhere;
    word-break: break-word;

    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.5);
}


/* --------------------------------------------------------------------------
   5. BUTTONS / INPUTS
   -------------------------------------------------------------------------- */

button,
input[type="submit"] {
    position: relative;

    padding: 11px 18px;

    color: #031008;
    background: var(--green);

    border: 1px solid #6dffac;
    border-radius: 2px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(57, 255, 136, 0.08),
        inset 0 1px rgba(255, 255, 255, 0.25);

    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
}

button::before,
input[type="submit"]::before {
    content: "[ ";
}

button::after,
input[type="submit"]::after {
    content: " ]";
}

button:hover,
input[type="submit"]:hover {
    color: #001d0e;
    background: #70ffac;

    box-shadow:
        0 0 18px rgba(57, 255, 136, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.4);

    transform: translateY(-1px);
}

button:active,
input[type="submit"]:active {
    transform: translateY(0);
}

input[type="text"] {
    width: min(100%, 700px);
    padding: 11px 13px;

    color: var(--green);
    background: #020504;

    border: 1px solid var(--border-bright);
    border-radius: 2px;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input[type="text"]::placeholder {
    color: #45605a;
}

input[type="text"]:focus {
    border-color: var(--cyan);

    box-shadow:
        0 0 0 1px rgba(40, 215, 215, 0.1),
        0 0 14px rgba(40, 215, 215, 0.08);
}


/* --------------------------------------------------------------------------
   6. TIPS / WARNING BOXES
   -------------------------------------------------------------------------- */

.player-tip,
.attacker-tip {
    position: relative;

    margin-top: 25px;
    padding: 18px 20px 18px 23px;

    background:
        linear-gradient(
            90deg,
            rgba(57, 255, 136, 0.045),
            rgba(57, 255, 136, 0.01)
        );

    border: 1px solid var(--border);
    border-left: 2px solid var(--green-dim);
}

.player-tip::before,
.attacker-tip::before {
    content: "TIP";
    position: absolute;

    top: -10px;
    left: 15px;

    padding: 1px 7px;

    color: var(--bg);
    background: var(--green);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.player-tip p {
    margin-bottom: 10px;
    color: var(--green);
    font-weight: bold;
}

.attacker-tip {
    border-left-color: var(--red-dim);
    background:
        linear-gradient(
            90deg,
            rgba(255, 59, 79, 0.055),
            rgba(255, 59, 79, 0.01)
        );
}

.attacker-tip::before {
    content: "REMEMBER";
    background: var(--red);
}

.attacker-tip li::marker {
    color: var(--red);
}

#tip-http-version a,
#tip-arbitrary-subdomain a,
#tip-specific-subdomain a {
    overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   7. DELIVER LINK
   -------------------------------------------------------------------------- */

.deliver-link-area {
    border-left-color: var(--green-dark);
}

.deliver-link-browser-main,
.deliver-link-browser-secondary {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.deliver-link-browser-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.deliver-link-browser-main .deliver-link-browser-option {
    border-color: var(--green-dim);
}

.deliver-link-browser-option {
    position: relative;

    padding: 23px;

    background: rgba(2, 6, 7, 0.72);

    border: 1px solid var(--border);
    border-top: 2px solid var(--border-bright);

    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.deliver-link-browser-option h2 {
    margin-bottom: 20px;
}

.deliver-link-browser-option h2::before {
    content: "$ ";
}

.deliver-link-browser-option form {
    margin: 0;
}

.deliver-link-browser-option input[type="text"] {
    width: 100%;
    margin-bottom: 12px;
}

.deliver-link-controls {
    display: flex;
    align-items: left;
    justify-content: left;

    gap: 12px;

    margin-top: 10px;
}

.deliver-link-response-message {
    display: none;

    margin: 0;
    padding: 5px 9px;

    color: var(--green);
    background: rgba(57, 255, 136, 0.055);

    border: 1px solid var(--green-dark);
    border-radius: 2px;

    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.04em;

    box-shadow:
        0 0 12px rgba(57, 255, 136, 0.05),
        inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   8. ATTACKER HUB
   -------------------------------------------------------------------------- */

#attackerhub-introduction {
    border-left-color: var(--red-dim);
}

#attackerhub-introduction h1 {
    color: var(--red);
    text-shadow: 0 0 12px rgba(255, 59, 79, 0.18);
}

#attackerhub-introduction ol {
    counter-reset: attack-steps;
    list-style: none;
    padding-left: 0;
}

#attackerhub-introduction ol li {
    position: relative;

    counter-increment: attack-steps;

    margin: 10px 0;
    padding: 0;
}

#attackerhub-introduction .attackerhub-step-link {
    display: block;

    position: relative;

    padding: 11px 15px 11px 50px;

    color: var(--cyan);

    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);

    text-decoration: none;

    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        padding-left 0.15s ease;
}

#attackerhub-introduction .attackerhub-step-link::before {
    content: "0" counter(attack-steps);

    position: absolute;
    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--cyan);
    font-weight: 700;

    transition:
        color 0.15s ease,
        text-shadow 0.15s ease;
}

#attackerhub-introduction .attackerhub-step-link:hover {
    color: #8fffff;

    background:
        linear-gradient(
            90deg,
            rgba(40, 215, 215, 0.09),
            rgba(40, 215, 215, 0.02)
        );

    border-color: var(--cyan-dim);

    box-shadow:
        inset 3px 0 0 var(--cyan),
        0 0 15px rgba(40, 215, 215, 0.07);

    text-shadow: 0 0 8px rgba(40, 215, 215, 0.4);

    padding-left: 54px;
}

#attackerhub-introduction .attackerhub-step-link:hover::before {
    color: #8fffff;
    text-shadow: 0 0 9px rgba(40, 215, 215, 0.55);
}

#ominous-begin-gauntlet {
    margin-top: 60px;
    margin-bottom: 0;

    padding: 16px;

    color: var(--red);
    background: rgba(255, 59, 79, 0.045);

    border-top: 1px solid var(--red-dim);
    border-bottom: 1px solid var(--red-dim);

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.18em;

    text-shadow: 0 0 10px rgba(255, 59, 79, 0.35);
}

#ominous-begin-gauntlet::before {
    content: "[ ";
}

#ominous-begin-gauntlet::after {
    content: " ]";
}

#attackerhub-detailed-steps {
    padding: 20px;
}

.attackerhub-explanation-step {
    position: relative;

    margin: 0 0 18px;
    padding: 26px 27px;

    background: rgba(4, 9, 10, 0.72);
    border: 1px solid var(--border);

    box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.22);
}

.attackerhub-explanation-step:last-child {
    margin-bottom: 0;
}

.attackerhub-explanation-step h2 {
    display: flex;
    align-items: center;
    gap: 5px;

    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.attackerhub-explanation-step h2::before {
    color: var(--red);
}

.attackerhub-explanation-step > a {
    display: inline-block;
    margin-top: 4px;
    padding: 5px 8px;

    background: rgba(40, 215, 215, 0.035);
}


/* --------------------------------------------------------------------------
   9. LOGGING DOMAIN GENERATOR
   -------------------------------------------------------------------------- */

.attackerhub-logging-domain-generation {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
    gap: 20px;

    margin-top: 25px;
}

.generation {
    padding: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(57, 255, 136, 0.035),
            rgba(0, 0, 0, 0.15)
        );

    border: 1px solid var(--border-bright);
    border-left: 2px solid var(--green-dim);
}

.generation h3::before {
    content: "// ";
    color: var(--text-dark);
}

.generation button {
    margin: 4px 0 5px;
}

.attackerhub-generated-url {
    display: inline-block;

    max-width: 100%;
    padding: 6px 9px;

    color: var(--green);
    background: #020504;

    border: 1px solid var(--border);

    overflow-wrap: anywhere;
    word-break: break-word;

    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.exfiltrate-to {
    color: var(--yellow);
}

.view-logs {
    color: var(--cyan);
}

.generated-logging-domain {
    color: var(--green);
    font-weight: 700;
}

.attackerhub-logging-domain-generation .attacker-tip {
    margin-top: 0;
    padding-bottom: 0px;
    align-self: stretch;
}


/* --------------------------------------------------------------------------
   10. EXFILTRATION LOG VIEWER
   -------------------------------------------------------------------------- */

/* The log viewer is deliberately much wider than the other pages.  */
#log-viewer-control-panel {
    position: relative;

    width: 40vw;
    max-width: none;

    margin: 0 auto 18px;
    padding: 18px 22px;

    display: flex;
    flex-direction: column;
    align-items: center;

    background:
        linear-gradient(
            135deg,
            rgba(15, 22, 25, 0.98),
            rgba(7, 12, 14, 0.98)
        );

    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan-dim);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

#log-viewer-control-panel::before {
    content: "";

    position: absolute;
    top: -1px;
    right: -1px;

    width: 35px;
    height: 35px;

    border-top: 1px solid rgba(40, 215, 215, 0.45);
    border-right: 1px solid rgba(40, 215, 215, 0.45);

    pointer-events: none;
}

#log-viewer-control-panel h3 {
    width: 100%;

    margin: 0 0 25px;

    color: var(--red);

    font-size: 15px;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

#log-viewer-control-panel h3::before {
    content: "$ ";
    color: var(--text-dark);
}

#log-viewer-control-panel button {
    margin: 0;
}

#log-viewer-control-panel button:last-child {
    color: #ffe1e4;
    background: rgba(255, 59, 79, 0.12);

    border-color: var(--red-dim);

    box-shadow: 0 0 10px rgba(255, 59, 79, 0.04);
}

#log-viewer-control-panel button:last-child:hover {
    color: #ffffff;
    background: rgba(255, 59, 79, 0.25);

    border-color: var(--red);

    box-shadow:
        0 0 18px rgba(255, 59, 79, 0.15);
}

#log-viewer-control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 50px;
}



 
body:has(#log-viewer-main-window) {
    padding-left: 8px;
    padding-right: 8px;
}

body:has(#log-viewer-main-window) {
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255, 59, 79, 0.055),
            transparent 42%
        ),
        var(--bg);
}

body:has(#log-viewer-main-window) > h1 {
    width: 95vw;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: var(--red);
}

#log-viewer-main-window {
    box-sizing: border-box;
    position: relative;
    width: 95vw;
    min-height: 400px;
    margin-top: 60px;
    padding: 32px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 12px;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(57, 255, 136, 0.025),
            transparent 50%
        ),
        #020505;

    border: 1px solid var(--border-bright);
    border-left: 3px solid var(--red-dim);

    box-shadow:
        inset 0 0 35px rgba(0, 0, 0, 0.65),
        var(--shadow);

    overflow: auto;
    overflow-x: hidden;
}

#log-viewer-main-window::after {
    content: "LIVE EXFILTRATION BUFFER";
    position: absolute;

    top: 12px;
    right: 16px;

    color: var(--red);
    font-size: 9px;
    letter-spacing: 0.12em;
    opacity: 0.7;
}

#log-viewer-main-window-empty {
    margin: 0;

    color: var(--text-muted);

    text-align: center;
    padding-top: 150px;

    font-size: 13px;
    letter-spacing: 0.06em;
}

#log-viewer-main-window-empty::before {
    content: "[ ";
    color: var(--red);
}

#log-viewer-main-window-empty::after {
    content: " ]";
    color: var(--red);
}


/* --------------------------------------------------------------------------
   11. RESPONSIVE LAYOUT
   -------------------------------------------------------------------------- */

@media (max-width: 850px) {
    body {
        padding: 30px 16px 60px;
    }

    #playerpoc-introduction,
    #playerpoc-textarea-div,
    #playerpoc-generated-link-div,
    .deliver-link-area,
    #attackerhub-introduction,
    #attackerhub-detailed-steps {
        padding: 22px;
    }

    .attackerhub-logging-domain-generation {
        grid-template-columns: 1fr;
    }

    .deliver-link-browser-secondary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 550px) {
    body {
        padding: 22px 10px 45px;
        font-size: 14px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    #playerpoc-introduction,
    #playerpoc-textarea-div,
    #playerpoc-generated-link-div,
    .deliver-link-area,
    #attackerhub-introduction,
    #attackerhub-detailed-steps {
        padding: 18px;
    }

    #playerpoc-textarea {
        min-height: 300px;
        padding: 12px;
    }

    .attackerhub-explanation-step {
        padding: 20px 17px;
    }

    .deliver-link-browser-option {
        padding: 18px;
    }

    #log-viewer-control-panel {
        width: 95vw;

        flex-wrap: wrap;
    }

    #log-viewer-control-panel h3 {
        width: 100%;
        margin-bottom: 4px;
    }

    #log-viewer-main-window {
        min-height: 300px;
        padding: 15px;
    }
}


/* --------------------------------------------------------------------------
   12. ACCESSIBILITY / REDUCED MOTION
   -------------------------------------------------------------------------- */

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* --------------------------------------------------------------------------
   13. OPTIONAL UTILITY STATES
   -------------------------------------------------------------------------- */

.status-success {
    color: var(--green);
}

.status-warning {
    color: var(--yellow);
}

.status-danger {
    color: var(--red);
}

.status-info {
    color: var(--cyan);
}

.monospace {
    font-family:
        "Courier New",
        Courier,
        monospace;
}

.glow {
    text-shadow: 0 0 10px currentColor;
}
