:root {
    --stage-width: 544px;
    --stage-height: 430px;
    --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;
    margin-bottom: 35px;
}

#stage-container {
    position: relative;
    width: var(--stage-width);
    max-width: 100vw;
    min-height: var(--stage-height);
    height: auto;
    background-color: var(--bg-color);
    overflow: visible;
    display: flex;
    justify-content: center;
}

.hidden {
    display: none !important;
}
/* Chapter 08 specific styles */
#poem-container {
    width: 400px;
    max-width: calc(100vw - 40px);
    margin-top: -26px;
    padding: 20px 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.15;
}

.poem-text {
    margin: 0 0 1em 0;
}

.color-light {
    color: #99ccff;
}

.color-medium {
    color: #6699ff;
}

.color-dark {
    color: #3366ff;
}


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;
    margin-bottom: 35px;
}


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

#stage-container { touch-action: auto !important; }

