/* ===============================
   Global Reset and Base Styles
   =============================== */
* {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=124446'), auto;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top left, #111111 0%, #000000 100%);
    color: #fff;
    font-family: sans-serif;
    position: relative;
    font-size: clamp(14px, 2vw, 18px);
}

.cursor-pointer-98 {
    cursor: url('http://www.rw-designer.com/cursor-extern.php?id=128675'), auto;
}

/* ===============================
   Starfield Container
   =============================== */
#starfield-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#starfield {
    width: 100%;
    height: 100%;
    display: block;
}

/* ===============================
   Tux ASCII Container
   =============================== */
#tux-crash-container {
    font-family: 'Courier New', Courier, monospace;
    user-select: none;
    white-space: pre;
    position: absolute;
    top: 0;
    left: 0;
    font-size: clamp(10px, 1.5vw, 16px);
    line-height: 1.1;
}

.tux-crash-container-anim {
    background: linear-gradient(90deg, black, white, black);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slide-gradient 5s linear infinite;
}

/* ===============================
   Main Content Container
   =============================== */
.main-content {
    width: min(70vw, 70vh);
    height: min(70vw, 70vh);
    max-width: 600px;
    max-height: 600px;
    z-index: 999;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    user-select: none;
}

.main-content .header {
    font-size: 12pt;
}

.main-content .title-bar {
    background: linear-gradient(90deg, #000000 0%, #222222 100%);
}

.main-content .status-bar {
    position: absolute;
    bottom: 0; 
    left: 0; 
    width: 99.55%; /* trashy fix */
    text-align: center;
    user-select: none;
}

.main-content .status-bar .na {
    color: rgba(200, 0, 0);
}

.plasma-wrapper {
    width: 100%; 
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plasma-canvas {
    width: 60%;
    height: 60%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1;
    display: block;
}

/* ===============================
   Gradient Animation Keyframes
   =============================== */
@keyframes slide-gradient {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
    100% { background-position: 0% 0%; }
}

/* ===============================
   Media Queries for Small Devices
   =============================== */
@media (max-width: 768px) {
    .main-content {
        width: 95vw;
        height: 60vh;
    }

    #tux-crash-container {
        font-size: clamp(8px, 2vw, 14px);
    }
}

@media (max-width: 480px) {
    .main-content {
        width: 95vw;
        height: 50vh;
        padding: 0.5rem;
    }

    #tux-crash-container {
        font-size: clamp(6px, 3vw, 12px);
    }
}
