/* =====================================================
   ROI'S OC ARCHIVE — DREAMY OLD-WEB / PERSONAL COMPUTER
   ===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e7e2f3;
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;

    /* Selected night-sky graphic */
    background:
        linear-gradient(
            rgba(13, 15, 40, 0.72),
            rgba(13, 15, 40, 0.72)
        ),
        url("images/backgrounds/night-sky.jpg") center / cover fixed no-repeat,
        #151735;
}
}

/* Faint screen texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(255,255,255,0.012) 0px,
            rgba(255,255,255,0.012) 1px,
            transparent 1px,
            transparent 4px
        );
    opacity: 0.35;
    z-index: 100;
}

.site-wrapper {
    width: min(900px, 92%);
    margin: 40px auto;
}

/* =====================================================
   WINDOWS
   ===================================================== */

.window {
    background:
        linear-gradient(
            rgba(255,255,255,0.018),
            rgba(255,255,255,0)
        ),
        rgba(20, 20, 39, 0.94);

    border: 1px solid #756e97;

    box-shadow:
        0 0 0 2px #0a0a12,
        0 0 24px rgba(0,0,0,0.52);

    margin-bottom: 30px;
}

.window-titlebar {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 9px;

    background:
        linear-gradient(
            to right,
            #454060,
            #2c2945
        );

    border-bottom: 1px solid #827aa4;
    color: #f3efff;
    font-size: 14px;
    font-weight: bold;
    text-shadow: 1px 1px #111;
}

.window-icon {
    margin-right: 8px;
    color: #d8d0ef;
}

.window-controls {
    display: flex;
    margin-left: auto;
    gap: 4px;
}

.window-controls span {
    display: inline-flex;
    width: 20px;
    height: 18px;
    align-items: center;
    justify-content: center;

    border: 1px solid #9088a8;
    background: #29263f;

    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1;
}

.small-titlebar {
    min-height: 27px;
    font-size: 13px;
}

.window-content {
    padding: 28px;
}

/* =====================================================
   NAVIGATION + OLD SCHOOL ICONS
   ===================================================== */

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 7px;
    background: #10101c;
    border-top: 1px solid #07070c;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 6px 13px;

    color: #d0c9e5;
    background: #1c1b2b;
    border: 1px solid #514b69;

    text-decoration: none;
    font-size: 13px;

    transition:
        background 0.15s,
        color 0.15s,
        border-color 0.15s;
}

.nav-link:hover,
.nav-link.active {
    background: #40395d;
    color: #ffffff;
    border-color: #9086b4;
}

.nav-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    image-rendering: pixelated;
}

/* =====================================================
   WELCOME
   ===================================================== */

.welcome {
    position: relative;
    margin-top: 30px;
    overflow: hidden;
}

.welcome .window-content {
    position: relative;
    z-index: 2;
    min-height: 280px;
    padding-right: 190px;
}

.eyebrow {
    margin: 0 0 7px;
    color: #817a9b;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.star-overlay {
    position: absolute;
    z-index: 1;
    top: 28px;
    right: 5px;
    width: 340px;
    max-width: 52%;
    opacity: 0.20;
    pointer-events: none;
}

.moon-image {
    position: absolute;
    z-index: 1;
    top: 42px;
    right: 42px;
    width: 130px;
    height: 130px;
    object-fit: contain;
    opacity: 0.88;
    pointer-events: none;
    filter: drop-shadow(0 0 14px rgba(180,160,240,0.18));
}

h1 {
    margin-top: 0;
    margin-bottom: 8px;

    color: #f1edff;
    font-size: clamp(28px, 5vw, 42px);
    font-weight: normal;
    letter-spacing: 1px;

    text-shadow:
        0 0 12px rgba(180,160,235,0.28);
}

h2 {
    margin-top: 0;
    color: #f1edff;
    font-size: 25px;
    font-weight: normal;
}

.intro {
    color: #c8bfdc;
    font-size: 18px;
}

strong {
    color: #f0eaff;
}

.tiny-note {
    color: #9690a8;
    font-size: 12px;
}

/* =====================================================
   SITE MAP
   ===================================================== */

.site-map {
    margin: 50px 0;
}

