body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 20px;
    background: #f5f5f5;
}

p {
    line-height: 2.25;
    margin: 0px;  
}

button {
    padding: 14px 22px;
    min-height: 50px;
    font-size: 18px;
    border-radius: 8px;
    border: none;
    background: #4a6fa5;
    color: white;
    cursor: pointer;
}

button:hover {
    background: #3b5a87;
}


/* STEP STRUCTURE*/
.step {
    display: none;
    max-width: 1600px;          /* wide enough for two panes */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
}  

/* The links step stays narrow */
.step[data-step="links"] {
    max-width: 800px;
}

.step-content {
    height: 750px;
    display: flex;
    flex-direction: column;
}

/* Side-by-side layout for the create step */
.step-content.split {
    flex-direction: row;
    gap: 100px;
}

.pane {
    flex: 1;
    min-width: 0;               /* lets panes shrink instead of overflowing */
    display: flex;
    flex-direction: column;
}

.step-header {
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.pane-footer {
    height: 70px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* INPUT TOPICS */

#projectName {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 20px;
    text-align: center;
}

textarea {
    display: block;
    width: 750px;
    max-width: 750px;
    min-width: 750px;
    height: 300px;
    max-height: 300px;
    min-height: 300px;
    box-sizing: border-box;
    font-size: 18px;
    line-height: 1.3;
    overflow-x: auto;
    white-space: pre;
}

.buffer-between-boxes {
    height: 30px;
}
#messageBar {
    font-size: 20px;
    color: #666;
    text-align: center;
}

#messageBar.error {
    color: #c0392b;
}


/* PREVIEW */
.preview-title {
    text-align: center;
    font-size: 22px;
    width: 100%;
}

#topicCount {
    font-size: 16px;
    color: #666;
}

.output-window {
    width: 750px;
    height: 300px;
    max-height: 300px;
    min-height: 300px;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
    font-family: monospace;
    line-height: 1.3;
    white-space: pre-wrap;
    font-size: 18px;
}

#publishButton {
    width: 200px;
}

#publishButton:disabled {
    background: #b8c4d6;
    cursor: not-allowed;
}

#publishButton:disabled:hover {
    background: #b8c4d6;
}


/* SHOW LINKS */

.results-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.results-section {
    margin-bottom: 60px;
}

.results-section h3 {
    margin: 0 0 8px 0;
}

.results-section p {
    margin: 0 0 12px 0;
}

.link-box {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    padding: 8px;
}

.link-box span {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    font-family: monospace;
}

.link-box button {
    flex: 0 0 auto;
    width: 100px;
}

.backup-message {
    text-align: center;
    font-size: 16px;
    margin: 0;
}

.start-over { 
    text-align: center; 
    margin-top: 60px; 
}

.start-over h3 { 
    margin: 0 0 12px; 
}

.start-over-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 30px; }

.start-over button {
    width: 225px;
    background: white;
    color: #4a6fa5;
    border: 2px solid #4a6fa5;
}

.start-over button:hover {
    background: #e6edf7;
    font-weight: bold;
    border: 2px, solid, #3b5a87;
}


/*  ACTIVE  */
.active {
    display: block;
}