body {
    background-color: #000;
    color: #00FF00;
    font-family: "Courier New", Consolas, Monaco, monospace;
    margin: 0;
    padding: 20px;

    /* Initial centering layout */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;

    /* Positioning context for the background overlay */
    position: relative;
}

/* 50% Opacity Background Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("images/banner-bg.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    opacity: 0.0; /*Hidden on load */
    transition: opacity 1.5s ease-in-out; /* Smooth fade-in duration */
    z-index: -1;
    pointer-events: none;
}

/* Fades the background in to 50% opacity */
body.bg-fade-in::before {
    opacity: 0.5 !important;
}

/* Outer container establishing positioning context */
.ascii-wrapper {
    position: relative;
    display: inline-block;
    text-align: left;
    /* Smooth 1.2 second upward motion transition */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    /* Arrow pointer default during initial sequence */
    cursor: default;
}

#output {
    white-space: pre;
    font-size: 9px;
    font-weight: bold;
    line-height: 1.0;
    letter-spacing: 0px;
    margin: 0;
    text-align: left;
    /* Smooth 1.5 second opacity fade */
    transition: opacity 1.5s ease-in-out;
    opacity: 1;
}

/* Graphic Logo - Positioned directly behind the ASCII art */
#graphic-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Preserves aspect ratio */
    opacity: 0; /* Hidden by default */
    /* Smooth 1.5 second opacity fade */
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
    cursor: default !important;
}

/* Full-screen overlay canvas for weather effects */
#weather-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Allows clicks to pass through to terminal */
    z-index: 999;
}

/* Temporary Weather Testing Panel Controls */
#weather-tester {
    display: none !important; /* Hides and disables interaction */
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10000;
    background: rgba(0, 20, 0, 0.85);
    border: 1px solid #00FF00;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 12px;
}

#weather-tester span {
    color: #00FF00;
    font-weight: bold;
    margin-right: 4px;
}

#weather-tester button {
    background: #000;
    color: #00FF00;
    border: 1px solid #00FF00;
    padding: 3px 8px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.2s, color 0.2s;
}

#weather-tester button:hover {
    background: #00FF00;
    color: #000000;
}

/* Classes triggered by JS upon completion */
.fade-out {
    opacity: 0 !important;
}

.fade-in {
    opacity: 1 !important;
}

/* Restores I-beam text selection cursor strictly for text elements */
.text-cursor p,
.text-cursor pre,
.text-cursor span {
    cursor: text !important;
}

/* Green Blinking Cursor */
.cursor {
    display: inline-block;
    background-color: #00FF00;
    color: #000000;
    width: 5px;
    height: 11px;
    vertical-align: middle;
    margin-left: 1px;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}