.section-heading {
    margin-bottom: 20px;
    text-align: center;
    color: #c2b9dc;
    font-size: 19px;
    letter-spacing: 2px;
}

.section-heading span {
    color: #8980a8;
    font-size: 13px;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.big-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 180px;
    padding: 22px;

    background:
        linear-gradient(
            rgba(255,255,255,0.015),
            transparent
        ),
        rgba(21,21,34,0.93);

    border: 1px solid #595271;
    color: #ddd7ec;

    text-align: center;
    text-decoration: none;

    box-shadow:
        inset 0 0 18px rgba(120,100,180,0.04);

    transition:
        transform 0.15s,
        border-color 0.15s,
        background 0.15s;
}

.big-link:hover {
    transform: translateY(-2px);
    background: #1d1b2e;
    border-color: #9c92bc;
}

.big-link-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 9px;
}

.link-title {
    color: #f0ebfc;
    font-size: 18px;
}

.link-description {
    margin-top: 4px;
    color: #8f87a2;
    font-size: 12px;
}

/* =====================================================
   SUBMISSION
   ===================================================== */

.submission {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.submission .window-content {
    text-align: center;
}

.submission-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    image-rendering: pixelated;
}

.mini-stars {
    margin-bottom: 8px;
    color: #8d84a9;
    font-size: 12px;
    letter-spacing: 5px;
}

.submit-button {
    display: block;
    width: fit-content;
    margin: 22px auto 12px;
    padding: 10px 20px;

    background:
        linear-gradient(
            to bottom,
            #393251,
            #292541
        );

    border: 1px solid #81769f;
    color: #f0ebfc;

    text-decoration: none;
    font-size: 14px;

    box-shadow:
        0 0 10px rgba(130,110,190,0.08);

    transition:
        background 0.15s,
        border-color 0.15s,
        transform 0.15s;
}

.submit-button:hover {
    transform: translateY(-1px);
    background: #484060;
    border-color: #afa3cf;
}

/* =====================================================
   SLIGHTLY CREEPY STATUS
   ===================================================== */

.oddity {
    margin: 38px 0;
    text-align: center;
    color: #77708b;
    font-size: 12px;
}

.oddity-text {
    opacity: 0.55;
    font-size: 11px;
}

.blink {
    color: #9c8bbb;
    animation: blink 2.5s infinite;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0.2; }
    100% { opacity: 1; }
}

/* =====================================================
   FOOTER + CLOUD ART
   ===================================================== */

footer {
    padding: 12px;
    text-align: center;
    color: #77708b;
    font-size: 11px;
}

.cloud-divider {
    display: block;
    width: min(760px, 100%);
    height: auto;
    max-height: 105px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 20px;

    opacity: 0.45;
    mix-blend-mode: screen;
    image-rendering: pixelated;
}

.footer-line {
    height: 1px;
    margin-bottom: 16px;

    background:
        linear-gradient(
            to right,
            transparent,
            #595271,
            transparent
        );
}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .site-wrapper {
        width: 94%;
        margin: 20px auto;
    }

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

    .window-content {
        padding: 20px;
    }

    .welcome .window-content {
        min-height: 0;
        padding-right: 20px;
    }

    .star-overlay {
        width: 250px;
        max-width: 65%;
        opacity: 0.12;
    }

    .moon-image {
        width: 85px;
        height: 85px;
        right: 15px;
        top: 38px;
        opacity: 0.55;
    }

    .navigation {
        gap: 3px;
    }

    .nav-link {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        padding: 5px 7px;
    }

    .nav-icon {
        width: 21px;
        height: 21px;
    }

    .cloud-divider {
        max-height: 75px;
    }
}

/* =====================================================
   ANONYMOUS SUBMISSION PAGE
   ===================================================== */

.submit-page {
    max-width: 760px;
    margin: 30px auto;
}

.submit-page .window-content {
    padding: 34px;
}

.submit-header {
    text-align: center;
}

.submit-page-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: 3px;
    filter: drop-shadow(0 0 10px rgba(180,160,240,0.15));
}

.submit-header .mini-stars {
    margin-bottom: 14px;
}

.submit-header h1 {
    margin-bottom: 12px;
}

.submit-intro {
    color: #c8bfdc;
    font-size: 17px;
}


