:root {
    --stage-width: 544px;
    --stage-height: 430px;
    --bg-color: #ffffff;
}

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 {
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 0;
}

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);
    /* cell padding approximation */
}

.nav-links {
    display: flex;
    align-items: center;
    /* Images are inline in original, no gap specified but images might have built-in whitespace? */
    /* 02.htm just has <a><img></a><a><img></a>. */
}

.footer-bar {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
    /* Default serif/sans? original didn't specify font for p, just body text? */
    z-index: 10;
    position: relative;
    font-family: 'Times New Roman', Times, serif;
}

#stage-container {
    position: relative;
    width: var(--stage-width);
    height: var(--stage-height);
    overflow: hidden;
    cursor: default;
    /* Will change based on logic */
}

#stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    white-space: nowrap;
    user-select: none;
    transform-origin: center center;
}

.element-shape {
    pointer-events: none;
}

/* Typography map (fallbacks) */
.font-helvetica {
    font-family: 'Helvetica', 'Arial', sans-serif;
}

.font-courier {
    font-family: 'Courier New', 'Courier', monospace;
    -webkit-text-stroke: 0.3px currentColor;
}

.font-times {
    font-family: 'Times New Roman', 'Times', serif;
}

.weight-bold {
    font-weight: bold;
}

.weight-normal {
    font-weight: normal;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to stage */
}

#ui-background {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    /* gTitleHeight */
    background-color: rgb(0, 0, 0);
    pointer-events: none;
}

#click-prompt {
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    font-family: 'Times New Roman', serif;
    font-size: 12px;
    color: #969696;
    pointer-events: auto;
    cursor: pointer;
    text-align: center;
    line-height: 20px;
    /* Ensure height for click */
    padding-bottom: 5px;
}

#stanza-text {
    position: absolute;
    right: 8px;
    left: 8px;
    bottom: 30px;
    /* Above prompt */
    height: 60px;
    /* Rest of the 100px bar */
    display: flex;
    /* Center vertically */
    align-items: center;
    justify-content: center;
    font-family: 'Helvetica', sans-serif;
    font-size: 16px;
    color: white;
    white-space: pre-wrap;
    text-align: center;
}

.hidden {
    display: none;
}

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);
}
