/* coded by luke evanson 2026 */
/* made for hack club */
/* so cool right */

@import url('https://fonts.googleapis.com/css2?family=Cascadia+Mono:ital,wght@0,200..700;1,200..700&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body { /* body styles like background and font */
    margin: 0;
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
    background-color: #000000;
    color: #fff;
    font-family: 'Cascadia Mono', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: none;
    overflow: hidden;
}

.custom-cursor { /* literally just a custom cursor but animated really cool */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 22px;
    height: 22px;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 120ms ease;
}

.custom-cursor::before,
.custom-cursor::after {
    position: absolute;
    content: '';
}

.custom-cursor::before { /* awesome cursor animation */
    inset: 0;
    background: url('logo.png') center / contain no-repeat;
    opacity: 1;
    transform: scaleX(1) scaleY(1);
    transition: opacity 220ms ease, transform 220ms ease;
}

.custom-cursor::after { /* awesome cursor animation */
    top: 1px;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--season-color, #fff);
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 180ms ease;
}

.custom-cursor.text-mode::before {
    opacity: 0;
    transform: scaleX(0.08) scaleY(1.1);
}

.custom-cursor.text-mode::after {
    opacity: 1;
}

.custom-cursor.hover-mode {
    animation: cursor-hover 700ms ease-in-out infinite alternate;
}

@keyframes cursor-hover {
    from {
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.12) rotate(-4deg);
    }
}

@media (hover: none), (pointer: coarse) {
    body {
        cursor: auto;
    }

    a,
    button,
    input {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

.terminal { /* terminal styles that make like the border of the terminal */
    --season-color: white;
    /* color: orange; */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: left;
    width: 50vw;
    height: 50vh;
    margin: 0;
    box-sizing: border-box;
    border: 2px solid;
    border-radius: 5px;
    padding: 20px;
    font-size: 12px;
    background-color: #000000;
    color: var(--season-color);
    overflow-y: auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.terminal h3,
.terminal p {
    margin: 0;
    font-size: 24px;
}

.terminal p {
    font-size: 14px;
}

.command-line {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
}

.copyright { /* i wonder what this one could be */
    width: 50vw;
    box-sizing: border-box;
    color: white;
    font-family: 'Noto Sans', sans-serif;
    text-align: left;
}

.cmdinput { /* input for the cmd line */
    background-color: #000000;
    border: none;
    outline: none;
    color: var(--season-color);
    font-family: 'Cascadia Mono', sans-serif;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    caret-color: transparent;
    cursor: none;
}

.blink { /* blink */
    font-weight: bold;
    animation: blink 1s step-start infinite;
}

@keyframes blink { /* also blink */
    50% {
        opacity: 0;
    }
}

.hidden {
    display: none;
}

.submit {
    display: none;
}

.output { /* output for terminal */
    white-space: normal;
    overflow-wrap: anywhere;
    margin: 0;
    letter-spacing: .05em;
}

.output-cursor {
    animation: blink-cursor .75s step-end infinite;
}

.output strong {
    font-weight: 700;
}

@keyframes blink-cursor {
    50% {
        opacity: 0;
    }
}

a {
    color: inherit;
}

a, button {
    cursor: none;
}

.nebulacdn { /* unblocked games */
    display: none;
    width: 100%;
    max-height: 180px;
    margin-top: 12px;
    overflow-y: auto;
    color: var(--season-color);
}

.nebula-search,
.nebula-game { /* unblocked games */
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--season-color);
    background: #000;
    color: var(--season-color);
    font: inherit;
}

.nebula-search { /* unblocked games */
    padding: 6px;
    outline: none;
    cursor: none;
}

.nebula-list { /* unblocked games */
    display: grid;
    gap: 4px;
    margin-top: 6px;
}

.nebula-game { /* unblocked games */
    padding: 5px 7px;
    text-align: left;
    cursor: none;
}

.nebula-game:hover,
.nebula-game:focus-visible {
    background: var(--season-color);
    color: #000;
}

#particleCanvas { /* particle canvas for particles :0 */
    position: fixed;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

@media (max-width: 600px) {
    body {
        padding: 12px;
        overflow: auto;
    }

    .terminal {
        width: 100%;
        min-height: 70vh;
        padding: 14px;
    }

    .copyright {
        width: 100%;
    }
}

/* todo: find a way to make it look better without making it look ai generated */