:root {
    --stage-width: 448px;
    --stage-height: 450px;
    --bg-color: #000000;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    font-family: 'Helvetica', sans-serif;
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 25px;
    overflow: auto;
}

/* Full Window Mode */
body.full-window {
    overflow: hidden;
    align-items: center;
    padding-top: 0;
    
}



body.full-window #layout-container {
    gap: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
}

body.full-window #stage-container {
}

a {
    color: #FF0000;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#layout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.header-bar {
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 10;
    position: relative;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    transform: translateY(-3px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0px;
}

.footer-bar {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    font-family: 'Times New Roman', serif;
    z-index: 10;
    position: relative;
}

#stage-container {
    position: relative;
    width: var(--stage-width);
    height: var(--stage-height);
    background-color: var(--bg-color);
    overflow: hidden;
    cursor: default;
}

.hidden {
    display: none !important;
}
/* Project 03 Specifics */
.red-rect {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ee0000;
    pointer-events: none;
    /* Logic is driven by mouse position, not clicks */
}

.red-rect.active {
    background-color: #FFFFFF;
}

/* Sprite 20 (Background Text List) */
#sprite-20 {
    position: absolute;
    top: 5px;
    /* Match Start Y of items */
    left: 45px;
    width: 400px;
    height: auto;
    font-family: 'Courier New', Courier, monospace;
    -webkit-text-stroke: 0.3px currentColor;
    font-size: 5px;
    color: #550000;
    /* Dark Red */
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 10;
    display: none;
    /* Controlled by JS */
}

/* Sprite 21 (Sliding Text / Display) */
#sprite-21 {
    position: absolute;
    left: 45px;
    width: 400px;
    height: auto;
    font-family: 'Courier New', Courier, monospace;
    -webkit-text-stroke: 0.3px currentColor;
    font-size: 12px;
    color: #e8e8e8;
    white-space: pre-wrap;
    pointer-events: none;
    z-index: 20;
    /* Removed background-color and fixed size */
}

body.full-window .header-bar {
    position: absolute !important;
    top: 25px;
    left: 0;
    width: 100%;
    z-index: 20;
}

body.full-window .footer-bar {
    position: absolute !important;
    bottom: 20px;
    left: 0;
    width: 100%;
    z-index: 20;
}


.title-img {
    transform: translateY(-2px);
}