/* NOTICE */

.submission-notice {
    margin: 28px 0 32px;
    padding: 16px 18px;

    background:
        linear-gradient(
            rgba(255,255,255,0.012),
            transparent
        ),
        rgba(13, 13, 25, 0.72);

    border: 1px solid #514b69;

    box-shadow:
        inset 0 0 16px rgba(120,100,180,0.035);
}

.notice-title {
    margin-bottom: 6px;

    color: #c8bfdc;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.submission-notice p {
    margin: 5px 0;
    color: #8f899f;
    font-size: 12px;
    line-height: 1.7;
}


/* FORM */

.scenario-form {
    width: 100%;
}

.form-field {
    margin-bottom: 27px;
}

.form-field label {
    display: block;

    margin-bottom: 2px;

    color: #e7e1f4;
    font-size: 15px;
    font-weight: bold;
}

.required {
    color: #a999c9;
}

.field-note {
    margin: 0 0 8px;

    color: #777087;
    font-size: 11px;
    line-height: 1.6;
}


/* TEXT INPUTS */

.scenario-form input[type="text"],
.scenario-form textarea {
    display: block;
    width: 100%;

    padding: 10px 12px;

    background: #11111d;
    border: 1px solid #514b69;

    color: #e7e2f3;

    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
    line-height: 1.6;

    outline: none;

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

.scenario-form input[type="text"] {
    height: 42px;
}

.scenario-form textarea {
    resize: vertical;
    min-height: 110px;
}

.scenario-form input[type="text"]::placeholder,
.scenario-form textarea::placeholder {
    color: #595467;
}

.scenario-form input[type="text"]:focus,
.scenario-form textarea:focus {
    background: #151522;
    border-color: #81769f;

    box-shadow:
        0 0 8px rgba(130,110,190,0.08);
}


/* CHECKBOX */

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;

    margin: 3px 0 25px;
    padding: 10px 12px;

    background: rgba(13,13,25,0.55);
    border: 1px solid #39354b;

    color: #9b94aa;
    font-size: 12px;
}

.form-checkbox input {
    width: 14px;
    height: 14px;

    margin: 0;

    accent-color: #70658f;
}

.form-checkbox label {
    cursor: pointer;
}


/* FORM SUBMIT */

.submit-form-button {
    display: block;

    width: fit-content;
    min-width: 190px;

    margin: 10px auto 10px;
    padding: 11px 22px;

    background:
        linear-gradient(
            to bottom,
            #393251,
            #292541
        );

    border: 1px solid #81769f;

    color: #f0ebfc;

    font-family: "Courier New", Courier, monospace;
    font-size: 14px;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(130,110,190,0.08);

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

.submit-form-button:hover {
    transform: translateY(-1px);

    background: #484060;
    border-color: #afa3cf;

    box-shadow:
        0 0 14px rgba(150,130,210,0.12);
}

.submit-form-button:active {
    transform: translateY(1px);
}

.form-footer-note {
    margin: 0;

    text-align: center;

    color: #686277;
    font-size: 10px;
}


/* RETURN LINK */

.submit-back {
    margin: 25px 0 40px;
    text-align: center;
}

.back-link {
    color: #9389ae;
    font-size: 12px;
    text-decoration: none;

    transition:
        color 0.15s;
}

.back-link:hover {
    color: #e7e2f3;
}


/* MOBILE */

@media (max-width: 600px) {

    .submit-page {
        margin-top: 20px;
    }

    .submit-page .window-content {
        padding: 22px;
    }

    .submit-header h1 {
        font-size: 29px;
    }

    .submission-notice {
        padding: 13px 14px;
    }

    .form-field {
        margin-bottom: 23px;
    }

    .submit-form-button {
        width: 100%;
    }

}


/* =====================================================
   GOOGLE FORM
   ===================================================== */

.google-form-wrapper {
    width: 100%;
    margin-top: 28px;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #514b69;

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

.google-form {
    display: block;

    width: 100%;
    height: 766px;

    border: 0;
}


/* MOBILE */

@media (max-width: 600px) {

    .google-form-wrapper {
        margin-left: -1px;
        width: calc(100% + 2px);
    }

    .google-form {
        height: 900px;
    }

}